Design Pattern Command for Switch java
问题 I want to use design pattern for this switch - case code. I tried to use the command pattern, but I could not understand how(I was programming only 2 for months) I wrote this program to learn how to better program. My code: public class Server { private static final String READ_NEW_MESSAGES = "read new mes"; private static final String SEND_PRIVATE_MESSAGES = "send mes"; private static final String JOIN_CHAT = "find chat"; private static final String CREATE_CHAT = "chating"; private static