434445464748495051525354
public boolean removeCall(PhoneCall call) { if (call == null) { return false; } PhoneCall t = poll(); if (t == null) { return false; } setTotalTime(getTotalTime() - t.getCallDuration()); return true; }
197198199200201202203204205206207
} public void addCall() { try { PhoneCall temp = new PhoneCall(numberToArea.getText(), Integer.valueOf(durationArea.getText())); base.addCall(numberFromArea.getText(), temp); printIndex(); printInfo("Call added"); } catch (Exception e) {