Warning: session_start(): open(/var/lib/php/sessions/sess_qi8q0d135s5qlj69a7475ioe7a, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
allIndexes [1013390]

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

8
LINES

< > BotCompany Repo | #1013390 // allIndexes

JavaX fragment (include)

1  
static L<Int> allIndexes(S s, char c) {
2  
  new L<Int> l;
3  
  int n = l(s);
4  
  if (s != null) for i to n:
5  
    if (s.charAt(i) == c)
6  
      l.add(i);
7  
  ret l;
8  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013390
Snippet name: allIndexes
Eternal ID of this version: #1013390/1
Text MD5: 13a374750975753d1368f75d0fb12d6e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-04 05:07:39
Source code size: 160 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 865 / 880
Referenced in: [show references]