go to previous page   go to home page   go to next page

Answer:


Ending the Method

Here is a code fragment that deals with ending the method.

  public boolean recognize(String str)
  {
    final int reject = 3;
    int  state = 0;
    char current;
    int  index = 0 

    while ( index <  && state !=   )
    {
      current = str.charAt( index++ );

      . . . . .

    }


QUESTION 13:

Mentally fill in the blanks (then click to see if you are right).