hello.. i am new to java..
what i want to do is read a series of datas. f.e read:
1234 4 5
2345 5 6
2345 6 7
and so on..
i do not know how many lines of data i will have so i am thinking that i will no use an array.. i am thinking of using something like a list but i haven't understood how do they work..
first of all i have this class:
class data{
int x;
int y;
int z;
}..
can anyone help me and give me the body of my code..??
how after reading those datas i will pute them in the list, how i will define the list, and then how i am going to pass through them??
thanks..
i ve done this:
Arraylist box=new arraylist();
while (condition for reading) {
data.x=...
data.y=...
data.z=...
box.add(data);
}
which is not correct...
what i want is "store them" as a package..

