I'm in my 1st year of college, doing some Java programming...and really struggling. We have some project to do, to test a date...there will be 5dates and the output should be next day of the date.
If anybody can help... thanks
Stan

If you mean "the day after" the date provided, then see the Calendar class and it's add method.

String dayNames[] = new DateFormatSymbols().getWeekdays();
      Calendar cal = Calendar.getInstance();
      System.out.println("Today is " + dayNames[cal.get(Calendar.DAY_OF_WEEK)]);
      System.out.println("Tomorrow is a " + dayNames[cal.get(Calendar.DAY_OF_WEEK)+1]);//get next day

don't forget to visit

http://www.daniweb.com/forums/announcement9-2.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.