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

8
LINES

< > BotCompany Repo | #1029259 // charSequenceToStringByChar

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

Libraryless. Click here for Pure Java version (42L/1K).

1  
sS charSequenceToStringByChar(CharSequence s) {
2  
  if (s == null) null;
3  
  int n = s.length();
4  
  new StringBuilder buf;
5  
  for i to n:
6  
    buf.append(s.charAt(i));
7  
  ret str(buf);
8  
}

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: #1029259
Snippet name: charSequenceToStringByChar
Eternal ID of this version: #1029259/1
Text MD5: 63ffb7de9562eba0a91d9760830838d7
Transpilation MD5: 6cbbf1677e41b73636d63c546a0af257
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-27 18:27:55
Source code size: 185 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 157 / 227
Referenced in: [show references]