logo

Crowdly

Browser

Add to Chrome

Що буде виведено на екран в результаті виконання наступного коду: public clas...

✅ 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)

0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome