I have marked this question as duplicate of this other question. But I was wondering if a more appropriate curse of action would be closing it.
The OP doesn't normally use Java, so I am guessing he just used code from internet without checking for what language it was.
Under that context the user doesn't really know about the final word, or Java, so it seems to me a localized issue and that is not likely to help others.