package tb; import drjava.util.Tree; import net.luaos.tb.common.Solution; public class sol_const extends Solution { private String output; // create public sol_const(String output) { this.output = output; } // compute public String compute(String input) { return output; } // persistence public sol_const(Tree tree) { output = tree.getString(0); } public Tree toTree() { return new Tree(this, output); } }