Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Why is this
- */
- HashMap<String, SomeObj> map = new HashMap<String, String>();
- map.get(someString);
- // Faster than this
- ArrayList<SomeObj> al = new ArrayList<>();
- for(SomeObj obj : al){
- if(obj.get() == something)
- return obj;
- }
Advertisement
Add Comment
Please, Sign In to add comment