Ernest Friedman-Hill wrote:You most likely created your own class named "Integer", at some point, and the Integer.class file is still laying around on your class path somewhere. If you can't find it on your own, use your operating system's "Find File" tool -- it's there somewhere!
yeah I did.now it compiles fine
thanks a lot
Nicola Garofalo wrote:Nice.
don't tell me you downloaded a jdk without the java.lang package or you are in trobule
Check your path.
Open a shell and type javac - version
What do you see?
no the thing was that I had created a class named Integer and the compiler was looking for the constructor in that instead of the java.lang.Integer
thanks for replying