reading a text file in java

Posted by aks on Stack Overflow See other posts from Stack Overflow or by aks
Published on 2010-05-07T11:17:32Z Indexed on 2010/05/07 11:28 UTC
Read the original article Hit count: 242

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about homework