Type: Posts; User: razorsknife
Try this change in your sequence declaration in main: int[] sequence = new int[5];