Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.function.UnaryOperator;

public class Main {

    public static void main(String[] args) {
        UnaryOperator<String> i = (x) -> x.toUpperCase();

        System.out.println(i.apply("java2s.com"));
    }
}