30
LINES
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
- #1034288 is a suggested answer to this [ubataecj]
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Image recognition results
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: |
1059 / 322 |
Referenced in: |
[show references] |