if (table != null) { throw new RuntimeException("Address table is locked"); } final AddressPcEntry entry = new AddressPcEntry(pc, offset); if (list == null) { list = entry; } else { AddressPcEntry p = list; while (p.next != null) { p = p.next; } p.next = entry; } }
if (table != null) { throw new RuntimeException( "Address table is locked"); } final AddressPcEntry entry = new AddressPcEntry(pc, offset); if (list == null) { list = entry; } else {  if (offset < list.offset) { entry.next = list; list = entry; } else { AddressPcEntry p = list; while ((p.next != null) && (offset > p.next.offset)) { p = p.next; } entry.next = p.next; p.next = entry; } } }
	public void add(int pc, int offset) {		if (table != null) {			throw new RuntimeException("Address table is locked");		}		final AddressPcEntry entry = new AddressPcEntry(pc, offset);		if (list == null) {			list = entry;		} else {			AddressPcEntry p = list;			while (p.next != null) {				p = p.next;			}			p.next = entry;		}	}