写个对照表,如char[] ascii = {...,'\r',...};
for (int i = 0; i < kk_BlacklistVehicleRegister_DeleteCheckBox.length; i++)
{
String temp = kk_BlacklistVehicleRegister_DeleteCheckBox[i];
for (int j = 0; j < temp.length; j++) {
System.out.print(ascii[(int)temp.charAt(j)]);
}
}
for (int i = 0; i < kk_BlacklistVehicleRegister_DeleteCheckBox.length; i++)
{
String temp = kk_BlacklistVehicleRegister_DeleteCheckBox[i];
for (int j = 0; j < temp.length; j++) {
System.out.print(ascii[(int)temp.charAt(j)]);
}
}
补上
String[] kk= kkForm.getKkDeleteCheckBox();
for (int i = 0; i < kk.length; i++)
{
System.out.println(kk[i]);
}
这回对了吧,
还有System.out.println(kk_BlacklistVehicleRegister_DeleteCheckBox[i]);显示的CSDN也给我的空格整没了
1
2
2008-02-12 00:00:00.0
2008-02-22 00:00:00.0
3