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

3
LINES

< > BotCompany Repo | #1032017 // appendColonIfNempty

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

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

1  
sS appendColonIfNempty(S s) {
2  
  ret empty(s) ? "" : s + ": ";
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032017
Snippet name: appendColonIfNempty
Eternal ID of this version: #1032017/1
Text MD5: b49c551ee4d6e6973be28e746a9fb2bc
Transpilation MD5: 0a4fa91665bb1ecc6c3f60a083bd580a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-11 02:21:59
Source code size: 65 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 199 / 294
Referenced in: [show references]