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
Post a Comment