class Example { static void main(String[] args) { int x = 5; Double z = 15.56; Integer xNew = Integer.valueOf(x); println(xNew); Double zNew = Double.valueOf(z); println(zNew); } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more