+ 1
Can I get help to display 4 ints from scanner?
I would like to scan input of 4int, put in int[]values, and then display values entered. Last value displays incorrectly as 0. https://code.sololearn.com/cw52oA3a9keg/?ref=app
1 Réponse
+ 7
Remove the -1 from values.length - otherwise, you don't access the last index.