Why don't we use the JAVA import string?
I asked myself why we didn't import a package while we use String functions such as toUpperCase()? How do they get in there without importing packages?
Java tutorials > Learning the Java Language > Packages:
For convenience, the Java compiler automatically imports three entire packages for each source file: (1) the package with no name, (2) the java.lang package, and (3) the current package (the package for the current file)...
Class java import String is in java.lang package, hence it is imported automatically per above rule.