You are viewing a single comment's thread. Return to all comments →
Set<String> set=new LinkedHashSet<>(); String x; for(int i=0;i<pair_left.length;i++){ x=""; x=pair_left[i]+" "+pair_right[i]; set.add(x); System.out.println(set.size()); }
Seems like cookies are disabled on this browser, please enable them to open this website
Java Hashset
You are viewing a single comment's thread. Return to all comments →