Chapter 3. Quick Start

Table of Contents

HelloWorld_1
HelloWorld_2
HelloWorld_3
HelloWorld_4
HelloWorld_5
HelloWorld_6
HelloWorld_7
HelloWorld_8
HelloWorld_Simple

If you're the type of developer who likes to take a quick look at example code and tweak it for your needs, this chapter should get you up and running with JSAP very quickly. We'll start with a simple example and gradually build upon it in order to demonstrate some of the basic features of JSAP. You'll have to read further for some of the more interesting features, or you can dive straight into the javadocs.

HelloWorld_1

Everyone else begins with a "Hello, World!" program, so we will, too.

public class Manual_HelloWorld_1 {

    public static void main(String[] args){
        System.out.println("Hello, World!");
    }
}
[mlamb@morbo]$ java com.martiansoftware.jsap.examples.Manual_HelloWorld_1
Hello, World!

Not only is this completely uninteresting, but it doesn't use JSAP. Let's tweak it a little.