Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Dimension Array!!!

 
Brian Smith
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi folks,

like i said in comments in the code,i am reating, if i am not wrong, 3 elements inside myIntVal[0][0]. how do i get access to each one of these elements inside myIntVal[0][0]? i hope i have been able to make myself clear.
thanks.
 
chi Lin
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Namaste,
The way you define myIntVal array, it does have three elements in myIntVal[0]
. <- not myIntVal[0][0]
the way to access them are myIntVal[0][0], myIntVal[0][1], myIntVal[0][2] respectively.

the output is
myIntVal[0][0]= 0
myIntVal[0][1]= 0
myIntVal[0][2]= 0
[ June 23, 2003: Message edited by: chi Lin ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic