Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. for (Person person : personList) {
  2. for (int i = 0; i < anotherList.size(); i++) {
  3. if (String.valueOf(person.getId()).equals(
  4. String.valueOf(anotherList.get(i)
  5. .getPerson().getId()))) {
  6.  
  7. updateCount(person); // It is the task taking too much time
  8.  
  9. if(person.getCount > 0)
  10. list.add(person);
  11.  
  12.  
  13. }
  14. for (int i = 0; i < anotherList2.size(); i++) {
  15. if (String.valueOf(person.getId()).equals(
  16. String.valueOf(anotherList2.get(i)
  17. .getPerson().getId()))) {
  18.  
  19. updateCount(person); // It is the task taking too much time
  20.  
  21. if(person.getCount > 0)
  22. list2.add(person);
  23.  
  24.  
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement