PDA

View Full Version : My Current PC Savings fund:


Travis
04-20-2004, 05:50 AM
public int compSavingsFund = 0;

public int addToSavings(120)
{
compSavingsFund += 120;
return compSavingsFund;
}

speed stick
04-20-2004, 06:09 AM
So, looks like you can buy a good computer.

OnBake Platinum
04-20-2004, 06:13 AM
With $120? I don't think so. But with a steady rate of deposits, hopefully he can.

speed stick
04-20-2004, 06:15 AM
Just wait 20 years for the interest to grow!

JustUsOwls
04-20-2004, 06:22 AM
public int compSavingsFund = 0;

public int addToSavings(120)
{
compSavingsFund += 120;
return compSavingsFund;
compSavingsFung +=0 // kekekke I stole it
return compSavingsFund;
}

Travis
04-20-2004, 10:33 PM
You are a Java n00b. You don't say "compSavingsFun += 0;" it's just "compSavingsFund = 0;"

All you did was add zero to it. And not to mention that it would have exited the method after the first return statement, and it would have NEVER gotten to what you typed. Damn n00bz.

And I plan on putting large, steady deposits into this thing, so it should be about 2 months max.

Travis
04-22-2004, 02:42 AM
Ah, now it's up to $351.70 because of the tax returns...YAY!