title: Java - Cannot resolve symbol of in LocalDate.of
body: <pre><code>import java.time.LocalDate;
  
  public class Main {
      public static void main(String[] args) {
          LocalDate ld = new LocalDate.of(2000,10,20);
      }
  }
  </code></pre>
  
  <p>I'm using IntelliJ IDEA Community Edition 15.0.3. When I try to use LocalDate.of it shows "Cannot resolve symbol 'of'". I tried typing "o" and then enter but it still doesn't work. When trying to compile and run it says: </p>
  
  <pre><code>"Error:(14, 37) java: cannot find symbol 
  symbol:   class of
  location: class java.time.LocalDate"
  </code></pre>