import java.io.*; class UseDrinksMachine8 { // A scenario showing nested ifs, and string equality public static void main(String[] args) throws NumberFormatException, IOException { DrinksMachineC machine = new DrinksMachineC(40); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int amount; String reply; machine.loadFantas(10); System.out.print("How much do you want to put in the machine? "); amount = Integer.parseInt(in.readLine()); if(amount