Declare a method | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Declare a method

can't figure this ot

16th Mar 2017, 11:03 PM
Trixmaster237
Trixmaster237 - avatar
1 Answer
+ 4
public static void myMethod(){ // a method } // Calling the method: public static void main(String[] args){ myMethod(); // run myMethod }
16th Mar 2017, 11:12 PM
Rrestoring faith
Rrestoring faith - avatar