You are viewing our Forum Archives. To view or take place in current topics click here.
java help!!!!!!!
Posted:

java help!!!!!!!Posted:

aaron547
  • Ladder Climber
Status: Offline
Joined: Jan 07, 201014Year Member
Posts: 396
Reputation Power: 14
Status: Offline
Joined: Jan 07, 201014Year Member
Posts: 396
Reputation Power: 14
its fine thanks guys!!!!!!!!!!!!!!!


Last edited by aaron547 ; edited 1 time in total
#2. Posted:
speed
  • Winter 2022
Status: Offline
Joined: Jun 11, 200914Year Member
Posts: 9,897
Reputation Power: 3160
Motto: "I'l no I grew up to fast speed I no u will be little famous" - Famous_Energy
Motto: "I'l no I grew up to fast speed I no u will be little famous" - Famous_Energy
Status: Offline
Joined: Jun 11, 200914Year Member
Posts: 9,897
Reputation Power: 3160
Motto: "I'l no I grew up to fast speed I no u will be little famous" - Famous_Energy
Show us your existing code and what you've tried.

We're not going to feed you code.
#3. Posted:
aaron547
  • Ladder Climber
Status: Offline
Joined: Jan 07, 201014Year Member
Posts: 396
Reputation Power: 14
Status: Offline
Joined: Jan 07, 201014Year Member
Posts: 396
Reputation Power: 14
SPEED wrote Show us your existing code and what you've tried.

We're not going to feed you code.




its fine thanks guys!!!!!!!!!!!!!!!


Last edited by aaron547 ; edited 1 time in total
#4. Posted:
JackM97
  • Prospect
Status: Offline
Joined: Jan 30, 201113Year Member
Posts: 638
Reputation Power: 25
Status: Offline
Joined: Jan 30, 201113Year Member
Posts: 638
Reputation Power: 25
Don't know java but just add say int yes and int no. In each if/else statement if someone enters yes write yes++ or if someone enters no write no++.

Or yes += 1 instead of yes++.

Understand?
E.G
int yes;
int no;
char swim;

System.out.printin("Do you like to swim? Enter Y/N");
swim = Keyboard.readChar();
if (swim == 'y')
{
System.out.printIn("You like swimming?!");
yes+;
}
else (swim == 'n')
{
System.out.printIn("You don't like swiming, #lad");
no++
}
total = yes+no;
System.out.printIn("You like {0} Sports, Out of {1}", yes, total);
}
#5. Posted:
aaron547
  • Ladder Climber
Status: Offline
Joined: Jan 07, 201014Year Member
Posts: 396
Reputation Power: 14
Status: Offline
Joined: Jan 07, 201014Year Member
Posts: 396
Reputation Power: 14
JackM97 wrote Don't know java but just add say int yes and int no. In each if/else statement if someone enters yes write yes++ or if someone enters no write no++.

Or yes += 1 instead of yes++.

Understand?
E.G
int yes;
int no;
char swim;

System.out.printin("Do you like to swim? Enter Y/N");
swim = Keyboard.readChar();
if (swim == 'y')
{
System.out.printIn("You like swimming?!");
yes+;
}
else (swim == 'n')
{
System.out.printIn("You don't like swiming, #lad");
no++
}
total = yes+no;
System.out.printIn("You like {0} Sports, Out of {1}", yes, total);
}



its fine thanks guys!!!!!!!!!!!!!!
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.