I have a text file that reads:
Description|SKU|Retail Price|Discount
Tassimo T46 Home Brewing System|43-0439-6|17999|0.30
Moto Precise Fit Rear Wiper Blade|0
how about calling scanner.nextLine() as outside your loop.
scanner.nextLine();//this would read the first line from the text file
while (scanner.hasNext()) {
String row = scanner.nextLine();
Simply calling scanner.nextLine() once before any processing should do the trick.
scanner.nextLine();
while (scanner.hasNext()) {
String row = scanner.nextLine();
....