Run Error for 2 test cases

Hi,
2 of the test cases are getting Run Error while the other 2 are passing. Can you please check my code? Its in Java.

Code - https://ide.codingblocks.com/s/240496