Java; Txt file of single integer on each line, how can I single out each integer to use in my program? : <p>I have a txt file, each line has a single integer. I need to make a class that singles out each one, so I can then put them in an array in a different class.</p>

<p>I understand that it may be weird to want each single integer but I need it this way for my program.</p>

<p>Any help would be greatly appreciated.</p>
