Starlit Daily

📚 › Java

3. Conditions and loops

Este artículo se traducirá automáticamente. Por ahora se muestra en inglés.

Java uses if, else and switch for decisions, and for and while for loops. The syntax is close to JavaScript.

Ver ejemplo

for (int i = 1; i <= 3; i++) {
  System.out.println(i);
}

← Volver al curso