title: Java returns the issue 4 times "class, interface, or enum expected"
body: <p>This is my first post here on stack overflow so hopefully I will be spending much more time here! I'm new to java and I'm currently learning how to program Methods into my code. When compiling this code the following error messages are returned: </p>
  
  <pre><code>java: dir/src/main.java:24: class, interface, or enum expected
  java: dir/src/main.java:26: class, interface, or enum expected
  java: dir/src/main.java:27: class, interface, or enum expected
  java: dir/src/main.java:28: class, interface, or enum expected
  </code></pre>
  
  <p>I have tried changing the public static to just static and just public but this returns either the same error or more errors. I'm trying to understand the logic behind the language. </p>
  
  <p>Here is the source code:</p>
  
  <pre><code>public class task_4 {
      public static void main(String[] args) {
          double cent = 10;
          double fahr = 10;
  
          double centToFahrResult = centToFahr(10);
          double fahrToCentResult = fahrToCent(20);
  
          System.out.println(fahrToCentResult + " " + centToFahrResult);
      }
  
  
          public static double fahrToCent(double fahr) {
              double cent;
              cent = ((fahr - 32) / 1.8);
              return cent;
          }
      }
  
  
          public static double centToFahr(double cent) {
              double fahr;
              fahr = ((cent * 1.8) + 32);
              return fahr;
          }
      }
  
  
  }
  </code></pre>
  
  <p>I'm persevering with the language, so I hope you will be able to help. Thanks for your responses in advance. </p>