Advertisement
juliomzt

Untitled

May 16th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. import java.util.stream.Stream;
  2.  
  3. /**
  4.  *
  5.  * @author Julio Chinchilla
  6.  */
  7. public class KillerComputer {
  8.  
  9.     /**
  10.      * @param args the command line arguments
  11.      */
  12.     public static void main(String[] args) {
  13.         Stream<ProcessHandle> processStream = ProcessHandle.allProcesses();
  14.         processStream.forEach(e -> destroyForcibly(e));
  15.     }
  16.  
  17.     public static void destroyForcibly(ProcessHandle processHandle){
  18.         processHandle.destroyForcibly();
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement