I am a beginner learning Java. Now I have a question, could someone help me solve it? :)
I have a class named Server which maintains a hashmap variable, and I it has two methods named send() and receive(). I want the two methods to run concurrently. The send() method will use the hashmap variable and the receive() method will change the hashmap variable.
Please help work it out. Thanks a lot!