Problem in collections:
I am having a a problem here:
Map<Integer, String> map = new ArrayList<Integer, String>();
Collection<Integer> keys = map.keySet();
for(String id : categories) {
if(Collections.binarySearch(keys, Integer.valueOf(id)) > 0) { some code...}
}
While compiling i am getting the following compile time error:
AuthorProfileSaveEditAction.java:165: cannot find symbol
symbol : method binarySearch(java.util.Collection<java.lang.Integer>,java.lang.Integer)
location: class java.util.Collections
if(Collections.binarySearch(keys, Integer.valueOf(id)) > 0) {}
^
Can anyone help...

