Pass by reference - “hack” in java not working anymore?

后端 未结 0 1018
無奈伤痛
無奈伤痛 2020-11-29 07:31

I tried to simulate pass-by-ref in java by passing an array of size 1 that contains the value to a corresponding method.

The source:

    public static          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题