You are viewing a single comment's thread. Return to all comments →
int[] a = new int[queries.length]; int i =0; for(String s : queries){ a[i] = Collections.frequency(Arrays.asList(strings), s); i++; }
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
int[] a = new int[queries.length]; int i =0; for(String s : queries){ a[i] = Collections.frequency(Arrays.asList(strings), s); i++; }