An example of WHAT?
You just READ the thing, and then you can use anything of the methods or Fields that it talks about.
For instance if you go to the Integer class (a wrapper class for ints), it shows you all of the methods that Integer types can use.
One of those methods is a static method named parseInt(
String s).
parseInt
public static int parseInt(String s)
throws NumberFormatException
Parses the string argument as a signed decimal integer. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' ('\u002D') to indicate a negative value. The resulting integer value is returned, exactly as if the argument and the radix 10 were given as arguments to the parseInt(java.lang.String, int) method.
Parameters:
s - a String containing the int representation to be parsed
Returns:
the integer value represented by the argument in decimal.
Throws:
NumberFormatException - if the string does not contain a parsable integer.
After reading that I know that I can do
String myString = "10";
int i = Integer.parseInt(myString);
and i now holds the int value 10.
[ April 16, 2002: Message edited by: Cindy Glass ]