Hello, Groovy!

My new job demands me to learn a lot of new things that I never wanted to! Today I wrote my first ever Groovy script. And it compiled and run! Awesome πŸ™‚

package subin.groovy;

/**
 * Hello, World!
 *
 * @author Subinkrishna Gopi
 */
class HelloWorld
{
	static def aString = "Hello, World!"
	static void main(args)
	{
		println("${aString.toUpperCase()} it's a nice day today :)")
	}
}
Advertisements