جافا Java
6.46K subscribers
212 photos
18 videos
81 files
269 links
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Download Telegram
جافا 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++;
}
👍2
Which of these selection statements test only for equality?
#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
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
Anonymous Quiz
63%
do-while
22%
while
9%
for
7%
none of the mentioned
What will be the output of the following Java program
#java_1
👍2
Answer
Anonymous Quiz
19%
1
51%
2
15%
3
15%
4
What will be the output of the following Java program?
#java_1
What will be the output of the following Java program?
#java_1
What will be the output of the following Java program?
#java_1
👍2
Answer
Anonymous Quiz
28%
10
20%
5
16%
10 5
36%
5 10
كود لطباعه حرف H
باستخدم while loop
5
♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️
وش رايكم انزل مشروع جافا 2 واجهات باستخدام javafx مجاني مع شرح كامل له في مقطع فيديو
Anonymous Poll
94%
فكره رائعه
6%
لا تنزل 🙂
👍3
جافا Java pinned «♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️♨️
وش رايكم انزل مشروع جافا 2 واجهات باستخدام javafx مجاني مع شرح كامل له في مقطع فيديو
»