java tutorial - How to Convert Char Array To String in java - java programming - learn java - java basics - java for beginners
Learn Java - Java tutorial - chararr to str - Java examples - Java programs
Char Array To String
- The String is a class whereas the char is a primitive data type.
- You can use String.valueOf(char c) or else Character.toString(char c) to convert char into string.
- So it’s better to use String class function to convert char into String. Arrays.toString method is used to print the char array.
- Arrays is a utility class in java that provides many useful methods to work with array.