NumberFormatException错误让我很头痛

String s="17"+"\t"+"42"+"\t"+"6"+"\t"+"Widget,blue";
String a[]=s.split("\t");

System.out.println(a[0]);
int y=Integer.parseInt(a[0]);
System.out.println(y);

            为什么a[0]转换为int会报NumberFormatException的错误啊!

你确定不是其他问题,我把你的代码copy了一份,运行怎么没出错?

你的代码没有问题的呀

我运行了你的代码,并且调试了,没有问题。