Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import jssc.SerialPortList;
- public class Main {
- public static void main(String[] args) {
- String[] portNames = SerialPortList.getPortNames();
- for(int i = 0; i < portNames.length; i++){
- System.out.println(portNames[i]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement