Nit*_*yal 5 java arrays final
我没有用例,但出于好奇,有没有办法在数组中最终进行单独引用?
final Integer[] intArray = new Integer[10]; // doesn't make individual references final final intArray[0] = Integer.valueOf(1); // something like this is not allowed
归档时间:
10 年,6 月 前
查看次数:
45 次
最近记录: