aspose file tools
The moose likes Java in General and the fly likes Matrices in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Matrices in Java" Watch "Matrices in Java" New topic
Author

Matrices in Java

Ray Beaumont
Greenhorn

Joined: Nov 25, 2003
Posts: 7
I'm about to start work on an artificial intelligence program for Java. (Sounds like fun!)
I'm looking for a class that is a bit like a 2 dimensional ArrayList. I know I could use a 2d Array, but I'd like to be able to do things like insert rows/columns at particular places, label rows/columns with Objects, and use those labels to retrieve values in particular cells.
Has anybody had any experience with this sort of utility class, or have you seen any open source projects that do this sort of thing? (I haven't.)
Note that I want to store objects rather than numbers in the matrix.
Thanks in advance for any help!
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
How about an ArrayList of ArrayLists?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Matrices in Java
 
Similar Threads
Nested for loop for grid
Data structure help
Having NullPointerException Error in Connect4
overwriting methods
Table Rows