char array to string substring code example Example: char array to string String string = String.valueOf(a);