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

5
LINES

< > BotCompany Repo | #1031247 // newMultiDimensionalOuterArray

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

Transpiled version (30L) is out of date.

1  
static O newMultiDimensionalOuterArray(Class elementType, int dimensions, int length) {
2  
  int[] dims = new[dimensions];
3  
  dims[0] = length;
4  
  ret Array.newInstance(elementType, dims);
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031247
Snippet name: newMultiDimensionalOuterArray
Eternal ID of this version: #1031247/2
Text MD5: 9993d48dfe94049c4567f3534738b956
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-25 18:26:01
Source code size: 189 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 173 / 253
Version history: 1 change(s)
Referenced in: [show references]