@@ -0,0 +1,965 @@
+import java.util.ArrayList;%0Aimport java.util.Arrays;%0A%0Apublic class TestRPLObject extends RPLObject %7B%0A%09private int data;%0A%09private static final ArrayList%3CString%3E supportedOpsAL = new ArrayList%3CString%3E(Arrays.asList(new String%5B%5D%7B%22+%22, %22EVAL%22%7D));%0A%09%0A%09TestRPLObject(String init) %7B%0A%09%09super(init);%0A%09%7D%0A%09%0A%09@Override%0A%09public void set(String inputString) %7B%0A%09%09data=Integer.parseInt(inputString);%0A%09%7D%0A%09%0A%09@Override%0A%09public int getType() %7B%0A%09%09return 65535;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return Integer.toString(data);%0A%09%7D%0A%09%0A%09@Override%0A%09public ArrayList%3CString%3E supportedOps() %7B%0A%09%09return supportedOpsAL;%0A%09%7D%0A%09%0A%09@Override%0A%09public void doOp(String op, RPLStack stack) %7B%0A%09%09if (op.equals(%22+%22) && (stack.get(1).getType() == 65535)) %7B%0A%09%09%09data = Integer.parseInt(stack.get(1).toString())+data;%0A%09%09%7D%0A%09%09stack.pop();%0A%09%09stack.pop();%0A%09%09stack.push(this);%0A%09%7D%0A%09%0A%09@Override%0A%09public RPLObject copy() %7B%0A%09%09TestRPLObject other = new TestRPLObject(Integer.toString(data));%0A%09%09return other;%0A%09%7D%0A%7D%0A

Create TestRPLObject.java