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

8
LINES

< > BotCompany Repo | #1024595 // shortArray_maxAbsValue

JavaX fragment (include)

static int shortArray_maxAbsValue(short[] c) {
  int x = Int.MIN_VALUE;
  if (c != null) for (short d : c) {
    int a = abs((int) d);
    if (a > x) x = a;
  }
  ret x;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024595
Snippet name: shortArray_maxAbsValue
Eternal ID of this version: #1024595/1
Text MD5: 053297adc99017125784c7b7badb8c89
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-19 18:05:12
Source code size: 178 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 135 / 177
Referenced in: [show references]