package com.kalllx.test;

public class Trader extends Thread
{

    private double investCash;
    private double investCoin;

    private boolean stopFlag;

    private Category category;

    public void execute()
    {
	stopFlag = false;
	this.start();
    }

    public void stopExecute()
    {
	stopFlag = true;
    }

    @Override
    public void run()
    {
	while (!stopFlag)
	{
	    System.out.println(getName() + " is runing!");
	    try
	    {
		Thread.sleep(1000);
	    }
	    catch (InterruptedException e)
	    {
		e.printStackTrace();
	    }
	}
    }

}

@@ -598,14 +598,102 @@
 %0D%0A    %7D%0D
+%0A    %0D%0A    public static void main(String%5B%5D args)%0D%0A    %7B%0D%0A%09System.out.println();%0D%0A    %7D%0D
 %0A%0D%0A%7D%0D%0A

add main for iss53