Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transfering control

 
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