Create a source file called Test.java in your source folder with this code. Compile it using javac Test.java and run it using java Test.
public class Test
{
public static void main(String[] args)
{
System.out.println("Hello");
}
}