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

Help with these two loops

 
nicky sajdok
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I hope someone can help me?
I have these two loops, which at the moment prints out like this
addr1, id, phone, lastname, firstname
town, addr2, postcode, county, country
[7,4,2,1,0]
[9,8,6,5,3]
the first two lines is what vector vv2 holds inside it.
the second two line is what vector vv holds inside it.
my problem is how can i get it to printout like this?
[7,4,2,1,0]
addr1, id, phone, lastname, firstname
[9,8,6,5,3]
town, addr2, postcode, county, country
I hope someone can help me thanks
nicky

[ February 03, 2003: Message edited by: nicky sajdok ]
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming both arrays/vectors are the same size, something like this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic