Search:

Type: Posts; User: GeneralPihota

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    1,336

    Re: Need help with user imput

    Thank you, changing to scan.nextDouble() and scan.nextInt() cleared up 3 errors. And the prinln was changed to println();
    I still get these errors for the second one
    ...
  2. Replies
    6
    Views
    1,336

    Need help with user imput

    Im trying to make a program that does a formula and the user imputs the variables and it prints the result.
    I dont know terminology, so im just gona call this the class with the formula

    ...
  3. Re: update static field and call method within the class?

    Its supposed to be written only and i don't wana try compiling it. Im worried that i didn't write the static part of the question correctly, because i don't know what an accessor method is. And i...
  4. Re: update static field and call method within the class?

    public class GasPump
    { static int TotalPumpSales;
    public static int getTotalPumpSales
    { return TotalPumpSales
    }
    double GasPricePerGallon;
    private double getCost(double Gallons)
    { double...
  5. Re: update static field and call method within the class?

    " A class Car has a method getTankCapacity, which returns the capacity of the car's fuel tank. It also has a method getGasAmt, which returns the current volume of gas in the tank and a method...
  6. update static field and call method within the class?

    Im new to java so I've already done this wrong probably but i need to write
    "A private method pump(double pump) that "dispenses" the specified amount of gas; appropriately updates the totalSales...
  7. Replies
    3
    Views
    2,108

    Re: I have no idea how this works.

    Thanks a lot i'll read those and look at tutorials before posting
  8. Replies
    3
    Views
    2,108

    I have no idea how this works.

    1st Post, I'm taking a high school AP computer science class based around java, and my teacher told me to do the commented out statement.

    I've never seen "for" before or "+=" and i don't know...
Results 1 to 8 of 8