How can I get the Left part of a MutablePair list with Java 8 - streams, forEach or something? The code I want to transform in Java 8 type is:
for (MutablePair<String, Long> id: list) {
if (null == value) {
value = id.getLeft();
} else {
value += ", " + id.getLeft();
}
}
So, if I have the list as: [(OA,3853), (EE,866), (UN,728), (PP,10)], I need the value as: OA, EE, UN, PP as simple as possible. Many Thanks.