Libraryless. Click here for Pure Java version (650L/6K/18K).
!752 p { File zip = loadLibrary("#1002028"); // words.zip printList(listZipFile(zip)); // will print "words.txt" S wordsText = loadTextFileFromZipFile(zip, "words.txt"); L<S> words = toLines(wordsText); wordsText = null; print(l(words) + " words loaded!"); print("Here are some random ones:"); print(); for (int i = 0; i < 10; i++) { int j = random(l(words)); print(" " + words.get(j)); } gcAndPrintMemoryInfo(); }
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: | 652 / 714 |
Referenced in: | #1002036 - Huge English Dictionary Bot #3000190 - Answer for stefanreich(>> t 20 questions) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |