I am writing the following method in java that returns all odd numbers less than n. I have to write JavaDoc for this method.I am a little new to writing JavaDoc. Is the following JavaDoc for this method correct?
For @return should I say "ArrayList of the all odd numbers less than n" or "list of all odd numbers less than n"?
Lastly, what should I say for @param n?
/**
* Return a list of all odd numbers less than n
*
* @param n
* @return ArrayList<Integer> of the all odd numbers less than n
*/
public static ArrayList<Integer> oddsLessThan(int n){
}
Any suggestions would be appreciated.