title: The "import java.util.function cannot be resolved" error
body: <p><a href="http://docs.oracle.com/javase/tutorial/java/javaOO/examples/RosterTest.java" rel="noreferrer">I'm trying to run this practice script</a> from the <a href="http://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html" rel="noreferrer">standard Oracle Java tutorials</a>.</p>
  
  <p>This seems to be a common error and I've used SO resources to make attempts to fix this. I've tried Cleaning the project, refreshing the project, switch workplace and switch back, removed and re-added the JRE7.</p>
  
  <p>I don't know what else to do.</p>
  
  <pre><code>import java.util.List;
  import java.util.function.Consumer; -----&gt; cannot be resolved ERROR
  import java.util.function.Function; -----&gt; cannot be resolved ERROR
  import java.util.Comparator;
  import java.util.function.Predicate; -----&gt; cannot be resolved ERROR
  import java.lang.Iterable;
  import java.time.chrono.IsoChronology; -----&gt; cannot be resolved ERROR
  
  public class LambdaExpressions_RosterTest {
  
      /**
       * @param args
       */
      public static void main(String[] args) {
          // TODO Auto-generated method stub
  
      }
  
      }
  </code></pre>