NullOne
عضو مجتهد
- Prague
- Artificial Intelligence, Business process management OOP, Financial markets Anything interesting
- اسئلتكم واستفساراتكم
أجد صعوبة إن اشرح أي شيء بالفصحى. اعتذر سوف أحاول أكثر :)
- اسئلتكم واستفساراتكم
You can make run for any java class that has a main method inside the same project. But you either run it by right click on the file and clicking run from the popup menu. Or you set which class you want it be main class of the project, and you can do this in t…
- [تنبيه - عنوان غير مناسب : ]ماسبب هذا ال Exception ?
/** * you never use null checkers in your code * you can find where's ur problem this way. * Your code is bad :( not understandable. * Lower case class names are not recommended * */ public void analysis(){ if(input != null) { while(input.hasNext()){ // input …
- اريد نصيحة الى الاحتراف في الجافا
For complete beginners in programming: Java Software Solutions: Foundations of Program Design by: John Lewis, William Loftus For those who have the basic skills then I recommend this book: Thinking in Java, Fourth Edition by: Bruce Eckel Those books are great …
- [تنبيه - عنوان غير مناسب : ]مساعدة في هذا الكود
public class OddNumSum { int sum = 0; void checkme (int num) { System.out.println("num=" +num); if(num % 2 != 0) { sum+=num; } } public static void main(String args[]) { OddNumSum n= new OddNumSum(); n.checkme(4); n.checkme(2); n.checkme(1); n.checkme(4); n.ch…
- اسئلتكم واستفساراتكم
مافي مشكلة لأن إنت عندك ال- frame componenets أصلاً initialized خارج ال- actionperformed لكن إذا بدك تعرف ال- dialog داخل أل- action performed غير هذا code if(++wrongPassCounter == 3) { wrongPassCounter = 0; // jlabel that displays the error message JLabel err…
- اسئلتكم واستفساراتكم
مافيك تعمل declare counter داخل actionperformed method لأن هذه أل method is invoked كل مرة بتكبس OK ما تعمل upload ل file.form but file.java
- اسئلتكم واستفساراتكم
/* * Replace your actionPerformed method with this one, it's better. * I hope this code is just a try because its not good to program in this way. * Inside the method you'll find comments, I hope its not problem that I write in english * I hope it's clear, if …
- اسئلتكم واستفساراتكم
جرب الأن pass2.rar
- [مخالف - عنوان غير مناسب :]ممكن مساعدتي بالحل
تمرين في visual basic ?java?
- كيف بتتبرمج الصوره بالجافا ؟؟؟؟
/** * Here is the complete code */ import java.awt.Color; import java.io.File; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; public class ImageDialogExample extends JFrame { public ImageDialogExa…
- لمحاكاة لعبة السلوت ( Slot Machine) ماشين و لعبة ضربة حظ
/** * Your code was very week, I changed it all for you, but I didn't test it properly. * If there is any mistake that you can't fix let me know. * I hope it's clear and helpful for you */ import java.util.HashMap; import java.util.Map; import java.util.Random…
- استعمال المتغيرات ضمن نفس الحزمة package
// First solution which is not recommended. public class Class1 { public static String APPLICATION_TYPE = "WEB APPLICATION"; } public class Class2 { public static void main(String [] args) { System.out.println("Application type: " + Class1.APPLICATION_TYPE); C…
- [تنبيه - عنوان غير مناسب : ]سؤال عن كلاس السكانر
import java.util.InputMismatchException; import java.util.Scanner; public class Test { // I write comments because I can't write arabic. // If you need more detailed comments let me know. public static void main(String [] args) { //first printed text System.ou…
- كود من سي بلس بلس ما هو المكافئ له في الجافا
public class MyClass { private String name; private char aChar; private int number; public MyClass(String name, char aChar, int number) { this.name = name; this.aChar = aChar; this.number = number; } /** * @return the name */ public String getName() { return n…
- استفسار بخصوص تنسيق String
Actually my code works properly. Probably your problem is in the font of the text area. Set the font to "Monospaced" and it should be fine If you still have any problem let me know. JTable is always better for such things :) but still this will work :)
- استفسار بخصوص تنسيق String
public String getStores (){ //maximum space final int space = 30; final String name = "Name"; final String id = "ID"; StringBuilder builder = new StringBuilder(); builder.append("Name"); for(int i=0; i<(space - name.length()); i++) { builder.append(" "); } bui…