5.11.3阅读API文档

· 如何下载API文档

  1. 下载地址,点击进入:    http://www.oracle.com/technetwork/java/javase/documentation/jdk8-doc-downloads-2133158.html

enter description here

图5-27 API下载界面图

  2. 下载成功后,解压下载的压缩文件,点击进入docs/api下的index.html文件即可。

enter description here

图5-28 打开index.html文件

·API文档如何阅读

enter description here

图5-29 API文档

· eclipse中将鼠标放到类或方法上,即可看到相关的注释说明;再按下F2即可将注释窗口固定。

enter description here

图5-30 eclipse中的注释说明图