Quick question. Is it possilble to add JComboBoxes to this or should I rewrite the whole thing? The book gives an example of a content pane with the ComboBoxes but they are doing different things...
Type: Posts; User: JamesdTurnham
Quick question. Is it possilble to add JComboBoxes to this or should I rewrite the whole thing? The book gives an example of a content pane with the ComboBoxes but they are doing different things...
Ok. Thanks for all the tips, i've got it all figured out.
I've done that and also turned the getFuelcost() into a method but now it's saying I can't have two (ints) for the method. I've already declared what the variables are so i'm puzzled why this isn't...
I've tried removing that and I still get the same error, the cursor though is right after fuelcost with the same error that it's expecting an identifier.
Line 83 is the line that i've bolded. Not sure about the semicolon's since they seem to be all correct unless i'm missing the obvious.
Nice pic of Walter by the way.
2 errors found:
File: C:\Users\James Turnham\Desktop\gascalculator.java [line: 83]
Error: <identifier> expected
File: C:\Users\James Turnham\Desktop\gascalculator.java [line: 83]
Error:...
I am trying to figure out if what I am doing is possible or if I have something wrong. The bolded part is where my compiler DrJava keeps giving me an error. Near as I can tell I am trying to output...