I am using Eclipse and have not used Java for sometime. However, I can compile my code on the command-line just fine and generate the necessary .class files. In
.class
Make sure you are not using default package. Create a new package with name 'devices' and copy this code inside it and use.