Javadoc and More Methods
Javadoc Rules
/**
* Description of method
*
* @param paramName1 description
* @param paramName2 description
* return Description of return value
*/More Examples
/**
* This method returns the product of two integers.
*
* @param numOne The first integer
* @param numTwo The second integer
* @return The product of the two integers
*/
private int product(int numOne, int numTwo)
{
return numOne * numTwo;
}
/**
* This method returns an array with each word from a string in it.
*
* @param input The string we want to split.
* @return The new string array.
*/
private String[] split(string input)
{
return input.split("\\s+");
}Last updated