java - How to convert a char array back to a string? - Stack Overflow
I have a char array: char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'}; My current solution is to do String b = new String(a); But surely there is a better way of doing this?...