File folderPathFile = new File("C:\\Users\\ali\\Desktop\\folderPath.txt");
BufferedReader reader = new BufferedReader(new FileReader(folderPathFile));
String line = reader.readLine();
while(line != null){
foldersPath.add(line);
line = reader.readLine();
}
reader.close();
String lineDup = line.toString();
String[] LineSplits = lineDup.split(",");
String[] array = LineSplits[1].trim().split(" ");
for(int i =0; i<array.length;i++) {
int fr = Integer.parseInt(array[i]);
System.out.println(fr);//its printing
}
int fr1 = Integer.parseInt(LineSplits[0]);
System.out.println(fr1);
}
My Problem is when i run this code i've java.lang.Exception: java.lang.NumberFormatException: For input string: "900"
INPUT i'm Giving i.e myfile data is 900, 200 300 400 500 600
Why for 900 only i'm getting such error ?