wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Wrapper Classes - getxxx() Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Wrapper Classes - getxxx() Question" Watch "Wrapper Classes - getxxx() Question" New topic
Author

Wrapper Classes - getxxx() Question

Chris Gastin
Ranch Hand

Joined: Aug 13, 2002
Posts: 51
All wrapper classes have their particular getXxx() - I do not quite follow the API for it. For example could someone explain to me what getInteger() does?
Thanks
Chris Gastin


Chris Gastin<br />SCJP 1.4<br />SCWCD 1.3
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Welcome to the Ranch.
The porperties are name-value pairs that can be accessed with the methods getProperties() and getProperty() from the class System.
You can read about the class java.util.Properies in the Java Tutorial


SCJP2. Please Indent your code using UBB Code
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Very simple example of use of Integer.getInteger:


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
 
subject: Wrapper Classes - getxxx() Question