Search:

Type: Posts; User: newbie

Search: Search took 0.18 seconds.

  1. Replies
    4
    Views
    2,107

    Re: A better way to do things?

    Here is just a small way for reducing main method size for ya :P


    // 2.35: Daily Driving Cost Calculator
    // Calculates your daily driving cost
    import java.util.Scanner; // Imports the class...
  2. Replies
    4
    Views
    2,107

    Re: A better way to do things?

    I'm no Java expert, but for the type of program that it is, I'd say its absolutely fine.

    Only thing you could consider is

    double miles,gasprice,milespergal,
    ...
Results 1 to 2 of 2