Skip to content

Instantly share code, notes, and snippets.

@zabela
Last active December 19, 2015 10:48
Show Gist options
  • Save zabela/5942667 to your computer and use it in GitHub Desktop.
Save zabela/5942667 to your computer and use it in GitHub Desktop.
A simple beginner Java application to create infite folders, one inside of another built in java. Perfect to mess with your friends xD
package Folders;
import java.io.*;
public class Folders {
public static void main(String[] args) throws IOException {
File file=new File(".");
if (file.exists()) {
file.mkdir();
while (true) {
file=new File(file,"folder");
file.mkdir();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment