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
...
Type: Posts; User: GeneralPihota
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
...
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
...
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...
public class GasPump
{ static int TotalPumpSales;
public static int getTotalPumpSales
{ return TotalPumpSales
}
double GasPricePerGallon;
private double getCost(double Gallons)
{ double...
" 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...
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...
Thanks a lot i'll read those and look at tutorials before posting
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...