ecco il codice... tutto giusto eppure mi da errore...
per favore datemi una mano a capire perchè lo fa.

codice:
import java.lang.*;
import java.awt.*;
public class ciaociao{
	public static void main(String[] args){
		Thread t = Thread.currentThread();
		t.setName("Thread Rasta");
		t.setPriority(10);
		System.out.println("Thread in esagitazione: " + t);
		try{
			for(int n=5; n>0; n--){
				System.out.println("" +n);
				t.sleep(1000);
			}
		}
		catch(InterruptedException e){
			System.out.println("Thread Interrotto");
		}
	}
}
ecco l'errore che mi da in compilazione

C:\Users\Boulayo\Documents\Thread.java:3: <identifier> expected
Public static void main(String[] args)
^
C:\Users\Boulayo\Documents\Thread.java:11: class, interface, or enum expected
Class SimpleRunner implements Runnable
^
C:\Users\Boulayo\Documents\Thread.java:15: class, interface, or enum expected
public void run()
^
C:\Users\Boulayo\Documents\Thread.java:19: class, interface, or enum expected
while (true)
^
C:\Users\Boulayo\Documents\Thread.java:22: class, interface, or enum expected
if ( i == 20)
^
C:\Users\Boulayo\Documents\Thread.java:25: class, interface, or enum expected
}
^
C:\Users\Boulayo\Documents\Thread.java:1: class Threads is public, should be declared in a file named Threads.java
public class Threads
^
C:\Users\Boulayo\Documents\Thread.java:3: cannot find symbol
symbol : class Public
location: class Threads
Public static void main(String[] args)
^
C:\Users\Boulayo\Documents\ciaociao.java:5: cannot access Thread
bad class file: C:\Users\Boulayo\Documents\Thread.java
file does not contain class Thread
Please remove or make sure it appears in the correct subdirectory of the classpath.
Thread t = Thread.currentThread();
^
9 errors

non riesco proprio a spiegarmelo