java program

the egghunt

Page 1 of 1

2 Replies - 1381 Views - Last Post: 26 September 2005 - 05:42 AM Rate Topic: -----

#1 big-bad-dave  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 23-September 05

java program

Post icon  Posted 25 September 2005 - 08:03 PM

hi here is a code that i need help on cna any one help memi am trying to use an if/else satment for a lab at school

Attached File(s)


This post has been edited by big-bad-dave: 25 September 2005 - 08:04 PM

Is This A Good Question/Topic? 0
  • +

Replies To: java program

#2 Videege  Icon User is offline

  • rÍvant.toujours
  • member icon

Reputation: 6
  • View blog
  • Posts: 1,413
  • Joined: 25-March 03

Re: java program

Posted 25 September 2005 - 08:07 PM

Oh my sweet lord format ftw.

Use some brackets and organize, first off.

Dunno what exactly your problem is (you failed to specify :)), but this jumps out at me:

while(gender !="q");
System.out.println("End of program ");



No semicolons after if statements, and you need to properly structure your syllogisms if you want to code to execute properly (what you have there is an infinite loop after you remove the syntax error).
Was This Post Helpful? 0
  • +
  • -

#3 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: java program

Posted 26 September 2005 - 05:42 AM

Hi big-bad-dave,

I've noticed that you have posted multiple threads along the same subject lines, for help with a program. While our members are more than willing to help you, it would be easier for them if the material were kept it all in one thread, instead of posting a new thread each time...you can simply use the Reply functionality of the first thread. This will allow our members to see the progression of the program as it goes along.

Please do not hesitate to contact me with any questions or concerns that you may have. Thanks, and have a great day.

Amadeus

For continuities sake, here are the original threads...

http://forums.dreami...wtopic12361.htm
http://forums.dreami...wtopic12368.htm
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1