All pastes #2119857 Raw Edit

cs252p2

public text v1 · immutable
#2119857 ·published 2012-02-19 02:53 UTC
rendered paste body
	public static String lClosure(State state, ArrayList<TransitionRule> alist) {
		String out = null;
		Boolean flag = false;
		Set closure = null;
		for(int i = 0; i<alist.size(); i++) {
			TransitionRule 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);
		else {
		  String s = Set 2 string magic (closure);
		  return s;
		}