java function and class header documentation

An dummy java class with function and header documentation examples.
[code language=”java”]
/**
* Description of MyClass
* @author Joe
* @author Mary
* @version 1.0
* @since 2015-01-01
*/
public class MyClass
{
public int anIntField; // an public integer field

/**
* Description of myMethod(int a, String b)
*
* @param a Description of a
* @param b Description of b
* @return Description of c
*/
public Object aMethod(int a, String b)
{
Object c;
return c;
}
}
[/code]

Search within Codexpedia

Custom Search

Search the entire web

Custom Search