Simple Array Sum

  • + 0 comments

    With Java Stream API ;

      return ar.stream().reduce(0,(a,b) -> a+b);