not able to declare simple pointer in Java 15

后端 未结 0 1636
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-10 18:50

public class Main {

public static void main(String[] args) {
    Point point1 = new Point(x:1, y:1);
    Point point2 = point1;
    point1.x = 2;
    System.o         


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