How to get up-to-date search results when searching for javadoc

后端 未结 4 1252
逝去的感伤
逝去的感伤 2021-02-20 11:21

Recently I\'ve observed a lot of people still giving links to javadocs of 1.4.2. This is not quite a good practice and I\'d like to raise the question.

This happens beca

相关标签:
4条回答
  • 2021-02-20 11:44

    I've always been surprised that nobody at Google updates documentation searches to default to the latest versions.

    I usually just add "Java 6" if I am searching for "Java 6" and "Galileo" if I am searching for Eclipse stuff (as I usually get the Eclipse 3.2 docs with a default search). Adding JavaDoc for good measure helps with the more obscure classes in general.

    0 讨论(0)
  • 2021-02-20 11:59

    I prefer to download and install the javadoc when I'm installing a new Java version.
    So I always have the correct javadoc on the disk. Uses some disk space but it's faster and allows working offline.

    Drawback: you can not copy&paste the links in a forum

    0 讨论(0)
  • 2021-02-20 12:06

    As they are updated, the tutorials are already referencing draft version of the Java 7 API. For example How to Use Tables refers to JTable.

    0 讨论(0)
  • 2021-02-20 12:08

    In almost all cases, adding the version after the searched class gets the desired result on top. For example:

    • "java.lang.String 6"
    • "java.util.Collection 5"

    (note - it's not "1.6" - only "6")

    0 讨论(0)
提交回复
热议问题