You shouldn"t be creating a new file but a new class. If you tell the IDE you want a new class (HelloWorld in this case) it will create the correct souce file - HelloWorld.java - and put the correct...