Java sharing same values in a class

后端 未结 4 556
不知归路
不知归路 2021-01-29 13:03

I have a class called Hand and another class to test it. Hand uses global variables and change their values with some methods if in class test I create

4条回答
  •  梦如初夏
    2021-01-29 13:51

    Remove the static modifier which is common for all instance of the class loaded in a particular class loader.

提交回复
热议问题