?? codeconvtoc.doc.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Code Conventions for the Java(TM) Programming Language: Contents</title>
</head>
<body bgcolor="#ffffff">
<table width="100%"><tr>
<td><!-- font size="-1" -->
CONTENTS | PREV | <a href="CodeConventions.doc.html">NEXT</a> <!-- | <a href="CodeConventions.doc.html">INDEX</a> -->
<!-- /font --></td><td align=right></td>
</tr></table>
<hr>
<p>
<center>
<font size="+2"><b>Code Conventions for the Java<SUP><FONT SIZE="-2">TM</FONT></SUP> Programming Language</b></font><p>
Revised April 20, 1999<!-- <font size="+1"><b></b></font><br> -->
</center>
<p>
<hr>
<TABLE BORDER=0 WIDTH="100%">
<tr>
<td width=40></td>
<td width=40></td>
<td width=40></td>
<td width=40></td>
<td></td>
</tr>
<dl>
<dt></dt>
<dd><br>
<a href="CodeConventions.doc.html">
<b><font size="+2">
1
<a href="CodeConventions.doc.html#16711">Introduction</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>1.1
<a href="CodeConventions.doc.html#16712">Why Have Code Conventions</a></a>
</b>
<dd>
<b>1.2
<a href="CodeConventions.doc.html#16729">Acknowledgments</a></a>
</b>
</dl>
<dd><br>
<a href="CodeConventions.doc1.html">
<b><font size="+2">
2
<a href="CodeConventions.doc1.html#16732">File Names</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>2.1
<a href="CodeConventions.doc1.html#647">File Suffixes</a></a>
</b>
<dd>
<b>2.2
<a href="CodeConventions.doc1.html#253">Common File Names</a></a>
</b>
</dl>
<dd><br>
<a href="CodeConventions.doc2.html">
<b><font size="+2">
3
<a href="CodeConventions.doc2.html#3043">File Organization</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>3.1
<a href="CodeConventions.doc2.html#11684">Java Source Files</a></a>
</b>
<dl>
<dt></dt>
<dd>
<b>3.1.1
<a href="CodeConventions.doc2.html#3441">Beginning Comments</a></a>
</b>
<dd>
<b>3.1.2
<a href="CodeConventions.doc2.html#277">Package and Import Statements</a></a>
</b>
<dd>
<b>3.1.3
<a href="CodeConventions.doc2.html#1852">Class and Interface Declarations</a></a>
</b>
</dl>
</dl>
<dd><br>
<a href="CodeConventions.doc3.html">
<b><font size="+2">
4
<a href="CodeConventions.doc3.html#262">Indentation</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>4.1
<a href="CodeConventions.doc3.html#313">Line Length</a></a>
</b>
<dd>
<b>4.2
<a href="CodeConventions.doc3.html#248">Wrapping Lines</a></a>
</b>
</dl>
<dd><br>
<a href="CodeConventions.doc4.html">
<b><font size="+2">
5
<a href="CodeConventions.doc4.html#385">Comments</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>5.1
<a href="CodeConventions.doc4.html#216">Implementation Comment Formats</a></a>
</b>
<dl>
<dt></dt>
<dd>
<b>5.1.1
<a href="CodeConventions.doc4.html#680">Block Comments</a></a>
</b>
<dd>
<b>5.1.2
<a href="CodeConventions.doc4.html#341">Single-Line Comments</a></a>
</b>
<dd>
<b>5.1.3
<a href="CodeConventions.doc4.html#342">Trailing Comments</a></a>
</b>
<dd>
<b>5.1.4
<a href="CodeConventions.doc4.html#286">End-Of-Line Comments</a></a>
</b>
</dl>
<dd>
<b>5.2
<a href="CodeConventions.doc4.html#16838">Documentation Comments</a></a>
</b>
</dl>
<dd><br>
<a href="CodeConventions.doc5.html">
<b><font size="+2">
6
<a href="CodeConventions.doc5.html#2991">Declarations</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>6.1
<a href="CodeConventions.doc5.html#2992">Number Per Line</a></a>
</b>
<dd>
<b>6.2
<a href="CodeConventions.doc5.html#18761">Initialization</a></a>
</b>
<dd>
<b>6.3
<a href="CodeConventions.doc5.html#16817">Placement</a></a>
</b>
<dd>
<b>6.4
<a href="CodeConventions.doc5.html#381">Class and Interface Declarations</a></a>
</b>
</dl>
<dd><br>
<a href="CodeConventions.doc6.html">
<b><font size="+2">
7
<a href="CodeConventions.doc6.html#430">Statements</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>7.1
<a href="CodeConventions.doc6.html#431">Simple Statements</a></a>
</b>
<dd>
<b>7.2
<a href="CodeConventions.doc6.html#15395">Compound Statements</a></a>
</b>
<dd>
<b>7.3
<a href="CodeConventions.doc6.html#438">return Statements</a></a>
</b>
<dd>
<b>7.4
<a href="CodeConventions.doc6.html#449">if, if-else, if else-if else Statements</a></a>
</b>
<dd>
<b>7.5
<a href="CodeConventions.doc6.html#454">for Statements</a></a>
</b>
<dd>
<b>7.6
<a href="CodeConventions.doc6.html#460">while Statements</a></a>
</b>
<dd>
<b>7.7
<a href="CodeConventions.doc6.html#465">do-while Statements</a></a>
</b>
<dd>
<b>7.8
<a href="CodeConventions.doc6.html#468">switch Statements</a></a>
</b>
<dd>
<b>7.9
<a href="CodeConventions.doc6.html#472">try-catch Statements</a></a>
</b>
</dl>
<dd><br>
<a href="CodeConventions.doc7.html">
<b><font size="+2">
8
<a href="CodeConventions.doc7.html#475">White Space</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>8.1
<a href="CodeConventions.doc7.html#487">Blank Lines</a></a>
</b>
<dd>
<b>8.2
<a href="CodeConventions.doc7.html#682">Blank Spaces</a></a>
</b>
</dl>
<dd><br>
<a href="CodeConventions.doc8.html">
<b><font size="+2">
9
<a href="CodeConventions.doc8.html#367">Naming Conventions</a></a></font></b>
<dd><br>
<a href="CodeConventions.doc9.html">
<b><font size="+2">
10
<a href="CodeConventions.doc9.html#529">Programming Practices</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>10.1
<a href="CodeConventions.doc9.html#177">Providing Access to Instance and Class Variables</a></a>
</b>
<dd>
<b>10.2
<a href="CodeConventions.doc9.html#587">Referring to Class Variables and Methods</a></a>
</b>
<dd>
<b>10.3
<a href="CodeConventions.doc9.html#1255">Constants</a></a>
</b>
<dd>
<b>10.4
<a href="CodeConventions.doc9.html#547">Variable Assignments</a></a>
</b>
<dd>
<b>10.5
<a href="CodeConventions.doc9.html#554">Miscellaneous Practices</a></a>
</b>
<dl>
<dt></dt>
<dd>
<b>10.5.1
<a href="CodeConventions.doc9.html#331">Parentheses</a></a>
</b>
<dd>
<b>10.5.2
<a href="CodeConventions.doc9.html#333">Returning Values</a></a>
</b>
<dd>
<b>10.5.3
<a href="CodeConventions.doc9.html#353">Expressions before `?' in the Conditional Operator</a></a>
</b>
<dd>
<b>10.5.4
<a href="CodeConventions.doc9.html#395">Special Comments</a></a>
</b>
</dl>
</dl>
<dd><br>
<a href="CodeConventions.doc10.html">
<b><font size="+2">
11
<a href="CodeConventions.doc10.html#186">Code Examples</a></a></font></b>
<dl>
<dt></dt>
<dd>
<b>11.1
<a href="CodeConventions.doc10.html#182">Java Source File Example</a></a>
</b>
</dl>
</dl>
</TABLE>
<!--
<hr>
<h3></h3>
-->
<br>
<hr>
<!-- font size="-1" -->
CONTENTS | PREV | <a href="CodeConventions.doc.html">NEXT</a> <!-- | <a href="CodeConventions.doc.html">INDEX</a> -->
<!-- /font -->
<hr>
<font size="-1"><i><A HREF="Copyright.doc.html">Copyright</a> © 1995-1999, Sun Microsystems, Inc. All Rights Reserved.</i></font>
<!-- This HTML file was created with Quadralay WebWorks Publisher 3.5.0 -->
<!-- by Catherine Holmes -->
<!-- Last updated: Fri Oct 24 11:02:38 1997 -->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -