Changed Exception to IOException
This commit is contained in:
parent
3175eab2e0
commit
757387b46c
@ -5,7 +5,7 @@ import java.util.*;
|
||||
|
||||
public class fileProcessor {
|
||||
|
||||
public static String readFirstLine(String thisFile) throws Exception {
|
||||
public static String readFirstLine(String thisFile) throws IOException {
|
||||
File file = new File(thisFile);
|
||||
if (file.exists()) {
|
||||
FileReader fr = new FileReader(file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user