posted 17 years ago
hi
In switch statements,case declarations must be final values.We can only use int,char and short variables in case declarations and they must be declared as final keyword.
eg. if you put only 6 instead of choice>6,it 'll compile.
shweta