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