★★ Java の宿題ここで答えます Part 64 ★★
at TECH
540:デフォルトの名無しさん
08/02/06 23:02:26
>>530
void readData() {
BufferedReader reader = null;
try {
reader = new BufferedReader(new FileReader(csvFile));
String line = "";
while((line = reader.readLine()) != null) {
dataLength++;
data.add(line);
}
} catch(FileNotFoundException e) {
e.printStackTrace();
} catch(IOException e) {
e.printStackTrace();
}
}
File getCsvFile() {
return csvFile;
}
void setCsvFile(File _csvFile) {
csvFile = _csvFile;
}
int getDataLength() {
return dataLength;
}
String getLine(int i) {
return (String)data.get(i);
}
}
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
4341日前に更新/380 KB
担当:undef