Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • loop
  • while

Scala - Do loop while a condition is true

Execute a code block and continue executing same loop while condition is true. Code block is always executed even when condition is false.

0
573
  • Share on Facebook
  • Share on Google+
  • Share on Twitter
do {
{{body}}
} while ({{condition}})
java

Notes

last update: Dec. 4, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • For each loop
  • Loop while condition is true
  • Break out of loop
  • Counter loop
  • Loop until condition is true

Other language

  • Python
  • PHP
  • Ruby

Random task

  • Style external links
  • Merge branch into current branch
  • Restart all network adapters
  • Clear apache2 error log
  • Test array contains item
  • Blog
  • About
  • License