QUOTE(csgwms @ 4 Sep, 2008 - 03:17 PM)

thanks alot this really helped!
i have one more question though, if i have some sort of element after this array such as variable[i], what does this do? why is the i put in brackets after this certain variable?
Yeah... it is really back to school...
OK
You can have single variables into which you can put values
int a,b,c;
a = 10;
b = 20;
c = 30;
or you can have an "array" of variables which means a bunch of these variables. They are indexed between [] and the first one is [0] the last one [array.length-1]
So
int[] x = new int[5]; // makes an array of 5 x
x[0] = 10;
x[1] = 20;
x[2] = 30;
x[3] = 40;
x[4] = 50;
x[5] = <---- NO NO there are 5 x from x[0] to x[4]
So if you have a program to play a card game you are not to make
int cardValue1, cardValue2, cardValue3, ..... cardValue52;
but
int[] cardValue = new int[52];
then you can reference cardValue[i] where "i" is between 0 and 51
Hope this helps
P.S.
don't say you have "one" more questions... I am sure a lot of other ones are coming
but we are here to help