摘要:
if you use the {...} array form in anything but an initializer. WRONGprivate int[] foo() { int[] x = new Array[3]; x = {1,2,3}; return x; } RIGHTprivate int[] foo() { int[] x = {1,2,3}; return x; } ps:When using the initializers, an array must be declared, constructed and explicitly init... 阅读全文