The JavaTM Tutorial
Previous Page Lesson Contents Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Trail: Learning the Java Language
Lesson: Language Basics

Running the Sort Program

Before you can run the SortDemo program, you need to compile it. Here's how:
UNIX
% javac SortDemo.java
DOS shell (Windows 95/NT)
C:\> javac SortDemo.java
The following instructions show you how to run the SortDemo program and display the results.
UNIX
% java SortDemo
3 8 12 32 87 127 589 622 1076 2000
DOS shell (Windows 95/NT)
C:\> java SortDemo
3 8 12 32 87 127 589 622 1076 2000

Previous Page Lesson Contents Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form