Write a method that reads a file and returns an array list of all positive integers that were found in the file. Break up floating-point numbers and numbers containing commas. (14.9 results in two integers 14 and 9, and 200,000 results in 200 and 0.)
For example, consider this file:
In his final budget, the Republican governor declared a fiscal emergency to add urgency to the state budget process after a legislative impasse in 2009 that lasted over 100 days in the midst of recession. The budget aims to close a $19.9 billion deficit over the next year and a half, relying mostly on spending cuts of $8.5 billion, which the governor called "draconian," and $6.9 billion in federal funds. The state will spend $82.9 billion in fiscal 2010-2011, beginning in July. Under the cuts, more than 200,000 children will lose eligibility for health insurance.
Your method should return an array list
[2009, 100 ,19, 9, 8, 5, 6, 9, 82, 9, 200, 0].