void (int id, String value) { for (Entry entry : myEntries) { if (entry.startID == (id / 16)+1) { entry.table.setString(id % 16, value); return; } } throw new IllegalArgumentException("Cannot find string entry with ID " + id); }