-
switch
Hello to everybody i ve this code:
CODE]
switch(i){
case 0:
{
vuthoskopisi="kulo";
tonometrisi=10;
automati_perimetria=2;
gwnioskopia=2;
illness = Asth[0];
break;
}
case 1:
{
vuthoskopisi="kurto";
tonometrisi=10;
automati_perimetria=2;
gwnioskopia=2;
illness= Asth[1];
break;
}
}
[/CODE] i want the variables tonometrisi automati_perimetria and gwnioskopia to be statement like
(tonometrisi<10)&(tonometrisi>0)ect.
When i put this statement in case the compiler saint that this sentence is not a statement.So what s the problem??:cool:
-
Could you send your full source code?
Here no need to have open Braces inside of Case .
-
actually... the OP started another thread w/ the same title.
http://www.java-forums.org/new-java/15420-switch.html