title: Calling a class in main
body: <p>Hi I seem to have a problem calling a class in a main. Can somebody point it out?</p>
  
  <p>KilometerTabel.java</p>
  
  <pre><code>package pratikum31d;
  public static double mijlToKilometer() {
      double mijl;
      mijl = 0;
      for (int i = 1; i &lt; 11; i++) {
          mijl = i;
      }
      double kilometer = 1.609 * mijl;
      System.out.println(kilometer + " kilometer" + " dat is " + mijl + " mijl");
      return kilometer;
  }
  </code></pre>
  
  <p>Main.java</p>
  
  <pre><code>package pratikum31d;
  public class Main {
  
      public static void main(String[] args) {
  
          kilometer = mijlToKilometer();
  
      }
  }
  </code></pre>