Assume I have two streams that have similar but not necessarily identical content. How do I find the first item that is different between the two. For instance, assuming I have:
Stream<String> first = Arrays.asList("a", "b", "c").stream();
Stream<String> second = Arrays.asList("a", "x", "c").stream ();
how do I determine that "b" and "x" are the first items at which the streams differ? And what about if one of the streams is truncated?