Help with user input and arrays

I have tried many different ways to get a user input(Integer) and put it into an array using scanner, but I always get errors, such as cannot convert int to int, does anyone know an effective way of doing this? Thanks!