How do i get the sum of values of an Object Array :java8
<p>in variable "a" i create a <code>double</code> array, and in "maxA" i get the sum of the values. Now in variable "b" i create an object array with double values, now i want to have the sum of these values using the <code>stream</code> value. thanks for help</p>

<pre><code>  double[] a = new double[] {3.0,1.0};
  double maxA = Arrays.stream(a).sum();

  ObjectWithDoubleValue  o1 = new  ObjectWithDoubleValue (3.0);
  ObjectWithDoubleValue  o2 = new  ObjectWithDoubleValue (1.0);
  ObjectArray[] b = {o1 , o2};
  double maxB = ?;
</code></pre>