Note that you cannot import methods. Import statements tell the compiler where to find a class or interface. Also, all classes in the java.lang package are automatically imported. So, you don't have to explicitly import them. So, to use a static utility method of the Math class, try Math.someMethod().