Write a class named NameWriter. Javadoc your class and methods. In the class, wr
ID: 3644705 • Letter: W
Question
Write a class named NameWriter. Javadoc your class and methods.In the class, write a method called processName that accepts a Scanner for the console
as a parameter and prompts the user to enter a full name, then prints the name in reverse order (i.e. last name, first name).
Here is an example dialogue with the user (Exercise 3-15):
Please enter your full name: Sammy Jankis
Your name is reverse order is Jankis, Sammy
Call the processName method from the main method.
HINT: Use console.next() twice.