Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.function.Supplier;

public class Main {

    public static void main(String[] args) {
        Supplier<String> i = () -> "java2s.com";

        System.out.println(i.get());
    }
}