Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

do while with continue  RSS feed

 
kri shan
Ranch Hand
Posts: 1489
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to unconditionally run do while loop even if it throws exception;


 
Knute Snortum
Sheriff
Posts: 4073
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a question?

BTW, the continue does nothing.
 
Liutauras Vilda
Marshal
Posts: 4641
318
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you should put in more effort constructing your questions, as people coming over here to help each other, but it doesn't seem you're willing to help others to understand your problem initially.

Start by reading this tutorial <- link to click on. You'll find there valuable advices how to improve your questions and increase probability to get accurate answers. Problem solving starts by asking correct questions yourself, as well as others.
 
Campbell Ritchie
Marshal
Posts: 55717
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:Is there a question? . . .
I have a question: did that code compile at all?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!