جافا Java
🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳 أخيرا اول بوت تلجرام برمجه تم اضافه فيه اغلب الاجزاء المتعلقه بلغه جافا كما موضح بالصورة قم بكتابه اسم البوت بهذي الطريقه @Altmemy_bot ويتم عرض قائمه بالاجزاء التي تم شرحها بواسطه البوت كما هو موضح بالصوره وعند إختيار جزئيه محددة يتم إرسال 1:تعريف…
*If Statement*
The if else block controls decision making by checking true/false statements resulting in different executions of code, depending on if the result is true and if the result is false.
There are three parts to the if-else block: if, else if, and else.
==========================
*notes*
booleanExpression(s) are those that result in either a true or false output. They are created using comparing operators (==, >, <, >=, <=, !=).
There can also be multiple Boolean expressions within the parentheses (booleanExpression). The Boolean expressions are connected through logical operators (&&, ||, !).
Else if statements allow for another Boolean expression check within the overall if structure. This is optional.
Else statements result in the execution of code if the if statement (and if applicable, the subsequent else if statement(s)) do not hold true.
Nested if (else) statements are also possible and are the inclusion of another (or multiple) if statements within an if statement block.
==========================
*Syntax*
if(booleanExpression) {
//Executes when booleanExpression holds true
}
else if(booleanExpression2) {
//Executes when booleanExpression2 holds true
}
else {
//Executes when neither booleanExpression nor booleanExpression2 are true
}
==========================
*Example*
if(counter >= 30) {
System.out.print("Counter is greater than or equal to 30.");
}
else if (counter ==20) {
System.out.print("Counter is at 20.");
counter++;
}
else {
counter++;
}
The if else block controls decision making by checking true/false statements resulting in different executions of code, depending on if the result is true and if the result is false.
There are three parts to the if-else block: if, else if, and else.
==========================
*notes*
booleanExpression(s) are those that result in either a true or false output. They are created using comparing operators (==, >, <, >=, <=, !=).
There can also be multiple Boolean expressions within the parentheses (booleanExpression). The Boolean expressions are connected through logical operators (&&, ||, !).
Else if statements allow for another Boolean expression check within the overall if structure. This is optional.
Else statements result in the execution of code if the if statement (and if applicable, the subsequent else if statement(s)) do not hold true.
Nested if (else) statements are also possible and are the inclusion of another (or multiple) if statements within an if statement block.
==========================
*Syntax*
if(booleanExpression) {
//Executes when booleanExpression holds true
}
else if(booleanExpression2) {
//Executes when booleanExpression2 holds true
}
else {
//Executes when neither booleanExpression nor booleanExpression2 are true
}
==========================
*Example*
if(counter >= 30) {
System.out.print("Counter is greater than or equal to 30.");
}
else if (counter ==20) {
System.out.print("Counter is at 20.");
counter++;
}
else {
counter++;
}
👍2
Which of these selection statements test only for equality?
#java_1
#java_1
Anonymous Quiz
29%
if
31%
switch
18%
if & switch
21%
none of the mentioned
👍2
Which of these are selection statements in Java?
#java_1
#java_1
Anonymous Quiz
19%
for()
64%
if()
7%
continue
10%
break
🎉1
Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
#java_1
#java_1
Anonymous Quiz
63%
do-while
22%
while
9%
for
7%
none of the mentioned
جافا Java
Which of these selection statements test only for equality?
#java_1
#java_1
الأغلب جاوب غلط شرحت ال loop في قناتي على اليوتيوب شوفها وارجع حاول مره ثانيه🔥
https://youtu.be/JTKPd-hcHgU
https://youtu.be/JTKPd-hcHgU
YouTube
java 1 chapter 3 iteration statement
الجزء الثالث من الفصل الثالث صيغ التكرار
انضم الى قناتي على التلجرام للمزيد من الشروحات والكثير من الأسئلة لإختبار نفسك في لغة الجافا
https://t.me/learn_java_e
للتواصل معي
https://altmemy.me
انضم الى قناتي على التلجرام للمزيد من الشروحات والكثير من الأسئلة لإختبار نفسك في لغة الجافا
https://t.me/learn_java_e
للتواصل معي
https://altmemy.me
👍2
♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️
وش رايكم انزل مشروع جافا 2 واجهات باستخدام javafx مجاني مع شرح كامل له في مقطع فيديو
وش رايكم انزل مشروع جافا 2 واجهات باستخدام javafx مجاني مع شرح كامل له في مقطع فيديو
Anonymous Poll
94%
فكره رائعه
6%
لا تنزل 🙂
👍3
جافا Java
♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️
وش رايكم انزل مشروع جافا 2 واجهات باستخدام javafx مجاني مع شرح كامل له في مقطع فيديو
وش رايكم انزل مشروع جافا 2 واجهات باستخدام javafx مجاني مع شرح كامل له في مقطع فيديو
https://youtube.com/channel/UCAes4aq0FlDNrlNYvjnP4mw
اذا في تفاعل راح ينزل على القناه الشرح اشتركوا فيها 🤍
اذا في تفاعل راح ينزل على القناه الشرح اشتركوا فيها 🤍