you are running into an infinite loop.... method sum() has no end..
And sendMail() method is never invoked in main(), hence you got no error there.
Type: Posts; User: razorsknife
you are running into an infinite loop.... method sum() has no end..
And sendMail() method is never invoked in main(), hence you got no error there.
Try this change in your sequence declaration in main:
int[] sequence = new int[5];