// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.Arrays;

public class Hack {
	public static void main(String[] args) {
		Direction[] alld = Direction.values();
		int ix = Arrays.asList(alld).indexOf(Direction.West);
		System.out.println(ix);
		System.out.println(alld[ix]);
	}
}
