This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes the Dating Game...(edit) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "the Dating Game...(edit)" Watch "the Dating Game...(edit)" New topic
Author

the Dating Game...(edit)

Juanito Tamad
Greenhorn

Joined: Oct 12, 2002
Posts: 4
answered thankz!
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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

Joined: Dec 10, 2001
Posts: 7023
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

Joined: Oct 12, 2002
Posts: 4
thanks!
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
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?


Dave
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

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.


Please ignore post, I have no idea what I am talking about.
Juanito Tamad
Greenhorn

Joined: Oct 12, 2002
Posts: 4
thanks

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Basic Java Information


GenRocket - Experts at Building Test Data
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

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

Joined: Oct 12, 2002
Posts: 4
Thanks for the help guys!!!
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Here is a list of free on-line Java tutorials and books that I have found useful:
  • Sun's Java Tutorial
  • Introduction to Computer Science using Java by Bradley Kjell
  • Introduction to Programming Using Java by David J. Eck
  • Dick Baldwin's Java Programming Tutorials
  • Interactive Programming In Java by Lynn Andrea Stein
  •  
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: the Dating Game...(edit)