posted 21 years ago
Hi I'm a greenhorn to OOPs and Jave language but not to programing.
I have a question on a design of an application. I works but is there a better way.
My application is for creating and maintaining a class roster.
There is no database just reading and writing to a text file.
It has a collection(arraylist) called members of a class called member that holds name, address and Id.
I read from the text file and create members collection but to edit it I when with a jTable.
So I convert the collection to Object[][], display the jTable and when a
Save button is pressed I update the collection with the Object[][] data. then write the data back to the text file.
There are a lot of steps in doing the converting from the collection to Object[][] and back again,
so I was wondering if there is a better way.
Thanks