Last active
December 19, 2015 10:48
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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