Java doesn't have a goto assertion since it offers a way to branch in an arbitrary and unstructured way. This usually would make goto-ridden code difficult to be familiar with and really hard to maintain. In addition, https://bookmarkquotes.com/story18068919/getting-my-javatoto-to-work