Ah, thanks so much. I changed what i typed in this time and printed out what the results were and they demonstrate exactly what you said.
New Code:
import java.util.Scanner;
public class Help {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
System.out.println("Using next");
System.out.println("next info: " + scan.next());
System.out.println("Using nextLine");
System.out.println("nextLine info: " + scan.nextLine());
System.out.println("Using nextAnything");
System.out.println("nextInt info: " + scan.nextInt());
System.out.println("Using nextAnything here");
System.out.println("next info: " + scan.next());
}
}
Result:
Using next
Something goes here <-- I typed this
next info: Something
Using nextLine
nextLine info: goes here
Using nextAnything
12 <-- I typed this
nextInt info: 12
Using nextAnything here
Something goes here <-- i typed this
next info: Something
Thanks very much for the quick reply also.
Rodrigo