Here is the code, below. I really need help with this, as I have no clue what is wrong with it. It compiles cleanly, as I said, but whenever I run it, it fails to execute. Thanks!
import java.util.Scanner;
public class whatThe
{
public static void main(String[ ] args){
Scanner scan = new Scanner(System.in);
int i;
String s;
char c;
System.out.print("Please enter a number: ");
i = scan.nextInt( );
System.out.println(i);
System.out.println( );
System.out.print("Please input three words separated by spaces: ");
s = scan.next();
System.out.println(s);
System.out.println( );
System.out.print("Please input something: ");
s = scan.nextLine();
System.out.println(s);
System.out.println( );
System.out.print("Please enter another number: ");
i = scan.nextInt( );
System.out.println(i);
System.out.println( );
System.out.print("Please input a word: ");
s = scan.nextLine();
c = s.charAt(0);
System.out.println(c);
System.out.println( );
System.out.println("Good bye");
}
}