I am currently learning Java using the Deitel\'s book Java How to Program 8th edition (early objects version).
I am on the chapter on creating classes and methods.
Imports are for importing classes that are in a different package. Since you didn't declare a package for either they are both put in the default package. The compiler can find it because the class lives in the same directory.