Когда я вызываю эту функцию. NumberFormatException произошло ,, как я могу это исправить .. помогите мне, пожалуйстаnumberformatexception в java
public void read() throws FileNotFoundException, IOException, ClassNotFoundException, ParseException {
FileInputStream fis = null;
ObjectInputStream in = null;
File f = new File("Employee.dat");
if (f.exists()) {
fis = new FileInputStream("Employee.dat");
in = new ObjectInputStream(fis);
String x = (String) in.readObject();
String[] node = x.split("saqib");
for (int i = 0; i < node.length; i++) {
String recrd[] = node[i].split("$");
try {
AddToTail(Integer.parseInt(recrd[0]), recrd[1], recrd[2],
recrd[3], recrd[4], Integer.parseInt(recrd[5]),
recrd[6], recrd[7], recrd[8], recrd[9], recrd[10], recrd[11]);
} catch (NumberFormatException e) {
System.out.println("NumberFormatException");
}
}
in.close();
}
}