Convert Char to String in Java
Convert char to String in Java using the String.valueOf() method There is a valueOf() static method in the String class that returns the String representation of its argument, which can be a char or any other data type. public class Test { public static void main(String[] args) { char ch = ‘a’; String str =…
Read More Convert Char to String in Java