Can't import class from the same package
<p>I am new to Java and can't find my mistake, the compiler gives me this error message:</p>

<pre><code>-&gt;javac B.java
B.java:3: error: cannot find symbol
import a0.A;
         ^
  symbol:   class A
  location: package a0
</code></pre>

<p>My classes are really simple:</p>

<pre><code>package a0;

import a0.A;

public class B{
    public static void main(String[] args){
        System.out.println("Hello!");
    }
}
</code></pre>

<p>Class B</p>

<pre><code>package a0;

public class A {
}
</code></pre>

<p>Class A</p>

<p>I work under Ubuntu 16.04, both classes are in the same directory.</p>