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

1  
package tb;
2  
3  
import drjava.util.Tree;
4  
import net.luaos.tb.common.Solution;
5  
6  
public class sol_const extends Solution {
7  
  private String output;
8  
9  
  // create
10  
11  
  public sol_const(String output) {
12  
    this.output = output;
13  
  }
14  
15  
  // compute
16  
17  
  public String compute(String input) {
18  
    return output;
19  
  }
20  
21  
  // persistence
22  
23  
  public sol_const(Tree tree) {
24  
    output = tree.getString(0);
25  
  }
26  
27  
  public Tree toTree() {
28  
    return new Tree(this, output);
29  
  }
30  
}

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: 903 / 271
Referenced in: [show references]