8.13 Wrapper Class Conversions

12345678910111213
Across
  1. 3. This method returns the value of the wrapper class object as a primitive double value. (ex: Integer num1 = 14l; --> num1.______();)
  2. 8. A String method that returns a String containing the binary representation of someInteger. (ex: Integer.toBinaryString(7); returns 111)
  3. 10. What kind of methods are String methods, meaning they are called by a program without creating an object?
  4. 12. A String method that returns containing the decimal representation of the value of someInteger; returns value with " " (ex: Integer num1 = 10; --> Integer.toString(num1); returns "10")
  5. 13. Automatic conversion of wrapper class objects to corresponding primitive types (ex: Character letter1 = 'A'; char letter2 = letter1;)
Down
  1. 1. A String method that parses someString and returns a new Integer object with the value encoded by someString. (ex: Integer.valueOf("2001"); returns Integer object with value 2001)
  2. 2. (2 words) How does Java allow statements to combine primitive and wrapper class variables?
  3. 4. This method returns the value of the wrapper class object as a primitive int value. (ex: Double num2 = 5.6; --> num2.______();)
  4. 5. A String method that parses someString and returns an int representing the value encoded by someString. (ex: String str1 = "32"; --> Integer.parseInt(str1); returns 32)
  5. 6. Automatic conversion of primitive types to corresponding wrapper classes (ex: int num1 = 23; Integer num2 = num1;)
  6. 7. This method Returns the value of the wrapper class object as a primitive long value. (ex: Double num3 = 5.6e12; --> num3._______();)
  7. 9. A String method that returns a String containing the decimal representation of the value contained by the wrapper class object. (ex: Integer num1 = 10; --> num1._______(); returns 10)
  8. 11. Aside from Integer, Double, & Long methods, wrapper classes also have methods converting to and from?