// 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) 
public class Adv {
	public static void main(String[] args) {
		XDirection d0 = XDirection.West;
		System.out.println(d0 + " : " + d0.getN());
		for(XDirection d1 : XDirection.values()) {
			System.out.println("-" + d1 + " : " + d1.getN());
		}
		XDirection d2 = XDirection.valueOf("West");
		System.out.println(d2 + " : " + d2.getN());
	}
}
