char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'}; There's a string like this
char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};
String b = new String(a); Is there a better way than this?
String b = new String(a);
No, that's the most concise and good way. But just to tell you one thing, splitting each string into a char array and putting it back into the string doesn't really happen in normal code.
581 PHP ssh2_scp_send fails to send files as intended
881 /usr/bin/google-chrome:symbol lookup error:/usr/bin/google-chrome: undefined symbol:gbm_bo_get_modifier
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
589 Scrap text information after the "View More" button when searching in the Yahoo! News search window
1022 In Java servlet, when SHA-256 sends WW-Authenticate header for digest authentication, the client does not return the result.
© 2024 OneMinuteCode. All rights reserved.