mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-07-31 14:30:13 +02:00
fix: correct spelling from "Synatx" to "Syntax" (#5784)
This commit is contained in:
committed by
GitHub
parent
65d7d06d2c
commit
a16d781681
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
In Java and other programming languages, loops are used to iterate a part of the program several times. There are four types of loops in Java, `for`, `forEach`, `while`, and `do...while`.
|
In Java and other programming languages, loops are used to iterate a part of the program several times. There are four types of loops in Java, `for`, `forEach`, `while`, and `do...while`.
|
||||||
|
|
||||||
- Synatx of `for` loop is `for(initialization;condition;increment/decrement){}`
|
- Syntax of `for` loop is `for(initialization;condition;increment/decrement){}`
|
||||||
- Syntax of `forEach` loop is `for(data_type variable:array_name){}`
|
- Syntax of `forEach` loop is `for(data_type variable:array_name){}`
|
||||||
|
|
||||||
Visit the following resources to learn more:
|
Visit the following resources to learn more:
|
||||||
|
Reference in New Issue
Block a user