• Post Reply Bookmark Topic Watch Topic
  • New Topic

if else statement to determine early or late  RSS feed

 
femi Joseph
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to write a simple code that tells an employer is he is late or not. Below is the code







*****Can someone please tell me how to use the if-else statement?
I want the program to ask the employer what time he resumed work. If he resumed before or at 12:00, he is early. else, he is late

 
Junilu Lacar
Sheriff
Posts: 11494
180
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the Java Tutorials: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/if.html

Then look over the API Documentation for LocalTime: https://docs.oracle.com/javase/8/docs/api/java/time/LocalTime.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!