Loops


1. while loop:
Syntax :
while (boolean condition){
loop statements...
}
2. for-loop:
Syntax:
 for (int x = n; x <= n; x++) {
 statements; 
 } 
3. Enhanced For loop
Syntax:
for (T element:Collection obj/array){
statement(s)
}
4. do-while:
Syntax:
do{
statement(s1);
}
while{
statement(s2);
}

Comments

Popular posts from this blog

Flutter : Introduction

Dart: Functions

Firebase Cloud Messaging