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

7
LINES

< > BotCompany Repo | #1032765 // containsAnyChar

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3833L/22K).

sbool containsAnyChar(S s, S chars) {
  int n = l(s);
  for i to n:
    if (contains(chars, s.charAt(i)))
      true;
  false;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032765
Snippet name: containsAnyChar
Eternal ID of this version: #1032765/1
Text MD5: 64e985e16c9c6a636a60709625accd5c
Transpilation MD5: 9affff9b10bd78df9e90942a2c157a5d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-04 17:36:42
Source code size: 134 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 129 / 187
Referenced in: [show references]