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