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

17
LINES

< > BotCompany Repo | #1002030 // Load English word list & print a few words

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

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: 651 / 713
Referenced in: [show references]