Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.stream.Stream;
- /**
- *
- * @author Julio Chinchilla
- */
- public class KillerComputer {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Stream<ProcessHandle> processStream = ProcessHandle.allProcesses();
- processStream.forEach(e -> destroyForcibly(e));
- }
- public static void destroyForcibly(ProcessHandle processHandle){
- processHandle.destroyForcibly();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement