0 votes
in JAVA by
How to convert char to string in java?

1 Answer

0 votes
by
How to convert char to string in java?

public class CharToStringExample2{

public static void main(String args[]){

char c='M';

String s=Character.toString(c);

System.out.println(""String is: ""+s);

}}
...