Question: Complete the following method that takes a String parameter that is a name in the form Grace Hopper. You can assume that there are exactly
Complete the following method that takes a String parameter that is a name in the form "Grace Hopper". You can assume that there are exactly two names in the String, and that there is exactly one space between the two names. This method returns a String with the same name in the form "Hopper, Grace". public static String convertName(String name) { }
Must be done in Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
