how to keep data stored into a hashtable - java
问题 I have a Socket server waiting for the clients send messages in a json format. I do not need to store the data into database, but for now, I would like to keep them in a hashtable. So, when the client sent a message the server will add it to the hashtable without losing the previous messages. Here is the declaration of my hashtable: private static Hashtable<Integer,String> table = new Hashtable<Integer,String>(); Here is the method that is called a message reach the server: private void