Getting run error in all except one test case for this question

Getting a run error in 3sum closest problem

Here is my code: https://ide.codingblocks.com/s/323299

hi @aakashsehrawat5087,
I m sorry,By mistake i acknowledged your doubt.
I didn’t know it was in JAVA, i know only C/C++.
But I have solved your issue using Scanner.


Please let me know if you want to solve your doubt in buffer only,I will read about it and solve it again.