Having programmed in Groovy quite a bit I know classes in certain packages are automatically imported. What's the scoop for 1) Java and 2) Groovy?
Is there a definitive list of ones you don't need to specify an import for for each of these languages?
解决方案
In Java, the only package imported by default is
java.lang.*
This is where objects such as String and Object reside.
According to here, the list of packages for groovy are
java.io.*
java.lang.*
java.math.BigDecimal
java.math.BigInteger
java.net.*
java.util.*
groovy.lang.*
groovy.util.*