Hello,
Any help for this code would be greatly appreciated!
I have a code in the
jsp shown below:
for(int i= 0; i< length; i++) {
switch(i){
case 0:
for(int j = 0; j < length; j++) {
<td>
//Do something
</td>
}
break;
case 1:
for(int j = 0; j < length; j++) {
<td>
//Do something
</td>
}
break;
case 2:
for(int j = 0; j < length; j++) {
<td>
//Do something
</td>
}
break;
Please note the places where I have used breaks. The JSP prints a message unreachable code as soon as I add break. Otherwise it loops through the switch and for loop and creates 'n' number of td's. Any limitation of using the break in this scenario?Please help