java convert array of characters to string code example Example: char array to string String string = String.valueOf(a);