Groovy web console

subscribe to the feed Subscribe
to this
site
Test (via #groovywebconsole)
tweet this snippet Tweet
this
script

Test

Published 5 months ago by peterfu
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class Test {

   public static void print (Object o) {
      System.out.println("Object: " + o);
   }

   public static void print (String s) {
      System.out.println("String: " + s);
   }

   public static void main(String[] args) {
      print(null);
   }
}