Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the Dating Game...(edit)

 
Juanito Tamad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
answered thankz!
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LinkofHyrule,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you do this?
Yes.
Will somebody here do your homework for you?
No.
Did you have a specific (or vague) question about trying to solve the problem?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i would like to learn more through your example
If you'd sincerely like to do so, then you've found a great site to view lots of great examples and participate in many great discussions on Java programming.
If you'd like to discuss this example, what might you do first to begin to solve it?
 
Juanito Tamad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks!
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Teddy
How far have you gotten on it? At what point are you stuck? Post us some ode your having a problem getting to work and we'll be glad to help you out. We wont however just give you your homework.
What kind of links do you want posted? Basic Java information? Self-study guides? Some easy beginning coding questions?
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Teddy first you need to understand how to solve the problem logically. So tell us how you would solve the problem - with out any code.
 
Juanito Tamad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This a bit of complicated example to start out with. If you can I would suggest you pick something a little more basic.
Since dates are some important in this problem you will want to learn about java.util.DateFormat & java.util.Calendar
link
You could have three methods to do the comparisions for birthdates, differance between ages, and oldest member. Each method would take in two dates, one for a male contestent and another for the woman.

For the part of the program in which you need to compare the males to the females you need to have a matrix, also known as a two dimensional array. So for example you call the method to compare birthdays and put the results into the matrix.
Some code samples for Arrays, Date & Time at the sun site link
[ October 18, 2002: Message edited by: William Barnes ]
[ October 18, 2002: Message edited by: William Barnes ]
 
Juanito Tamad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help guys!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic