I have the following code:
Server.java:
public class Server
{
public Thread InNetwork[] = new Thread[10];
public static void main(String Args[])
{
new Server();
}
public Server()
{
InNetwork[0] = new Thread(new InNetwork());
}
}
InNetwork.java:
public class InNetwork implements Runnable
{
public int iClientH = -1;
public InNetwork()
{
}
public void run()
{
while(true)
{
}
}
}
how can i access for example to variable iClientH from Server class ?