Showing error in input

on running on eclipse it shows that " Resource leak:“scn” is never closed".
it runs fine on ide,

what to do?

Just use scn.close() as the last line of main function