I am reading the text file from java to insert into oracle DB table, how can skip first 2 lines?
I want to skip the first 2 lines from text file.
Code :
BufferdReader bReader = new BufferedReader (new FileReader(/home/test.txt));
String line = "";
while ((line = bReader.readLine ()) !=null)
{
if (line != null)
{
String[] array = line.split(",",-1) ;
for (String arrays : array ) {
System.out.println(arrays );
}
}
}
if (line != null)
is superfluous since the while condition already handles this.