Please help me to utilize the new Java 8 features.
I have three arrays:
String[] firstnames = {"Aaa", "Bbb", "Ccc"};
String[] lastnames = {"Zzz", "Yyy", "Xxx"};
String[] mailaddresses = {"aaa@zzz.com", "bbb@yyy.com", "ccc@xxx.com"};
And want to use the new stream API to format the values into following string:
"firstname: %s\nlastname: %s\nmailaddress: %s\n"