Java can GOTO hell

In the Java Specialists newsletter, Heinz Kabutz and Carl Smotricz have devised a way to write BASIC programs in Java with a series of case statements for line numbering, a GotoException, and horrendous formatting:

Carl told me that it was possible to program GOTO in Java. Naturally I was curious, so I asked Carl to give me an example. ... What makes me scared is that the code runs and actually works.

Add a Comment

These HTML tags are permitted: <p>, <b>, <i>, <a>, and <blockquote>. A comment may not include more than three links. This site is protected by reCAPTCHA (for which the Google Privacy Policy and Terms of Service apply).