ok im taking a number in as user input and i want the array to be that long. My problem is this. Ok say i get 20 as the input. I want the array to be from 1-20 not 0-20. how do i do that. The way i have it now is this.
boolean answer[] = new boolean[number]; ( number being my input)
2007-09-09
13:44:37
·
4 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
I know what i have is right but i dont want it to be from 0-19. It has to be from 1-20 or it will not work.
2007-09-09
14:26:16 ·
update #1