Since the Java API pages have no search function, at least not one that I see, how do I find out what methods are in which packages?
|
|||||
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything will be deleted. See Good Subjective, Bad Subjective for more information. |
closed as off topic by gnat, MichaelT, Kilian Foth, GlenH7, Robert Harvey Apr 29 at 23:30
Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
Google using the "site:" option Example to find a "sleep" method: site:http://docs.oracle.com/javase/6/docs/api sleep |
|||||||||||||
|
You can't really search per method in the Javadoc, as its main entry point is classes. However, if you know the class name, I advise use to use :
|
||||
|
I do all my language searching at http://www.gotapi.com/html. It has full typeahead searching. |
|||||
|
|||||
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything will be deleted. See Good Subjective, Bad Subjective for more information. |
CTRL+F [object/class], click. Scroll through, or CTRL+F again for a particular method. |
|||
|
I commonly wind up looking at example code, found by searching at a more general level, rather than searching at a low level for functions, and then reading through an example gives the locations of the classes and functions needed to do whatever. Once you have the key classes, you can look at those in the API documentation to see what else they contain that may be useful. |
|||
|
Use a browser plugin Since you use your browser for searching anyway, it makes sense to have a dedicated plugin or search engine configuration dedicated to your need. Chrome There's a useful Chrome extension Development and Coding Search. It provides a complete reference documentation search solution for a wide variety of languages. Firefox There is a wide variety of Firefox Java API custom search engines available, pick one that suits your need. |
||||
|
Google works wonders. If you know what class you are looking for:
If you know what method you are looking for:
If you want to look for a class, you can press |
|||
|
protected by maple_shaft♦ Apr 29 at 14:47
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.