import java.io.*; class UseDrinksMachine7 { // Shows use of if statement public static void main(String[] args) throws NumberFormatException, IOException { DrinksMachine machine1 = new DrinksMachineA(25); DrinksMachine machine2 = new DrinksMachineA(80); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int amount; String reply; System.out.print("How much do you want to put in a machine? "); amount = Integer.parseInt(in.readLine()); if(machine1.showPrice()