From ad096f2dfd9cbea9d684056cc12efdf3360f6a89 Mon Sep 17 00:00:00 2001 From: Joan Moncho Date: Tue, 20 Sep 2022 16:15:36 +0200 Subject: [PATCH] cambios --- .classpath | 10 +++++++++ .project | 17 +++++++++++++++ .settings/org.eclipse.core.resources.prefs | 2 ++ .settings/org.eclipse.jdt.core.prefs | 14 ++++++++++++ README.md | 20 ++++++++++++++++++ .../VisualizacionContenidoDirectorio.class | Bin 0 -> 1025 bytes .../VisualizarDirectorio/package-info.class | Bin 0 -> 141 bytes .../VisualizacionContenidoDirectorio.java | 19 +++++++++++++++++ .../VisualizarDirectorio/package-info.java | 1 + 9 files changed, 83 insertions(+) create mode 100644 .classpath create mode 100644 .project create mode 100644 .settings/org.eclipse.core.resources.prefs create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 README.md create mode 100644 bin/com/joanmoncho/VisualizarDirectorio/VisualizacionContenidoDirectorio.class create mode 100644 bin/com/joanmoncho/VisualizarDirectorio/package-info.class create mode 100644 src/com/joanmoncho/VisualizarDirectorio/VisualizacionContenidoDirectorio.java create mode 100644 src/com/joanmoncho/VisualizarDirectorio/package-info.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..57bca72 --- /dev/null +++ b/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..a963183 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + VisualizarDirectorio + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..8c9943d --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=17 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=17 diff --git a/README.md b/README.md new file mode 100644 index 0000000..34be616 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Encabezado h1 +## Encabezado h2 +### Encabezado h3 +#### Encabezado h4 +##### Encabezado h5 +###### Encabezado h6 + +*énfasis* (cursiva) + +**énfasis fuerte** (negrita) + +`Código` + +* Un elemento en una lista no ordenada +* Otro elemento en una lista + +[Texto del enlace aquí](URL "Título del enlace") + +![Texto alternativo](URL "Título de la imagen") + diff --git a/bin/com/joanmoncho/VisualizarDirectorio/VisualizacionContenidoDirectorio.class b/bin/com/joanmoncho/VisualizarDirectorio/VisualizacionContenidoDirectorio.class new file mode 100644 index 0000000000000000000000000000000000000000..fb0aeef9f4a0394f29082806da446c3f047af7bc GIT binary patch literal 1025 zcmb_aT~8B16g|^!JG3lPTZ+~X6cuS}KNPj1RTDxbAt_)eHX%Nk>9T>r-5s*slHjv{ z#3!Hi0f;920Dp_WLA^`9Qi@`4e8rfpnQ2MXi4SGDlf1-xu#AYa2O1!O|dPij_}s2OPx)EGQ^)tPX;d; zqWMCb!I)KRb`nt}OvDgp7;Z|>UhKIY+g}kK$7V=3l_i|E@TK;TgGR6+y9{&9|G~9R zJX|3?hSB`n<_YIk;7f14UT6>CA_J>%WEjjaPYTRQhnT04)yzj3vib9%`o(1vIb5M4 zj_i^I*?i%gDoI?!7{~R#YP~=@)fwLxJ6#huaFgI&dV*4QeN{AOk5U1NUv)$GdB^8At>;a{RMB&`0{(9goRHsrQq7-|K=dcPpH!a;MCIUb*F zDI5wzvZZ>yW$P(0O#Io=f2?Cg6Tmn~1=@5VLO0qsvYfmsos7;{aSsDu!gP|XPE!zr zWXyrPXKggIX+FGd?4ei)W3g z#jhAI?_%y#MLOP p`KM68eTqd0!SR4%QB2W`93qF*IOllC@rW!K(>CN^qX!W@`3qffYzHF|YvukjE!l literal 0 HcmV?d00001 diff --git a/src/com/joanmoncho/VisualizarDirectorio/VisualizacionContenidoDirectorio.java b/src/com/joanmoncho/VisualizarDirectorio/VisualizacionContenidoDirectorio.java new file mode 100644 index 0000000..92fb6b3 --- /dev/null +++ b/src/com/joanmoncho/VisualizarDirectorio/VisualizacionContenidoDirectorio.java @@ -0,0 +1,19 @@ +package com.joanmoncho.VisualizarDirectorio; +import java.io.File; +import java.util.Arrays; + +public class VisualizacionContenidoDirectorio { + + public static void main(String[] args) { + + final String RUTA_DIRECTORIO = "."; + + String[] contenido = new File(RUTA_DIRECTORIO).list(); + + Arrays.sort(contenido); + + for (String archivo : contenido) { + System.out.println(archivo); + } + } +} \ No newline at end of file diff --git a/src/com/joanmoncho/VisualizarDirectorio/package-info.java b/src/com/joanmoncho/VisualizarDirectorio/package-info.java new file mode 100644 index 0000000..c63a758 --- /dev/null +++ b/src/com/joanmoncho/VisualizarDirectorio/package-info.java @@ -0,0 +1 @@ +package com.joanmoncho.VisualizarDirectorio; \ No newline at end of file