Libraryless. Click here for Pure Java version (29L/1K).
1 | static <A> A[] newObjectArrayOfSameType(A[] a, int n default a.length) { |
2 | ret (A[]) Array.newInstance(a.getClass().getComponentType(), n); |
3 | } |
download show line numbers debug dex old transpilations
Travelled to 28 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, djztyncnmsck, dpqxeycirhfy, ekrmjmnbrukm, gwrvuhgaqvyk, ilgbwaciyqrp, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, lqnftawlhpir, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, skddmizpvtmy, tslmcundralx, tvejysmllsmz, uelavcdoioby, veepotesqksf, vouqrxazstgt, whxojlpjdney, wnsclhtenguj, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1012776 |
Snippet name: | newObjectArrayOfSameType |
Eternal ID of this version: | #1012776/5 |
Text MD5: | 17b32efb16948b262974cc687c7922fa |
Transpilation MD5: | bba863c134b1170419917681e73d97d0 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-05 23:52:43 |
Source code size: | 143 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 523 / 8904 |
Version history: | 4 change(s) |
Referenced in: | [show references] |