How to create a description / definition of a function in java
Is there anyone here who can give me an idea or information on how to create a function definition, the same as what we got when we write a function signature and what we push ctrl + space
in another world like:
File file = new File ( and when we pressed ctrl+space we got as showing in the picture bellow)
I've walked a lot but I haven't found any solutions, thanks if someone here can help me.
+3
source to share
2 answers
Read about the Javadoc .
Look at the source of the class File
for an example:
/**
* Creates a new <code>File</code> instance by converting the given
* pathname string into an abstract pathname. If the given string is
* the empty string, then the result is the empty abstract pathname.
*
* @param pathname A pathname string
* @throws NullPointerException
* If the <code>pathname</code> argument is <code>null</code>
*/
+4
source to share