Answers for "Read array of characters from space separated values in java"

0

Read array of characters from space separated values in java

List<Character> collect = Arrays.stream(scanner.nextLine().split(" "))
                       .map(a -> new a.charAt(0)).collect(Collectors.toList());
Posted by: Guest on May-27-2021

Code answers related to "Read array of characters from space separated values in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language