This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
that'll absolutely work
Posted by Pavan Kumar Keely on June 27, 2001 at 6:08 AM
hi, That will surely work. Reason: The switch will expect an int and you are giving the int value in each cycle, even if the parameter is an element of an array. If not send your code, I'll surely clarify that > Hello, im tring to do this > > switch(memory[pcounter1]) { > witch is basically an array inside a switch. > i will update pcounter after each switch cycle > so i thought it would work but no. memory array is of > type int. can you switch an array?
Replies:
- qwrwr alenka September 16, 2001 at 12:29 PM
(0)
|