Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- {
- return String.format("%c%c%c",one.charAt(0), two.charAt(0), three.charAt(0));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement