Hey i was wondering how can i create a table of objects in java using a text file I've created my table
Table tab[] = new Table[6]
and here's my text file :
id|des|pr
50 | Internet Fibre 50 | 40.00
150| Internet Fibre 150 | 50.00
500| Internet Fibre 500 | 90.00
B | Forfait Bien | 60.00
T | Forfait Très Bien | 40.00
E | Forfait Excellent | 30.00
I've created my table
Table tab[] = new Table[6]
I'd like to read each line (except the first line ) and make it an object (the type is Table) in the table above (tab) by sperating the "|" on each line so i'll have 6 objects in total each one will follow this constructor
Table newTable = new Table(id , des , pr);
Thanx !