Piet Souris wrote:hi Carey,
whether you will use the SumCount.collect in parallel or not, you must provide a non-null adder of two SumCounts. Now, given the SumCount, it is hard to say what the "sum"of two SumCounts should do, but as you write, it is not being used, so it really doesn't matter.
So add something like this to SumCount:
and make this change:
and your code compiles and runs, with nothing but SUCCESSES.
However, whatever your algorithm is, it differs from my interpretation. For example, running your code, I get SUCCESS "message are", 501, -1
while my algo would give +1 (it would not do any split). But I must admit: I did hardly test my code, so a handful of bugs is not unlikely.
But most of all: will Atul still be enthousiastic about Streams?