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<Integer> rndRange = () -> (int) (Math.random() * 100);
        System.out.println(rndRange.get());
    }

}