All pastes #2119859 Raw Edit

Mine

public text v1 · immutable
#2119859 ·published 2012-02-19 03:03 UTC
rendered paste body
	public static String lClosure(State state, ArrayList<TransitionRule> alist) {
		Boolean flag = false;
		Set closure = new TreeSet();
		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.add(check.NState.toString());
				if (flag) lClosure(check.NState, alist);
			}
		}

		
		  String s = Set 2 string magic (closure);
		  return s;
		}