avatar
Untitled

asdfghjk4af56 109 9th Mar, 2025

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;

import java.util.Random;

/**
 *
 * @author sogor
 */
public class JavaApplication1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Thread thread = new Thread(() -> {
            try {
                while (true) {
                    System.out.println(new Random().nextInt(10));
                    Thread.sleep(1000);
                }
            } catch (Exception e) {
            }
        });
        thread.start();
    }

}
Markup
Description

No description

To share this paste please copy this url and send to your friends
RAW Paste Data