// Import all "sub-packages"
import java.lang.Math.*;
Nope, you don't import all subpackages with this, you import all the static methods defined in the java.lang.Math class // Import all "sub-packages"
import java.lang.Math.*;
Nope, you don't import all subpackages with this, you import all the static methods defined in the java.lang.Math class import static java.lang.Math.*;
The current version would just import all the classes defined in package java.lang.Math (which does not exist, but java.math does).