package thead.start.thread_3;

public class MyThread extends Thread {

    private final Integer integer;

    /**
     * Allocates a new {@code Thread} object. This constructor has the same
     * effect as {@linkplain #Thread(ThreadGroup, Runnable, String) Thread}
     * {@code (null, null, gname)}, where {@code gname} is a newly generated
     * name. Automatically generated names are of the form
     * {@code "Thread-"+}<i>n</i>, where <i>n</i> is an integer.
     */
    public MyThread(Integer integer) {
        this.integer = integer;
    }

    @Override
    public void run() {
        super.run();
        System.out.println(integer);
    }
}
