Java Program,How to compare objects with different values of variables

I need some help on an assignment I am working on,I am only starting java so need any help I can get.

I need to write a dating program with the couples being male and female,if the male is under 26 then the female can be no more than one year older and the male should be no more than 25 cm taller.
The program is for 6 people and can be any number of men and women,how do I match males with the females and how would I go about the if statements?

Thanks for any help
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!