SyntaxFix
Write A Post
Hire A Developer
Questions
Make an exception handler like this,
private int ConvertIntoNumeric(String xVal) { try { return Integer.parseInt(xVal); } catch(Exception ex) { return 0; } } . . . . int xTest = ConvertIntoNumeric("N/A"); //Will return 0