title: Is there a way to force java to ignore an Index out of bounds exception
body: <p>If, say, I want to iterate through a matrix and check the contents at the positions around the one I'm at, is there a way to check all those positions, and should one or more of them be out of bounds, it just skips that part and moves on?</p>