On Apr 7, 2:51 pm, kc <[email protected]> wrote:
> Hi,
>
> Is there a typo error here?  To compare Two or Three family members?
No there is no error. You compare the first name of three members of
the same family. It may happen that two member of this family have
first name which length is the same and both have the longest name in
the family, like Pat, John and Duke, John and Dude have both the
longest name, 4 characters for both. The tie refers to this, so if it
is the case, you display the one you want, either John or Duke.

Hope it helps,
Michèle

>
> Ask the English version of the full names (first-name last-name) of
> three of your family members using showInputDialog() method of the
> JOptionPane class.
> Display the name of the family member who has the longest first name
> (not the longest of the  total name) as following.  (If there is a
> tie, just display one of the two.)
>
> Regards
> KC

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to