Java doc

  • Themenstarter Themenstarter Yvonne
  • Beginndatum Beginndatum
Status
Nicht offen für weitere Antworten.
Y

Yvonne

Gast
ich habe folgendes programm habe hier @param @author und @return eingefügt:

Ist das so richtig ?



Code:
/**
 * Ein _ Programm in Java.
 * Dies ist ein Javadoc-Kommentar.
 * @author Ulli
 */

class _

/** 
    * @param  __ und ___ 
    */ 

	{

		static long _(long __,long  ___) 

	{

		return __==0 ?___+ 1:___==0?_(__-1,1):_(__-1,   _(__,    ___-1)) ;
 
	}

		static {int _=2, ___= 2;


		System.out.println("a("+_+','+___+ ")="+ _ (_,  ___) ) ;

/** 
    * @return  0 
    */ 

		System.exit(0);

	}

	}
 
wie würde es richtig aussehen? Ich hab das Beispiel aus "Java eine Insel". Kannst du mir das vielleicht einmal vormachen BITTE BITTE 🙂

gruß Yvonne
 
Code:
/**
 * Diese Klasse ist absolut sinnfrei.
 * @author Alexander Langer
 */
class Bla {
  /**
   * Standard-Konstruktor
   */
  public Bla() {
  }

  /**
   * Konstruktor mit Parameter
   * @param text Der auszugebende Text
   */
  public Bla(String text) {
    System.out.println(text);
  }

  /**
   * Öffentliche parameterlose Methode mit Rückgabewert
   * @return Ein Text
   */
  public String getBlub() {
    return "blub";
  }
}
 
Status
Nicht offen für weitere Antworten.

Zurück
Oben