Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ArrayLists behave like the same instance in ArrayList of ArrayListS
#1
Code:
[B]Java Syntax (Toggle Plain Text) 1. ArrayList<MyObj> geciciListe=new ArrayList<MyObj>(); 2. while(some condition){ 3. tempList=new ArrayList<MyObj>();//here is the advise 4. i=0; 5. while(i<max){ 6. if(some condition){ 7. tempList.add(myObjarray[i]); 8. }else{ 9. templist.add(myotherobjarray[i]); 10. } 11. i++; 12. } 13. theCoveringRootArraylist.add(templist);[/B]

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How find the data in ArrayList? 2011-12 Vuhelper 0 2,490 09-04-2011, 07:21 AM
Last Post: Vuhelper
  Difference between collection and arraylist. saneha 1 2,727 04-24-2011, 07:11 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)