NullOne
عضو مجتهد
- Prague
- Artificial Intelligence, Business process management OOP, Financial markets Anything interesting
- اسئلتكم واستفساراتكم
لا يمكن المقارنة بين ال-object وال-instance variable :) أولاً كل شيء في ال-java هو object، كل شيء. يمكن المقارنة بين instance variable وال-class variable وهذا مثال : //These are examples of both variables //Remember: IN JAVA EVERYTHING IS AN OBJECT public clas…
- [تنبيه - عنوان غير مناسب : ]ارجوكم ساعدوني في حل هالبرنامج في اقرب وقت
// It seems we have students from the same school :)))))
- برنامج لحساب سعر البضائع المشتراه
بعد calling nextInt هناك new line character ما زالت في ال-buffer لذلك أعمل call ل nextLine حتى يصبح ال-buffer خالي من أي characters حتى تتمكني من إضافة أسماء أخرى للبضائع
- كود يطبع كريتر في سطور على شكل مثلث قائم الزواية
import java.util.*; public class Print { public static void main(String[] args) { Scanner console = new Scanner (System.in); int num ; char ch; System.out.print("Enter the num: "); num=console.nextInt(); System.out.print("Enter the char: "); ch=console.next().…
- برنامج يستقبل عدد صحيح وثم يختبر نوع الرقم
/* * Avoid the overuse of static members and global variables :) * Even the method isEven(int num) should not be static in my opinion * but in your case it's not a big deal, because its a simple program. * * static is used when you want the member (variable fo…
- برنامج لحساب سعر البضائع المشتراه
لقد شرحته بال-English لماذا أضفت ال-nextLine . لا استطيع الشرح بالعربي :mad: . إذا صعب عليكي فهمها اتمنى من أحد الموجودين ترجمة ال-comment
- كود يطبع كريتر في سطور على شكل مثلث قائم الزواية
import java.util.*; public class print { static Scanner console = new Scanner (System.in); public static void main(String[] args) { int num ; char ch; System.out.print("Enter the num: "); num=console.nextInt(); System.out.print("Enter the char: "); ch=console.…
- برنامج لحساب سعر البضائع المشتراه
/** * the following solution is better so please change it * * The nextInt(), nextDouble() etc. methods don't read beyond what they have to read. * lets say an int (price) has to be read and you type 20 then "Enter" the int 20 * is read and the newline charact…
- برنامج لحساب سعر البضائع المشتراه
I corrected it, check the code i posted
- برنامج يستقبل عدد صحيح وثم يختبر نوع الرقم
import java.util.Scanner; public class CheckEven { public static void main (String[]args) { Scanner console=new Scanner(System.in); boolean result; System.out.print("Enter num "); int num=console.nextInt(); result = isEven(num); System.out.println("the result …
- برنامج لحساب سعر البضائع المشتراه
import java.util.*; public class Expenditure{ public static void main(String[] args){ String name; double money; double sum=0.0; Scanner scan=new Scanner(System.in); do{ scan = new Scanner(System.in); System.out.print("Enter the goods' name: "); name = scan.ne…
- اسئلتكم واستفساراتكم
sa7bah*@ /* * The question is not clear, it says what you should implement but doesn't * tell how it will function. I corrected it as I understood it. * hope it's the solution you want * */ import java.util.Scanner; public class Opt_libarary { private int Card…
- تضمين نص داخل صورة
/* I am sorry to say that this code is garbage so many mistakes, and full of none sense. I fixed some things for you so you can open the image now. Don't copy code without understanding it. */ stego_image_code v1.0.rar
- اسئلتكم واستفساراتكم
@ نسيم الجنة إذا ما زلتي تواجهين المشكلة ممكن أن ترسلي ال-project على الخاص
- برنامج لتصميم برامج الجافا
هذا ليس code بل instructions :) لكي يتمكن الأخرون من إستخدام برنامجك يجب أن تعملي create ال-jar file من ال-classes of your program . ما وضعته هو طريقة لكي تعملي create jar file من ال Dr Java
- برنامج لتصميم برامج الجافا
/* Creating a .jar file A .jar file is a single file that contains other files (similar to .zip or .tar files), it can be used for running java applications on other machines that have the JRE (Java Runtime Environment) installed. In order to create a .jar con…
- [تنبيه - عنوان غير مناسب : ]ساعدوني في اكتشاف الخطأ الذي في البرنامج :(
ممكن أن تعملي upload لل-project ؟ أريد ال-keys
- [تنبيه - عنوان غير مناسب : ]ساعدوني في اكتشاف الخطأ الذي في البرنامج :(
ضعي ال-code داخل ال-code tags لكي تسهل قرأته
- اسئلتكم واستفساراتكم
Student aStudent = (Student) RetriveAllStudent.get(Integer.parseInt(StudentId.getText()) لهذا السبب لم تستطيعي حل هذه المشكلة ، ولا يمكن أن تتعلمي بهذه الطريقة . إذا وجدت مشاكل أخرى upload ال-project لكي أصححه .
- اسئلتكم واستفساراتكم
نعم هنا المشكلة :) انك تضيفين student جديد على ال-database بدون أي values كل ال-values null ما عدا ال-ID إنت تحتاجين إلى select هنا حتى تتمكني من ملء ال-textfields بال-values الصحيحة إما أن تستخدمي ال-method retreiveAllStudents هل توضحت الفكرة ؟ /* Here I put …