摘要: 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... 阅读全文
posted @ 2010-06-19 16:39 0707 阅读(3441) 评论(0) 推荐(0) 编辑