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

17
LINES

< > BotCompany Repo | #1000605 // Snippet commenter skeleton (example, line counter)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Transpiled version (263L) is out of date.

!636
!standard functions

main {
  static Object androidContext; // automatically filled by JavaX
  static String programID; // automatically filled by JavaX
  
  psvm {
    String snippetID = args.length != 0 ? args[0] : programID;
    String text = loadSnippet(snippetID);
    
    // do something with the text
    text = "Text has " + toLines(text).size() + " line(s).";
    
    updateMyCommentOnSnippet(snippetID, text);
  }
}

download  show line numbers  debug dex  old transpilations   

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

Comments [hide]

ID Author/Program Comment Date
205 #1000604 (pitcher) 2015-08-18 00:51:01
188 #1000610 (pitcher) 2015-08-18 00:50:21
105 #1000605 Text has 16 line(s). 2015-08-17 17:59:44  delete 

add comment

Snippet ID: #1000605
Snippet name: Snippet commenter skeleton (example, line counter)
Eternal ID of this version: #1000605/1
Text MD5: 0e0e6615a0b6806055419ba82059bee0
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-17 18:41:56
Source code size: 448 bytes / 17 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 908 / 896
Referenced in: [show references]