About this question
I was developing a program in which I needed inputs of the users for their age as a string. How would I use Java programming to convert the input string of the users into an integer? What should be the approach for me to avoid possible invalid inputs?