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).

sS charSequenceToStringByChar(CharSequence s) {
  if (s == null) null;
  int n = s.length();
  new StringBuilder buf;
  for i to n:
    buf.append(s.charAt(i));
  ret str(buf);
}

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: 241 / 328
Referenced in: [show references]