Hi ,I am learning java ,and wondering why is this return in this method
Thanks
public void updateDisplay()
{
if (curIndex<0 || curIndex>=appObj.array.size())
{
display.setText("");
return;
}
display.setText( appObj.array.get(curIndex).toString());
}