Answers for "java string to char array list"

27

java string to char array

String str = "example";
char[] ch = str.toCharArray();
Posted by: Guest on March-05-2020
0

char array to arraylist java

myString.chars().mapToObj(c -> (char) c).collect(Collectors.toList());
Posted by: Guest on May-07-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language