title: How to find longest words from a text file with any characters?
body: <p>My task is to simply retrieve the longest word from a text document.
  How do I adjust this to work on any language, such as Russian or Arabic.
  Words containing the digits 0-9 are ignored  and any punctuation in a word is stripped before storage</p>
  
  <p>ex. 53-Ð»ÐµÑ‚Ð½Ð¸Ð¹ Ð›ÐµÐ½Ð¸Ð½?</p>
  
  <p>ex, Ø§Ù„Ø¹ÙŽØ§Ù…ÙŽÙ‘Ø©ÙŽ Ø¹ÙŽÙ„ÙŽÙ‰ Ø§Ù„Ù…ÙŽÙ</p>
  
  <p>my code:</p>
  
  <pre><code>public Collection&lt;String&gt; getLongestWords() {
  
      String longestWord = "";
      String current;
      Scanner scan = new Scanner(new File("file.txt"));
  
  
      while (scan.hasNext()) {
          current = scan.next();
          if (current.length() &gt; longestWord.length()) {
              longestWord = current;
  
          }
          return longestWord;
  
      }
  
  }
  </code></pre>
  
  <p>Note: I have never implemented unicode before :/</p>