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

10
LINES

< > BotCompany Repo | #1028446 // containsStars

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

Libraryless. Click here for Pure Java version (2751L/17K).

1  
sbool containsStars(S s) {
2  
  ret containsStars(javaTok_cached(s));
3  
}
4  
5  
sbool containsStars(LS tok) {
6  
  for (int i = 1; i < l(tok); i += 2)
7  
    if (eq(tok.get(i), "*"))
8  
      true;
9  
  false;
10  
}

Author comment

Began life as a copy of #1028373

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028446
Snippet name: containsStars
Eternal ID of this version: #1028446/1
Text MD5: 0f21dc34766beeed87a28164f63346d4
Transpilation MD5: 4f79d273405bc4a7ec04fefe0fcd1e20
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-20 18:10:07
Source code size: 198 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 111 / 171
Referenced in: [show references]