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

3
LINES

< > BotCompany Repo | #1021603 // nextToLastChar

JavaX fragment (include)

static char nextToLastChar(S s) {
  ret l(s) < 2 ? '\0' : s.charAt(l(s)-2);
}

Author comment

Began life as a copy of #1010742

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021603
Snippet name: nextToLastChar
Eternal ID of this version: #1021603/1
Text MD5: 51bb97f9637026c37d634ef0a900108c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-21 22:27:44
Source code size: 79 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 275 / 285
Referenced in: [show references]