1 | sbool allCharactersAre(S s, char c) { |
2 | int n = l(s); |
3 | for i to n: |
4 | if (s.charAt(i) != c) false; |
5 | true; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021531 |
Snippet name: | allCharactersAre |
Eternal ID of this version: | #1021531/1 |
Text MD5: | ce7d28f13b1a66839524fb87ea72b199 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-17 14:52:05 |
Source code size: | 115 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 319 / 335 |
Referenced in: | [show references] |