Question: (g) Give two reasons why it is preferable to use the second line of code instead of the first line of code below to convert

(g) Give two reasons why it is preferable to use the second line of code instead of the first line of code below to convert an individual digit representing a numerical character from a char type to it's int value. int x = ch - 0,; int x = character.getNumericValue (ch); (h) To declare an array of integer numbers you can use the code, int] xs To declare an ArrayList of only integer numbers you can use the code, ArrayList?Integer? xs; What is the difference between int and Integer and why must Integer be used instead of int in the ArrayList example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
