y s

y s

  • NA
  • 62
  • 26.2k

need help in ArrayList

Apr 8 2011 5:53 PM
i have a problem to separate last number from arrayList.
my exist arrayList are shown below:
1 2
1 3
1 2
2 3
1 2 3
1 3
2 3
1 2 3
may i know how to separate the last number, and store it into 2 araryList?
my expected output is
1st arraylist :
1
1
1
2
1 2
1
2
1 2

my second arrayList is:
2
3
2
3
3
3
3
3

hope someone can help me.

Answers (7)