1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-03-19 06:39:44 +01:00

fix: correct spelling from "Synatx" to "Syntax" (#5784)

This commit is contained in:
Danrley Senegalha Pires 2024-06-01 08:02:51 -03:00 committed by GitHub
parent 65d7d06d2c
commit a16d781681
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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`.
- 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){}`
Visit the following resources to learn more: