Question: Complete the getInitials method in the InitialsTest class below. For example, if name is read as three strings: Harry, Joseph, and Hacker, then the call
Complete the getInitials method in the InitialsTest class below. For example, if name is read as three strings: "Harry", "Joseph", and "Hacker", then the call to the getInitials method with the three names as parameters should return the string "HJH".
Complete the following file:
InitialsCheck.java
public class InitialsCheck { /** Gets the initials of this name @params first, middle, and last names @return a string consisting of the first character of the first, middle, and last name */ public static String getInitials(String one, String two, String three) {
// your work here
} }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
