Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public class Foo{
  2. private list1, list2;
  3.  
  4. Bar bar = new Bar(list1, list2);
  5. // use bar.listA, bar.listB, bar.listC,
  6. //bar.listD, bar.listE
  7.  
  8. private static class Bar{
  9. private list1, list2;
  10. private listA, listB, listC, listD, listE;
  11.  
  12. private Bar(list1, list2) {
  13. this.list1 = list1;
  14. this.list2 = list2;
  15. //logic to split list1 and list2 into 5 lists: listA, listB, listC, listD, listE.
  16. //initialize the 5 lists
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement