Hi gurpreetm13,

Try giving a shot to the program i gave you below. Its your program only. But i did make some changes in it. See carefully i have added three lines:


st.close();...