// confused about "using the same scanner to input strings after numbers can // result in logic errors" import java.util.Scanner; public class Scanning { public static void main(String[] args) { Scanner kb = new Scanner(System.in); System.out.println("Two favourite numbers?"); int a = kb.nextInt(); System.out.println("You entered " + a + " so far."); int b = kb.nextInt(); System.out.println("You entered " + a + " and " + b); //* System.out.println("Now I want a string."); String c = kb.nextLine(); System.out.println("You gave me the string " + c + "--thank you!"); //*/ } }