print out today's date. this should be in the form MM/DD/YYYY. Months should start for 1 instead of 0. prompt to read number of days to be added to current date and print the new date.
please anyone help me out
import java.util.calendar;
import java.util.Date;
import java.util.GregorianCalendar;
public class JavaDateAdd {
public static void main(String[] args) {
Date date = new Date();
System.out.println("Today's Date Is: " + (now.get(Calendar.MONTH) + 1) + "/" + now.get(Calendar.DATE) + "/" + now.get(Calendar.YEAR));
System.out.print("Number of Days You Want To ADD: ");
int AddDays = in.nextInt();
Date newDate = addDays(date,AddDays);
System.out.println("Java Date after adding "+AddDays+" days: "+(now.get(Calendar.MONTH) + 1) + "/" + now.get(Calendar.DATE) + "/" + now.get(Calendar.YEAR));
}
}`