thanks in advance
Of course TECHNICALLY the API is the code itself. It is that portion of the code that is public, and therefore available to be used by other classes. It is the fields and methods that OUR classes can use to interact with THEIR classes. Their code also contains encapsulated stuff that they do NOT provide access to, so that portion of the code is not part of the "interface" to their code.
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).
public static int parseInt(String s)
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.
s - a String containing the int representation to be parsed
the integer value represented by the argument in decimal.
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 ]