toString() Method in java conversion Character to String

Java Programming Language Number Class in java (Article) Number Class in java (Program)

872

Program:

 
public class CharactertoStringMethod {
    public static void main(String[] args){

        Character d = new Character('t');
        Character e = new Character('f');
        System.out.println("d = "+ d.toString() );
        System.out.println("e = "+ e.toString() );

    }
}

Output:

d = t
e = f
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.