L={wÎ{a, b}*:w contains no more than one b}. L isaccepted by the following DFSM M:
We can simulate M by the following program:
While (true)
{
S: c= read char()
If( c== EOF) print yes;
else if ( c== ‘a’) go to S;
else if (c==’b’) go to T
T: c= read char()
If( c== EOF) print yes
else if ( c== ‘a’) go to T
else if (c==’b’) print no
}
This above note is just an english version of the javacode. I need a java code that runs L using the above whileloop. look at the picture posted for more information asto how to continue the code.
PayPal Gateway not configured
PayPal Gateway not configured