public static Character toCharacter(String self){
  return self.charAt(0);
}

public static Character toCharacter ( String self ) { return self . charAt ( 0 ) ; }
converts the given string into a character object using the first character in the string .
