vinay javaranch wrote:i had done this already but found same compile error
"some compile error" really doesn't tell us much of anything. The compile error actually has quite a lot of info in it, telling you exactly what is wrong. Please copy and post the entire message here if you want someone to help you. Otherwise, the best we could do would be to make random guesses as to the issue, which is really a waste of everyone's time.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors