Search:

Type: Posts; User: curmudgeon

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,994

    Re: Gas Calculator

    Glad you've got it working!
  2. Replies
    12
    Views
    1,994

    Re: Gas Calculator

    I've added code tags and a comment to the code in your post above to indicate the offending line. In the future, please whenever posting code use
    [/code] tags around your code else we'll not be...
  3. Replies
    12
    Views
    1,994

    Re: Gas Calculator

    Ah, you're still not defining the method correctly. You will want to read up on how to declare methods that take parameters since the parameter variables need types as well as variable names. In...
  4. Replies
    12
    Views
    1,994

    Re: Gas Calculator

    Yes, you're missing the obvious:


    public static void output(fuelcost, miles); // <===== *** check out this semicolon here. Does it belong?
    {
    DecimalFormat twoDigits = new...
  5. Replies
    12
    Views
    1,994

    Re: Gas Calculator

    Next obvious question: which line is 83?
    Then have a look at all of the semicolons you've used near the bad line.
  6. Replies
    12
    Views
    1,994

    Re: Gas Calculator

    If your compiler is telling you that you have a compilation error, you'll probably want to share this important bit of information with us, since the error messages are usually pretty...
Results 1 to 6 of 6