| Dan Nukem -> RE: Any Java programmers? (Apr. 14 2008 9:02:33) | quote:
ORIGINAL: ZEn101 SORRY - highlighted wrong bit >> new highlighted bit is an integer array. It is initilaised, i am aware of both methods usable they always work apart from this instance ie .size() .length() .sizeOf() etc... none seem to be applicable this array is declared in the class aswell oh and yes the util import is there ...any other ideas thansk for inputs so far, nice to know there are some programmers here![:D] Ps.You'll have to excuse the lack of indentation its all god in my program but changes when i paste in this window!! no allowance for tabs private void processBlockCollision(Main main) { for (int i = 0; i < main.blockCount; i++) { if (checkCollision(main.blocks)) { String score; int scorei; for(int l = 0; l < dontCount[ARRAYSIZE]; l++) { if (i != dontCount[j]) { score = main.score.getText(); scorei = Integer.valueOf(score);scorei = scorei + 10; //Testing //System.out.println(scorei); score = String.valueOf(scorei);main.score.setText(score); main.blocks.setVisible(false); // Add collision identity to dontCount list. dontCount[j] = i; j++; } } } } } HELPHELP! Oh god, its been too long, but anyway. Where did you initialise 'arraySize'? Is it a global variable? |
|
|
|