Java Add Value To Int Array Function C