Java Notes
Programming: Flip Names
Name ________________________________________
Write a program that reads a name in first last format and convert it to last first format (separated by a comma and blank). You may use either console (Scanner) or dialog (JOptionPane) input and output.
Example input and output values
Input : Michael Maus Output: Maus, Mickey Input : Arnold Schwarzenegger Output: Schwarzenegger, Arnold
Hint
Use indexOf(...) to find the blank, then use substring(...)
to extract the first and last names.















