You cannot construct instances of a class on the fly using syntax like
You must use the new operator like:
Double myDouble = new Double(0.56); System.out.println(myDouble.toString());
In other words, constructors are only called after a new operator.
Posted in: Java