Question: JAVA language Question 10 Convert the following string to its integer value as quantity: String input = 6; O a. int quantity = String.parseString(input); Ob.double
Question 10 Convert the following string to its integer value as quantity: String input = "6"; O a. int quantity = String.parseString(input); Ob.double quantity = Double.parseDouble(input); Ocint quantity = Integer.parseInt(input); d. int quantity = Integer.parseInteger(input)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
