aspose file tools*
The moose likes Beginning Java and the fly likes Multiple Dimension Array!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Multiple Dimension Array!!!" Watch "Multiple Dimension Array!!!" New topic
Author

Multiple Dimension Array!!!

Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
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

Joined: Aug 24, 2001
Posts: 348
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 ]

not so smart guy still curious to learn new stuff every now and then
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple Dimension Array!!!