Download presentation
Presentation is loading. Please wait.
Published byJulie Audrey Maxwell Modified over 9 years ago
1
Appendix E Using the Java API Documentation 報告人:黃偉倫 學號: 602630211
2
2 E-1 : Java API Documentation E-2 : Java API Documentation Overview
3
3 E-1 : Java API Documentation The JAVA API ( Application Programming Interface ) is a library of functions and classes that Java provides to the user. It provides a list of objects and or classes available for the programmer, with examples and descriptions, as well as a list of the included methods for each class.
4
4 E-1 : Java API Documentation The Java API documentation is a valuable asset for programmers wishing to construct programs and software in the JAVA programming language. The Java API Documentation for the JAVA Platform SE (Standard Edition) 7 can be located online on the oracle website at:
5
5 E-1 : Java API Documentation Java API Documentation (Offline) You can also download complete Java API Documentation for offline use. Download the Java SE Development Kit Documentation from the following link: http://www.oracle.com/technetwork/j ava/javase/documentation/java-se-7- doc-download-435117.html
6
6 E-1 : Java API Documentation Open index.html from the docs folder to launch the Java API Documentation on your Internet Browser. Click the Java SE API link to navigate to the API documentation section.
7
7 E-2 : Java API Documentation Overview The API documentation is organized into three separate containers or windows. The main larger window on the right shows the current content being viewed. The upper left window/container lists the Packages that are included in the JAVA SE7 edition. The lower left window/container lists all the classes included in the JAVA SE7 edition.
8
8 E-2 : Java API Documentation Overview Clicking the help link on the top menu of the main window gives the user a detailed insight into how the documentation is organized.
9
9 E-2 : Java API Documentation Overview The index link provides a comprehensive index of the entire documentation, with hyperlinks to each letter at the top.
10
10 E-2 : Java API Documentation Overview The Deprecated link provides a list of Interfaces, Classes, Exceptions, etc., that have been superseded and should be avoided. In the description of each deprecated item contains link(s) to replacement, if one exists.
11
11 E-2 : Java API Documentation Overview
12
12 E-2 : Java API Documentation Overview The overview section provides a brief description for each package.
13
13 E-2 : Java API Documentation Overview Example: Documentation on the String class Documentation on the String class can be found and examined as follows. Use the Classes window in the lower left of the online documentation to locate the String class.
14
14 E-2 : Java API Documentation Overview The documentation on the String class is now presented in the main window. The package that the String class is located in is stated at the top of the documentation (java.lang.String). Next, some examples on the use of the String class, is presented. The following outlines the rest of sections of the String class documentation: Field Summary: This usually details constraints or any other field detail
15
15 E-2 : Java API Documentation Overview Constructor Summary: Provides brief descriptions of the available constructors for the String class, with complete list of constructor arguments in each case. Deprecated constructors are also listed.
16
16 E-2 : Java API Documentation Overview Method Summary: provides a table of available methods in the String class, with their respective descriptions. The modifier and type are also listed (example, int, char, Boolean, etc.).
17
17 E-2 : Java API Documentation Overview Field Detail: Provides a more detailed description of included fields
18
18 E-2 : Java API Documentation Overview Constructor Detail: provides a more detailed description of each constructor for the String class.
19
19 E-2 : Java API Documentation Overview Method Detail: Provides a more detailed description of each method included in the String class, as well as their respective types, and modifier types.
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.