Site menu

CodeCook.io

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

Scala - Loop while condition is true

Execute block of code while a condition is true.

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

Notes

last update: Dec. 4, 2014

Advertisement

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

Related concept

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

Other language

  • PHP
  • Ruby

Random task

  • Check strings equal
  • Get element from map
  • List files with merge conflict
  • Change git remote tracking branch
  • Word capitalization
  • Blog
  • About
  • License