Monthly Archives: 6月 2017

Java pass int by reference

最近写Android App时候发现Java的Integer是不能传引用的: public static void invokeModify(Integer res){ System.out.println(“invokeModify:”+res.intValue()); Integer res1 = new Integer(100); res = res1; System.out.println(“invokeModify:”+res.intValue()… Read More »