Browse Source

yata

master
Yaroslav 2 years ago
parent
commit
52edc1638e
4 changed files with 37 additions and 2 deletions
  1. BIN
      mkdir1/bin/mkdir1/main.class
  2. BIN
      mkdir1/bin/module-info.class
  3. +37
    -0
      mkdir1/src/mkdir1/main.java
  4. +0
    -2
      mkdir1/src/module-info.java

BIN
mkdir1/bin/mkdir1/main.class View File


BIN
mkdir1/bin/module-info.class View File


+ 37
- 0
mkdir1/src/mkdir1/main.java View File

@ -0,0 +1,37 @@
package mkdir1;
import java.io.File;
public class main {
public static void main(String args[]) {
File direct = new File(".");
String[] lista = direct.list();
File arch;
for(int i = 0; i < lista.length; i++) {
arch = new File(lista[i]);
System.out.print(lista[i]);
System.out.print(" ");
if(arch.isDirectory())
System.out.print("directorio");
else
System.out.print("archivo");
System.out.print(" ");
if(arch.canExecute())
System.out.print("ejecutable");
else
System.out.print("no_ejecutable");
System.out.print(" ");
if(arch.canRead())
System.out.print("lectura");
else
System.out.print("no lectura");
System.out.print(" ");
if(arch.canWrite())
System.out.println("escritura");
else
System.out.println("no escritura");
}
}
}

+ 0
- 2
mkdir1/src/module-info.java View File

@ -1,2 +0,0 @@
module mkdir1 {
}

Loading…
Cancel
Save