Turning a file into several arrays -
i need read file 3 columns of number sets 1,2,3,4.... severals years random integers
this file like:
1 1950 11 2 1950 22 3 1950 65
and needs output this
(1950, 11) (1950, 22) (1950, 65)
however, professor says should put years 1 array , integers first.
i struggle reading file , need help!
i'm pretty sure normal java scanner
calling nextint
trivially parse input. use pattern/matcher
, use regular expressions parse input.
Comments
Post a Comment