Link to home
Start Free TrialLog in
Avatar of meow00
meow00

asked on

Read columns from a file ...

Hello experts,

  I have a file:

  Name, gender, age, phone, address
  A,  F. 12, 123456, ABCDE
  B, M, 13, 111111, BCDEF
  :

 What would be the best (fast way) to read the data in the file and
 then put (Name, address) in a Hashmap ?

 thanks.
SOLUTION
Avatar of Manikandan Thiagarajan
Manikandan Thiagarajan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Maybe you should add this line as well  
catch(ArrayIndexOutOfBoundsException e){System.out.println("problem with format");}
:-)