JAVA编程规范V1.1(8)

时间:2025-07-13

JAVA编程规范V1.1

Example:

<pre> *

* // report longest lines

* TextFileIn f = new TextFileIn("blather.txt"); * IntVector v = new IntVector(); * int longestLine = 0 ; * boolean done = false ; * while ( ! done ) * {

* String s = f.readLine(); * * } * f.close();

* System.out.println("The longest lines are on line numbers:"); </pre>

@author Adam Baum @author Justin Case */

public class IntVector {

JAVA 方法注释

摘要描述 详细描述

参数列表,使用 @param 标签 (如果有参数) 返回值,使用 @return 标签 (如果有)

异常列表,使用 @exception 标签 (如果有异常)

如:

/** Get a copy of one int. <p>

Retrieve an int relative to the index provided.<p>

@param Index Which int (0 is the first int).<p>

@return The retrieved int or zero if Index is outside of 0..length.<p> */

public int get( int Index ) {

JAVA编程规范V1.1(8).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219