SHARE
TWEET

Untitled

advictoriam Jan 15th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class InitialsCheck
  2. {
  3.    /**
  4.       Gets the initials of this name
  5.       @params first, middle, and last names
  6.       @return a string consisting of the first character of the first, middle,
  7.       and last name
  8.    */
  9.    public static String getInitials(String one, String two, String three)
  10.    {
  11.       return String.format("%c%c%c",one.charAt(0), two.charAt(0), three.charAt(0));
  12.    }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top