Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. private Map<List<String>, Integer> cropCache;
  2. private Map<Person, Map<List<String>, Integer>> unitCache;
  3.  
  4. Map<List<String>,Integer> cropCache = new HashMap<List<String>,Integer>();
  5. Map<List<String>, Map<List<String>,Integer> > unitCache = new HashMap ....
  6.  
  7. List<String> strList = new ArrayList<String>(5);
  8.  
  9. strList.add("A");
  10. strList.add("B");
  11. strList.add("C");
  12. strList.add("D");
  13. strList.add("E");
  14.  
  15. int[] intArr = { 5, 3, 2, 4, 4};
  16.  
  17. List<Integer> intList = new ArrayList<Integer>();
  18. for (int index = 0; index < intArr.length; index++)
  19. {
  20. intList.add(intArr[index]);
  21. }
  22.  
  23. for (Integer number : intList)
  24. for (String str : strList)
  25. cropCache.put(str, intList);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement