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?
pikalife
0
Newbie Poster
Recommended Answers
Jump to PostReally, I though it was a goto line statement. Meaning it gives command to the line specified.
As it points out, "goto" and "const" are reserved words in Java, but …
Jump to PostThe 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
Erlendftw
0
Newbie Poster
jackmaverick1
-4
Junior Poster
Erlendftw
0
Newbie Poster
jackmaverick1
-4
Junior Poster
JeffGrigg
170
Posting Whiz in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
hfx642
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.