Copyright © tutorialspoint.com
The method returns a String object representing the specified character valuethat is, a one-character string.
String toString(char ch) |
Here is the detail of parameters:
Primitive character type
Returns String object
public class Test{ public static void main(String args[]){ System.out.println( Character.toString('c')); System.out.println( Character.toString('C')); } } |
This produces following result:
c C |
Copyright © tutorialspoint.com