title: How can I do import java class from another java file where class have access "package"
body: <p>explane me please how can I do import class in case below.
  I have two java file (this is example). First:</p>
  
  <pre><code>package com.mypackage.task
  
  public class TaskF7 {
  
      public static void main(String[] args) {
      }
  }
  
  class Database {
  }
  
  class Employee {
  }
  </code></pre>
  
  <p>Second file:</p>
  
  <pre><code>package com.mypackage.test
  
  import com.mypackage.task.TaskF7.*; // import does not work
  import com.mypackage.task.TaskF7.Employee; // import does not work
  
  public class TestF7 {
  
      public static void main(String[] args) {
          testTask();
      }
  
      // so, my IDEA mark as red &lt;Employee&gt; below
      public static void testTask(List&lt;Employee&gt; expected, List&lt;Employee&gt; actual&gt; ) {
      if (Arrays.deepEquals(expected.toArray(), actual.toArray())) {
          System.out.println("passed");
      } else {
          System.out.println("failed: expected " + expected + ", actual " + actual);
      }
  }
  </code></pre>
  
  <p>class Employee have is package access.</p>
  
  <p>Please note:  in task write: "place all solution classes in one file (not as inner classes). " Not inner classes</p>