Thanks all for your directions.
I realized that my code runs OK. But I cannot understand it.
I tried to get a field on ArrayList in this way //System.out.println(temps.get(3));
and program return the value that I want.
It confuses me the program, when appear the fields with a comma. I thought that I have one String for each line. But if I had one String , comma won't be on my ArrayList but only a blank field.
I mean [ELENI PAP] and not [ELENI, PAP]
On debug, I noticed only the
line = FNAME\t LNAME\t \tPHONE and not the
values, which are all the fields 0\FIRSTNAME 1\LASTNAME ETC.
So, I try with a delimiter, with split, with ArrayList, LinkedList in order to manage, what I have already done.
nextLine(): It reads until to find the character ‘\n’
next(): it reads until to find next String
Thanks a lot all of you for your time.