Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (Person person : personList) {
- for (int i = 0; i < anotherList.size(); i++) {
- if (String.valueOf(person.getId()).equals(
- String.valueOf(anotherList.get(i)
- .getPerson().getId()))) {
- updateCount(person); // It is the task taking too much time
- if(person.getCount > 0)
- list.add(person);
- }
- for (int i = 0; i < anotherList2.size(); i++) {
- if (String.valueOf(person.getId()).equals(
- String.valueOf(anotherList2.get(i)
- .getPerson().getId()))) {
- updateCount(person); // It is the task taking too much time
- if(person.getCount > 0)
- list2.add(person);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement