Hi frriends,
here is a small problem.In the following code,how to get the runtime value
into 'a' here?please help me.
switch (a) {
case 1:
System.out.prin tln("one");
break;
case 2:
System.out.prin tln("two");
break;
case 3:
System.out.prin tln("three");
break;
default:
System.out.prin tln("some other number");
}
here is a small problem.In the following code,how to get the runtime value
into 'a' here?please help me.
switch (a) {
case 1:
System.out.prin tln("one");
break;
case 2:
System.out.prin tln("two");
break;
case 3:
System.out.prin tln("three");
break;
default:
System.out.prin tln("some other number");
}
Comment