Question: Please answer by using Java. In-Class Exercise 13 - Introduction to Classes and Methods As we saw in the lecture, classes are blueprints that contain

Please answer by using Java.
In-Class Exercise 13 - Introduction to Classes and Methods As we saw in the lecture, classes are blueprints that contain the definition of some features and actions. The properties are class variables and actions are methods In this exercise we will create a class called Greeter that has a few actions defined in it. NOTE: For this exercise to work, please follow the instructions very carefully 1. Create a class called ICE13 in the package ice13 and click on "public static void main" checkbox. 2. Create another class called Greeter in the package ice13 and DO NOT click on "public static void main" checkbox. 3. In the class Greeter, write a public method called greet that doesn't return anything. This method should have the signature public void greet(). 4. All this method does is printing the message "Hello World!". 5. Write another public method called getDate which returns a String. All this method does is returning this String "2020-05-27 13:00:00:3982" 6. In the other class (ICE13) create an instance of the Greeter class 7. Call the method greet using the greeter object 8. Create a String variable called date 9. Call getDate and store what it returns in the date variable 10. Finally print the date variable. 11. Question: In the very last step, do you need to create the variable "date"? If not, how can you avoid it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
