Originally posted by tay edmen: Hi all, above is one of my revision question.
Howdy Tay. There is a rule at javaranch that you have to tell the source of the question i.e. from where you copied the question. So please tell from where you copied this code. Then only we will be able to solve your problem. I hope you will understand this..
Welcome to JavaRanch. As Ankit already said, we have a rule here: when you copy a question from a book, mock exam or other source, we require that you quote your sources. So, please tell us where you copied the question from.