جافا Java
Open in Telegram
ليس عيبًا ألا تعرف شيئًا، ولكن العيب انك لا تريد أن تتعلم
Show more6 083
Subscribers
+124 hours
-137 days
-4430 days
Posts Archive
6 083
Which of the following loops will execute the body of loop even when condition controlling the loop is initially false?
#java_1
6 083
*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++;
}
6 083
🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳
أخيرا اول بوت تلجرام برمجه تم اضافه فيه اغلب الاجزاء المتعلقه بلغه جافا
كما موضح بالصورة قم بكتابه اسم البوت بهذي الطريقه @Altmemy_bot ويتم عرض قائمه بالاجزاء التي تم شرحها بواسطه البوت كما هو موضح بالصوره وعند إختيار جزئيه محددة يتم إرسال
1:تعريف الجزئيه
2:ملاحظه
3:الشكل العام
4:مثال
6 083
السلام عليكم وش رايكم بإضافه جديده للبوت @Altmemy_bot أضيف له كل الأساسيات مجرد ما الشخص يكتب مثلا while يعطيه كل التفاصيل مع الامثله 😍😍😍😍
6 083
What would be the behaviour if one parameterized constructor is explicitly defined
6 083
كل ما يخص جامعة جدة من استفسارات وإجابات ستجدونه هنا في قنواتنا 😍 ..
قناة التلجرام 🔗 :
https://t.me/Astfeed1
مجموعة التواصل في تلجرام 🔗 :
https://t.me/AstfeedGroup
حساب تويتر 🔗 :
https://www.twitter.com/Astfeed_
#استفيد_جامعه_جده ✅.
