em đọc ma trận số nguyên từ tập tin khi chạy nó báo lỗi java.lang.NumberFormatException..em đã coi kĩ mà không biết sai ở đâu..mong các pro giúp đỡ
đây là hàm đọc tập tin của em..nó báo lỗi chỗ a[i][j] = Integer.ParseInt(item[j])
Mã:
public void read() throws FileNotFoundException{
        FileInputStream fi = new FileInputStream("D:\
etbean\\matran.txt");
        Scanner input = new Scanner(fi,"UTF-8");
        String line;
        while(input.hasNextLine()){
            line = input.nextLine().trim();
            if(line.trim()!=""){
                for(i = 0;i<5;i++){
                    String item[] = line.split("\t");
                    for(int j = 0;j<5;j++)
                        a[i][j] = Integer.parseInt(item[j]);
                }
            }
        }
        input.close();
    }
tập tin matran.txt
Mã:
3	13	5	17	9
14	5	8	7	20 
15	12	18	16	19
2	3	5	8	10
4	7	6	25	27