Java char type convert to String

Description

Java char type convert to String

public class Main {

  public static void main(String[] args) throws Exception{
    char c = 'A';
    String str = String.valueOf(c);
    System.out.println(str);//from   w w  w .  j a va  2  s  . c  o  m

    
  }
}



PreviousNext

Related