Question: Section 9.60 9.3 (Use the Date class) Write a program that creates a Date object, sets its elapsed time to 10000, 100000, 1000000, 10000000, 100000000,

 Section 9.60 9.3 (Use the Date class) Write a program that

Section 9.60 9.3 (Use the Date class) Write a program that creates a Date object, sets its elapsed time to 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 1000o000000, and 100000000000, and displays the date and time using the tostring) method, respectively 9.4 (Use the Random class) Write a program that creates a Random object with seed 1000 and displays the first 50 random integers between 0 and 100 using the nextInt (100) method. 9.5 (Use the Gregoriancalendar class) Java API has the Gregoriancalendar class in the 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 (Gregoriancalendar. YEAR), get (Gregoriancalendar.MONTH), and get (Gregoriancalendar.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 GregorianCalendar class has the setrimeInMillis(long), which can be used to set a specified elapsed time since January 1, 1970. Set the value to 1234567898765L and display the year, month, and day. Sections 9.70-9.9o 9.6 (Stopwatch) Design a class named stopWatch. The class contains: Private data fields startTine and endTime with getter methods. . A no-arg constructor that initializes startrime with the current time. . A method named start) that resets the startTine to the current time. . A method named stop) that sets the endTime to the current time. . A method named getElapsedrimeo) that returns the elapsed time for the stopwatch in milliseconds. Draw the UML diagram for the class then implement measures the execution time of sorting 100,000 numbers using selection sort 9.7 (The Account class) Design a class named Account that contains . A private Aint data fiold named id for the account (default o) the class. Write a test program that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!