I'm trying to figure out why you can do
Integer name = 1245;
and not need an instance created like this
Integer name = new Integer(1245);
Is it possible to create a class that doesn't need an instance created? And if you can create a class like that, how would you do it? I'm looking for something like
AsDigits digits = 1245;
instead of having to do
AsDigits digits = new AsDigits(1245);