Re: SOS PLEASE FRIENDS OF JAVA
- From: RedGrittyBrick <redgrittybrick@xxxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 10:59:05 +0100
mak wrote:
Good morning,
Good morning mak, I guess its lucky I didn't read this message over the weekend or I might have read it at an inappropriate time of day!
Are you interested in help from people in different time zones? It might be evening here when it is morning where you are. Does this matter to you?
how are you ?
Thanks, for asking, I have a bruise on the top of my left foot which has been troubling me a little.
How are you?
Are you planning a nice vacation this year?
What do you think about global warming?
Enough chit chat ...
Last night i have been trying for two
hours to compile a quite big application in Java and i didn't do
anything!
Were you staring at the screen for two hours without even touching the keyboard? I think I would have got up and made a cup of coffee or something. To compile an application you definitely do need to do something (e.g. type the command javac GDB.java or load an IDE). Maybe you mean you didn't succeed?
Could i have your help ?
Sure. I'd be happy to help. By the way, your politeness is appreciated but I feel you may be overdoing it a little.
The application named GDB.java finds
the maximum and minimum grade of a class and the average grade and
stores these into arrays.
I don't think I need to know that, but thanks for the info.
The compiler error is illegal start of
expression at line public void outputGrades(){ .
It means the compiler is expecting a new expression but "public void outputGrades" doesn't look like an assignment, a "for" loop or any other kind of expression.
Why does it expect an expression and not a method declaration? It must be context, perhaps it thinks it is at a point where you should be starting an expression and not at a point where you should be defining a method. At what point can you declare a new method? Ususally after closing the definition of the previous method?
I see you haven't closed the declaration of method outputBarChart() yet.
Perhaps you are missing a "}" on the line above?
The program is:<snipped>
Whenever I type "{", I follow up by pressing enter, "}", up-arrow, end, enter. This habit ensures I almost never have this kind of problem.
P.S. I prefer it when people put the subject of their message in the Subject: line of their message. Capitals are considered SHOUTING, which I find a little irritating, especially in the morning :-)
.
- References:
- SOS PLEASE FRIENDS OF JAVA
- From: mak
- SOS PLEASE FRIENDS OF JAVA
- Prev by Date: Re: Tomcat ports for web services
- Next by Date: please help me
- Previous by thread: SOS PLEASE FRIENDS OF JAVA
- Next by thread: Definition of a "property"
- Index(es):