NumberFormatException while selecting random elements from a big file
问题 I have a very big file which contains user ids like this. Each line in that big file is an user id. 149905320 1165665384 66969324 886633368 1145241312 286585320 1008665352 So in that big file, I will have around 30Million user id's. Now I am trying to select random user id's from that big file. Below is the program I have but at some point it always give me this exception like this- and I am not sure why this exception is happening. Exception in thread "main" java.lang.NumberFormatException: