✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
public class SomeClass {
public static void main (String s []) {
Calendar cal = new GregorianCalendar ();
cal.set (Calendar.YEAR, 2011);
cal.set (Calendar.MONTH, Calendar.APRIL);
cal.set (Calendar.DAY_OF_MONTH, 30);
cal.add (Calendar.DAY_OF_MONTH, 1);
cal.roll (Calendar.MONTH, 11);
SimpleDateFormat sdf = new SimpleDateFormat ( "yyyy MMMM dd");
System.out.println (sdf.format (cal.getTime ()));
}
}
(Java)