Null pointer access: The variable number can only be null at this location。 错误解决

int[] number = null;
这句不对,数组必须初始化才行,比如 int[] number = new int[3];
别的类似。
久不写Java,手生了。
posted @ 2015-11-19 21:49  StevenLuke  阅读(444)  评论(0编辑  收藏  举报