Hey there.
If you're just starting to learn Java, then I suggest you read this tutorial. You probably write all of your Java code inside an IDE(Eclipse, IntelliJ, NetBeans, etc.) and also run that code inside the IDE. The thing is, you're gonna want to acquaint yourself with compiling and...