Whenever I try to compile a program. It shows this

javac sam.java
javac: file not found: sam.java
Usage: javac
use -help for a list of possible options