最佳答案
While working, I got the warning
The constructor Integer(int) is deprecated
and I couldn't find an alternative constructor/solution online. How can I resolve this issue ?
UPDATE
I will get a similar warning with constructors for other primitive wrapper types; e.g.
The constructor Boolean(boolean) is deprecated
The constructor Byte(byte) is deprecated
The constructor Short(short) is deprecated
The constructor Character(char) is deprecated
The constructor Long(long) is deprecated
The constructor Float(float) is deprecated
The constructor Double(double) is deprecated
Does the same solution apply to these classes as for Integer?