import java.io.*; class UseDrinksMachine8b { // An example illustrating "dangling else problem" 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.loadCokes(10); System.out.print("How much do you want to put in the machine? "); amount = Integer.parseInt(in.readLine()); machine.addMoney(amount); reply = machine.pressCoke(); System.out.println("Press Coke button"); if(reply.equals("Nothing")) if(amount