Are there any thread managers java
<p>I have been making a threadmanager class in java and wanted it so you could input a class and it would run the threadrun method in that class but when I write my code my ide says:cannot find symbol threadrun</p>

<p>Code:</p>

<pre><code>package thenetwork;

/**
 *
 * @author Jman
 */
public class Threadmanager implements Runnable
{
    Class clas;
    Object parameter1 = null;
    public Threadmanager(Class classobj)
    {
        clas = classobj;
    }
    public Threadmanager(Class classobj, Object param1)
    {
        clas = classobj;
        parameter1 = param1;
    }
    public void run() {
        if(parameter1 != null)
        {
            clas.threadrun(parameter1);
        }
        else
        {
            clas.threadrun();
        }
    }

}
</code></pre>

<p>If this is not clear comment it and I will edit my post
Edit:I need this class to be able to run multiple types of other classes</p>
