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

3
LINES

< > BotCompany Repo | #1035620 // newShortArrayOrNull

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

Libraryless. Click here for Pure Java version (33L/1K).

static short[] newShortArrayOrNull(int n) {
  ret n <= 0 ? null : new short[n];
}

Author comment

Began life as a copy of #1035577

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035620
Snippet name: newShortArrayOrNull
Eternal ID of this version: #1035620/1
Text MD5: d94aab978ca04890746682861afc41ea
Transpilation MD5: a67b9cce639507e8c84ebb9a3d6f227f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-26 22:59:06
Source code size: 83 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 115 / 156
Referenced in: [show references]