package recycledNumbers;


public class OutputData {

	private int[] Steps;


	public int[] getSteps() {
		return Steps;
	}


	public OutputData(int [] Steps){
		this.Steps = Steps;
		
		for(int i=0;i<this.Steps.length;i++){
			System.out.println("Test "+(i+1)+": "+Steps[i]);
		}
	}
	
}

package MyAllgoritmicLib;

public class CodeGray {
	
	public static int grayEncode (int n) {
		return n ^ (n >> 1);
	}
	
	public static int grayDecode (int g) {
		int n = 0;
		for (; g > 0; g>>=1)
			n ^= g;
		return n;
	}
}
