자바 람다 Runnable

1 개요[ | ]

자바 람다 Runnable
public class Main {
    public static void main(String[] args) {
        System.out.println("[main] started.");
        Runnable runnable = () -> {
            System.out.println("MyRunnable is running.");
        };
        Thread thread = new Thread(runnable);
        thread.start();
        System.out.println("[main] finished.");
    }
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}