public class LambdaExample {

    public static void main(String[] args) {

        // Using a lambda expression to implement the Runnable interface

        Runnable runnable = () -> System.out.println("Hello from a lambda Runnable!");

        

        // Creating a new thread and starting it

        Thread thread = new Thread(runnable);

        thread.start();

    }

}