If the current time is 5pm, what is printed to the console?

LocalTime now = LocalTime.now();
LocalTime startTime = LocalTime.of(15, 30);
if (nowpareTo(startTime) < 0)
{ System.out.println("early"); }
else if (nowpareTo(startTime) > 0)
{ System.out.println("late"); }
else if (nowpareTo(startTime) == 0)
{ System.out.println("on time"); }

Solved
Show answers

Ask an AI advisor a question