Java Pass by reference vs Pass by Value Java将String转换为int Java嵌套接口 Java Pass by reference vs Pass by Value public class Tester { public static void main(String[] args) { Point point = new Point(); System.out.println("X: " +point.x + ", Y: " + point.y); updatePoint(point); System.out.println("X: " +point.x + ", Y: " + point.y); } public static void updatePoint(Point point) { point.x = 100; point.y = 100; } } class Point { public int x, y; } Java将String转换为int Java嵌套接口