Syntax error on token "void", @ expected for entry method declaration
<p>I'm trying to do an assignment for <code>Turtle</code> in <code>Dr. Java</code>.</p>

<p>I'm getting this compilation <strong>error</strong>:</p>

<blockquote>
  <p>Syntax error on token "void", @ expected</p>
</blockquote>

<p>for this line that I understood as "that line you just gotta write at the top":</p>

<pre><code>public static void main(String[] args)
</code></pre>

<p><strong>13 errors</strong> came up for this.</p>

<p>After some internet search, I added a <code>public class</code> code line before it:</p>

<pre><code>public class Turtle {
</code></pre>

<p>Errors magically reduced to <strong>2 errors</strong>. But one of those <strong>errors</strong> is:</p>

<blockquote>
  <p>The type Turtle is already defined</p>
</blockquote>

<p>Does anyone know what's going on with this error?</p>

<p><strong>Code:</strong></p>

<pre><code>import java.awt.Color;
public class Turtle {
   public static void main(String[] args)
   {
       World myWorld = new World ();
       Turtle turt1 = new Turtle(20, 300, myWorld);

       turt1.drawHello();
   }
}
</code></pre>

<p>Edit:
1. Yes I am adding my code to an existing class called Turtle.java according to the assignment instructions.
2. My code is added to the section in <strong>Turtle.java</strong> that replaces the original code of:</p>

<pre><code>World earth = new World();
    Turtle t1 = new Turtle(earth);
    t1.forward();
</code></pre>

<p>My code is basically moving the turtle around to draw lines to make up a 5 lettered word.</p>

<ol start="3">
<li>I thought the error log was the error I posted on top? I got it from DrJava's Compiler output panel. Do you have instructions on how I can get to the error log?</li>
</ol>