I have an array of Strings
String[] suffixes = getSuffixes();
and I want a new array based on the old one with a prefix appended. I'd do something like this in Ruby, JavaScript, Perl, Lisp, and the like:
// pseudocode for what I would like
String[] full_words = suffixes.map(suffix => "re" + suffix);
I'm limited to Arrays in my application. (This is a small part of an assignment for school and I'm not allowed to use the Collections library.) Any way to do this in Java 8?