Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import jssc.SerialPortList;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) {
  6. String[] portNames = SerialPortList.getPortNames();
  7. for(int i = 0; i < portNames.length; i++){
  8. System.out.println(portNames[i]);
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement