File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Wrapper Classes - getxxx() Question" Watch "Wrapper Classes - getxxx() Question" New topic

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?
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.
I agree. Here's the link:
subject: Wrapper Classes - getxxx() Question
It's not a secret anymore!