title: No main type error in java
body: <p>This is the source code:</p>
  
  <pre><code>package feetToInches2;
  
  public class Feet2Inches {
      private double feetToInches_(double feet) {
          return 12* feet;    
      } 
  
      private int max(int val1 int val2) {
          if (val1 &gt; val2) {
          } else {
              return (val2);
          }
          return 0;
      }
  }
  </code></pre>
  
  <p>When I try to run it, it says "Selection does not contain main type". I have asked my professor and he says sometimes eclipse does that and all I need to do is restart my computer. Is that true?</p>