File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Multiple Dimension Array!!!" Watch "Multiple Dimension Array!!!" New topic

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.
chi Lin
Ranch Hand

Joined: Aug 24, 2001
Posts: 348
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:
subject: Multiple Dimension Array!!!
It's not a secret anymore!