Warning: session_start(): open(/var/lib/php/sessions/sess_tj63kgo0rbnpu84cv2i0cqai99, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
Test smallEmptyList vs normal ArrayList [1008626]

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

9
LINES

< > BotCompany Repo | #1008626 // Test smallEmptyList vs normal ArrayList

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (399L/3K/12K).

1  
  !7
2  
3  
p {
4  
  ArrayList a = smallEmptyList(), b = litlist(), c = new ArrayList;
5  
  for i to 20: {
6  
    print(arrayListCapacity(a) + " vs " + arrayListCapacity(b) + " vs " + arrayListCapacity(c));
7  
    a.add(0); b.add(0); c.add(0);
8  
  }
9  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008626
Snippet name: Test smallEmptyList vs normal ArrayList
Eternal ID of this version: #1008626/2
Text MD5: 9f42a120feb7dcdf6b1e81c6b4656d89
Transpilation MD5: 78645451e9f73c110553b913fdf98ade
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-26 02:30:41
Source code size: 239 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 1022 / 1135
Version history: 1 change(s)
Referenced in: [show references]