title: Make a New Double from Hashmap Values
body: <p>I'm getting the following error :</p>
  
  <blockquote>
    <p>cannot find symbol, symbol: variable values, locations variable planet of type Map&lt; String,Double > </p>
  </blockquote>
  
  <p>on this line <code>Double[] Total = new Double [planet.values];</code></p>
  
  <p>Here is my code :</p>
  
  <pre><code>public static void main(String[] args) {
  
      Map&lt;String, Double&gt; planet = new HashMap();
  
      Double Weight = 205.00;
  
      planet.put("Earth", 1.00);
      planet.put("Moon", .378);
      planet.put("Mercury", .166);
      planet.put("Jupiter", 2.364);
      planet.put("Venus", .907);
      planet.put("Uranus", .889);
  
      System.out.println("Amount of gravity on each planet: " + planet + "\n");  
  
  
      Double[] Total = new Double [planet.values];
      System.out.println(planet.values());
  </code></pre>