
-----------------------------------
GDoughtUpInIt
Mon Jul 05, 2004 9:32 am

What's wrong with my code? (Java)
-----------------------------------
Eventually, I'm supposed to display all 7 days of the week with what this guy is going to be doing. So far I only got 1 day done, but I'm still trying to display all the days on the screen, just to get myself started. But I can't get it to display:

MONDAY: (all the stuff i put there so far too)
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
SUNDAY

in a loop. Can somebody tell me what is wrong with my code below. I am a beginner in this, but I'm really trying to learn so any help will be appreciated. Thanks

class joesWeek{
   public static void main (String

-----------------------------------
zylum
Mon Jul 05, 2004 11:33 am


-----------------------------------
you have all youre ifs inside each other thats why only the first one shows up... it should look like this:

 class joesWeek{
public static void main (String[] args){
int money = 200;
int shoeCost = 30;
double shoeTax = 1.15;

System.out.println("Java Joe has $200.");

for (int i = 1; i 