FileReader.Read()
当我认为应该从方法中填充时,它会给出一条消息:“空指针访问:变量 CharacterList 只能在此位置为空” :
public String[] ReadPeopleFile(String[] PeopleList, FileReader PeopleReader){
char CharacterList[];///Soon parsed into a string list, by delimiting and separating into two string arrays,
CharacterList = null;
String ParseString = null;
try {
PeopleReader.read(CharacterList);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
ParseString = CharacterList.toString();
PeopleList = ParseString.split(";");
return PeopleList;
}