|
.:Welcome to our
Java tutorials:.
|
|
Visit
our Web design support Forum
|
|
by April Griffin
Nov 4, 2002
Your First Application "Lamers Suck"
|
|
Type EVERYTHING. The Java compiler
is case-sensitive, follow the code exactly.
Lets Begin.
Open Notepad.
Select new Document
Type this exactly as it is
shown here
/**
* The LamersSuckApp class implements an application that
* displays "Lamers Suck!" to the standard output.
*/
public class LamersSuck {
public static void main(String[] args) {
// Display "Lamers Suck!"
System.out.println("Lamers Suck!");
}
}
-
open MS-DOS application.
-
change your current directory to
the directory where LamersSuckApp.java" is listed.
-
You will see your file listed in
the directory.
-
At the DOS prompt type javac
LamersSuckApp.java and hit enter.
-
The compiler will make a Java
bytecode file, LamersSuckApp.class.
-
Now type java LamersSuckApp. Hit
Enter.
-
You will see the words Lamers suck!
in Dos.
-
You just created Java application
In the next lesson we will create a Java applet for
the web
|
Empires Sponsor
.:is
offering Awesome fully loaded Hosting starting at 5$ 500-2056
Megs PHP! CGI! ASP! SSL Secure Server SQL!
|
|