-
Notifications
You must be signed in to change notification settings - Fork 8
/
App.java
30 lines (27 loc) · 2.08 KB
/
App.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
public class App {
public static void main(String[] args) {
int number1 = 10;
boolean result = !(number1<20) ;
System.out.println("Result: " + result);
}
}
// Java Comparison Operators - العمليات المقارنة في جافا
// ------------------------------------------------------------------------------------------------------------
// Comparison operators are used to compare two values: يتم استخدام رموز عمليات مقارنة لمقارنة بين عددين
// ------------------------------------------------------------------------------------------------------------
// Operator - رمز Name - اسم
// ------------------------------------------------------------------------------------------------------------
// == Equal to يساوي
// != Not equal ليس متساوي
// > Greater than اكبر من
// < Less than اصغر من
// >= Greater than or equal to أكبر من أو يساوي
// <= Less than or equal to أصغر من أو يساوي
// Java Logical Operators
// ---------------------------------------------------------------------------------------------------------------
//Operator(الرمز) Name(الاسم) Description (الوصف)
// ---------------------------------------------------------------------------------------------------------------
// && and و Returns true if both statements are true يعود صحيح إذا كانت كلتا العبارتين صحيحين
// || or او Returns true if one of the statements is trueيعود صحيحًا إذا كان أحد العبارات صحيحًا
// ! not لا Reverse the result, returns false if the result is true
// اعكس النتيجة ، وإرجاع خطأ إذا كانت النتيجة صحيحة