- 130 X 0 General Instructions Test Time Left 01 46 20 Upload Answer Sheets Explain The Packages In Java With An Example 1 (100.74 KiB) Viewed 12 times
130% X 0 General Instructions Test time left: 01:46:20 Upload answer sheets Explain the packages in JAVA with an example
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
130% X 0 General Instructions Test time left: 01:46:20 Upload answer sheets Explain the packages in JAVA with an example
130% X 0 General Instructions Test time left: 01:46:20 Upload answer sheets Explain the packages in JAVA with an example. (Use the Gregorian Calender class) Java API has the GregorianCalender class in java.util package, which you can use to obtain the year, month and day of a date. The no-arg constructor constructs an instance for the current date, and the methods get(Gregorian Calender. YEAR), get(GregorianCalender. MONTH), and get(Gregorian Calender.DAY_OF_MONTH) return the year, month and day. Write a program to perform two tasks: 1) Display the current year, month, and day. 2) The Gregorian Calender class has the setTimeln Millis(long), which can be used to set specified elapsed time since January 1, 1970. Set the value to 1234567898765L and display the year, month and day. Once you upload files from your second douin