That gave me a little insight but i'm still having trouble finding the exact index of what the user typed in.
If in the array i have the values:
1
2
3
and the user wants to replace the value 2 (which is at index 1) with let's say the value 5, how can that be done?