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

6
LINES

< > BotCompany Repo | #1012406 // isRepetitionOfCharacter (minimum 1)

JavaX fragment (include)

1  
static bool isRepetitionOfCharacter(S s, char c) {
2  
  if (empty(s)) false;
3  
  for i over s:
4  
    if (s.charAt(i) != c) false;
5  
  true;
6  
}

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: #1012406
Snippet name: isRepetitionOfCharacter (minimum 1)
Eternal ID of this version: #1012406/1
Text MD5: 2300b5e55f73505f5fe3b057ccf97a1a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-02 11:18:22
Source code size: 137 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 433 / 403
Referenced in: [show references]