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

pull/5788/head
Danrley Senegalha Pires 5 months ago committed by GitHub
parent 65d7d06d2c
commit a16d781681
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/data/roadmaps/java/content/100-java-fundamentals/107-loops.md

@ -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:

Loading…
Cancel
Save