Scanner in = new Scanner(System.in);System.out.print("Enter quantity: ");int quantity = in.nextInt();