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

18
LINES

< > BotCompany Repo | #1000563 // Parse "My actions"

JavaX source code - run with: x30.jar

1  
!636
2  
!standard functions
3  
!quicknew
4  
5  
main {
6  
  psvm {
7  
    // example line: 2015-08-12 05:29:10 - http://tinybrain.de:8080/tb/my-actions.php
8  
    String src = loadSnippet("#2000518");
9  
    new List<String> actions;
10  
    for (String line : toLines(src)) {
11  
      int i = line.indexOf(" - http:");
12  
      if (i >= 0)
13  
        actions.add(line.substring(i+3).trim());
14  
    }
15  
    
16  
    System.out.println(actions);
17  
  }
18  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1000563
Snippet name: Parse "My actions"
Eternal ID of this version: #1000563/1
Text MD5: 6dfbcaa2ab81ddd2bbdc9ccf294a98f8
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-14 17:50:17
Source code size: 422 bytes / 18 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 541 / 457
Referenced in: [show references]