title: Cannot infer type arguments for ArrayAdapter<>
body: <p>I am still playing around with my calendar, I already nearly managed to integrate the <a href="https://github.com/SundeepK/CompactCalendarView" rel="noreferrer">https://github.com/SundeepK/CompactCalendarView</a> into one of my fragments. There is just one error left, i did some research, others got the problem too for example with ArrayList&lt;>.</p>
  
  <p><strong>Example code:</strong></p>
  
  <pre><code>final ArrayAdapter adapter = new ArrayAdapter&lt;&gt;
              (this,android.R.layout.simple_list_item_1, mutableBookings);
  </code></pre>
  
  <p><strong>The IDE says:</strong></p>
  
  <pre><code>Error:(87, 38) error: cannot infer type arguments for ArrayAdapter&lt;&gt;
  </code></pre>
  
  <p>Note: C:...\Uebersicht.java uses or overrides a deprecated API.
  Note: Recompile with -Xlint:deprecation for details.    </p>
  
  <p><strong>I already tried to recompile, but the result doesn't seem to work</strong></p>
  
  <pre><code>Uebersicht.java:87: error: cannot find symbol
      final ArrayAdapter adapter = 
            new ArrayAdapter&lt;&gt;(this,android.R.layout.simple_list_item_1, mutableBookings);
  
  
  Uebersicht.java:87: error: cannot find symbol 
  final ArrayAdapter adapter = 
            new ArrayAdapter&lt;&gt;(this, android.R.layout.simple_list_item_1, mutableBookings);    
  
  
  Uebersicht.java:87: error: package android.R does not exist
      final ArrayAdapter adapter = 
            new ArrayAdapter&lt;&gt;(this, android.R.layout.simple_list_item_1, mutableBookings);    
  </code></pre>
  
  <p>I can post my full Fragment class too if it's necessary, it must be something with my API and the API the ArrayAdapter is using? Don't forget I am just a beginner, I am trying to do just some stuff all by myself.</p>