File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ch1 q8 david book doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "ch1 q8 david book doubt" Watch "ch1 q8 david book doubt" New topic

ch1 q8 david book doubt

Ankur Jain Kothari
Ranch Hand

Joined: Feb 08, 2010
Posts: 154

can anyone explain me this code...

when i ran this code only Ted was displayed...where is Male? and what is Map.Entry?

Do What You Wanna Be....Taking Things The Way They Come
scjp 1.6 91 percent, scmad 90 percent(rounded off to nearest integer)
Ankit Garg

Joined: Aug 03, 2008
Posts: 9466

Male isn't in the parameters because the name attribute of the <input> tag is not set in that case. The correct code would be

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ankur Jain Kothari
Ranch Hand

Joined: Feb 08, 2010
Posts: 154
oh mistake...but what does Map.Entry mean?
Harpreet Singh janda
Ranch Hand

Joined: Jan 14, 2010
Posts: 317

Map.Entry is a class which can be used to access the elements of Map.

Please look here for more detail.
I agree. Here's the link:
subject: ch1 q8 david book doubt
It's not a secret anymore!