In java we can pass some arguments in methods. Sometimes we want to pass the array of objects. So if you see writeText(String … text) is actually nothing but array of Strings. It’s same as writeText(String[] text).
To easily Generate javadocs in Intelij Idea you can use this shorcut.
type /** then press enter. This applies for the methods. Later you can add more details to that javadoc
ex.:
/**
public String addText(String[] text){
return ‘abc’;}
becomes
1 2 3 4 5 |
/** * * @param text * @return */ |
public String addText(String[] text){
return ‘abc’;}