3. Conditions and loops
ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.
Java uses if, else and switch for decisions, and for and while for loops. The syntax is close to JavaScript.
عرض المثال
for (int i = 1; i <= 3; i++) {
System.out.println(i);
}