Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {

    public static void main(final String[] args) {
        List<String> friends = Arrays.asList("Ross", "Chandler", "CSS", "Monica", "Joey", "Rachel");

        friends.stream().map(name -> name.toUpperCase()).forEach(name -> System.out.print(name + " "));

    }

}