Browse Source

Readme

master
Ivan Morell 2 years ago
parent
commit
0c66c87193
2 changed files with 30 additions and 5 deletions
  1. +25
    -0
      README.md
  2. +5
    -5
      src/Package/MiTree.java

+ 25
- 0
README.md View File

@ -0,0 +1,25 @@
# Title
Mi Tree Propio
## Install
:)
## Usage
Ejecuta el programa para que funcione tal y como funciona en un terminal el comando dir
## Contributing
---
## License
[https://ada.fp.edu.es](URL "La web de ADA")

+ 5
- 5
src/Package/MiTree.java View File

@ -3,7 +3,7 @@ package Package;
import java.io.File; import java.io.File;
public class MiTree { public class MiTree {
public static void main(String args[]) { public static void main(String args[]) {
File file = new File("D:\\DAM 2\\Programacion Multimedia\\Pdf's"); File file = new File("D:\\DAM 2\\Programacion Multimedia\\Pdf's");
@ -13,16 +13,16 @@ public class MiTree {
} }
private static void treeRecursividad(File file) {
private static void treeRecursividad(File file) {
if(!file.exists()) if(!file.exists())
return; return;
for(File f : file.listFiles()) { for(File f : file.listFiles()) {
System.out.println(f.getName()); System.out.println(f.getName());
if(f.isDirectory())
if(f.isDirectory()) {
treeRecursividad(f); treeRecursividad(f);
}
}
}
} }


Loading…
Cancel
Save