Running a public static void main in Groovy Eclipse -


sorry groovy noob here:

here groovy class -

class myclass {     static void main() {         println("hello world");     }     ... 

how run classin eclipse sts? want keep main method. not want change script.

thanks

to initiate method, main must pass in string array (string[] something). use following.

public static void main(string[] args) { system.out.println("hello world")! } 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -