reading a text file in java
- by aks
I want to read a text file containing a space sepearted vlaues.Values are integers.
How can i read it and put it in a array list??
eg of contents of texx file
1 62 4 55 5 6 77
now i want a arraylist as [1, 62,4,55,5,6,77].
How do i do it in java?