Topics
Published on October 31, 2017 by ProgrammingKnowledge

Find code here : www.codebind.com/scala/scala-while-and-do-while-loops/
So what is a loop ?
loops allow us to execute a statement or a block of statements multiple times. Like conditional statements, they are controlled by boolean expressions.

The for comprehension

Scala’s for is much more powerful than Java’s for
Consequently, it is used much more often than the other kinds of loops
Prints the numbers 1 through 10
Prints the numbers 1 through 9
Prints all the values in myArray
Prints all the values in myArray
Prints all the even numbers in myArray
————————-Follow——————-
My Website – www.codebind.com
My Blog – goo.gl/Nd2pFn
My Facebook Page – goo.gl/eLp2cQ
Google+ – goo.gl/lvC5FX
Twitter – twitter.com/ProgrammingKnow
Pinterest – goo.gl/kCInUp
Text Case Converter – goo.gl/pVpcwL
Epoch Timestamp Converter – goo.gl/Zedjo5
Decimal – Binary – Hexadecimal Converter – goo.gl/rkX3JE
8-bit Checksum Calculator – goo.gl/inxvIT

Leave a Reply

4 Comments on "Scala Tutorial 9 – Scala For Loop"

Notify of
avatar

Mahendrasinh Rana
Guest
Mahendrasinh Rana
3 months 8 days ago

It will be great if you upload videos on Eclipse scout

Mahendrasinh Rana
Guest
Mahendrasinh Rana
3 months 8 days ago

It will be great if you upload videos on Eclipse scout

Md ilyas
Guest
Md ilyas
3 months 17 days ago

Hi sir can you please upload video business management software making tutorial I am trying to make it as same please reply me

Md ilyas
Guest
Md ilyas
3 months 17 days ago

Hi sir can you please upload video business management software making tutorial I am trying to make it as same please reply me

wpDiscuz