Every class has to go in its own file with the same name as the class and have a .java extension.
Here's what you need to do:
- Rename your file "dstesteq2" to "dstesteq2.java".
- Move your dstesteq1 class from "Main.java" to "dstesteq1.java"
Then all will work. :)