Given a String named word. Display the letters of the word, one letter per line.
Example: if word is initialized to JACK
Display
J
A
C
K
Given Code:
import static java.lang.System.*;
import java.util.*;
import java.io.*;
public class Class1
{
public static void main(String[]args)
{
Scanner kb = new Scanner(in);
String word = kb.next();
}
}