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

3
LINES

< > BotCompany Repo | #1036217 // addPlusIfStartsWithDigit - use addPlusIfPositive instead

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

Libraryless. Click here for Pure Java version (9261L/51K).

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

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036217
Snippet name: addPlusIfStartsWithDigit - use addPlusIfPositive instead
Eternal ID of this version: #1036217/2
Text MD5: 3821c1bbc062fc7a7a72005d2fd9fbfc
Transpilation MD5: c2cd3a5b98bf58fbb4ead842f337ff4b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-25 22:07:06
Source code size: 78 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 188
Version history: 1 change(s)
Referenced in: [show references]