public void removeDevice() { device = null;
public void removeDevice(IODevice io) { for (int i = 0; i < devices.length; i++) { if (devices[i] == io) { devices[i] = null; return; } } assert false : "Error: Trying to remove a device that is not connected.";
    public void removeDevice() {        device = null;    }