Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Random;
- import java.util.function.Supplier;
- public class Main {
- public static void main(String[] args) {
- Supplier <Integer> Ref = () -> {
- Random random = new Random();
- return random.nextInt(11);
- };
- System.out.println(Ref.get());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement