Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transfering control  RSS feed

 
Sasha Hernandez
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose you are at the end of the method and you want to transfer control to the beginning of the method. How would you do that since Java does not support the goto statement?
 
Anupam Sinha
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sasha
Maybe loops would help. Try do while.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!