Use the API documentation ?

Dear all,

I am still learning the basic of java. I see a question in the java totural .

Question 1: Use the API documentation to find the answers to the following questions:

a. What Integer method can you use to convert an int into a string that expresses the number in hexadecimal? For example, what method converts the integer 65 into the string "41"?

I see the answer, but I have no clue how to use the API documentation to find the answers. PLease help :)

[492 byte] By [marco_wua] at [2007-11-27 7:36:33]
# 1
They're probably just referring to the javadocs: http://java.sun.com/j2se/1.5.0/docs/api/They're asking you to go to that site and look for the answers there.
paulcwa at 2007-7-12 19:17:06 > top of Java-index,Java Essentials,Java Programming...
# 2
You start with the docs of course... http://java.sun.com/javase/6/docs/api/
jschella at 2007-7-12 19:17:06 > top of Java-index,Java Essentials,Java Programming...
# 3

Go to the docs for Integer.

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html

Scan down through the methods for one that takes at least a String as an arg, read their synopses. One of them will match what's described.

That's how we find what we're looking for in general, in core API and in 3rd party APIs, and even in libraries that we write ourselves--pick a likely class, scan through its methods, look at signatures, return types, and synopses to see if there's one (or more) that might do what we want.

jverda at 2007-7-12 19:17:06 > top of Java-index,Java Essentials,Java Programming...