For Programmers: Free Programming Magazines  


Home > Archive > Java Help > April 2007 > Working with data that has multiple columns and rows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Working with data that has multiple columns and rows
Jonie

2007-04-25, 7:08 pm

I tried to read a book and articles on the web about this issue, but
no luck so far.
I am wondering if somebody can help me figure out what the sort of the
standard way to treat the data with multiple columns and rows is.

For example, I have data (numbers and strings) in which I have 5
columns with descriptions on the top line and 1000 rows. I would like
to know how to first read into this data and treat each element of the
data in a vector format.

Thanks in advance.

Greg R. Broderick

2007-04-25, 7:08 pm

Jonie <kimfinale@gmail.com> wrote in news:1177519009.329540.310060
@u32g2000prd.googlegroups.com:

> I tried to read a book and articles on the web about this issue, but
> no luck so far.
> I am wondering if somebody can help me figure out what the sort of the
> standard way to treat the data with multiple columns and rows is.
>
> For example, I have data (numbers and strings) in which I have 5
> columns with descriptions on the top line and 1000 rows. I would like
> to know how to first read into this data and treat each element of the
> data in a vector format.


Create a class. In this class, add fields that contain the data for each of
the columns in the data. Use an array or java.util.List of objects of this
new class to represent multiple rows of data of this sort.

Cheers!

--
---------------------------------------------------------------------
Greg R. Broderick gregb+usenet200612@blackholio.dyndns.org

A. Top posters.
Q. What is the most annoying thing on Usenet?
---------------------------------------------------------------------
Jonie

2007-04-26, 7:08 pm

On Apr 25, 1:42 pm, "Greg R. Broderick" <gregb
+usenet200...@blackholio.dyndns.org> wrote:
> Jonie <kimfin...@gmail.com> wrote in news:1177519009.329540.310060
> @u32g2000prd.googlegroups.com:
>
>
>
> Create a class. In this class, add fields that contain the data for each of
> the columns in the data. Use an array or java.util.List of objects of this
> new class to represent multiple rows of data of this sort.
>
> Cheers!
>
> --
> ---------------------------------------------------------------------
> Greg R. Broderick gregb+usenet200...@blackholio.dyndns.org
>
> A. Top posters.
> Q. What is the most annoying thing on Usenet?
> ---------------------------------------------------------------------


Thanks!!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com