summaryrefslogtreecommitdiffstats
path: root/tests/debugger/Arguments.java
blob: 3cb6c3ff2baef78950f7ae4f4e2aedf594ae50d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//package debugger;

public class Arguments {
    String[] args;

    public static void main(String[] args) {
        new Arguments(args).go();
    }

    Arguments(String[] args) {
        this.args = args;
    }

    void go () {
        int i = -1;
        String s = "";
        while ((++i) < args.length) {
            s = args[i];
            System.out.println("[" + i + "] " + s);
        }
    }
}