String str = "hello";
char[] arr = str.toCharArray();
Arrays.toString(arr); // "[h, e, l, l, o]"
String.valueOf(arr)); // "hello"
Created
June 5, 2018 18:03
-
-
Save tokgozmusa/3361380392285febf181724e91714bd1 to your computer and use it in GitHub Desktop.
java-useful
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment