Download Jar. Libraryless. Click here for Pure Java version (2022L/13K).
!7 p { L<S> l = new SynchronizedArrayList; l.add("Hello"); l.add("World"); assertEquals(ll("Hello", "World"), l); assertEquals(ll("Hello"), l.subList(0, 1)); assertEquals(ll("World"), l.subList(0, 2).subList(1, 2)); assertEquals(ll("World"), l.subList(1, 2).subList(0, 1)); print("OK"); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012180 |
| Snippet name: | Test SynchronizedArrayList (OK) |
| Eternal ID of this version: | #1012180/5 |
| Text MD5: | e3e672f89b291a5dfe5a55bd8f64eab0 |
| Transpilation MD5: | b442e1f48e3dacdb41f84ac2ad70e0dd |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-23 14:40:19 |
| Source code size: | 316 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 829 / 1928 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |