"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
[My Blog]
All roads lead to JavaRanch
Originally posted by Satou kurinosuke:
1. Please avoid using capital letters (this is used for shouting)
2. Please avoid use bold characters to focus on something. Do not bold the whole message
3. Please do not use abbrevations like 'r' for 'are', '2' for 'to', or words like 'iz' for 'is'. It just makes it difficult to read for non native speakers.
Thank you
Originally posted by marc weber:
When you say it "doesn't work," what exactly do you mean? Are there error messages at compilation? At runtime?
(If you're using Java 5.0, then you should look at the new enums feature.)
Originally posted by Jose Cisse:
...yes, there are error messages coming out
like for "private static final int DISPLAY B = 1;"
"; expected"
...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
[My Blog]
All roads lead to JavaRanch
Originally posted by Satou kurinosuke:
You are calling methods, but do they actually exist ?
You should have those methods somewhere:
[/code]
void displaymenu() {
...
}
int getMenuInput() {
...
}
void doOption(int) {
...
}
[/code]
[My Blog]
All roads lead to JavaRanch
Originally posted by Satou kurinosuke:
Is this some homework ? I don't want to throw out the solution if you were asked to do this.
But think about it. There were already the necessary methods in the first version of your program. The second version contains the same logic, with different method names.
Don't get me started about those stupid light bulbs. |