java - how to get JVM INSTR tableswitch into the code? -
A syntax error is being "goto", and another error (_L can not be solved by any variable is). I want to "geto", but how to correct the code?
Code:
Public Fixed ArrayList getTemplateList (Reference Reference) {XArraySharedObject xarraysharedobject = getArraySharedObject (reference); If (xarraysharedobject.size ()! = 0) {goto _L2; } And {goto _l 1} _ l 1: int i = 0; _L5: If (i & lt; DEFAULT_TEMPLATES.length) goto_l3; Other Goto _L2 _L2: return xarraysharedobject.getArrayList (); _L3: Xyear shoebab.ed (DEFAULT_TEMPLATES [i]); I ++; If (right) goto _l5; GOTO object is the arc of oriented development and there is no space in it. In Java code, you should instead create ways to make calls in each case or switch (object to check) {case 1: // do action 1 break; Case 2: // do verb 2 break; }
You should spend some time learning tutorials and / or learning the language if you are new to it -
Comments
Post a Comment