Cursor going out of bound
<p>I have a scenerio in which i have to move the cursor to next and previous. I am runing into exception when the cursor is already at the first or last location, then it throws out of bound exception. </p>

<p>How to tackle this situation ? What is the best way to handle it and currently i am handling it with exception [try and catch].   </p>

<pre><code> public boolean nextWord()
   {
 boolean isVald = false;
 try
 {
    isVald = currentCursor.moveToNext();
    fillCurrentWord();

 } catch (Exception e)
 {
    Log.e("nextWord", e.toString());
 }

 return isVald;
  }
</code></pre>
