Results 1 to 16 of 16
Thread: Error Message ..
- 07-11-2010, 02:28 AM #1Hamodi18 Guest
-
I hope you don't mind that I edited your code and added code tags which should help make your posted code retain its formatting and be more readable.
To do this yourself, highlight your pasted code (please be sure that it is already formatted when you paste it into the forum; the code tags don't magically format unformatted code) and then press the code button, and your code will have tags.
Another way to do this is to manually place the tags into your code by placing the tag [code] above your pasted code and the tag [/code] below your pasted code like so:
Java Code:[code] // your code goes here // notice how the top and bottom tags are different [/code]
Now as to your problem, look at the code here:
Java Code:public float getBasicSalary () { return basicSalary; // **** missing closing brace here public void setBasicSalary (float basicSalary) { this.basicSalary = basicSalary }
- 07-11-2010, 03:07 AM #3
There may be mismatched {} or () in the code. Does your editor have "Find matching" capability?
Please copy and paste the FULL text of the error message here. Don't edit it.
- 07-11-2010, 03:13 AM #4Hamodi18 Guest
yeah bro ,,thanks alot and sorry because im new in this forum..
According to the question I also got an error message in
Java Code:public float getCommisionRate () { return commisionRate; } public void setCommisionRate (float commisionRate) { this.commisionRate = commisionRate; }
- 07-11-2010, 03:16 AM #5I also got an error message
-
No problem. I just figured if you learned how to use the tags, you'll be able to post better questions and get more help. Glad you figured it out.
According to the question I also got an error message in
Java Code:public float getCommisionRate () { return commisionRate; } public void setCommisionRate (float commisionRate) { this.commisionRate = commisionRate; }
I'm with Norm here: what is the full text of the error message.
Much luck!
- 07-11-2010, 03:51 AM #7
Comment on java naming conventions:
Class names start with Upper case letters
- 07-11-2010, 04:05 AM #8Hamodi18 Guest
bro , is not big deal whether the class names start with big letters ..
Java Code:public float getCommisionRate () { return commisionRate; } public void setCommisionRate (float commisionRate) { this.commisionRate = commisionRate; }
-
To you it's not, but to us who've you asked to review quite a bit of your posted code, it is a big deal. If your code doesn't follow convention then we have a harder time understanding it, and you are less likely to get help (or get a poorer grade from your teacher, lower salary from your boss,... etc). So fine, don't follow conventions, but if you want free help here and care to show the folks giving you help that you appreciate their work, please put in the small effort to make it easier for them to help you.
Java Code:public float getCommisionRate () { return commisionRate; } public void setCommisionRate (float commisionRate) { this.commisionRate = commisionRate; }
- 07-11-2010, 04:20 AM #10
Please post the FULL text of the error message. Do NOT edit it or remove any parts of it.
- 07-11-2010, 04:22 AM #11Hamodi18 Guest
im sorry ,, wanna ask u
From where can I delete my thread ..
-
You can't, why would you want to do that?
- 07-11-2010, 04:24 AM #13Hamodi18 Guest
because I feel disappointed ...
-
- 07-11-2010, 04:29 AM #15Hamodi18 Guest
no actually you were trying to help me , but Norm always replay in my thread without any useful answer he just keep asking my by putting all the codes. and im not comfortable to see his replay ..:(
-
He was simply asking for your error messages, not your code. Without the exact error messages, it is hard to know what the precise problem is. Believe me, if you follow his advice, you will get better help, and I don't just mean about posting the error messages -- I mean all his advice. He is one of the best coders and one of the most patient volunteers that this site has.
Similar Threads
-
error message assistance
By Sean_J in forum New To JavaReplies: 12Last Post: 03-17-2010, 03:27 AM -
error message - non-static
By newbie123 in forum New To JavaReplies: 5Last Post: 03-15-2010, 03:25 PM -
Error Message????
By Cubba27 in forum New To JavaReplies: 11Last Post: 11-21-2009, 03:46 PM -
java error message
By baileyr in forum New To JavaReplies: 2Last Post: 01-23-2008, 04:47 AM -
error message on jsp
By sandor in forum Web FrameworksReplies: 1Last Post: 04-11-2007, 03:10 AM
Bookmarks