All pastes #2119864 Raw Edit

Mine

public text v1 · immutable
#2119864 ·published 2012-02-19 03:16 UTC
rendered paste body
	public static String lClosure(State state, ArrayList<TransitionRule> alist) {
		Boolean flag = false;
		State closure = new State();
		TransitionRule check = null;
  
		for(int i = 0; i<alist.size(); i++) {
		    check = alist.get(i);
			if(check.CState.Name.equals(state.Name) && check.Input.equals("l")) {
				flag = closure.Name.add(check.NState);
				if (flag) {
                                       closure.Name.add(lClosure(check.NState, alist));
                                }
			}
		}

	
		  return closure.Name.toString();
		}