經安全檢測,此網站為安全網站,請放心前往原始網址!

How to convert a char array back to a string? (Java) - 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 that is a better way in doing this?

stackoverflow.com

網址安全性掃描由 google 提供