I have a loop that looks something like this:
for (int i = 0; i < max; i++) { String myString = ...; float myNum = Float.parseFloat(myString);
If you put the try/catch inside the loop, you'll keep looping after an exception. If you put it outside the loop you'll stop as soon as an exception is thrown.