The following while loop within the program I'm writing is not being entered into, even though the condition within parentheses would evaluate as true (as far as I can tell). Here is the loop with the assignment before it:
String choose = "y";
while(choose=="y"); {
System.out.println("Enter 4-digit time: (0000 - 2359)");
String time_ = s.nextLine();
System.out.println("Angle between hour hand and minute hand is: " + timeToAngle(time_) + " degrees");
System.out.println("Would you like to calculate the angle for another time? (y/n)");
choose = s.next();
}
Please could somebody give me a pointer in the right direction? This is driving me crazy