Can the following code be converted to stream? I have tried this a lot of times but I kind of got stuck in someplace.
Scanner sc = new Scanner(System.in);
while(sc.hasNext()) {
String line = sc.nextLine();
line.chars().forEach(i -> System.out.println((char)i));
}
sc.close();