import java.util.*; public class charPerLine { public static void main(String[] args)throws StringIndexOutOfBoundsException { Scanner sc=new Scanner(System.in); System.out.print("Type any name:"); String s=sc.next(); int j= s.length(); for(int i=0;i<=j;i++){ char ch=s.charAt(i); System.out.println(ch); } } }