Run ❯
Get your
own Java
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
public class Main { public static void main(String[] args) { Thread.currentThread().interrupt(); try { Thread.sleep(1000); } catch (InterruptedException e) { System.out.println("The thread was interrupted."); } } }
The thread was interrupted.