Ana Neri

Results 3 comments of Ana Neri

Hey, this issue is solved? I'm having the same problem!! @daltonmenezes @maykbrito #help

> ``` > // throw NullPointerException if ar is null > int simpleArraySum(int[] ar) { > return Arrays.stream(ar).reduce(0, Integer::sum); > } > ``` --> Consegue mandar o link do código?

> soluções em ruby: > > utilizando método `reduce` disponível > > ```ruby > a = [1,2,3] > a.reduce { |soma, numero| soma + numero } > ``` > >...