public Office getOffice(int ofid) { for (Office of : offices) { if (of.getofid() == ofid) return of; } return null; }