You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
463 B
Java
11 lines
463 B
Java
import java.util.*;
|
|
public class Main {
|
|
public static void main(String[] args) throws Exception {
|
|
Date d1 = new Date();
|
|
Calendar cl = Calendar. getInstance();
|
|
cl.setTime(d1);
|
|
System.out.println("today is "+ cl.WEEK_OF_YEAR+ " week of the year");
|
|
System.out.println("today is a "+cl.DAY_OF_MONTH + "month of the year");
|
|
System.out.println("today is a "+cl.WEEK_OF_MONTH +"week of the month");
|
|
}
|
|
} |