0

I was wondering if anyone had a good implementation of a List of list. The reason is to create rows and columns sort of like a database or spreadsheet format. I would like to insert data into the list and print it in the format of

           Column Column  Column  Column
     Row     1    This    That    3123  

I want to use java and the linked list is just a starting point(open to suggestions).
Thanks for help in advance

2
Contributors
4
Replies
6
Views
5 Years
Discussion Span
Last Post by NormR1
0

Are you talking about something like:
List<List> listOfLists

Edited by NormR1

0

More like an object list. My best way to explain it would be to say you have a table(relation) for a database so the object table would hold a list of columns and rows.

CREATE TABLE Persons
 (
 P_Id int,
 LastName varchar(255),
 FirstName varchar(255),
 Address varchar(255),
 City varchar(255)
 )

object person with columns Pid Lastname firstname etc... and rows with the values.
note: I only want to use java storage and I'm not linking to a database.

0

Create a Person class with the listed fields and have a List that contains Person objects.

Edited by NormR1

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.