Java-
Write a program that asks the user for four names, then prints the names while switching the first and the last name.
Sample Run:
Please enter four names:
Jesse
David
Elaine
Sandy
Sandy David Elaine Jesse
Hint: One solution to this challenge would be to use 4 separate variables, one for each name.