Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

30
LINES

< > BotCompany Repo | #12 // tb/sol_const.java

Source file

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);
  }
}

download  show line numbers   

Relations

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 454 [visualize]

Snippet ID: #12
Snippet name: tb/sol_const.java
Eternal ID of this version: #12/1
Text MD5: 71266953a0c9ac2f3751ea1b90d0b4ff
Author: stefan
Category:
Type: Source file
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified:
Source code size: 454 bytes / 30 lines
Pitched / IR pitched: No / No
Views / Downloads: 965 / 293
Referenced in: [show references]