File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "ch1 q8 david book doubt" Watch "ch1 q8 david book doubt" New topic
Author

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
Sheriff

Joined: Aug 03, 2008
Posts: 9304
    
  17

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 yes..my 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: http://aspose.com/file-tools
 
subject: ch1 q8 david book doubt