are methods WITH parameters from other methods. (As explained here)

parametrised method java

void method1 (int i) {

}

we don’t have to write the default modifier.

Example

THIS IS HOW IT WORKS!