-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b46ec30
commit 6ac8f67
Showing
16 changed files
with
284 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file:https://$MODULE_DIR$"> | ||
<sourceFolder url="file:https://$MODULE_DIR$/src" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
</component> | ||
</module> |
Binary file not shown.
Binary file added
BIN
+237 Bytes
Lesson 01 - الدرس/JavaProject/out/production/JavaProject/App2.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public class App { | ||
public static void main(String[] args) { | ||
System.out.println("برنامج يعمل"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public class App2 { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
class App{ | ||
/** | ||
* App | ||
*/ | ||
public class App { | ||
|
||
public static void main(String[] args) { | ||
System.out.println("كودر شيار"); | ||
System.out.println("برنامج يعمل"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* App | ||
*/ | ||
public class App { | ||
|
||
public static void main(String[] args) { | ||
System.out.println("برنامج يعمل"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//--------------------------------------------------------------------------------------------------------- | ||
//Coder Shiyar : Java Comments | ||
//--------------------------------------------------------------------------------------------------------- | ||
// Multi-line comments start with /* and ends with */ تبدأ التعليقات متعددة الأسطر بـ / * وتنتهي بـ | ||
// Any text between /* and */ will be ignored by Java. سيتم تجاهل أي نص بين / * و * / بواسطة جافا | ||
// Single-line comments start with two forward slashes (//)تبدأ التعليقات أحادية السطر بشرطتين مائلتين للأمام | ||
// Any text between // and the end of the line is ignored by Java (will not be executed). | ||
// يتم تجاهل أي نص بين // ونهاية السطر بواسطة جافا (لن يتم تنفيذه) | ||
|
||
public class App { | ||
|
||
public static void main(String[] args) { | ||
// لطبع النص تعلم جافا | ||
// System.out.println("Learn Java"); | ||
System.out.println("Learn Java"); | ||
/* | ||
تعلم جافا مع كودر شيار | ||
*/ | ||
|
||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
public class App { | ||
|
||
public static void main(String[] args) { | ||
// String | ||
// int | ||
String text = "Learn Java In Arabic"; | ||
int number = 100; | ||
|
||
System.out.println(text); | ||
System.out.println(number+20); | ||
} | ||
} | ||
|
||
// القسم اول : طريقة انشاء متغيرات في جافا | ||
//------------------------------------------------------------------ | ||
// type variableName = value; | ||
// النوع الاسم_المتغير = القيمة | ||
//------------------------------------------------------------------ | ||
// القسم الثاني : شرح انواع البيانات الذي يمكنك تخزينها في جافا | ||
//------------------------------------------------------------------ | ||
// القسم الثالث :شرح للقوانين انشاء اسماء متغيرات في جافا | ||
|
||
// Part 1: How to create variables in Java | ||
//------------------------------------------------ ------------------ | ||
// type variableName = value; | ||
//------------------------------------------------ ------------------ | ||
// Part 2: Explain the types of data that you can store in Java | ||
//------------------------------------------------ ------------------ | ||
// Part 3: An explanation of the rules for creating variable names in Java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
public class App { | ||
|
||
public static void main(String[] args) { | ||
|
||
} | ||
} | ||
|
||
// القسم الثاني : شرح انواع البيانات الذي يمكنك تخزينها في جافا | ||
//------------------------------------------------------------------ | ||
// Part 2: Explain the types of data that you can store in Java | ||
//------------------------------------------------ ------------------ | ||
// byte 1 byte Stores whole numbers from -128 to 127 2*2*2*2*2*2*2 | ||
// short 2 bytes Stores whole numbers from -32,768 to 32,767 | ||
// int 4 bytes Stores whole numbers from -2,147,483,648 to 2,147,483,647 | ||
// long 8 bytes Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 | ||
// float 4 bytes Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits | ||
// double 8 bytes Stores fractional numbers. Sufficient for storing 15 decimal digits | ||
// boolean 1 bit Stores true or false values | ||
// char 2 bytes Stores a single character/letter or ASCII values | ||
|
||
// Primitive types are predefined (already defined) in Java. Non-primitive types are created by the programmer | ||
// and is not defined by Java (except for String). Non-primitive types can be used to call methods to perform certain operations, while primitive types cannot. | ||
// A primitive type has always a value, while non-primitive types can be null. | ||
// A primitive type starts with a lowercase letter, while non-primitive types starts with an uppercase letter. | ||
// The size of a primitive type depends on the data type, while non-primitive types have all the same size. | ||
|
||
// القسم اول : طريقة انشاء متغيرات في جافا | ||
//------------------------------------------------------------------ | ||
// القسم الثالث :شرح للقوانين انشاء اسماء متغيرات في جافا | ||
//------------------------------------------------------------------ | ||
|
||
// Part 1: How to create variables in Java | ||
//------------------------------------------------ ------------------ | ||
// Part 3: An explanation of the rules for creating variable names in Java | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
public class App { | ||
|
||
public static void main(String[] args) { | ||
|
||
short short_number = 130; | ||
short_number = 140; | ||
System.out.println(short_number); | ||
|
||
float float_number = 1206548.5f; | ||
System.out.println(float_number); | ||
|
||
double double_number = 1236341.5; | ||
System.out.println(double_number); | ||
|
||
boolean isDeviceWorking = true; | ||
System.out.println(isDeviceWorking); | ||
|
||
char character = 0X3F; | ||
System.out.println(character); | ||
|
||
String text = "I learn Java \t with Coder Shiyar"; | ||
System.out.println(text); | ||
|
||
} | ||
} | ||
|
||
// القسم الثاني : شرح انواع البيانات الذي يمكنك تخزينها في جافا | ||
//------------------------------------------------------------------ | ||
// Part 2: Explain the types of data that you can store in Java | ||
//------------------------------------------------ ------------------ | ||
// byte 1 byte Stores whole numbers from -128 to 127 2*2*2*2*2*2*2 | ||
// short 2 bytes Stores whole numbers from -32,768 to 32,767 | ||
// int 4 bytes Stores whole numbers from -2,147,483,648 to 2,147,483,647 | ||
// long 8 bytes Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 | ||
|
||
// float 4 bytes Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits | ||
// double 8 bytes Stores fractional numbers. Sufficient for storing 15 decimal digits | ||
|
||
// boolean 1 bit Stores true or false values | ||
// char 2 bytes Stores a single character/letter or ASCII values | ||
|
||
// Primitive types are predefined (already defined) in Java. Non-primitive types are created by the programmer | ||
// and is not defined by Java (except for String). Non-primitive types can be used to call methods to perform certain operations, while primitive types cannot. | ||
// A primitive type has always a value, while non-primitive types can be null. | ||
// A primitive type starts with a lowercase letter, while non-primitive types starts with an uppercase letter. | ||
// The size of a primitive type depends on the data type, while non-primitive types have all the same size. | ||
|
||
// القسم اول : طريقة انشاء متغيرات في جافا | ||
//------------------------------------------------------------------ | ||
// القسم الثالث :شرح للقوانين انشاء اسماء متغيرات في جافا | ||
//------------------------------------------------------------------ | ||
|
||
// Part 1: How to create variables in Java | ||
//------------------------------------------------ ------------------ | ||
// Part 3: An explanation of the rules for creating variable names in Java | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
public class App { | ||
|
||
public static void main(String[] args) { | ||
// rule 1 | ||
String text = "Learn Java in Arabic"; | ||
// rule 4 | ||
String texT = "تعلم جافا مع كودر شيار"; | ||
// rule 5 | ||
boolean IsWorking = true; | ||
System.out.println(texT); | ||
} | ||
} | ||
|
||
// القسم الثالث :شرح للقوانين انشاء اسماء متغيرات في جافا | ||
// القواعد العامة لتسمية المتغيرات هي: | ||
// ------------------------------------------------ ------------------------- | ||
// يمكن أن تحتوي الأسماء على أحرف وأرقام وشرطات سفلية وعلامات الدولار | ||
// _ يجب أن تبدأ الأسماء بحرف او بـ $ أو | ||
// ينصح أن تبدأ الأسماء بحرف صغير ولا يمكن أن تحتوي على مسافة | ||
// الأسماء حساسة لحالة الأحرف هناك فرق بين احرف كبيرة وصغيرة | ||
// لا يمكن استخدام الكلمات المحجوزة كأسماء | ||
|
||
// Part 3: An explanation of the rules for creating variable names in Java | ||
//-------------------------------------------------------------------------- | ||
// The general rules for naming variables are: | ||
//------------------------------------------------------------------------ | ||
// Names can contain letters, digits, underscores, and dollar signs | ||
// Names must begin with a letter also with $ or _ | ||
// Names should start with a lowercase letter and it cannot contain whitespace | ||
// Names are case sensitive ("myVar" and "myvar" are different variables) | ||
// Reserved words (like Java keywords, such as int or boolean) cannot be used as names | ||
|
||
|
||
// List of Reserved Java Keywords - قائمة لبعض اسماء محجوزة في جافا | ||
//------------------------------------------------------------------------ | ||
// abstract assert boolean break byte case | ||
// catch char class const continue default | ||
// double do else enum extends false | ||
// final finally float for goto if | ||
// implements import instanceof int interface long | ||
// native new null package private protected | ||
// public return short static strictfp super | ||
// switch synchronized this throw throws transient | ||
// true try void volatile while |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// 1: Scanner | ||
// 2: Boolean datatype - if statment | ||
// 3: String equals() | ||
// 4: int + Strings | ||
// 5: if without {} | ||
import java.util.Scanner; | ||
public class app { | ||
public static void main(String[] args) { | ||
if(false) | ||
System.out.println("True"); | ||
|
||
else{ | ||
System.out.println("false"); | ||
} | ||
|
||
|
||
|
||
System.out.println(2+0+2+6 + " Year " ); | ||
|
||
// String text = "Java"; | ||
// if(text.equals("Java") ){ | ||
// System.out.println("Correct"); | ||
// } | ||
// boolean isRunning = false; | ||
// if(isRunning){ | ||
// System.out.println("Yes it is working"); | ||
// } | ||
|
||
// Scanner input = new Scanner(System.in); | ||
// System.out.println("Age: "); | ||
// int age = input.nextInt(); | ||
// input.nextLine(); | ||
// System.out.println("number: "); | ||
// int number = input.nextInt(); | ||
// input.nextLine(); | ||
|
||
// System.out.println("Name: "); | ||
// String name = input.nextLine(); | ||
|
||
|
||
|
||
// System.out.println("Name: " + name + " Age:" + age); | ||
} | ||
} |