The power of software is the power of thoughts and ideas.
#!/usr/bin/env groovyclass AA { def msg AA(something){ msg = something } }def c = { a, b -> def x =a.newInstance(b) println x.msg}c(AA, "foo")
#!/usr/bin/env groovydef m = java.lang.Stringdef n = m.newInstance("foo")println n