جافا Java
前往频道在 Telegram
6 170
订阅者
-224 小时
-247 天
-7330 天
帖子存档
6 170
Create a Java program to simulate a simple dice game.
أنشئ برنامجاً في جافا لمحاكاة لعبة نرد بسيطة.
#SimpleGames
6 170
What is the output of the following code?
```java
String str = "Hello";
str.concat(" World");
System.out.println(str);```
ما هو ناتج تنفيذ الكود التالي؟
```java
String str = "Hello";
str.concat(" World");
System.out.println(str);```
#JavaStrings #Immutability
6 170
Create a Java switch statement to print the name of a day based on a number (1-7).
أنشئ عبارة switch في جافا لطباعة اسم اليوم بناءً على رقم (1-7).
#SwitchStatement
6 170
What is polymorphism in Java?
ما هو تعدد الأشكال (polymorphism) في جافا؟
#JavaPolymorphism #OOP
6 170
Write a Java code to find the length of a string.
اكتب كود جافا لإيجاد طول سلسلة نصية.
#StringOperations
6 170
Write a Java code to implement a simple tic-tac-toe game.
اكتب كود جافا لتنفيذ لعبة إكس-أو البسيطة.
#SimpleGames
6 170
Create a Java switch statement to print the name of a day based on a number (1-7).
أنشئ عبارة switch في جافا لطباعة اسم اليوم بناءً على رقم (1-7).
#SwitchStatement
6 170
Write a Java code to implement a simple word counter for a text file.
اكتب كود جافا لتنفيذ عداد كلمات بسيط لملف نصي.
#FileProcessing
6 170
Write a Java code to find the second largest number in an array.
اكتب كود جافا لإيجاد ثاني أكبر رقم في مصفوفة.
#ArrayProcessing
6 170
What is the purpose of the `super()` call in a constructor?
ما هو الغرض من استدعاء `super()` في المُنشئ؟
#JavaConstructors #Inheritance
6 170
Write a Java code to implement a simple parking lot management system.
اكتب كود جافا لتنفيذ نظام إدارة موقف سيارات بسيط.
#SimpleApplications
6 170
What is the purpose of the `static` block in Java?
ما هو الغرض من الكتلة `static` في جافا؟
#JavaStaticKeyword #ClassInitialization
6 170
What is the difference between `==` and `.equals()` when comparing strings in Java?
ما هو الفرق بين `==` و `.equals()` عند مقارنة السلاسل النصية في جافا؟
#JavaStrings #ObjectComparison
6 170
Create a Java method to check if a number is a perfect number.
أنشئ دالة في جافا للتحقق مما إذا كان الرقم عدداً تاماً.
#NumberTheory
