Unable to run Thread programme
<p>I am writing a simple program to explain thread.</p>

<p>Why does it show me the below errors.
Can anyone help me please.</p>

<pre><code>public class Myth extends Thread {
  public void run() {
    int val=65;
    try {
      for(int i=0;i&lt;26;i++) {
        System.out.println((char)val);
        val++;
        sleep(500);
      }
    }
    catch(InterruptedException e) {
      System.out.println(e);
    }
    // error pops up on this bracket saying class interface or enum expected.
    // error in this line says-- illegal start of expression

    public static void main(String args[]) {
      Myth obj=new Myth();
      obj.start();
    }
  }
}
</code></pre>
