Ohhhh that makes alot more sense now haha
Sorry JosAH I missed your post before
So using this I can do something more like, m.put() instead, which would make alot more sense!
Thanks for your help guys. I'll have a read of the article because my next task will be using generics!
User Profile
Collapse
-
Hey,
Thanks for the reply [=
I understand this, but how would I integrate the put() method into that line of code?...Leave a comment:
-
Using a put() method in arrays
Hey,
I'm pretty new to Java and am having some trouble writing a put() method for one of my programs. The basic idea of it is to have a matrix, made by a multi-dimensional array, then to create the method with three arguements, the row, the column and the object to place into this array.
To declare the array, and the two objects I have this
...Code:int [] [] matrixArray = new int [5] [5]; Object
No activity results to display
Show More
Leave a comment: