This Java program will reformat a user's name to change a "first last" name into a "last, first" format.
The input name will consist of a first and last name separated by a blank. For example,
Input: Michael Maus Output: Maus, Michael
The tring methods are indexOf and substring will be useful.
You can't get more than the maximum score on this problem, however if you do extra work, it can cancel out points that were taken off for other reasons.
Capitalizing the names would be good extra credit for this program. You can easily use the Java functions to change the case to something standard.
Input: mIcHaEl mAuS Output Maus, Michael