java docs strings code example

Example 1: doc string in java

java has it's won function definition as similar as python's doc string
which is called "javadoc" and written before java method using /** */
/** This is doc
* string */
public void DocString() {
	// here goes function bodies
}

Example 2: String... java

//Object... (here String...) means that you can give
//in parameter one or many objects of same type

func();

func("arg1", "arg2", "arg3");

String[] args = new String[]{"arg1", "arg2", "arg3"}
func(args);

void func(String... args);

Tags:

Java Example