public class Welcome {
public static void main( String [] args ) {
System.out.println("Welcome to CSC211");
System.out.print("Good ");
System.out.print("Luck and ....\n");
System.out.println("Have a great quarter");
} // end main
}// end Welcome class
cd .. takes you back one directory.
cd \ takes you to the root.
cd csc211 changes to directory csc211
dir /p displays the names of sub directories / files in the current directory.
javac Welcome.javajavac is the name of the compiler. If all goes well, you should see a file named Welcome.class ( type
dir /p ). This is called the bytecode file.
If this does not compile, check your syntax. If the syntax is ok and you see a message similar to
bad command or javac is not recognized
You will have to set your path variable.
java Welcome