how to convert from char array to string in java code example Example: char array to string String string = String.valueOf(a);