Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I do it?

 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I want to display them,because one tableno has several checkid,but amount is not the same,How can I map them.for example.
tableno 1->checkid 123,234,343,4343,2532
tableno 2->checkid 344,454634,2342
if anyone has good idea,pls give me direction.thank you
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
why don't you take the following combinition:
for(i=0;i<a.length;i++){
for(j=0;j<b.length;j++){
pm.add(checkid);//pm is a list variable,checkid is a string }
am.put(tableno,pm); //am is map, tableno is the key and pm is the list of checkid's
}
}
Oliver
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic