how to convert an array into string in java code example Example: java srting array to string Arrays.toString(charArr);