title: Collections sort - Cannot find symbol
body: <p>i have this code working perfectly fine on netbeans 8, but i can't seem to compile it with javac. It gives 2 errors:</p>
  
  <p><img src="https://i.stack.imgur.com/8xwoU.png" alt="enter image description here"></p>
  
  <p>I have the following imports:</p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStreamReader;
  import java.util.ArrayList;
  import java.util.Comparator;
  import java.util.List;
  </code></pre>
  
  <p>EDIT: Forgot to add -> Ponto and Percursos are inner classes. ListaPercursos and ListaPontos are ArrayList of those classes.</p>