Hey guys trying to get this program to Recieve input from user(a string), then print each character of the String to its own line..Code:import java.util.Scanner;
public class ap {
public static void main(String[]args) {
String b;
String c;
Scanner j1 = new Scanner(System.in);
System.out.println("Enter your String please!!");
b = j1.nextLine();
int index1 = b.charAt(0);
int index2 = b.charAt(b.length()-1);
while ( index1 >=0 ) {
System.out.println("");
}
}
}

