Read
this link to understand formatting tags and other important things about this forum and the forum culture in general. Not that hard.
Why is the compiler looking for a source file with a main method called Test3.java? Was that the name of your original source file before you started deleting things? There's something wrong with your project setup. What is the name of the file that contains the code you've posted? Are you compiling from the command line or using an IDE? If from the command line, show us the commands you're typing (just copy and paste the command line session). If using an IDE, which IDE? Are you using Windows or Linux or something else?