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

4
LINES

< > BotCompany Repo | #1002106 // endsWithOneOf

JavaX fragment (include)

static boolean endsWithOneOf(S s, S... suffixes) {
  for (S x : suffixes) if (s.endsWith(x)) ret true;
  ret false;
}

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: #1002106
Snippet name: endsWithOneOf
Eternal ID of this version: #1002106/1
Text MD5: 07c2fce4bac77260e2509e358e85e259
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-18 17:47:55
Source code size: 120 bytes / 4 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 780 / 1059
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1003577 - eqicOneOf - equalsIgnoreCase, multiple checks
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)