Closed psykiatris closed 5 years ago
In the code, if I use a global Mediator object named m, it crashes with an error.
If I set a local variable of type Mediate, it runs ok.
Is it because in Mediate, it’s a static and I invoke it in a non-static?
I attempted to merge what I learned from one book with Oracle’s tutorial example.
Feel free to look at the ListenThread class in the run method.
Closing this since I am rewriting server/client functions.
In the code, if I use a global Mediator object named m, it crashes with an error.
If I set a local variable of type Mediate, it runs ok.
Is it because in Mediate, it’s a static and I invoke it in a non-static?
I attempted to merge what I learned from one book with Oracle’s tutorial example.
Feel free to look at the ListenThread class in the run method.