Answers for "java set char to letter"

1

set of char in java

myString.chars().mapToObj(i -> (char) i).collect(Collectors.toList());
myString
    .chars() // Convert to an IntStream
    .mapToObj(i -> (char) i) // Convert int to char, which gets boxed to Character
    .collect(Collectors.toList()); // Collect in a List<Character>
Posted by: Guest on August-27-2021
0

java convert char to CharSequence

CharSequence seq = new StringBuilder(1).append(c);
Posted by: Guest on June-05-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language