public class BatteryChargerRunner { public static void main(String args[]) { // int c = getChargingCost(23, 3); // System.out.println(c); // System.out.println(getChargeStartTime(4)); BatteryCharger bat = new BatteryCharger(); int cost1 = bat.getChargingCost(12, 1); int cost2 = bat.getChargingCost(0, 2); int cost3 = bat.getChargingCost(22, 7); int cost4 = bat.getChargingCost(22, 30); System.out.println("Charging Costs"); System.out.println(cost1 + " (Should be 40)"); System.out.println(cost2 + " (Should be 110)"); System.out.println(cost3+ " (Should be 550)"); System.out.println(cost4+ " (Should be 5060)"); int chargeLength1 = bat.getChargeStartTime(1); int chargeLength2 = bat.getChargeStartTime(2); int chargeLength3 = bat.getChargeStartTime(7); int chargeLength4 = bat.getChargeStartTime(30); System.out.println("\nBest Starting Charge Time"); System.out.println(chargeLength1+ " (Should be 12)"); System.out.println(chargeLength2+ " (Should be 0)"); System.out.println(chargeLength3+ " (Should be 22)"); System.out.println(chargeLength4+ " (Should be 22)"); } }