}
  public void setSelectedNode(int node) {    switch (node) {      case 1:        input = nc1;        text.print("Selected Node: Node 1");        selectedNode = node1;        break;      case 2:        input = nc2;        text.print("Selected Node: Node 2");        selectedNode = node2;        break;      case 3:        input = nc3;        text.print("Selected Node: Node 3");        selectedNode = node3;        break;      case 4:        input = nc4;        text.print("Selected Node: Node 4");        selectedNode = node4;        break;      case 5:        input = nc5;        text.print("Selected Node: Node 5");        selectedNode = node5;        break;      case 6:        input = nc6;        text.print("Selected Node: Node 6");        selectedNode = node6;        break;    }  }