The JavaTM Tutorial

| 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

| Start of Tutorial > Start of Trail > Start of Lesson | Search Feedback Form

Copyright 1995-2004 Sun Microsystems, Inc. All rights reserved.