title: read text file and store in hashmap. Then sort in order
body: <p>File is like this:</p>
  
  <pre><code>name1   134.2
  name2   456.7
  name3   265.3
  ...
  ...
  </code></pre>
  
  <p>I read the text file and store in HashMap
  after that I want to sort in order(by the highest value) but the problem is that because I sort the values in String, I cant compare it.
  So..is there a way to put the values of textfile into hashmap in double or integer form?</p>
  
  <pre><code>import java.io.*;
  import java.util.*;
  
  
  class Test 
  {
      public static void main(String[] args) throws FileNotFoundException {
  
  Scanner scanner = new Scanner(new FileReader("score.txt"));
  
          HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  
          while (scanner.hasNextLine()) {
              String[] columns = scanner.nextLine().split("\t\t");
              map.put(columns[0], columns[1]);
          }
  
          System.out.println(map);
      }
  }
  </code></pre>