Adding integer to an array (Java)

Thanks a lot! This helped and I think I understand now :grinning: