how do you write the "go to" command in java?
like a command that allows me to go back to a previous part of the program and rerun the program in a loop?
Jump to Post
The goto has been known to create unreadable undebuggable "spaghetti" code since the 1960's (The seminal "goto considered harmful" paper of Edsger W. Dijkstra was written in 1968).
It was a simple decision (and 100% correct IMHO) that Java would not have one. Not then, not now, not ever.
All 7 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.