Java Eclipse Error "cannot be resolved to a type" : <p>Im trying to model a solar system but am running into an issue. </p>

<pre><code>public class Main 
{

public static void main(String[] args) {

       drawSolarObject sun = new drawSolarObject(5,5,20,"YELLOW");
          s.finishedDrawing();


 public class Solar
{
  public void drawSolarObject(double distance, double angle, double diameter, String col)
</code></pre>

<p>This is giving me an error </p>

<blockquote>
  <p>"drawSolarObject cannot be resolved to a type"</p>
</blockquote>

<p>and im not sure why.</p>

<p>Any help would be greatly appreciated. Thanks.</p>
