rendered paste bodyimport java.net.*;import java.io.*;import java.lang.Thread;public class Server2nonStatic { protected Thread toAGI; protected Socket10001 agithread; protected Socket10002 toClientthread; protected Thread toClient; /* Konstruktor */ public Server2nonStatic() { this.agithread = new Socket10001(); //this.toAGI = new Thread(agithread); //this.toAGI.start(); //this.toClientthread = new Socket10002(); //this.toClient = new Thread(toClientthread); //this.toClient.start(); //System.out.println("Threads gestartet"); } /* Printtestfunktion */ public void sendeCID(String wort) { System.out.println(wort); toClientthread.sendeCID(wort); } public void starteThreads() { agithread = new Socket10001(); toAGI = new Thread(agithread); toAGI.start(); toClientthread = new Socket10002(); toClient = new Thread(toClientthread); toClient.start(); System.out.println("Threads gestartet"); }}