package com.zhihu.stp;

import java.util.ArrayList;

/**
 * Created by hdd on 4/14/15.
 */

public class StpResponse {

    private ArrayList<String> args = new ArrayList<String>();

    public StpResponse() {
    }

    public StpResponse(ArrayList<String> args) {
        this.args = args;
    }

    public void append(String arg) {
        this.args.add(arg);
    }

    public ArrayList<String> getArgs() {
        return this.args;
    }

    public String toString() {
        String str = "";

        for (String elem: this.args) {
            str += elem + " ";
        }

        return str;
    }

}

@@ -430,32 +430,177 @@
 is.args;%0A    %7D%0A%0A
+    public String getArg(int index) %7B%0A        return this.args.get(index);%0A    %7D%0A%0A    public int size() %7B%0A        return this.args.size();%0A    %7D%0A
     public Strin
@@ -664,16 +664,17 @@
 ing elem
+ 
 : this.a

add size func