Calculate Yesterday and Tomorrow Date without using Calendar in Java

In this program, you'll learn to Calculate Yesterday and Tomorrow Date without using Calendar in Java .This is done using a for loop and if statement in Java.

When you run the program, the output will be:

Enter Year : 2012
Enter month : 5
Enter day : 8
Yesterday is :  7/5/2012
Today is : 8 /5 /2012
Tomorrow is : 9/5/2012

أحدث أقدم