Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String[] execute(Label[] values) {
- resultat = new String[10];
- Label labTmp;
- int it = 0;
- currentState = initialState;
- while (!(inFinalState(currentState)) && existingStates.contains(currentState)) {
- labTmp = values[it];
- currentState = currentState.giveNextState(labTmp);
- resultat[it] = labTmp.getValue();
- it++;
- }
- if (inFinalState(currentState))
- return resultat;
- else {
- resultat[0] = null;
- return resultat;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement