Originally posted by gurpreet singh: I have edited the post. Can you please check it now?
I am using jdk1.4
This shouldn't cause a compile error. Are you using Eclipse? From a cursory Google search, it seems that there was a bug in one of their earlier JDT versions that caused extraneous "method is ambiguous" errors.