+ 2
How to use Exception handling?
My code sometimes throw a number format exception. Where should i put try-catch statement? In that specific line that throws error or for the entire code? Problematic line of code; String[]x=screen.getText().toString().split("\\+");
2 Answers
+ 4
Hello, Exception topic is already given by SoloLearn in their lessons.
Please go through this.
https://www.sololearn.com/learn/Java/2175/?ref=app
https://www.sololearn.com/learn/Java/2176/?ref=app
https://www.sololearn.com/learn/Java/2177/?ref=app
https://www.sololearn.com/Course/Java/?ref=app
If you're still having problem.. then kindly attach your code, so community members can help you accordingly.
Happy Coding!
0
Its very simple , compiler give full details about exception and which line throws that exception.