I would like to use an array list for this task but have noticed that using the usual Integer.parseInt(reader.readLine()) changes a string into the primitive int instead of an Integer. How do you change it to an Integer? Thanks
How do you change String to Integer class?
You must be signed in to leave a comment
16 February 2021, 19:50
What are you trying to do? There is nothing special about int to Integer or Integer to int. This is all valid code: