import java.util.*;
class MCalendar
{
public static void main(String [] args)
{
// StringCharacterIterator ad = new StringCharacterIterator();
GregorianCalendar cal = new GregorianCalendar();
System.out.println (cal.getTime());
System.out.println (cal.getActualMaximum(Calendar.YEAR));
System.out.println (cal.isLeapYear(Calendar.YEAR));
System.out.println (cal.getTime());
System.out.println (cal.get(Calendar.HOUR));
Random r = new Random();
System.out.println (r.nextInt(44));
System.out.println (r.nextInt(44));
System.out.println (r.nextInt(44));
System.out.println (r.nextInt(44));
System.out.println ("\n\n");
System.out.println (r.nextInt(4));
System.out.println (r.nextInt(4));
System.out.println (r.nextInt(4));
System.out.println (r.nextInt(4));
}
}
class MCalendar
{
public static void main(String [] args)
{
// StringCharacterIterator ad = new StringCharacterIterator();
GregorianCalendar cal = new GregorianCalendar();
System.out.println (cal.getTime());
System.out.println (cal.getActualMaximum(Calendar.YEAR));
System.out.println (cal.isLeapYear(Calendar.YEAR));
System.out.println (cal.getTime());
System.out.println (cal.get(Calendar.HOUR));
Random r = new Random();
System.out.println (r.nextInt(44));
System.out.println (r.nextInt(44));
System.out.println (r.nextInt(44));
System.out.println (r.nextInt(44));
System.out.println ("\n\n");
System.out.println (r.nextInt(4));
System.out.println (r.nextInt(4));
System.out.println (r.nextInt(4));
System.out.println (r.nextInt(4));
}
}
No comments:
Post a Comment