converting a character array to string in java code example Example: char array to string String string = String.valueOf(a);