Scala while Loop | Tutorial
Scala Tutorial
Scala TutorialScala IntroductionScala Installation and Environment ConfigurationScala Basic SyntaxScala Data TypesScala Literals Scala Escape Characters Scala VariablesScala Access ModifiersScala OperatorsScala IF...ELSE StatementsScala LoopsScala Methods and FunctionsScala ClosuresScala StringsScala ArraysScala CollectionsScala IteratorsScala Classes and ObjectsScala TraitsScala Pattern MatchingScala Regular ExpressionsScala Exception HandlingScala ExtractorsScala File I/O
Scala IF...ELSE Statements
Scala Methods and Functions
Deep Dive
Web Design and Development
Programming
Programming Languages
Scripting
Web Service
Software
Computer Science
Development Tools
Scripting Languages
Web Services
Scala while Loop
Scala Loops
As long as the given condition is true, the **while** loop statement in the Scala language will repeatedly execute the code block inside the loop body.
Syntax
The syntax of the **while** loop in the Scala language:
while(condition){ statement(s);}
Here, **statement(s)** can be a single statement or a code block consisting of several statements