Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import org.slf4j.Logger;

public class Main {
    public static void interruptCurrentThreadWithLog(Logger logger) {
        logger.info("Thread {} was interrupted", Thread.currentThread());
        Thread.currentThread().interrupt();
    }
}