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

3
LINES

< > BotCompany Repo | #1028511 // parseIntOr

JavaX fragment (include)

1  
static int parseIntOr(S s, int defaultValue) {
2  
  ret empty(s) ? defaultValue : Integer.parseInt(s);
3  
}

Author comment

Began life as a copy of #1012764

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: #1028511
Snippet name: parseIntOr
Eternal ID of this version: #1028511/1
Text MD5: 62dbbd552c8a0e0a7eedfb56243781ec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-23 13:42:44
Source code size: 103 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 232
Referenced in: [show references]