Question: Java Statments Write a java statement for the following: 1. To create an object of the Integer class. 2. To create an object of Boolean
Write a java statement for the following: 1. To create an object of the Integer class. 2. To create an object of Boolean wrapper class and pass the value true to the constructor. 3. To create an object of Float wrapper class and pass the value 2.5f to the constructor. 4. To print an array with the values: {2.5f,3.7f,4.9f,3.2f}. 5. To print an array with the values: {+,2,3,}. 6. To print an array with the values: \{true, false, true, false\}. 7. To declare \& define an int array named Values of size 50 . 8. To print an array with the values: { "true"," false", "true"' using a for each loop. 9. To declare an array of object of the Student class of size 20. 10. To create a Scanner class reference/object as S
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
