I'm fairly new to
java and I'm trying to make a simple program that accesses some data from a table. The table has about 12 columns and 100 rows and consists exclusively out of numbers. The rows are linked to each other and using data from one column I want to be able to access the data of an other column on the same row. I want to be able to write a get function which gives me a value back of a specific row based on an argument from a different column (on the same row).
How should I go about this? Should I put my table in a database? Is there something in java like struct in C and records in Pascal? Should I use 2D arrays? Should I make write a class which has all the columns as instance variables (making an object of each row)? Use an Arraylist or LinkedList? Basically what is the easiest option to do this?
[ December 29, 2006: Message edited by: Tim Pintens ]