public static void main(String[] args) { Store bleh = new Store(); Scanner scan = new Scanner(System.in); System.out.println( "Enter in the name of a customer,hit enter, then enter in the price of what he bought"); while (true) { String customer = scan.next(); double price = scan.nextDouble(); if (price == 0.0 || customer.equals("0")) { break; } bleh.addSale(customer, price); } System.out.println(bleh.nameOfBestCustomer()); }