Skip to content

Instantly share code, notes, and snippets.

@sahara-ooga
Last active November 14, 2019 06:36
Show Gist options
  • Save sahara-ooga/0bef04cf490b02120be7b8487acb78ed to your computer and use it in GitHub Desktop.
Save sahara-ooga/0bef04cf490b02120be7b8487acb78ed to your computer and use it in GitHub Desktop.
Javadoc

Javadoc

項目

annotation description
@author プログラムの作成者
@version 作成したプログラムのバージョン
@param メソッドの引数の説明
@return メソッドの戻り値の説明

/**
 * @author Some one
 * @version 0.0.1
 */
 
 /**
  * Javadoc解説用のメインクラス
  */
public class Hello {
    /**
     * mainメソッド
     * @param args 使用しない
     */
    public static void main(String[] args) {
        // ディスプレイに表示するためのメソッド
        System.out.println(this.hello());
    }
    /**
     * 挨拶を出力する
     * @return 挨拶の文字列
     */
    private string hello() {
      return "Hello Java!"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment