Groovy web console

subscribe to the feed Subscribe
to this
site

Hello Java/Groovy

Published 1 month ago by KK with tags Java Groovy
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
// Java
public String getHelloJava() {
    return "Hello Java";
}
System.out.println(getHelloJava());

// Groovy
def getHelloGroovy() {'Hello Groovy'}
println helloGroovy