Reading a txt file and then storing it in a 2d array
This has got me completely stumped.
Part of a project I'm doing requires me to write a method that loads in a txt file that contains "-"s and "0"s that form a grid image.
An example of this is...
0---0---0-0--
--0-0-0-00---
-0-0--0---00-
0--00---0---0
------00---00
0--00-------0
-0---00-0----
Next i need to store this information into an ArrayList object two dimensional.
And it should be a 2d array of chars.
Any help would be highly appreciated.