ArrayList storeList = new ArrayList<USCrimeClass>;
FileInputStream fstream = new FileInputStream(inFile);
try ( // Get the object of DataInputStream
DataInputStream in = new DataInputStream(fstream)) {
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine;
// Read File Line By Line
strLine = br.readLine();// skip first line
while ((strLine = br.readLine()) != null) {
// lines
storeList.add(storeToCrimeObjin(strLine));
}
// Close the input stream
2条答案
按热度按时间jutyujz01#
new ArrayList<USCrimeClass>;
中有缺失(),它应该是:nwwlzxa72#
菱形运算符
<>
现在位于语句的后半部分。除此之外,我想说@gawi是对的。