Search:

Type: Posts; User: GeneralPihota

Search: Search took 0.08 seconds.

  1. 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...
  2. 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...
  3. 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...
  4. 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...
Results 1 to 4 of 4