Libraryless. Click here for Pure Java version (650L/6K/18K).
1 | !752 |
2 | |
3 | p {
|
4 | File zip = loadLibrary("#1002028"); // words.zip
|
5 | printList(listZipFile(zip)); // will print "words.txt" |
6 | S wordsText = loadTextFileFromZipFile(zip, "words.txt"); |
7 | L<S> words = toLines(wordsText); |
8 | wordsText = null; |
9 | print(l(words) + " words loaded!"); |
10 | print("Here are some random ones:");
|
11 | print(); |
12 | for (int i = 0; i < 10; i++) {
|
13 | int j = random(l(words)); |
14 | print(" " + words.get(j));
|
15 | } |
16 | gcAndPrintMemoryInfo(); |
17 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002030 |
| Snippet name: | Load English word list & print a few words |
| Eternal ID of this version: | #1002030/1 |
| Text MD5: | 5a042bf41941d0d215317bf5168fdb8c |
| Transpilation MD5: | 9e8fb82ed107a3dfdbbe30e2412164f5 |
| Author: | stefan |
| Category: | |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-12-14 20:46:34 |
| Source code size: | 462 bytes / 17 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 871 / 977 |
| Referenced in: | [show references] |