@@ -0,0 +1,581 @@
+package examples;%0A%0Aimport java.util.Enumeration;%0A%0Aimport gnu.io.CommPortIdentifier;%0A%0Apublic class SerialPortFinder %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09System.out.println(%22Searching ports...%22);%0A%0A%09%09CommPortIdentifier serialPortId;%0A%0A%09%09Enumeration enumComm = CommPortIdentifier.getPortIdentifiers();%0A%0A%09%09while(enumComm.hasMoreElements()) %7B%0A%09%09%09serialPortId = (CommPortIdentifier) enumComm.nextElement();%0A%09%09%09if(serialPortId.getPortType() == CommPortIdentifier.PORT_SERIAL) %7B%0A%09%09%09%09System.out.println(serialPortId.getName());%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09System.out.println(%22Complete...%22);%0A%09%7D%0A%0A%7D%0A

Add port find example