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

3
LINES

< > BotCompany Repo | #1003870 // makeArray - make array of specific type

JavaX fragment (include)

static <A> A[] nuLike makeArray(Class<A> type, int n) {
  ret (A[]) Array.newInstance(type, n);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1003870
Snippet name: makeArray - make array of specific type
Eternal ID of this version: #1003870/2
Text MD5: 0c30ceb00474ba9a6228cc3f71cd0516
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-06 17:10:26
Source code size: 99 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 465 / 582
Version history: 1 change(s)
Referenced in: [show references]