title: Eclipse says "selection does not contain a main type" when there's no coding errror
body: <p>When I was done with my java coding after checking there's no errors and ran it, eclipse told me that "selection does not contain a main type". I have gone through checking <code>public static void main(String[] args){</code> and it is correct. I have also searched for some similar problems others encountered, and it seems that I did not find any solutions which could fit in mine. Hope you guys can help my figure it out, will greatly appreciate if any! Here's my coding as follow:</p>
  
  <pre><code>import java.util.Random;
  
  class Shape {
  protected Color color;
  protected Point point;
  
  public Shape (Color color, Point point)
  { this.color = color;
  this.point = point;
  }
  public String Type(){return " ";}
  }
  
  class Rectangle extends Shape{
  public Rectangle(Color color, Point point){
      super(color, point);}
  
  public String Type(){return "Rectangle";}
  }
  class Triangle extends Shape{
      public Triangle(Color color, Point point){
          super(color, point);
      }
      public String Type(){return "Triangle";}
  }
  class Eclipse extends Shape{
      public Eclipse(Color color, Point point){
          super(color, point);}
      public String Type(){return "Eclipse";}
          }
  public class ShapeTest{
      public static void main(String[] args){
          Color color = new Color(50, 100, 150);
          Point point = new Point(50,50);
          Shape[] theShape = {
                  new Rectangle(color, point),
                  new Triangle(color, point),
                  new Eclipse(color, point)
          };
          Shape shapechoice;
          Random select = new Random();
          for (int i = 0; i &lt; 10; i ++)
          {
              shapechoice = theShape[select.nextInt(theShape.length)];
              System.out.println("The " + (i + 1) + "type you chose is: " +       shapechoice.Type());;
          }
      }
  }
  </code></pre>