Hi there, I have been working on a school project worth %15 of my grade, I am half done and it is due tomorrow... I am making a card/war game where 4 numbers are generated, they pick the number(s) of the array.
i.e.
value [rnumx] [rnumy];
value [rnumx2] [rnumy2];
Which ever number is bigger that player wins. Simple enough...
The numbers pick 4 arrays, 2 value arrays, and 2 card array. (player 1 and player 2)
The problem I am having is I need to output the array, "cards [rnumx] [rnumy]" on the screen as a visual like this,cards [0] [0] = "Ace of Spades"; value [0] [0] = 1;
My teacher left me a paper that says I may have to do something with string manipulation, using code like,char[] eg = {'E' 'G' };
I have no idea how to use these, he never really told me how, I figure I need some for loop to loop getting the length with charAt, but I still, have no idea. If anyone could help, I would appreciate it.charAt (int index) length ()
Thanks!
-Pie