Did you actually swap the > for a <?
Type: Posts; User: Charlie
Did you actually swap the > for a <?
public int doubleEachDay(double jackpot) {
double amount = 0.01;
int numDays = 0;
while(amount > jackpot){ <-- amount < jackpot, "is less than"
amount=(amount*2);
numDays++;
...
If thats all the code you have in your class, you havent declared the class. EVERY .java file you create is a CLASS. The compiled files' extension is even .CLASS. The absolute first thing you do when...
We cant know what your error is without knowing whats on the line you get an error on is. Your code seems fine, but the error is somewhere else, prolly inside the main function where you run your...