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   

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: 895 / 267
Referenced in: #1035315 - BCELParameterizedType - parameterized type representation for BCEL (not needed, actually)
#2000453 - Adding links to snippet IDs (IOIOI description)
#2000454 - Adding links to snippet IDs (IOIOI description), overrides #2000453
#3000382 - Answer for ferdie (>> t = 1, f = 0)