There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Keith Lynn wrote:I compiled and ran your code, and I didn't get an error except a NullPointerException.
Tawi Oei wrote: I do not know what is wrong with it, how to fix that?
fred rosenberger wrote:odds are pretty slim anyone is going to attempt to wade through 1300+ lines of code.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
If you get an Exception, you must have started the application and therefore found the main method.Tawi Oei wrote: . . . I run it with my pc, it said that it cannot find or load main but with my notebook, it said that it found NullPointerException, . . .
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Tawi Oei wrote:I post all of the code because I do not know exactly the problem that I have
Tawi Oei wrote:Well, I modified the code, I insert this code:
Java said this code have an error, why?
Java also told me that multi-catch statement is not supported yed. How to solve this?
The complete code is in http://www.tawijakarta.blogspot.com
Jeff Verdegan wrote:
Tawi Oei wrote:Well, I modified the code, I insert this code:
Java said this code have an error, why?
People have been trying to tell you that you need to provide details, and you're still not doing it.
Copy/paste the exact, complete error message, and indicate clearly which line is causing it.
Java also told me that multi-catch statement is not supported yed. How to solve this?
Either upgrade to a version where it is supported, or create separate catch blocks for each exception you want to handle.
The complete code is in http://www.tawijakarta.blogspot.com
Most people are not going to want to go offsite to look at your code
Tawi Oei wrote:
Jeff Verdegan wrote:
Copy/paste the exact, complete error message, and indicate clearly which line is causing it.
Ok, it said that local variable hides a field
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Tawi Oei wrote:I tried my best to fix it but I failed.
The complete code can be seen in my web site
I cannot post it in here.
So what do you suggest me to do?
Do you have any ideas?
Tawi Oei wrote:Java put some error signs and after I put my mouse over the error signs,
Tawi Oei wrote: so what should I do?
Tawi Oei wrote:I do not even know what my problem is so how will I post the relevant code? Where is the mistake?
Tawi Oei wrote:Why can I get those difference at the time I use my PC and notebook?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
About the download, I cannot download it from Oracle, where can I download the updated version that can work with multi-catch?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Tawi Oei wrote:Does Netbeans have a rule that everything that is put at the first line will be executed first?
Tawi Oei wrote:Why does Java said that there is no main class?
Tawi Oei wrote:What is wrong with my program?
Tawi Oei wrote:What should I do? What comment do you have?
Tawi Oei wrote:Well, I really cannot post to the forum so please open my website at http://www.tawijakarta.blogspot.com.
Please don't say that I need to post short codes because I don't know the problem I have.
Tawi Oei wrote:The error message that I got was no main classes found. Can you help me?
Tawi Oei wrote:Ok here is the code.
What is wrong with this code?
What is your suggestion? What should I do to fix this code? How to implement of this code?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Tawi Oei wrote:The program was doing well. The only problems I have are NPE, dual exception, bad display. I can fix bad display, what about dual exception catch and NPE? I removed an exception catch and changed the program so the program is the same with the current program but NetBeans gave me error message that no main class found, what should I do? I cannot recreate the program because I almost run out of time so please just help me to solve the problem ok?
Tawi Oei wrote:I cannot post the code in the forum so please just go to http://www.tawijakarta.blogspot.com.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors