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

5
LINES

< > BotCompany Repo | #1009894 // afterLastSlash

JavaX fragment (include)

static S afterLastSlash(S s) {
  if (s == null) null;
  int i = s.lastIndexOf('/');
  ret i < 0 ? s : substring(s, i+1);
}

Author comment

Began life as a copy of #1007058

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: #1009894
Snippet name: afterLastSlash
Eternal ID of this version: #1009894/1
Text MD5: f803b042cd36ce5e2b8ab4faf46f48f2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-23 22:46:21
Source code size: 126 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 484 / 555
Referenced in: [show references]