class PrintAtoZ extends Thread 
{
	private char c = 'A';
	public void run() 
	{
		try 
		{
			while(!Thread.currentThread().isInterrupted() && c<='Z') 
			{
				System.out.print(c + " ");
				c++;
				Thread.sleep(1000);
			}
		}catch (InterruptedException e) 
		{
		}finally 
		{
			System.out.println("\nֹ߳~");
		}
	}
}

public class ThreadInterrupt10_2 
{
	public static void main(String[] args) throws Exception 
	{
		Thread t1 = new PrintAtoZ();
		t1.start();
		Thread.sleep(8000);
		t1.interrupt();
	}
}