
What is substitute of goto(as it can be used in C++) in java?
My Code is:
for(int Index = 0 ; Index < 100 ; Index ++) { int value = 1; Start: if(!(DatabaseValue[Index] > 3) || DatabaseValue[Index] !=0) { //Do some code using DatabaseValue } else { int modifiedValue = DatabaseValue[Index] - 3; //Do some code using modifiedValue goto Start; } }
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.