package scannerinput;

import java.util.Scanner;

public class ScannerFix1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        System.out.print("Enter quantity: ");
        int qty = input.nextInt();

        // ** clear the input buffer any time you want to
        // call nextLine() after any other nextXXX() method
        input.nextLine();

        System.out.print("Enter product name: ");
        String name = input.nextLine();

        System.out.printf("Order %d %s\n", qty, name);

        input.close();
    }
}
