| Author |
missing Integer class
|
Amrita Chaurasia
Greenhorn
Joined: Jul 04, 2009
Posts: 7
|
|
while trying to create an instance of Integer Class..the compiler says there in no such constructor
Integer i = new Integer(1);
but there is no problem with other wrapper classes..
what should i do
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14670
|
|
|
You don't have a class called Integer somewhere in your classpath, do you ? One that you made yourself.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Vijitha Kumara
Bartender
Joined: Mar 24, 2008
Posts: 3670
|
|
|
Can you post your code?
|
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
|
 |
Amrita Chaurasia
Greenhorn
Joined: Jul 04, 2009
Posts: 7
|
|
oh I got the mistake..
I had my own Integer Class that existed in classpath
so it dint take java.lang.Integer class
|
 |
 |
|
|
subject: missing Integer class
|
|
|