Convert character to String

static String toString(char c)
Returns a String object representing the specified char.
String toString()
Returns a String object representing this Character's value.

public class Main {
  public static void main(String[] argv) {
    Character character1 = new Character('a');
    Character character2 = new Character('b');
    System.out.println(character1.toString());

    System.out.println(Character.toString(character2));
  }
}

The output:


a
b
Home 
  Java Book 
    Essential Classes  

Character:
  1. Create a character object from char value
  2. Get char value from Character object
  3. Check the character type
  4. Get the char type from char value
  5. Change character case
  6. Compare two characters
  7. Convert character to String
  8. Get the numeric value for a char