package mp1practice;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Driver
{
ArrayList<String> arraylist = new ArrayList<String>();
public void GrabData() {
try {
BufferedReader br = new BufferedReader(new FileReader("data/Catalog.txt"));
}catch (FileNotFoundException ex) {
Logger.getLogger(Driver.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
你好,我有一个关于 try 和 catch 的非常基本的问题,我收到一个错误,说未报告的异常。必须被抓住或宣布被扔掉。有任何想法吗?
解决了!!