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