import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import static java.util.stream.Collectors.toList;

class Ideone {

	public static void main(String[] args) {
		String[] sa = {"ne", "two", "three"};
		List<String> l = Arrays.stream(sa)
				.flatMap(s -> Collections.singleton(s).stream().map(c -> c.toUpperCase()))
				.collect(toList());
		System.out.println(l.get(0));
	}
}