Unable to create object named 'io' of type Integer
I have been trying to create an object of type Integer
Integer io = new Integer(10);
System.out.println(io)
but seem to be running into issues
| Integer io = new Integer(10);
cannot find symbol
symbol: class
| Integer io = new Integer(10);
static import only from classes and interfaces
I can do it for the Long wrapper fine
Long lo = new Long(10);
I have tried this in a jshell and that works. I have verified that the jshell is using the jdk
java --list-modules | grep "jdk.jshell" jdk.jshell@10.0.2