Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
hi geys , I need ow to return a array string to my method public String[] SearchPort(){ ArrayList<String> arr=new ArrayList<>(); Win32Driver w32Driver= new Win32Driver(); w32Driver.initialize(); port= CommPortIdentifier.getPortIdentifiers(); while(port.hasMoreElements()){ cuport=(CommPortIdentifier) port.nextElement(); if(cuport.getPortType()==CommPortIdentifier.PORT_SERIAL){ // return cuport.getName(); arr.add(cuport.getName()); String[] t=new String[arr.size()]; t=arr.toArray(t); for(String j:t){ return t; } } //System.out.println(cuport.getName()); } String h[]={"noo data … |