mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2025-03-16 04:10:35 +08:00
a[I] 改为 a[i]
This commit is contained in:
parent
2c052cec8f
commit
f93ea70d70
@ -53,7 +53,7 @@ static List<Integer> intArrayAsList(int[] a) {
|
||||
|
||||
@Override
|
||||
public Integer set(int i, Integer val) {
|
||||
int oldVal = a[I];
|
||||
int oldVal = a[i];
|
||||
a[i] = val; // Auto-unboxing
|
||||
return oldVal; // Autoboxing
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user