What's wrong with my Java code about HashMap? : <p>This is the error notification:</p>

<blockquote>
  <p>Library.java:13: error: cannot find symbol
        for (String book : library.KeySet()) {
                                  ^   symbol:   method KeySet()   location: variable library of type HashMap 1 error</p>
</blockquote>

<p>And this is the code:</p>

<pre><code>import java.util.HashMap;

public class Library{
  public Library(){

  }

  public void getFinishedBooks (HashMap&lt;String, Boolean&gt; library){ 
    if(library.size() &lt; 1){
      System.out.println("Bye");   
    }
    else {
      for (String book : library.KeySet()) {
        if (library.get(book) == true) {
          System.out.println(book);
        }
      }
    }

  }

      public static void main(String[] args) {
      HashMap&lt;String,Boolean&gt; myBooks=new HashMap&lt;String, Boolean&gt;();

      myBooks.put("Road Down The Funnel",true);
      myBooks.put("Rat: A Biology",false);
      myBooks.put("TimeIn",true);
      myBooks.put("3D Food Printing",false);


      Library myLibrary = new Library();
      myLibrary.getFinishedBooks(myBooks);


    }
}
</code></pre>

<p> I would like to know what's wrong with this piece of code? especially line 13? Thanks.</p>
