Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else {
- for (int positionList1 = 0; positionList1 < firstList.size(); positionList1++) {
- newList.add(positionList1 * 2, firstList.get(positionList1));
- }
- int currentPositions = 1;
- for (int positionList2 = 0; positionList2 < secondList.size(); positionList2++) {
- newList.add(currentPositions, secondList.get(positionList2));
- currentPositions += 2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement