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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -