Wrapper Questions
- Use an Integer wrapper to print out an int in reverse order
- Use a Double wrapper to be able to print a double in reverse order
- Print a double with 2 decimal places using wrapper
- Print out decimal part of a double using a wrapper class
For Example
Enter a number : 34.67453
.67
-
Using a wrapper class to print out an int with commas
For Example
Enter a number : 3127484
3,127,484
-
Write a function that will receive a double - take the integer part of that and return it in a new Integer object.
public Integer getInteger(double d)