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

3
LINES

< > BotCompany Repo | #1005400 // isStringStartingWith - check if object is a string and starts with x

JavaX fragment (include)

static bool isStringStartingWith(O o, S prefix) {
  ret o instanceof S && ((S) o).startsWith(prefix);
}

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: #1005400
Snippet name: isStringStartingWith - check if object is a string and starts with x
Eternal ID of this version: #1005400/1
Text MD5: fdc3b3d8fb63dc9839a0e766979cac67
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-14 15:26:06
Source code size: 105 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 555 / 578
Referenced in: [show references]