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

13
LINES

< > BotCompany Repo | #1032411 // shortMax

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

Libraryless. Compilation Failed (107L/1K).

1  
static short shortMax(Iterable<Short> l) {
2  
  int max = Short.MIN_VALUE;
3  
  fOr (short d : l)
4  
    max = Math.max(max, d);
5  
  ret (short) max;
6  
}
7  
8  
static short shortMax(short[] l) {
9  
  int max = Short.MIN_VALUE;
10  
  fOr (short d : l)
11  
    max = Math.max(max, d);
12  
  ret (short) max;
13  
}

Author comment

Began life as a copy of #1032410

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032411
Snippet name: shortMax
Eternal ID of this version: #1032411/3
Text MD5: 582de824585459172aaece1d4a566cfb
Transpilation MD5: cdc7febb86a24a2331560370eeff2906
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-03 02:13:39
Source code size: 286 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 142 / 212
Version history: 2 change(s)
Referenced in: [show references]