I would guess because S[] and T[] have not been initialized, but you attempt to add values to them.
You need to initialize them beforehand in your constructor like this:
S = new int[256]; // 256...
Type: Posts; User: aussiemcgr
I would guess because S[] and T[] have not been initialized, but you attempt to add values to them.
You need to initialize them beforehand in your constructor like this:
S = new int[256]; // 256...
You've commented to initialize S[] and T[], but do you actually initialize them anywhere? An array needs to be initialized with a length.
Also, when asking a question, make sure to tell us what is...