خرید بک لینک

Vote count: 0

There not much to explain here, I need to check if a String is a number or not, I tried this recommended method, but sometimes fails:

try {

    Double.parseDouble((String) data.getData().get(i).get(j));
    // CODE IF IT IS A NUMBER HERE

} catch (NumberFormatException e) {
    // CODE IF IT IS NOT A NUMBER HERE
    e.printStackTrace();
}

The string that makes it fail is C:Usersxx11DesktopExcelExcel.opc.

I think it has to do with 11D part, but I am not sure and I can´t prove it.

Does anyone with more experience have any idea why this is happening and how to fix it?

Thank you.

asked 3 mins ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 6 اسفند 1394 ساعت: 13:51

صفحه بندی