java- how can I read a text file containing multiple lines of integers and double values and then store into an array? -
for example, have text file contains following format
acountnumber accountbalance
accountnumber integer , accountbalance double.
in file, have following format
item price
item string , price double.
so how can read these types of lines , store values array?
while there lines read read line split line first part second part end while
or if want manipulate line whole can
while there lines read read line convert line pair pair end while
Comments
Post a Comment