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

4
LINES

< > BotCompany Repo | #1003766 // onlyUntilSpace

JavaX fragment (include)

1  
static S onlyUntilSpace(S s) {
2  
  int i = s.indexOf(' ');
3  
  ret i >= 0 ? s.substring(0, i) : s;
4  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003766
Snippet name: onlyUntilSpace
Eternal ID of this version: #1003766/1
Text MD5: 017fca9688eabc68ef3d1fd10262d22f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-26 22:44:10
Source code size: 99 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 525 / 513
Referenced in: [show references]