Everything Compiles, but will not run. Thanks for any advice.
It gives a Null Pointer Exception
Updated Code
now getting java.lang.ArrayIndexOutOfBoundsException: 0
on line 8
[Added code tags - see UseCodeTags for details]
Please UseCodeTags (<-click) and proper indentation when posting code. That way your code will be more readable and thus will increase chances of getting a good answer.
The quieter you are, the more you are able to hear.
As for your original question, the code you provided is throwing NullPointerException. The reason for such behavior is that seq array is not initialized. You probably tried to initialize it in your constructor with this line:
but what you did is you actually declared a variable with the same name local to the constructor, thus hiding your field which remains uninitialized.
The quieter you are, the more you are able to hear.
The first piece of advice would be that you need to give us more information. When you say "will not run", does that mean there's no output, or there's an error? If there's an error, what is it?
If it's just a lack of output, the next step would be to work out what's going on. If you've got a debugger then use that to step through the program, otherwise just sprinkle System.out.println() statements liberally. You want to find out if the bits of code you expect to get run are actually getting run, and whether the variable values are what you expect.
However, now I've formatted the code I can see at least one problem. Line 9. There you are declaring a local variable seq, which hides the instance variable declared on line 4. That means your instance variable never gets initialised, so when you come to print things out there's nothing to print.