New course! Every coder should learn Generative AI!
Try a free lesson0
Declare a method
can't figure this ot
1 Answer
+ 4
public static void myMethod(){
// a method
}
// Calling the method:
public static void main(String[] args){
myMethod(); // run myMethod
}