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?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
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:
0