diff --git a/JAVA/Clase1/CicloWhile/build.xml b/JAVA/Clase1/CicloWhile/build.xml new file mode 100644 index 00000000..ce2c321f --- /dev/null +++ b/JAVA/Clase1/CicloWhile/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CicloWhile. + + + diff --git a/JAVA/Clase1/CicloWhile/build/built-jar.properties b/JAVA/Clase1/CicloWhile/build/built-jar.properties new file mode 100644 index 00000000..ca5b64a2 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 28 Aug 2023 10:50:12 -0300 + + +C\:\\Users\\Santiago\\Clase1\\JAVA\\Leccion2\\CicloWhile= diff --git a/JAVA/Clase1/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class b/JAVA/Clase1/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class new file mode 100644 index 00000000..0be4b614 Binary files /dev/null and b/JAVA/Clase1/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class differ diff --git a/JAVA/Clase1/CicloWhile/manifest.mf b/JAVA/Clase1/CicloWhile/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase1/CicloWhile/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase1/CicloWhile/nbproject/build-impl.xml b/JAVA/Clase1/CicloWhile/nbproject/build-impl.xml new file mode 100644 index 00000000..3b4a4e52 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase1/CicloWhile/nbproject/genfiles.properties b/JAVA/Clase1/CicloWhile/nbproject/genfiles.properties new file mode 100644 index 00000000..9ed423fc --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0d2ac486 +build.xml.script.CRC32=0ab073dc +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=0d2ac486 +nbproject/build-impl.xml.script.CRC32=838beb1f +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase1/CicloWhile/nbproject/private/private.properties b/JAVA/Clase1/CicloWhile/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase1/CicloWhile/nbproject/private/private.xml b/JAVA/Clase1/CicloWhile/nbproject/private/private.xml new file mode 100644 index 00000000..898c258d --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase1/CicloWhile/src/CicloWhile/EjercicioWhile01.java + + + diff --git a/JAVA/Clase1/CicloWhile/nbproject/project.properties b/JAVA/Clase1/CicloWhile/nbproject/project.properties new file mode 100644 index 00000000..79a7c717 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/CicloWhile.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/CicloWhile +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=CicloWhile +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase1/CicloWhile/nbproject/project.xml b/JAVA/Clase1/CicloWhile/nbproject/project.xml new file mode 100644 index 00000000..4254fd21 --- /dev/null +++ b/JAVA/Clase1/CicloWhile/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CicloWhile + + + + + + + + + diff --git a/JAVA/Clase1/CicloWhile/src/CicloWhile/EjercicioWhile01.java b/JAVA/Clase1/CicloWhile/src/CicloWhile/EjercicioWhile01.java new file mode 100644 index 00000000..4a1bb4bb --- /dev/null +++ b/JAVA/Clase1/CicloWhile/src/CicloWhile/EjercicioWhile01.java @@ -0,0 +1,39 @@ + +package CicloWhile; + + +public class EjercicioWhile01 { + public static void main(String[] args) { + var conteo = 0; //inferencia de tipos + while (conteo <7){ + System.out.println("conteo = " + conteo); + conteo++; //vamos aumentando en uno la variable + } + + var contador = 0; //CICLO DO WHILE + do { + System.out.println("contador = " + contador); + contador++; + } while (contador <7); + + //Uso de las palabras break y continue junto a las etiquetas (labels) + + + for (var contando = 0; contando < 7; contando++) { //CICLO FOR + if (contando % 2 == 0){ + System.out.println("contando = " + contando); + break; + } + } + inicio: + for (var contando = 0; contando < 7; contando++) { //CICLO FOR + if (contando % 2 != 0){ + continue inicio; //Vamos a la siguiente iteracion + } + System.out.println("contando = " + contando); + } + + + } + +} diff --git a/JAVA/Clase2/EjercicioCiclos01/build.xml b/JAVA/Clase2/EjercicioCiclos01/build.xml new file mode 100644 index 00000000..871e3f2a --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos01. + + + diff --git a/JAVA/Clase2/EjercicioCiclos01/manifest.mf b/JAVA/Clase2/EjercicioCiclos01/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/build-impl.xml b/JAVA/Clase2/EjercicioCiclos01/nbproject/build-impl.xml new file mode 100644 index 00000000..ab0fdf96 --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/genfiles.properties b/JAVA/Clase2/EjercicioCiclos01/nbproject/genfiles.properties new file mode 100644 index 00000000..406a419b --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7515729e +build.xml.script.CRC32=403e0d08 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=7515729e +nbproject/build-impl.xml.script.CRC32=73c5c1fb +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.properties b/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.xml b/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.xml new file mode 100644 index 00000000..8241670a --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/JAVA/Leccion2/EjercicioCiclos01/src/Ciclos01/Ciclos01.java + + + diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/project.properties b/JAVA/Clase2/EjercicioCiclos01/nbproject/project.properties new file mode 100644 index 00000000..fa098afc --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos01.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos01 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos01 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase2/EjercicioCiclos01/nbproject/project.xml b/JAVA/Clase2/EjercicioCiclos01/nbproject/project.xml new file mode 100644 index 00000000..f32955f2 --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos01 + + + + + + + + + diff --git a/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Ciclos01.java b/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Ciclos01.java new file mode 100644 index 00000000..23beae4d --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Ciclos01.java @@ -0,0 +1,14 @@ +// Ejercicio 1: Leer un numero y mostrar su cuadrado, repetir el proceso hasta que se instroduzca un numero negativo + +package Ciclos01; + +import java.util.Scanner; + +public class Ciclos01 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, cuadrado; + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + } +} diff --git a/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Interger.java b/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Interger.java new file mode 100644 index 00000000..8b78a6da --- /dev/null +++ b/JAVA/Clase2/EjercicioCiclos01/src/Ciclos01/Interger.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package Ciclos01; + +/** + * + * @author Santiago + */ +class Interger { + +} diff --git a/JAVA/Clase2/EjerciciosCiclos02/build.xml b/JAVA/Clase2/EjerciciosCiclos02/build.xml new file mode 100644 index 00000000..1c3dd3d4 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjerciciosCiclos02. + + + diff --git a/JAVA/Clase2/EjerciciosCiclos02/build/built-jar.properties b/JAVA/Clase2/EjerciciosCiclos02/build/built-jar.properties new file mode 100644 index 00000000..5cc9a997 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/build/built-jar.properties @@ -0,0 +1,4 @@ +#Thu, 14 Sep 2023 08:55:27 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Leccion2\\EjerciciosCiclos02= diff --git a/JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ciclos02.class b/JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ciclos02.class new file mode 100644 index 00000000..9dd0b7e9 Binary files /dev/null and b/JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ciclos02.class differ diff --git a/JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ejercicio02.class b/JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ejercicio02.class new file mode 100644 index 00000000..3739c20e Binary files /dev/null and b/JAVA/Clase2/EjerciciosCiclos02/build/classes/Ciclos02/Ejercicio02.class differ diff --git a/JAVA/Clase2/EjerciciosCiclos02/manifest.mf b/JAVA/Clase2/EjerciciosCiclos02/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/build-impl.xml b/JAVA/Clase2/EjerciciosCiclos02/nbproject/build-impl.xml new file mode 100644 index 00000000..cb5c68fb --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/genfiles.properties b/JAVA/Clase2/EjerciciosCiclos02/nbproject/genfiles.properties new file mode 100644 index 00000000..865d7475 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ad87b7e8 +build.xml.script.CRC32=ad0e4110 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=ad87b7e8 +nbproject/build-impl.xml.script.CRC32=2b732e4d +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.properties b/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.xml b/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.xml new file mode 100644 index 00000000..6909ea55 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Leccion2/EjerciciosCiclos02/src/Ciclos02/Ejercicio02.java + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Leccion2/EjerciciosCiclos02/src/Ciclos02/Ciclos02.java + + + diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.properties b/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.properties new file mode 100644 index 00000000..0cde649f --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjerciciosCiclos02.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjerciciosCiclos02 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjerciciosCiclos02 +main.class=ejerciciosciclos02.EjerciciosCiclos02 +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.xml b/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.xml new file mode 100644 index 00000000..12341334 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjerciciosCiclos02 + + + + + + + + + diff --git a/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ciclos02.java b/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ciclos02.java new file mode 100644 index 00000000..2a76b9f7 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ciclos02.java @@ -0,0 +1,26 @@ +/* +Ejercicio 2: Leer un numero e indicar si es positivo o negativo. +El porceso se repetira hasta que se introduzca un cero 0 + +AHORA CON JOptionPane +*/ +package Ciclos02; + +import javax.swing.JOptionPane; + +public class Ciclos02 { + public static void main(String[] args) { + var numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + while(numero != 0){ + if(numero > 0){ + JOptionPane.showMessageDialog(null, "El numero " +numero+ " es POSITIVO"); + } + else { + JOptionPane.showMessageDialog(null, "El numero " +numero+ " es NEGATIVO"); + } + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro numero")); + } + JOptionPane.showMessageDialog(null, "El numero "+numero+ " finaliza el programa"); + } +} + diff --git a/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ejercicio02.java b/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ejercicio02.java new file mode 100644 index 00000000..b73d4458 --- /dev/null +++ b/JAVA/Clase2/EjerciciosCiclos02/src/Ciclos02/Ejercicio02.java @@ -0,0 +1,29 @@ +/* +Ejercicio 2: Leer un numero e indicar si es positivo o negativo. +El porceso se repetira hasta que se introduzca un cero 0 +*/ +package Ciclos02; + +import java.util.Scanner; + + +public class Ejercicio02 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + System.out.println("Digite un numero: "); + var numero = Integer.parseInt(leer.nextLine()); + while(numero != 0){ + if(numero > 0){ + System.out.println("El numero " +numero+ " es POSITIVO"); + } + else { + System.out.println("El numero " + numero+ " es NEGATIVO"); + } + System.out.println("Digite otro numero"); + numero = Integer.parseInt(leer.nextLine()); + } + System.out.println("El numero "+numero+ " finaliza el programa"); + } +} + + diff --git a/JAVA/Clase3/EjercicioCiclos03/build.xml b/JAVA/Clase3/EjercicioCiclos03/build.xml new file mode 100644 index 00000000..f26938dc --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos03. + + + diff --git a/JAVA/Clase3/EjercicioCiclos03/build/built-jar.properties b/JAVA/Clase3/EjercicioCiclos03/build/built-jar.properties new file mode 100644 index 00000000..9aa8e473 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 25 Sep 2023 17:54:07 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase3\\EjercicioCiclos03= diff --git a/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ciclos03.class b/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ciclos03.class new file mode 100644 index 00000000..ab759339 Binary files /dev/null and b/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ciclos03.class differ diff --git a/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ejercicio03.class b/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ejercicio03.class new file mode 100644 index 00000000..f28a8447 Binary files /dev/null and b/JAVA/Clase3/EjercicioCiclos03/build/classes/Ciclos03/Ejercicio03.class differ diff --git a/JAVA/Clase3/EjercicioCiclos03/manifest.mf b/JAVA/Clase3/EjercicioCiclos03/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/build-impl.xml b/JAVA/Clase3/EjercicioCiclos03/nbproject/build-impl.xml new file mode 100644 index 00000000..d39d0324 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/genfiles.properties b/JAVA/Clase3/EjercicioCiclos03/nbproject/genfiles.properties new file mode 100644 index 00000000..8501e540 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=65326ad2 +build.xml.script.CRC32=08ac13b5 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=65326ad2 +nbproject/build-impl.xml.script.CRC32=88b6bdca +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.properties b/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.xml b/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/project.properties b/JAVA/Clase3/EjercicioCiclos03/nbproject/project.properties new file mode 100644 index 00000000..541b8dc2 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos03.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos03 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos03 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase3/EjercicioCiclos03/nbproject/project.xml b/JAVA/Clase3/EjercicioCiclos03/nbproject/project.xml new file mode 100644 index 00000000..cd374fbd --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos03 + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ciclos03.java b/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ciclos03.java new file mode 100644 index 00000000..c118434e --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ciclos03.java @@ -0,0 +1,30 @@ +/* +Ejercicio 3: Leer numeros hasta que se instroduzca un cero +Para cada uno indicar si es par o impar. +Primero lo haremos con la clase Scanner +Luego con la clase JOptionpane +*/ +package Ciclos03; + +import java.util.Scanner; + + +public class Ciclos03 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero; + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + while (numero !=0){ + if (numero % 2 == 0){ + System.out.println("El numero Ingresado "+ numero + " es PAR"); + } + else { + System.out.println("El numero ingresado "+ numero + " es IMPAR"); + } + System.out.println("Digite otro numero: "); + numero = Integer.parseInt(leer.nextLine()); + } + System.out.println("El numero ingresado es " +numero+ " finaliza el proceso"); + } +} diff --git a/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ejercicio03.java b/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ejercicio03.java new file mode 100644 index 00000000..322245a9 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos03/src/Ciclos03/Ejercicio03.java @@ -0,0 +1,29 @@ +/* +Ejercicio 3: Leer numeros hasta que se instroduzca un cero +Para cada uno indicar si es par o impar. +Primero lo haremos con la clase Scanner +Luego con la clase JOptionpane +*/ + +package Ciclos03; + +import javax.swing.JOptionPane; + + +public class Ejercicio03 { + public static void main(String[] args) { + int numero; + + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero: ")); + while (numero !=0){ + if (numero % 2 == 0){ + JOptionPane.showMessageDialog(null, "El numero Ingresado "+ numero + " es PAR"); + } + else { + JOptionPane.showMessageDialog(null, "El numero Ingresado "+ numero + " es IMPAR"); + } + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro numero : ")); + } + JOptionPane.showMessageDialog(null, "El numero Ingresado "+ numero + " Finaliza el proceso"); + } +} diff --git a/JAVA/Clase3/EjercicioCiclos04/build.xml b/JAVA/Clase3/EjercicioCiclos04/build.xml new file mode 100644 index 00000000..b28431cb --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos04. + + + diff --git a/JAVA/Clase3/EjercicioCiclos04/build/built-jar.properties b/JAVA/Clase3/EjercicioCiclos04/build/built-jar.properties new file mode 100644 index 00000000..d305f208 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 25 Sep 2023 18:22:37 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase3\\EjercicioCiclos04= diff --git a/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ciclos04.class b/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ciclos04.class new file mode 100644 index 00000000..66b15462 Binary files /dev/null and b/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ciclos04.class differ diff --git a/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ejercicio04.class b/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ejercicio04.class new file mode 100644 index 00000000..ba4d612e Binary files /dev/null and b/JAVA/Clase3/EjercicioCiclos04/build/classes/Ciclos04/Ejercicio04.class differ diff --git a/JAVA/Clase3/EjercicioCiclos04/manifest.mf b/JAVA/Clase3/EjercicioCiclos04/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/build-impl.xml b/JAVA/Clase3/EjercicioCiclos04/nbproject/build-impl.xml new file mode 100644 index 00000000..d8a617f3 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/genfiles.properties b/JAVA/Clase3/EjercicioCiclos04/nbproject/genfiles.properties new file mode 100644 index 00000000..f3e9ce74 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5d48ce20 +build.xml.script.CRC32=18ebbc0c +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=5d48ce20 +nbproject/build-impl.xml.script.CRC32=ce5302e0 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.properties b/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.xml b/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/project.properties b/JAVA/Clase3/EjercicioCiclos04/nbproject/project.properties new file mode 100644 index 00000000..bdfd9ada --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos04.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos04 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos04 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase3/EjercicioCiclos04/nbproject/project.xml b/JAVA/Clase3/EjercicioCiclos04/nbproject/project.xml new file mode 100644 index 00000000..32f110f4 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos04 + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ciclos04.java b/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ciclos04.java new file mode 100644 index 00000000..4a77fc96 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ciclos04.java @@ -0,0 +1,26 @@ +/* +Ejercicio 4: Pedir un numero hasta que se teclee uno negativo. +y mostrar cuantos numeros se han introducido +Lo hacemos primero con la clase Scanner +Luego lo hacemos con la clase JOptionpane + */ +package Ciclos04; + +import java.util.Scanner; + + +public class Ciclos04 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, cantVeces = 0; + System.out.println("Ingrese un numero: "); + numero = Integer.parseInt(leer.nextLine()); + while(numero >= 0) { + System.out.println("El Numero " + numero + " Es POSITIVO"); + cantVeces++; + System.out.println("Digite Otro numero: "); + numero = Integer.parseInt(leer.nextLine()); + } + System.out.println("La cantida de numeros positivos introducidos fueron : "+cantVeces); + } +} diff --git a/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java b/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java new file mode 100644 index 00000000..b710072c --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java @@ -0,0 +1,29 @@ +/* +Ejercicio 4: Pedir un numero hasta que se teclee uno negativo. +y mostrar cuantos numeros se han introducido +Lo hacemos primero con la clase Scanner +Luego lo hacemos con la clase JOptionpane + */ +package Ciclos04; + +import javax.swing.JOptionPane; + + + + +public class Ejercicio04 { + public static void main(String[] args) { + int numero, cantVeces = 0; + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero: ")); + + while(numero >= 0) { + JOptionPane.showMessageDialog(null, "El Numero " + numero + " Es POSITIVO"); + cantVeces++; + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro un numero: ")); + + } + JOptionPane.showMessageDialog(null, "La cantidad de numeros positivos introducidos fueron : "+cantVeces); + + } + +} diff --git a/JAVA/Clase3/EjercicioCiclos05/build.xml b/JAVA/Clase3/EjercicioCiclos05/build.xml new file mode 100644 index 00000000..b97d6f8e --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos05. + + + diff --git a/JAVA/Clase3/EjercicioCiclos05/build/built-jar.properties b/JAVA/Clase3/EjercicioCiclos05/build/built-jar.properties new file mode 100644 index 00000000..cb8425d8 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 25 Sep 2023 18:42:54 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase3\\EjercicioCiclos05= diff --git a/JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ciclos05.class b/JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ciclos05.class new file mode 100644 index 00000000..cf3bc3fb Binary files /dev/null and b/JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ciclos05.class differ diff --git a/JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ejercicio05.class b/JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ejercicio05.class new file mode 100644 index 00000000..1f8a4af3 Binary files /dev/null and b/JAVA/Clase3/EjercicioCiclos05/build/classes/Ciclos05/Ejercicio05.class differ diff --git a/JAVA/Clase3/EjercicioCiclos05/manifest.mf b/JAVA/Clase3/EjercicioCiclos05/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/build-impl.xml b/JAVA/Clase3/EjercicioCiclos05/nbproject/build-impl.xml new file mode 100644 index 00000000..8fd2df89 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/genfiles.properties b/JAVA/Clase3/EjercicioCiclos05/nbproject/genfiles.properties new file mode 100644 index 00000000..b0513b12 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=555b4206 +build.xml.script.CRC32=d11a3072 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=555b4206 +nbproject/build-impl.xml.script.CRC32=5e523fd8 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.properties b/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.xml b/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/project.properties b/JAVA/Clase3/EjercicioCiclos05/nbproject/project.properties new file mode 100644 index 00000000..aa77aa1d --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos05.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos05 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos05 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase3/EjercicioCiclos05/nbproject/project.xml b/JAVA/Clase3/EjercicioCiclos05/nbproject/project.xml new file mode 100644 index 00000000..50b67949 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos05 + + + + + + + + + diff --git a/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ciclos05.java b/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ciclos05.java new file mode 100644 index 00000000..a8af4779 --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ciclos05.java @@ -0,0 +1,33 @@ +/* +Ejercicio 5: Ralizar un juego para adivinar un numero, para ello generar +un numero aleatorio entre 0-100 , y luego ir pidiendo numeros indicando "es mayor" +o "es menor" segun sea mayor o menor con respecto a N +El proceso termina cuando el usuario acierta y mostramos el numero de intentos hechos. + */ +package Ciclos05; + +import java.util.Scanner; + + +public class Ciclos05 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, aleatorio, conteo = 0; + aleatorio = (int)(Math.random()*100); // ESto genera un numero aleatorio de 0-100 + do{ + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + if (numero < aleatorio){ + System.out.println("Digite un numero mayor"); + } + else if (numero > aleatorio){ + System.out.println("Digite un numero menor"); + } + else { + System.out.println("!! FELICIDADES!! has encontrado el numero"); + } + conteo++; + }while (numero != aleatorio); + System.out.println("Adivinaste el numero en "+conteo+ " intentos"); + } +} diff --git a/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java b/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java new file mode 100644 index 00000000..61cd806b --- /dev/null +++ b/JAVA/Clase3/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java @@ -0,0 +1,32 @@ +/* + Ejercicio 5: Ralizar un juego para adivinar un numero, para ello generar +un numero aleatorio entre 0-100 , y luego ir pidiendo numeros indicando "es mayor" +o "es menor" segun sea mayor o menor con respecto a N +El proceso termina cuando el usuario acierta y mostramos el numero de intentos hechos. + + */ +package Ciclos05; + +import javax.swing.JOptionPane; + + +public class Ejercicio05 { + public static void main(String[] args) { + int numero, aleatorio, conteo = 0; + aleatorio = (int)(Math.random()*100); // ESto genera un numero aleatorio de 0-100 + do{ + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero: ")); + if (numero < aleatorio){ + JOptionPane.showMessageDialog(null,"Digite un numero mayor"); + } + else if (numero > aleatorio){ + JOptionPane.showMessageDialog(null,"Digite un numero menor"); + } + else { + System.out.println("!! FELICIDADES!! has encontrado el numero"); + } + conteo++; + }while (numero != aleatorio); + JOptionPane.showMessageDialog(null,"Adivinaste el numero en "+conteo+ " intentos"); + } +} diff --git a/JAVA/Clase3/leccionClasesObjetos/build.xml b/JAVA/Clase3/leccionClasesObjetos/build.xml new file mode 100644 index 00000000..560a5e4e --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project leccionClasesObjetos. + + + diff --git a/JAVA/Clase3/leccionClasesObjetos/build/built-jar.properties b/JAVA/Clase3/leccionClasesObjetos/build/built-jar.properties new file mode 100644 index 00000000..0fb32885 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 15:50:40 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase3\\leccionClasesObjetos= diff --git a/JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/Persona.class b/JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/Persona.class new file mode 100644 index 00000000..efde2833 Binary files /dev/null and b/JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/Persona.class differ diff --git a/JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/PruebaPersona.class b/JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/PruebaPersona.class new file mode 100644 index 00000000..2c86e588 Binary files /dev/null and b/JAVA/Clase3/leccionClasesObjetos/build/classes/Clases/PruebaPersona.class differ diff --git a/JAVA/Clase3/leccionClasesObjetos/build/classes/pasoporreferencia/PasoPorReferencia.class b/JAVA/Clase3/leccionClasesObjetos/build/classes/pasoporreferencia/PasoPorReferencia.class new file mode 100644 index 00000000..a7d18b5b Binary files /dev/null and b/JAVA/Clase3/leccionClasesObjetos/build/classes/pasoporreferencia/PasoPorReferencia.class differ diff --git a/JAVA/Clase3/leccionClasesObjetos/manifest.mf b/JAVA/Clase3/leccionClasesObjetos/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/build-impl.xml b/JAVA/Clase3/leccionClasesObjetos/nbproject/build-impl.xml new file mode 100644 index 00000000..136ebe87 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/genfiles.properties b/JAVA/Clase3/leccionClasesObjetos/nbproject/genfiles.properties new file mode 100644 index 00000000..03b0a9a9 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=79e6c7c1 +build.xml.script.CRC32=c2ff6fa1 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=79e6c7c1 +nbproject/build-impl.xml.script.CRC32=5b994aa8 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.properties b/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.xml b/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.xml new file mode 100644 index 00000000..167c3fc2 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase3/leccionClasesObjetos/src/Clases/PruebaPersona.java + + + diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/project.properties b/JAVA/Clase3/leccionClasesObjetos/nbproject/project.properties new file mode 100644 index 00000000..456611dd --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/leccionClasesObjetos.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/leccionClasesObjetos +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=leccionClasesObjetos +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase3/leccionClasesObjetos/nbproject/project.xml b/JAVA/Clase3/leccionClasesObjetos/nbproject/project.xml new file mode 100644 index 00000000..d3a08d14 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + leccionClasesObjetos + + + + + + + + + diff --git a/JAVA/Clase3/leccionClasesObjetos/src/Clases/Persona.java b/JAVA/Clase3/leccionClasesObjetos/src/Clases/Persona.java new file mode 100644 index 00000000..a984cde6 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/src/Clases/Persona.java @@ -0,0 +1,15 @@ + +package Clases; + +public class Persona { + //Atributos de la clase (caracteristica) + public String nombre; + public String apellido; + + //metodos de la clase (acciones) + public void obtenerInformacion(){ + System.out.println("Nombre = " + nombre); + System.out.println("Apellido = " + apellido); + } + +} diff --git a/JAVA/Clase3/leccionClasesObjetos/src/Clases/PruebaPersona.java b/JAVA/Clase3/leccionClasesObjetos/src/Clases/PruebaPersona.java new file mode 100644 index 00000000..6a8db572 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/src/Clases/PruebaPersona.java @@ -0,0 +1,20 @@ + +package Clases; + + +public class PruebaPersona { + public static void main(String[] args) { + Persona persona1 = new Persona(); //llamos al constructor + persona1.nombre = "Ariel"; + persona1.apellido = "Betancud"; + persona1.obtenerInformacion(); + + Persona persona2 = new Persona(); + System.out.println("persona2 = " + persona2); + System.out.println("persona1 = " + persona1); + persona2.obtenerInformacion(); + persona2.nombre = "Osvaldo"; + persona2.apellido = "Giordanini"; + persona2.obtenerInformacion(); + } +} diff --git a/JAVA/Clase3/leccionClasesObjetos/src/pasoporreferencia/PasoPorReferencia.java b/JAVA/Clase3/leccionClasesObjetos/src/pasoporreferencia/PasoPorReferencia.java new file mode 100644 index 00000000..182a4954 --- /dev/null +++ b/JAVA/Clase3/leccionClasesObjetos/src/pasoporreferencia/PasoPorReferencia.java @@ -0,0 +1,35 @@ +//Paso por refencia +package pasoporreferencia; + +import Clases.Persona; + +public class PasoPorReferencia { + public static void main(String[] args) { + Persona persona1 = new Persona(); + persona1.nombre = "Ester"; + System.out.println("persona1 nombre = " + persona1.nombre); + cambiarValor(persona1); + System.out.println("El cambio que hicimos en el nombre es: " + persona1.nombre ); + persona1 = cambiarElValor(persona1); + //Persona persona2 = null; + Persona persona2 = new Persona(); + persona2 = cambiarElValor(persona2); + System.out.println("El nuevo valor del objeto es: " + persona2.nombre); + } + + public static void cambiarValor(Persona persona) { //Paso por referencia + persona.nombre = "Maria"; + + } + public static Persona cambiarElValor(Persona persona){ + if (persona==null){ + System.out.println("Valor de persona es invalido : Null " ); + return null; + } + else { + persona.nombre = "Monica"; + return persona; + } + + } +} diff --git a/JAVA/Clase4/Aritmetica/build.xml b/JAVA/Clase4/Aritmetica/build.xml new file mode 100644 index 00000000..a71512ac --- /dev/null +++ b/JAVA/Clase4/Aritmetica/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Aritmetica. + + + diff --git a/JAVA/Clase4/Aritmetica/build/built-jar.properties b/JAVA/Clase4/Aritmetica/build/built-jar.properties new file mode 100644 index 00000000..32ffb26b --- /dev/null +++ b/JAVA/Clase4/Aritmetica/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 21:01:35 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase4\\Aritmetica= diff --git a/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Aritmetica.class b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Aritmetica.class new file mode 100644 index 00000000..5d70cdef Binary files /dev/null and b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Aritmetica.class differ diff --git a/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Imprimir.class b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Imprimir.class new file mode 100644 index 00000000..088447ad Binary files /dev/null and b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Imprimir.class differ diff --git a/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Persona.class b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Persona.class new file mode 100644 index 00000000..9a6a7607 Binary files /dev/null and b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/Persona.class differ diff --git a/JAVA/Clase4/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class new file mode 100644 index 00000000..6e6317f7 Binary files /dev/null and b/JAVA/Clase4/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class differ diff --git a/JAVA/Clase4/Aritmetica/manifest.mf b/JAVA/Clase4/Aritmetica/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase4/Aritmetica/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase4/Aritmetica/nbproject/build-impl.xml b/JAVA/Clase4/Aritmetica/nbproject/build-impl.xml new file mode 100644 index 00000000..6fddd009 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase4/Aritmetica/nbproject/genfiles.properties b/JAVA/Clase4/Aritmetica/nbproject/genfiles.properties new file mode 100644 index 00000000..953686f7 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=76081a62 +build.xml.script.CRC32=6b4f2526 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=76081a62 +nbproject/build-impl.xml.script.CRC32=ff644ac0 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase4/Aritmetica/nbproject/private/private.properties b/JAVA/Clase4/Aritmetica/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase4/Aritmetica/nbproject/private/private.xml b/JAVA/Clase4/Aritmetica/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase4/Aritmetica/nbproject/project.properties b/JAVA/Clase4/Aritmetica/nbproject/project.properties new file mode 100644 index 00000000..2bd65c11 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Aritmetica.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/Aritmetica +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=Aritmetica +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase4/Aritmetica/nbproject/project.xml b/JAVA/Clase4/Aritmetica/nbproject/project.xml new file mode 100644 index 00000000..82ddac8e --- /dev/null +++ b/JAVA/Clase4/Aritmetica/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Aritmetica + + + + + + + + + diff --git a/JAVA/Clase4/Aritmetica/src/Operaciones/Aritmetica.java b/JAVA/Clase4/Aritmetica/src/Operaciones/Aritmetica.java new file mode 100644 index 00000000..039c8e5e --- /dev/null +++ b/JAVA/Clase4/Aritmetica/src/Operaciones/Aritmetica.java @@ -0,0 +1,48 @@ + +package Operaciones; + + +public class Aritmetica { + //Atributos de la clase + int a; + int b; + + //El constructo es un metodo especial (tiene 3 objetivos: + // 1-construye un objeto + // 2- Reserva un espacio en memoria + //3- Incializa los atributos de la clase + + public Aritmetica(){ //Constructor 1 vacio + System.out.println("Se esta ejecutando el constructor n°1 "); + } + + //estamos viendo lo que se llama sobrecarga de constructores + public Aritmetica(int a , int b){//constructor 2 + this.a= a; + this.b= b; + System.out.println("Se esta ejecutando el constructor n°2"); + } + + + + + //Metodo + public void sumarNumeros(){ + int resultado = a + b; + System.out.println("resultado = " + resultado); + } + + //otro metodo + + public int sumarConRetorno(){ + //int resultado = a + b; + return this.a + this.b; + } + + public int sumarConArgumentos(int a, int b){ + this.a = a; //El argumento "a" se asigna al atriburo "this.a" + this.b = b; + //return a+b; + return this.sumarConRetorno(); + } +} diff --git a/JAVA/Clase4/Aritmetica/src/Operaciones/PruebaAritmetica.java b/JAVA/Clase4/Aritmetica/src/Operaciones/PruebaAritmetica.java new file mode 100644 index 00000000..ec27dfe4 --- /dev/null +++ b/JAVA/Clase4/Aritmetica/src/Operaciones/PruebaAritmetica.java @@ -0,0 +1,70 @@ + +package Operaciones; + + +public class PruebaAritmetica { + public static void main(String[] args) { + + var a =10; //variables locales + int b =7; //Memoria stack + miMetodo(); //llamamos el metodo nuevo + Aritmetica aritmetica1 = new Aritmetica(); + aritmetica1.a = 3; + aritmetica1.b = 7; + // aritmetica1= null; nunca utilizar esto, no se debe hacer para limpiar + aritmetica1.sumarNumeros(); + + //para almacenar un objeto o los atributos se utiliza la memoria "heap" + int resultado = aritmetica1.sumarConRetorno(); + System.out.println("resultado = " + resultado); + + resultado = aritmetica1.sumarConArgumentos(12, 26); + System.out.println("resultado con argumentos = " + resultado); + + System.out.println("aritmetica1 a: "+aritmetica1.a); + System.out.println("aritmetica1 b: " + aritmetica1.b); + + Aritmetica aritmetica2 =new Aritmetica(5,8); + + System.out.println("aritmetica2 = "+ aritmetica2.a); + System.out.println("aritmetica2 = "+ aritmetica2.b); + // aritmetica1= null; nunca utilizar esto, no se debe hacer para limpiar + //System.gc(); metodo para limpiar residuos, es pesado,no utilizar + Persona persona = new Persona("Ariel", "Betancud"); + System.out.println("persona = " + persona); + System.out.println("Persona nombre: "+ persona.nombre); + System.out.println("Persona apellido: "+ persona.apellido); + + } + //Mudulariedad creamos un nuevo metodo + public static void miMetodo(){ + // a = 10; //una variable esta limitada + System.out.println("Aqui hay otro metodo " ); + } +} +// Creamos una nueva clase +class Persona{ + String nombre; + String apellido; + + Persona(String nombre, String apellido){ //constructor + + // super();//llamada al constructur de la clase padre object + //Imprimir imprimir = new Imprimir(); + new Imprimir().imprimir(this); + this.nombre = nombre; + this.apellido= apellido; + System.out.println("Objeto persona usando this: "+this); + } +} + +class Imprimir{ + public Imprimir(){ + super(); //el constructor de la clase padre, para reservar memoria + } + public void imprimir(Persona persona){ + System.out.println("Persona desde la clase imprimir: " +persona ); + System.out.println("Impresion del objeto actual (this): " +this ); + + } +} \ No newline at end of file diff --git a/JAVA/Clase4/EjercicioCiclo06/build.xml b/JAVA/Clase4/EjercicioCiclo06/build.xml new file mode 100644 index 00000000..8c944419 --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclo06. + + + diff --git a/JAVA/Clase4/EjercicioCiclo06/build/built-jar.properties b/JAVA/Clase4/EjercicioCiclo06/build/built-jar.properties new file mode 100644 index 00000000..0c6532f6 --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 09 Oct 2023 10:14:49 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase4\\EjercicioCiclo06= diff --git a/JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ciclos06.class b/JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ciclos06.class new file mode 100644 index 00000000..ce637be6 Binary files /dev/null and b/JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ciclos06.class differ diff --git a/JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ejercicio06.class b/JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ejercicio06.class new file mode 100644 index 00000000..df49b7cf Binary files /dev/null and b/JAVA/Clase4/EjercicioCiclo06/build/classes/Ciclos06/Ejercicio06.class differ diff --git a/JAVA/Clase4/EjercicioCiclo06/manifest.mf b/JAVA/Clase4/EjercicioCiclo06/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/build-impl.xml b/JAVA/Clase4/EjercicioCiclo06/nbproject/build-impl.xml new file mode 100644 index 00000000..3eb34db0 --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/genfiles.properties b/JAVA/Clase4/EjercicioCiclo06/nbproject/genfiles.properties new file mode 100644 index 00000000..9dba631d --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=89c96ce1 +build.xml.script.CRC32=e4d6c432 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=89c96ce1 +nbproject/build-impl.xml.script.CRC32=8c897cb8 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.properties b/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.xml b/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/project.properties b/JAVA/Clase4/EjercicioCiclo06/nbproject/project.properties new file mode 100644 index 00000000..a171f6dc --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclo06.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclo06 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclo06 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase4/EjercicioCiclo06/nbproject/project.xml b/JAVA/Clase4/EjercicioCiclo06/nbproject/project.xml new file mode 100644 index 00000000..ada9f9b1 --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclo06 + + + + + + + + + diff --git a/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ciclos06.java b/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ciclos06.java new file mode 100644 index 00000000..cccfd6ec --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ciclos06.java @@ -0,0 +1,20 @@ +//Ejercicio 6: Pedir numeros hasta que se teclee un 0, mostrar la suma de todos +//los numeros intruducidos + +package Ciclos06; + +import java.util.Scanner; + + +public class Ciclos06 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero,suma = 0; + do { + System.out.println("Digite un numero : "); + numero = Integer.parseInt(leer.nextLine()); + suma += numero; + }while (numero != 0); + System.out.println("\nLa suma de todos los numeros ingresados es: " + suma); + } +} diff --git a/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ejercicio06.java b/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ejercicio06.java new file mode 100644 index 00000000..1834678f --- /dev/null +++ b/JAVA/Clase4/EjercicioCiclo06/src/Ciclos06/Ejercicio06.java @@ -0,0 +1,17 @@ +//Ejercicio 6: Pedir numeros hasta que se teclee un 0, mostrar la suma de todos +//los numeros intruducidos +//JOptieonPane +package Ciclos06; + +import javax.swing.JOptionPane; + +public class Ejercicio06 { + public static void main(String[] args) { + int numero,suma = 0; + do { + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + suma += numero; + }while (numero != 0); + JOptionPane.showMessageDialog(null,"La suma de todos los numeros ingresados es: " + suma); + } +} diff --git a/JAVA/Clase4/EjerciciosCiclos07/build.xml b/JAVA/Clase4/EjerciciosCiclos07/build.xml new file mode 100644 index 00000000..faec4912 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjerciciosCiclos07. + + + diff --git a/JAVA/Clase4/EjerciciosCiclos07/build/built-jar.properties b/JAVA/Clase4/EjerciciosCiclos07/build/built-jar.properties new file mode 100644 index 00000000..b27c9035 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 13 Oct 2023 17:12:27 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase4\\EjerciciosCiclos07= diff --git a/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ciclos07.class b/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ciclos07.class new file mode 100644 index 00000000..16744cf8 Binary files /dev/null and b/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ciclos07.class differ diff --git a/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ejercicio07.class b/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ejercicio07.class new file mode 100644 index 00000000..52dd6828 Binary files /dev/null and b/JAVA/Clase4/EjerciciosCiclos07/build/classes/Ciclois7/Ejercicio07.class differ diff --git a/JAVA/Clase4/EjerciciosCiclos07/manifest.mf b/JAVA/Clase4/EjerciciosCiclos07/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/build-impl.xml b/JAVA/Clase4/EjerciciosCiclos07/nbproject/build-impl.xml new file mode 100644 index 00000000..cfef785b --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/genfiles.properties b/JAVA/Clase4/EjerciciosCiclos07/nbproject/genfiles.properties new file mode 100644 index 00000000..41621c46 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=85da0b56 +build.xml.script.CRC32=db7f4edd +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=85da0b56 +nbproject/build-impl.xml.script.CRC32=b157c48a +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.properties b/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.xml b/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.properties b/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.properties new file mode 100644 index 00000000..e2bd4d8a --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjerciciosCiclos07.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjerciciosCiclos07 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjerciciosCiclos07 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.xml b/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.xml new file mode 100644 index 00000000..4a293f1b --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjerciciosCiclos07 + + + + + + + + + diff --git a/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ciclos07.java b/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ciclos07.java new file mode 100644 index 00000000..797d48c8 --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ciclos07.java @@ -0,0 +1,32 @@ +/* + Ejercicio 07: Pedir numeros hasta que se intruduzca uno negativo y calcular el promedio + + */ +package Ciclois7; + +import java.util.Scanner; + + +public class Ciclos07 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, conteo = 0, suma = 0; + float promedio = 0; + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + while (numero >= 0){ //mientras el numero no sea negativo + suma+= numero; + conteo ++; + System.out.println("Digite otra numero"); + numero = Integer.parseInt(leer.nextLine()); + } + if (conteo ==0){ + System.out.println("\nError la division entre cero no existe = "); + } + else { + promedio = (float)suma/conteo; + System.out.println("\nEl promedio es: " + promedio); + } + } + +} diff --git a/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ejercicio07.java b/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ejercicio07.java new file mode 100644 index 00000000..bf4b583b --- /dev/null +++ b/JAVA/Clase4/EjerciciosCiclos07/src/Ciclois7/Ejercicio07.java @@ -0,0 +1,29 @@ +/* + Ejercicio 07: Pedir numeros hasta que se intruduzca uno negativo y calcular el promedio + + */ +package Ciclois7; + +import javax.swing.JOptionPane; + + +public class Ejercicio07 { + public static void main(String[] args) { + int numero, conteo = 0, suma = 0; + float promedio = 0; + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + while (numero >= 0){ //mientras el numero no sea negativo + suma+= numero; + conteo ++; + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro numero")); + } + if (conteo ==0){ + JOptionPane.showMessageDialog(null,"\nError la division entre cero no existe "); + } + else { + promedio = (float)suma/conteo; + JOptionPane.showMessageDialog(null,"El promedio es: " + promedio); + } + } + +} diff --git a/JAVA/Clase5/EjercicioCiclos08/build.xml b/JAVA/Clase5/EjercicioCiclos08/build.xml new file mode 100644 index 00000000..0ecf3aa2 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos08. + + + diff --git a/JAVA/Clase5/EjercicioCiclos08/build/built-jar.properties b/JAVA/Clase5/EjercicioCiclos08/build/built-jar.properties new file mode 100644 index 00000000..0792f247 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 13 Oct 2023 17:13:29 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase5\\EjercicioCiclos08= diff --git a/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ciclos08.class b/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ciclos08.class new file mode 100644 index 00000000..b4caf5d5 Binary files /dev/null and b/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ciclos08.class differ diff --git a/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ejercicio08.class b/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ejercicio08.class new file mode 100644 index 00000000..7688b9fa Binary files /dev/null and b/JAVA/Clase5/EjercicioCiclos08/build/classes/Ciclos08/Ejercicio08.class differ diff --git a/JAVA/Clase5/EjercicioCiclos08/manifest.mf b/JAVA/Clase5/EjercicioCiclos08/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/build-impl.xml b/JAVA/Clase5/EjercicioCiclos08/nbproject/build-impl.xml new file mode 100644 index 00000000..3227826f --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/genfiles.properties b/JAVA/Clase5/EjercicioCiclos08/nbproject/genfiles.properties new file mode 100644 index 00000000..b540283a --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3d9a9f88 +build.xml.script.CRC32=70f6fdc3 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=3d9a9f88 +nbproject/build-impl.xml.script.CRC32=b8eb0085 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.properties b/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.xml b/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/project.properties b/JAVA/Clase5/EjercicioCiclos08/nbproject/project.properties new file mode 100644 index 00000000..9508c90b --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos08.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos08 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos08 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase5/EjercicioCiclos08/nbproject/project.xml b/JAVA/Clase5/EjercicioCiclos08/nbproject/project.xml new file mode 100644 index 00000000..928ea666 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos08 + + + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ciclos08.java b/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ciclos08.java new file mode 100644 index 00000000..3f7f5d83 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ciclos08.java @@ -0,0 +1,20 @@ +/* + Ejercicio 08: Pedir un numero N, y mostrar todos los numeros del 1 al N. + */ +package Ciclos08; + +import java.util.Scanner; + + +public class Ciclos08 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + System.out.println("Digite un numero: "); + int numero = Integer.parseInt(leer.nextLine()); + int i =1; + while (i <= numero){ + System.out.println(i); + i++; + } + } +} diff --git a/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ejercicio08.java b/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ejercicio08.java new file mode 100644 index 00000000..e52de4d9 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos08/src/Ciclos08/Ejercicio08.java @@ -0,0 +1,19 @@ +/* + Ejercicio 08: Pedir un numero N, y mostrar todos los numeros del 1 al N. +con JOtionPane + */ +package Ciclos08; + +import javax.swing.JOptionPane; + + +public class Ejercicio08 { + public static void main(String[] args) { + int numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + int i = 1; + while (i <= numero){ + JOptionPane.showMessageDialog(null, i); + i++; + } + } +} diff --git a/JAVA/Clase5/EjercicioCiclos09/build.xml b/JAVA/Clase5/EjercicioCiclos09/build.xml new file mode 100644 index 00000000..02a4bd09 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos09. + + + diff --git a/JAVA/Clase5/EjercicioCiclos09/build/built-jar.properties b/JAVA/Clase5/EjercicioCiclos09/build/built-jar.properties new file mode 100644 index 00000000..2b8fc0b1 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 13 Oct 2023 17:13:57 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase5\\EjercicioCiclos09= diff --git a/JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ciclos09.class b/JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ciclos09.class new file mode 100644 index 00000000..e8a69e39 Binary files /dev/null and b/JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ciclos09.class differ diff --git a/JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ejercicio09.class b/JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ejercicio09.class new file mode 100644 index 00000000..e6cef536 Binary files /dev/null and b/JAVA/Clase5/EjercicioCiclos09/build/classes/Ciclos09/Ejercicio09.class differ diff --git a/JAVA/Clase5/EjercicioCiclos09/manifest.mf b/JAVA/Clase5/EjercicioCiclos09/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/build-impl.xml b/JAVA/Clase5/EjercicioCiclos09/nbproject/build-impl.xml new file mode 100644 index 00000000..b9c7ade4 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/genfiles.properties b/JAVA/Clase5/EjercicioCiclos09/nbproject/genfiles.properties new file mode 100644 index 00000000..031bc66e --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=358913ae +build.xml.script.CRC32=b90771bd +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=358913ae +nbproject/build-impl.xml.script.CRC32=28ea3dbd +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.properties b/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.xml b/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/project.properties b/JAVA/Clase5/EjercicioCiclos09/nbproject/project.properties new file mode 100644 index 00000000..dc75ff91 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos09.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos09 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos09 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase5/EjercicioCiclos09/nbproject/project.xml b/JAVA/Clase5/EjercicioCiclos09/nbproject/project.xml new file mode 100644 index 00000000..a3162fae --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos09 + + + + + + + + + diff --git a/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ciclos09.java b/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ciclos09.java new file mode 100644 index 00000000..602f22ab --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ciclos09.java @@ -0,0 +1,38 @@ +/* +Ejercicio n°09: Pedir el dia, mes y ali de una fecha e indicar si la fecha es +correcta . Suponiendo que todos los meses son de 30 dias. + */ +package Ciclos09; + +import java.util.Scanner; + + +public class Ciclos09 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + System.out.println("Digite el dia: "); + int dia = Integer.parseInt(leer.nextLine()); + System.out.println("Digite el mes: "); + int mes = Integer.parseInt(leer.nextLine()); + System.out.println("Digite el año: "); + int anio = Integer.parseInt(leer.nextLine()); + + if ((dia != 0) &&(dia <= 30) ){ + if ((mes !=0) && (mes <=12)){ + if ((anio !=0)&& (anio <=2023)){ + System.out.println("La fecha ingresada es: " +dia+ "/" + mes+ "/" + anio ); + } + else { + System.out.println("Fecha incorrecta , año incorrecto "); + } + } + else { + System.out.println("Fecha incorrecta , mes incorrecto "); + } + } + else { + System.out.println("Fecha incorrecta, dia incorrecto "); + } + + } +} diff --git a/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ejercicio09.java b/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ejercicio09.java new file mode 100644 index 00000000..f339aba6 --- /dev/null +++ b/JAVA/Clase5/EjercicioCiclos09/src/Ciclos09/Ejercicio09.java @@ -0,0 +1,35 @@ +/* + Ejercicio n°09: Pedir el dia, mes y ali de una fecha e indicar si la fecha es +correcta . Suponiendo que todos los meses son de 30 dias. + */ +package Ciclos09; + +import javax.swing.JOptionPane; + + + + +public class Ejercicio09 { + public static void main(String[] args) { + int dia = Integer.parseInt(JOptionPane.showInputDialog("Digite el dia")); + int mes = Integer.parseInt(JOptionPane.showInputDialog("Digite el mes")); + int anio = Integer.parseInt(JOptionPane.showInputDialog("Digite el anio")); + + if ((dia != 0) &&(dia <= 30) ){ + if ((mes !=0) && (mes <=12)){ + if ((anio !=0)&& (anio <=2023)){ + JOptionPane.showMessageDialog(null, "La fecha ingresada es: " +dia+ "/" + mes+ "/" + anio ); + } + else { + JOptionPane.showMessageDialog(null,"Fecha incorrecta , año incorrecto "); + } + } + else { + JOptionPane.showMessageDialog(null,"Fecha incorrecta , mes incorrecto "); + } + } + else { + JOptionPane.showMessageDialog(null,"Fecha incorrecta, dia incorrecto "); + } + } +} diff --git a/JAVA/Clase6/EjercicioCiclos10/build.xml b/JAVA/Clase6/EjercicioCiclos10/build.xml new file mode 100644 index 00000000..1309783c --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos10. + + + diff --git a/JAVA/Clase6/EjercicioCiclos10/build/built-jar.properties b/JAVA/Clase6/EjercicioCiclos10/build/built-jar.properties new file mode 100644 index 00000000..1c145367 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 16:06:55 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase6\\EjercicioCiclos10= diff --git a/JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ciclos10.class b/JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ciclos10.class new file mode 100644 index 00000000..18ad06d0 Binary files /dev/null and b/JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ciclos10.class differ diff --git a/JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ejercicio10.class b/JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ejercicio10.class new file mode 100644 index 00000000..d346d7b1 Binary files /dev/null and b/JAVA/Clase6/EjercicioCiclos10/build/classes/ciclos10/Ejercicio10.class differ diff --git a/JAVA/Clase6/EjercicioCiclos10/manifest.mf b/JAVA/Clase6/EjercicioCiclos10/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/build-impl.xml b/JAVA/Clase6/EjercicioCiclos10/nbproject/build-impl.xml new file mode 100644 index 00000000..3a828a2d --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/genfiles.properties b/JAVA/Clase6/EjercicioCiclos10/nbproject/genfiles.properties new file mode 100644 index 00000000..1c083ce1 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=af0368c9 +build.xml.script.CRC32=3ebb2cc1 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=af0368c9 +nbproject/build-impl.xml.script.CRC32=cb564560 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.properties b/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.xml b/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.xml new file mode 100644 index 00000000..27eebe05 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ejercicio10.java + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ciclos10.java + + + diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/project.properties b/JAVA/Clase6/EjercicioCiclos10/nbproject/project.properties new file mode 100644 index 00000000..ee3d77a4 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos10.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos10 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos10 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase6/EjercicioCiclos10/nbproject/project.xml b/JAVA/Clase6/EjercicioCiclos10/nbproject/project.xml new file mode 100644 index 00000000..317ace2a --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos10 + + + + + + + + + diff --git a/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ciclos10.java b/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ciclos10.java new file mode 100644 index 00000000..320786e1 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ciclos10.java @@ -0,0 +1,21 @@ +/* + Ejercicio 10: Pedir 10 numeros y escribir la suma total +Hacer con la clase Scanner y JOptionPane + */ +package ciclos10; + +import java.util.Scanner; + +public class Ciclos10 { + public static void main(String[] args) { + Scanner leer = new Scanner(System.in); + int numero, suma = 0; + for(int i = 1; i <= 10; i++){ + System.out.println("Digite un numero: "); + numero = Integer.parseInt(leer.nextLine()); + suma += numero; + + } + System.out.println("\nLa suma de todos los numeros es: "+suma); + } +} diff --git a/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ejercicio10.java b/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ejercicio10.java new file mode 100644 index 00000000..25358435 --- /dev/null +++ b/JAVA/Clase6/EjercicioCiclos10/src/ciclos10/Ejercicio10.java @@ -0,0 +1,23 @@ +/* + Ejercicio 10: Pedir 10 numeros y escribir la suma total +Hacer con la clase Scanner y JOptionPane + */ +package ciclos10; + +import javax.swing.JOptionPane; + + +public class Ejercicio10 { + public static void main(String[] args) { + + int numero, suma = 0; + for(int i = 1; i <= 10; i++){ + System.out.println("Digite un numero: "); + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero: ")); + suma += numero; + + } + JOptionPane.showMessageDialog(null, "La suma de todos los numeros es: " +suma); + } + +} \ No newline at end of file diff --git a/JAVA/Clase6/HolaMundo/build.xml b/JAVA/Clase6/HolaMundo/build.xml new file mode 100644 index 00000000..145ccb6a --- /dev/null +++ b/JAVA/Clase6/HolaMundo/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project HolaMundo. + + + diff --git a/JAVA/Clase6/HolaMundo/build/built-jar.properties b/JAVA/Clase6/HolaMundo/build/built-jar.properties new file mode 100644 index 00000000..fd01c53e --- /dev/null +++ b/JAVA/Clase6/HolaMundo/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 15:27:47 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase6\\HolaMundo= diff --git a/JAVA/Clase6/HolaMundo/build/classes/HolaMundo.class b/JAVA/Clase6/HolaMundo/build/classes/HolaMundo.class new file mode 100644 index 00000000..22b2c798 Binary files /dev/null and b/JAVA/Clase6/HolaMundo/build/classes/HolaMundo.class differ diff --git a/JAVA/Clase6/HolaMundo/build/classes/PasoPorValor/PasoPorValor.class b/JAVA/Clase6/HolaMundo/build/classes/PasoPorValor/PasoPorValor.class new file mode 100644 index 00000000..66fe27c4 Binary files /dev/null and b/JAVA/Clase6/HolaMundo/build/classes/PasoPorValor/PasoPorValor.class differ diff --git a/JAVA/Clase6/HolaMundo/manifest.mf b/JAVA/Clase6/HolaMundo/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase6/HolaMundo/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase6/HolaMundo/nbproject/build-impl.xml b/JAVA/Clase6/HolaMundo/nbproject/build-impl.xml new file mode 100644 index 00000000..0b172338 --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase6/HolaMundo/nbproject/genfiles.properties b/JAVA/Clase6/HolaMundo/nbproject/genfiles.properties new file mode 100644 index 00000000..951bf88f --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c778461f +build.xml.script.CRC32=79d59106 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=c778461f +nbproject/build-impl.xml.script.CRC32=c67720df +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase6/HolaMundo/nbproject/private/private.properties b/JAVA/Clase6/HolaMundo/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase6/HolaMundo/nbproject/private/private.xml b/JAVA/Clase6/HolaMundo/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase6/HolaMundo/nbproject/project.properties b/JAVA/Clase6/HolaMundo/nbproject/project.properties new file mode 100644 index 00000000..eabaef94 --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/HolaMundo.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/HolaMundo +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=HolaMundo +main.class=HolaMundo +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase6/HolaMundo/nbproject/project.xml b/JAVA/Clase6/HolaMundo/nbproject/project.xml new file mode 100644 index 00000000..01a54b42 --- /dev/null +++ b/JAVA/Clase6/HolaMundo/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + HolaMundo + + + + + + + + + diff --git a/JAVA/Clase6/HolaMundo/src/HolaMundo.java b/JAVA/Clase6/HolaMundo/src/HolaMundo.java new file mode 100644 index 00000000..fa2294c7 --- /dev/null +++ b/JAVA/Clase6/HolaMundo/src/HolaMundo.java @@ -0,0 +1,6 @@ +//Nuestro primer programa Hola mundo +public class HolaMundo { + public static void main (String args[]){ + System.out.println("Hola Mundo desde Java"); + } +} diff --git a/JAVA/Clase6/HolaMundo/src/PasoPorValor/PasoPorValor.java b/JAVA/Clase6/HolaMundo/src/PasoPorValor/PasoPorValor.java new file mode 100644 index 00000000..c416e40b --- /dev/null +++ b/JAVA/Clase6/HolaMundo/src/PasoPorValor/PasoPorValor.java @@ -0,0 +1,17 @@ +/* +mostramos como funciona el paso por valor + */ +package PasoPorValor; + +public class PasoPorValor { + public static void main(String[] args) { + var valorX= 20; + System.out.println("valorX = " + valorX); + cambioValor(valorX); //solo le enviamos una copia + } + public static void cambioValor(int arg1){ //parametros por valor + System.out.println("arg1 = " + arg1); + arg1 =15; + } + +} diff --git a/JAVA/Clase6/ProyectoCaja/build.xml b/JAVA/Clase6/ProyectoCaja/build.xml new file mode 100644 index 00000000..e2f3df1a --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ProyectoCaja. + + + diff --git a/JAVA/Clase6/ProyectoCaja/build/built-jar.properties b/JAVA/Clase6/ProyectoCaja/build/built-jar.properties new file mode 100644 index 00000000..cf0dcb5e --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 13:11:05 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase6\\ProyectoCaja= diff --git a/JAVA/Clase6/ProyectoCaja/build/classes/caja/Caja.class b/JAVA/Clase6/ProyectoCaja/build/classes/caja/Caja.class new file mode 100644 index 00000000..ad0701e0 Binary files /dev/null and b/JAVA/Clase6/ProyectoCaja/build/classes/caja/Caja.class differ diff --git a/JAVA/Clase6/ProyectoCaja/build/classes/caja/PruebaCaja.class b/JAVA/Clase6/ProyectoCaja/build/classes/caja/PruebaCaja.class new file mode 100644 index 00000000..4e19524e Binary files /dev/null and b/JAVA/Clase6/ProyectoCaja/build/classes/caja/PruebaCaja.class differ diff --git a/JAVA/Clase6/ProyectoCaja/manifest.mf b/JAVA/Clase6/ProyectoCaja/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/build-impl.xml b/JAVA/Clase6/ProyectoCaja/nbproject/build-impl.xml new file mode 100644 index 00000000..908b924f --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/genfiles.properties b/JAVA/Clase6/ProyectoCaja/nbproject/genfiles.properties new file mode 100644 index 00000000..5f5ff459 --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b04afa17 +build.xml.script.CRC32=2bd8cc04 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=b04afa17 +nbproject/build-impl.xml.script.CRC32=6f0f4672 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/private/private.properties b/JAVA/Clase6/ProyectoCaja/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/private/private.xml b/JAVA/Clase6/ProyectoCaja/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/project.properties b/JAVA/Clase6/ProyectoCaja/nbproject/project.properties new file mode 100644 index 00000000..3c5e800a --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ProyectoCaja.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/ProyectoCaja +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=ProyectoCaja +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase6/ProyectoCaja/nbproject/project.xml b/JAVA/Clase6/ProyectoCaja/nbproject/project.xml new file mode 100644 index 00000000..cceef7e3 --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ProyectoCaja + + + + + + + + + diff --git a/JAVA/Clase6/ProyectoCaja/src/caja/Caja.java b/JAVA/Clase6/ProyectoCaja/src/caja/Caja.java new file mode 100644 index 00000000..dd5f559f --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/src/caja/Caja.java @@ -0,0 +1,24 @@ + +package caja; //packeage + +public class Caja { //Clase publica caja + //atributos (caracteristicas) + int ancho; + int alto; + int profundo; + + //Metodos y constructores (acciones) + public Caja(){ //Constructor 1 = vacio + + } + //Constructor con parametros + public Caja(int ancho, int alto, int profundo) { //Constructor 2 + this.ancho = ancho; + this.alto = alto; + this.profundo = profundo; + } + + public int calcularVolumen() { //metodo para calcular + return ancho*alto*profundo; + } +} diff --git a/JAVA/Clase6/ProyectoCaja/src/caja/PruebaCaja.java b/JAVA/Clase6/ProyectoCaja/src/caja/PruebaCaja.java new file mode 100644 index 00000000..945c2ba6 --- /dev/null +++ b/JAVA/Clase6/ProyectoCaja/src/caja/PruebaCaja.java @@ -0,0 +1,31 @@ +/* +proyecto caja : +Ejercicio 1: Crear un proyecto segun las especificaciones mostradas a continuacion +la formula es: volumen = ancho*alto*profundidad + */ +package caja; + + +public class PruebaCaja { + public static void main(String[] args) { //metodo main + //variables locales + int medidaAncho = 3; //valores ingresados en codigo duro + int medidaAlto = 2; + int medidaProf = 6; + + Caja caja1 = new Caja(); //instanciamos el objeto, constructor vacio + caja1.ancho = medidaAncho; //le pasamos los valores al objeto + caja1.alto = medidaAlto; + caja1.profundo = medidaProf; + int resultado = caja1.calcularVolumen(); //llamamos al metodo + + //primer resultado + System.out.println("Resultado volumen de caja 1: " + resultado); + + Caja caja2 = new Caja(2, 4, 6); // Llamamos al constructor 2 con nuevos argumentos + //llamamos con el nuevo objeto al metodo para un nuevo calculo + System.out.println("Resultado volumen caja 2: "+ caja2.calcularVolumen()); + + } + +} diff --git a/JAVA/Clase7/EjercicioCiclos11/build.xml b/JAVA/Clase7/EjercicioCiclos11/build.xml new file mode 100644 index 00000000..3d94b70c --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos11. + + + diff --git a/JAVA/Clase7/EjercicioCiclos11/build/built-jar.properties b/JAVA/Clase7/EjercicioCiclos11/build/built-jar.properties new file mode 100644 index 00000000..e689c1dc --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 19:42:34 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase7\\EjercicioCiclos11= diff --git a/JAVA/Clase7/EjercicioCiclos11/build/classes/ciclos11/Ciclos11.class b/JAVA/Clase7/EjercicioCiclos11/build/classes/ciclos11/Ciclos11.class new file mode 100644 index 00000000..f3fe7031 Binary files /dev/null and b/JAVA/Clase7/EjercicioCiclos11/build/classes/ciclos11/Ciclos11.class differ diff --git a/JAVA/Clase7/EjercicioCiclos11/manifest.mf b/JAVA/Clase7/EjercicioCiclos11/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/build-impl.xml b/JAVA/Clase7/EjercicioCiclos11/nbproject/build-impl.xml new file mode 100644 index 00000000..97519412 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/genfiles.properties b/JAVA/Clase7/EjercicioCiclos11/nbproject/genfiles.properties new file mode 100644 index 00000000..7fa13619 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a710e4ef +build.xml.script.CRC32=f74aa0bf +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a710e4ef +nbproject/build-impl.xml.script.CRC32=5b577858 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.properties b/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.xml b/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.xml new file mode 100644 index 00000000..fc613fcb --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase7/EjercicioCiclos11/src/ciclos11/Ciclos11.java + + + diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/project.properties b/JAVA/Clase7/EjercicioCiclos11/nbproject/project.properties new file mode 100644 index 00000000..93f43a8a --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos11.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos11 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos11 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase7/EjercicioCiclos11/nbproject/project.xml b/JAVA/Clase7/EjercicioCiclos11/nbproject/project.xml new file mode 100644 index 00000000..b4d474bd --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos11 + + + + + + + + + diff --git a/JAVA/Clase7/EjercicioCiclos11/src/ciclos11/Ciclos11.java b/JAVA/Clase7/EjercicioCiclos11/src/ciclos11/Ciclos11.java new file mode 100644 index 00000000..0d23b816 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos11/src/ciclos11/Ciclos11.java @@ -0,0 +1,18 @@ +/* +Ejercicio 11: Diseñar un programa que muestre el producto de los 10 primeros +numeros impares +hacerlo con JOptionPane + */ +package ciclos11; + +import javax.swing.JOptionPane; + +public class Ciclos11 { + public static void main(String[] args) { + long producto = 1; + for(int i = 1; i<= 20; i+=2){ + producto *=i; + } + JOptionPane.showMessageDialog(null,"El producto de los numeros impares es: "+ producto); + } +} diff --git a/JAVA/Clase7/EjercicioCiclos12/build.xml b/JAVA/Clase7/EjercicioCiclos12/build.xml new file mode 100644 index 00000000..af8d84b0 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos12. + + + diff --git a/JAVA/Clase7/EjercicioCiclos12/build/built-jar.properties b/JAVA/Clase7/EjercicioCiclos12/build/built-jar.properties new file mode 100644 index 00000000..68919758 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/build/built-jar.properties @@ -0,0 +1,4 @@ +#Mon, 16 Oct 2023 19:58:16 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase7\\EjercicioCiclos12= diff --git a/JAVA/Clase7/EjercicioCiclos12/build/classes/ciclos12/Ciclos12.class b/JAVA/Clase7/EjercicioCiclos12/build/classes/ciclos12/Ciclos12.class new file mode 100644 index 00000000..eb2438bf Binary files /dev/null and b/JAVA/Clase7/EjercicioCiclos12/build/classes/ciclos12/Ciclos12.class differ diff --git a/JAVA/Clase7/EjercicioCiclos12/manifest.mf b/JAVA/Clase7/EjercicioCiclos12/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/build-impl.xml b/JAVA/Clase7/EjercicioCiclos12/nbproject/build-impl.xml new file mode 100644 index 00000000..439e944f --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/genfiles.properties b/JAVA/Clase7/EjercicioCiclos12/nbproject/genfiles.properties new file mode 100644 index 00000000..8a1c0c7c --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=bf247085 +build.xml.script.CRC32=7629327c +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=bf247085 +nbproject/build-impl.xml.script.CRC32=30253951 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.properties b/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.xml b/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.xml new file mode 100644 index 00000000..72acee80 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/Ciclos12.java + + + diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/project.properties b/JAVA/Clase7/EjercicioCiclos12/nbproject/project.properties new file mode 100644 index 00000000..ec7f00a9 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/EjercicioCiclos12.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/EjercicioCiclos12 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=EjercicioCiclos12 +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase7/EjercicioCiclos12/nbproject/project.xml b/JAVA/Clase7/EjercicioCiclos12/nbproject/project.xml new file mode 100644 index 00000000..de9ec905 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos12 + + + + + + + + + diff --git a/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/Ciclos12.java b/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/Ciclos12.java new file mode 100644 index 00000000..dfd21991 --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/Ciclos12.java @@ -0,0 +1,24 @@ +/* +Ejercicio 12: Pedir un numero y calcular su factorial hacerlo con las dos clases +Scanner y JOptionPane + */ +package ciclos12; + +// import java.util.Scanner; +import javax.swing.JOptionPane; + + +public class Ciclos12 { + public static void main(String[] args) { + //Scanner leer = new Scanner(System.in); + long factorial = 1; + //System.out.println("Digite un numero: "); + int numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + for(int i =1; i <= numero; i++){ + factorial *= i; + } + //System.out.println("\nEl factorial del numero ingresado es: "+ factorial); + JOptionPane.showMessageDialog (null, "El factorial del numero ingresado es : "+factorial); + } + +} diff --git a/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/JOptionpane.java b/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/JOptionpane.java new file mode 100644 index 00000000..84929d1c --- /dev/null +++ b/JAVA/Clase7/EjercicioCiclos12/src/ciclos12/JOptionpane.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package ciclos12; + +/** + * + * @author Santiago + */ +class JOptionpane { + +} diff --git a/JAVA/Clase7/Encapsulamiento/build.xml b/JAVA/Clase7/Encapsulamiento/build.xml new file mode 100644 index 00000000..80c330ec --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Encapsulamiento. + + + diff --git a/JAVA/Clase7/Encapsulamiento/build/built-jar.properties b/JAVA/Clase7/Encapsulamiento/build/built-jar.properties new file mode 100644 index 00000000..241bcf05 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 17 Oct 2023 10:30:46 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase7\\Encapsulamiento= diff --git a/JAVA/Clase7/Encapsulamiento/build/classes/dominio/Persona.class b/JAVA/Clase7/Encapsulamiento/build/classes/dominio/Persona.class new file mode 100644 index 00000000..3a0a5234 Binary files /dev/null and b/JAVA/Clase7/Encapsulamiento/build/classes/dominio/Persona.class differ diff --git a/JAVA/Clase7/Encapsulamiento/build/classes/test/PersonaPrueba.class b/JAVA/Clase7/Encapsulamiento/build/classes/test/PersonaPrueba.class new file mode 100644 index 00000000..91a97b41 Binary files /dev/null and b/JAVA/Clase7/Encapsulamiento/build/classes/test/PersonaPrueba.class differ diff --git a/JAVA/Clase7/Encapsulamiento/manifest.mf b/JAVA/Clase7/Encapsulamiento/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/build-impl.xml b/JAVA/Clase7/Encapsulamiento/nbproject/build-impl.xml new file mode 100644 index 00000000..44516af7 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/genfiles.properties b/JAVA/Clase7/Encapsulamiento/nbproject/genfiles.properties new file mode 100644 index 00000000..315ecc70 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8bb31896 +build.xml.script.CRC32=bd535e09 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=8bb31896 +nbproject/build-impl.xml.script.CRC32=33e27fa5 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/private/private.properties b/JAVA/Clase7/Encapsulamiento/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/private/private.xml b/JAVA/Clase7/Encapsulamiento/nbproject/private/private.xml new file mode 100644 index 00000000..d868af82 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase7/Encapsulamiento/src/dominio/Persona.java + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase7/Encapsulamiento/src/test/PersonaPrueba.java + + + diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/project.properties b/JAVA/Clase7/Encapsulamiento/nbproject/project.properties new file mode 100644 index 00000000..a839adc3 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Encapsulamiento.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/Encapsulamiento +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=Encapsulamiento +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase7/Encapsulamiento/nbproject/project.xml b/JAVA/Clase7/Encapsulamiento/nbproject/project.xml new file mode 100644 index 00000000..f5740099 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Encapsulamiento + + + + + + + + + diff --git a/JAVA/Clase7/Encapsulamiento/src/dominio/Persona.java b/JAVA/Clase7/Encapsulamiento/src/dominio/Persona.java new file mode 100644 index 00000000..b1ea16ec --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/src/dominio/Persona.java @@ -0,0 +1,48 @@ + +package dominio; + + +public class Persona { + //Atributos + private String nombre; + private double sueldo; + private boolean eliminado; + + //Constructor + public Persona(String nombre, double sueldo, boolean eliminado){ + this.nombre = nombre; + this.eliminado = eliminado; + this.sueldo = sueldo; + } + //metodos set y get (lo abrimos con click derechos sobre la linea/insert code/elegimos + + public String getNombre() { + return nombre; + } + + public void setNombre(String nombre) { + this.nombre = nombre; + } + + public double getSueldo() { + return sueldo; + } + + public void setSueldo(double sueldo) { + this.sueldo = sueldo; + } + + public boolean isEliminado() { + return eliminado; + } + + public void setEliminado(boolean eliminado) { + this.eliminado = eliminado; + } + + public String toString(){//Convierte en una cadena cada atributo + return "Pesona [ nombre: "+ this.nombre + + ", sueldo: "+ this.sueldo+ + ", eliminado: " + this.eliminado+ "]"; + } +} diff --git a/JAVA/Clase7/Encapsulamiento/src/test/PersonaPrueba.java b/JAVA/Clase7/Encapsulamiento/src/test/PersonaPrueba.java new file mode 100644 index 00000000..f252e373 --- /dev/null +++ b/JAVA/Clase7/Encapsulamiento/src/test/PersonaPrueba.java @@ -0,0 +1,37 @@ + +package test; + +import dominio.Persona; +//import dominio.*; //esto lo usamos para importar todas las clases dentro del paquete + +public class PersonaPrueba { + public static void main(String[] args) { + Persona persona1 = new Persona("Osvaldo", 57.000, false); + System.out.println("persona1 = " + persona1); // asi mostramos el toString + System.out.println("persona1 su nombre es: " + persona1.getNombre()); + //Modificamos a traves de los metodos + persona1.setNombre("Juan Ignacio"); //Esta es la unica forma de hacerlo cuando esta encapsulado el atributo + //persona1.nombre = "Juan Ignacio"; //asi lo hacemos cuando no esta encapsulado + //System.out.println("Nombre es: " + persona1.nombre()); esto tambien nos daria error + System.out.println("persona1 su nombre modificado: " + persona1.getNombre()); + System.out.println("persona1 el resultado para el sueldo: "+ persona1.getSueldo()); + System.out.println("persona1 para obtener el booleano: " + persona1.isEliminado()); + + //Tarea: Crear otro objeto de tipo Persona, asignar valores de manera inicial + //e imprimir, luego modificar sus valores y volver a imprimir + + System.out.println("persona1 = " + persona1);// asi mostramos el toString + + Persona persona2 = new Persona("Santiago", 45.000, true); + System.out.println("\npersona2 su nombre es: " + persona2.getNombre()); + System.out.println("El sueldo es de: "+ persona2.getSueldo()); + + persona2.setNombre("Pablo"); + persona2.setSueldo(74.000); + System.out.println("persona2 su nombre modificado: " + persona2.getNombre()); + System.out.println("persona2 el resultado para el sueldo: "+ persona2.getSueldo()); + System.out.println("persona2 para obtener el booleano: " + persona2.isEliminado()); + + + } +} diff --git a/JAVA/Clase8/ContextoEstatico/build.xml b/JAVA/Clase8/ContextoEstatico/build.xml new file mode 100644 index 00000000..ad71228b --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ContextoEstatico. + + + diff --git a/JAVA/Clase8/ContextoEstatico/build/built-jar.properties b/JAVA/Clase8/ContextoEstatico/build/built-jar.properties new file mode 100644 index 00000000..7409f48c --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 17 Oct 2023 11:06:21 -0300 + + +C\:\\Users\\Santiago\\Clase1\\Segundo\ semestre\\DevGroup_Segundo_Semestre\\JAVA\\Clase8\\ContextoEstatico= diff --git a/JAVA/Clase8/ContextoEstatico/build/classes/domain/Persona.class b/JAVA/Clase8/ContextoEstatico/build/classes/domain/Persona.class new file mode 100644 index 00000000..1458c3ed Binary files /dev/null and b/JAVA/Clase8/ContextoEstatico/build/classes/domain/Persona.class differ diff --git a/JAVA/Clase8/ContextoEstatico/build/classes/test/PersonaPrueba.class b/JAVA/Clase8/ContextoEstatico/build/classes/test/PersonaPrueba.class new file mode 100644 index 00000000..4a19ed55 Binary files /dev/null and b/JAVA/Clase8/ContextoEstatico/build/classes/test/PersonaPrueba.class differ diff --git a/JAVA/Clase8/ContextoEstatico/manifest.mf b/JAVA/Clase8/ContextoEstatico/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/build-impl.xml b/JAVA/Clase8/ContextoEstatico/nbproject/build-impl.xml new file mode 100644 index 00000000..9bde8fd5 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/genfiles.properties b/JAVA/Clase8/ContextoEstatico/nbproject/genfiles.properties new file mode 100644 index 00000000..29ec3a25 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7e4360fd +build.xml.script.CRC32=6efedea3 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=7e4360fd +nbproject/build-impl.xml.script.CRC32=ff84682e +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/private/private.properties b/JAVA/Clase8/ContextoEstatico/nbproject/private/private.properties new file mode 100644 index 00000000..a90674d9 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Santiago\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/private/private.xml b/JAVA/Clase8/ContextoEstatico/nbproject/private/private.xml new file mode 100644 index 00000000..c0391235 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase8/ContextoEstatico/src/domain/Persona.java + file:/C:/Users/Santiago/Clase1/Segundo%20semestre/DevGroup_Segundo_Semestre/JAVA/Clase8/ContextoEstatico/src/test/PersonaPrueba.java + + + diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/project.properties b/JAVA/Clase8/ContextoEstatico/nbproject/project.properties new file mode 100644 index 00000000..bf88db9a --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ContextoEstatico.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/ContextoEstatico +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=ContextoEstatico +main.class= +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/JAVA/Clase8/ContextoEstatico/nbproject/project.xml b/JAVA/Clase8/ContextoEstatico/nbproject/project.xml new file mode 100644 index 00000000..e18d317e --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ContextoEstatico + + + + + + + + + diff --git a/JAVA/Clase8/ContextoEstatico/src/domain/Persona.java b/JAVA/Clase8/ContextoEstatico/src/domain/Persona.java new file mode 100644 index 00000000..13389db0 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/src/domain/Persona.java @@ -0,0 +1,52 @@ + +package domain; + + +public class Persona { + + + //Cargamos los atributos + private int idPersona; + private static int contadorPersona; + private String nombre; + + //Constructor + + public Persona(String nombre){ + this.nombre = nombre; + //Incrementar el contador por cada objeto nuevo + Persona.contadorPersona ++; //no utilziar el operador "this" + //Vamos a asignar un nuevo valor ala variable idPersona + this.idPersona = Persona.contadorPersona; + } + + public static int getContadorPersona() { + return contadorPersona; + } + + public static void setContadorPersona(int aContadorPersona) { + contadorPersona = aContadorPersona; + } + + public int getIdPersona() { + return this.idPersona; + } + + public void setIdPersona(int idPersona) { + this.idPersona = idPersona; + } + + public String getNombre() { + return this.nombre; + } + + public void setNombre(String nombre) { + this.nombre = nombre; + } + + @Override + public String toString() { + return "Persona{" + "idPersona=" + idPersona + ", nombre=" + nombre + '}'; + } + +} diff --git a/JAVA/Clase8/ContextoEstatico/src/test/PersonaPrueba.java b/JAVA/Clase8/ContextoEstatico/src/test/PersonaPrueba.java new file mode 100644 index 00000000..79960c53 --- /dev/null +++ b/JAVA/Clase8/ContextoEstatico/src/test/PersonaPrueba.java @@ -0,0 +1,32 @@ + +package test; + +import domain.Persona; + + +public class PersonaPrueba { + + private int contador; + + public static void main(String[] args) { + Persona persona1 = new Persona("Ariel"); + System.out.println("persona1 = " + persona1); + Persona persona2 = new Persona("Naty"); + System.out.println("persona2 = " + persona2); + imprimir(persona1); + imprimir(persona2); + //this.contador = 10; // No se puede referenciar desde un contexto estatico + PersonaPrueba personaP1 = new PersonaPrueba(); + System.out.println(personaP1.getContador()); + + } + + public static void imprimir(Persona persona){ + System.out.println("persona = " + persona); + } + + public int getContador(){ + imprimir(new Persona ("Liliana")); + return this.contador; + } +} diff --git a/JAVA/Clase8/herencia.uxf b/JAVA/Clase8/herencia.uxf new file mode 100644 index 00000000..e69de29b diff --git a/JAVASCRIPT/Leccion01/01-01-holamundo.js b/JAVASCRIPT/Leccion01/01-01-holamundo.js new file mode 100644 index 00000000..3859124a --- /dev/null +++ b/JAVASCRIPT/Leccion01/01-01-holamundo.js @@ -0,0 +1,6 @@ + +var nombre = "Santiago"; +nombre = "Alberto \nAriel\n"; +var apellido = "Penafiel "; +console.log(nombre+apellido) + diff --git a/JAVASCRIPT/Leccion01/HolaMundo.js b/JAVASCRIPT/Leccion01/HolaMundo.js new file mode 100644 index 00000000..97adfbdb --- /dev/null +++ b/JAVASCRIPT/Leccion01/HolaMundo.js @@ -0,0 +1,4 @@ +var nombre = "Santiago"; +nombre = "Hola Mundo desde Javascript"; +console.log(nombre); + diff --git a/JAVASCRIPT/Leccion01/index.html b/JAVASCRIPT/Leccion01/index.html new file mode 100644 index 00000000..370302a2 --- /dev/null +++ b/JAVASCRIPT/Leccion01/index.html @@ -0,0 +1,12 @@ + + + + + + Javascript + + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion02/02-01-ConcatenacionDeCadenas.js b/JAVASCRIPT/Leccion02/02-01-ConcatenacionDeCadenas.js new file mode 100644 index 00000000..ec0fa75e --- /dev/null +++ b/JAVASCRIPT/Leccion02/02-01-ConcatenacionDeCadenas.js @@ -0,0 +1,33 @@ +var nombre = 'Jose'; +var apellido = ' Montes'; +var nombreCompleto = nombre + ' ' +apellido; // Primera concatenacion +console.log(nombreCompleto); +var nombreCompleto2 = 'Ariel' + ' ' + 'Betancud' ; // Segunda concatenacion +console.log(nombreCompleto2); +var juntos = nombre + 219; //Lee izquierda a derecha siguienda la cadena lee el numero como tipo Str +console.log(juntos); +juntos = nombre + (78+ 17); // Aqui se puede diferenciar a traves de parentesis +console.log(juntos); +juntos = 78 +17+ nombre; +console.log(juntos); + +nombre += apellido ; // Tercera Concatenacion usando el operador simplificado +console.log(nombre); + +//Hoy ya no se usa var, se utiliza let y const +let nombre2 = "Pedro"; +console.log(nombre2); + +const apellido2 = "Lepes"; +//apeliido2 = "Peres"; una constante no puede ser modificada +console.log(apellido2); + +let x, y; //Se puede crear varias variables dentro de una misma linea +x = 17, y = 21; // Se puede hacer asigancion de varios variables dentro de la misma +let z = x + y; // Se asigna el valor de la operacion +console.log(z); + +let _1num = 31; //No utilizar numeros para iniciar el nombre de la una variable +let $break = "rompe"; // no utilizar palabras reservadas para variables +console.log(_1num); +console.log($break); \ No newline at end of file diff --git a/JAVASCRIPT/Leccion02/02-01-TiposDatos.js b/JAVASCRIPT/Leccion02/02-01-TiposDatos.js new file mode 100644 index 00000000..e622ddb5 --- /dev/null +++ b/JAVASCRIPT/Leccion02/02-01-TiposDatos.js @@ -0,0 +1,62 @@ +//Tipos de Datos en JavaScript +/* +La sintaxis para los comentarios es muy similar a Java +*/ + +var nombre ='Ariel'; //Tipo Str +console.log(typeof nombre); +nombre = 7; +console.log(typeof nombre); +nombre = 12.3; +console.log(typeof nombre) + +var numero = 3000; //tipo numerico +console.log(numero); + +var objeto = { //creamos un objeto + nombre :"Ariel", + apellido : "Betancud", + telefono : "261456775" +} +console.log(objeto); + +//Tipo de dato boolean +var bandera = true; +console.log(typeof bandera); + +// Tipo de dato funcion +function miFuncion(){} +console.log(typeof miFuncion); + +//Tipo de dato symbol + +var simbolo = Symbol("Mi simbolo"); +console.log(simbolo); + +//Tipo de dato clase +class Persona{ + constructor(nombre,apellido){ + this.nombre = nombre; + this.apellido = apellido; + } +} +console.log(typeof Persona); + +//Tipo de dato undefined +var x; +console.log(typeof x); + +x = undefined; +console.log(typeof x); +// null: significa ausencia de valor +var y = null; //null no es un tipo de dato, pero su origen es de tipo object +console.log(typeof y); + +//Tipo de dato array y Empty String +var autos = ['Citroen','Audi','Bmw','Ford']; +console.log(autos); +console.log(typeof autos); //preguntamos que tipo de datos es + +var z = ''; +console.log(z); //Esto se refiere a que es una cadena vacia: +console.log(typeof z); diff --git a/JAVASCRIPT/Leccion02/index.html b/JAVASCRIPT/Leccion02/index.html new file mode 100644 index 00000000..f8a15a65 --- /dev/null +++ b/JAVASCRIPT/Leccion02/index.html @@ -0,0 +1,12 @@ + + + + + + JavaScript + + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion03/03-01-OperadoresJavaScript.js b/JAVASCRIPT/Leccion03/03-01-OperadoresJavaScript.js new file mode 100644 index 00000000..551eacbc --- /dev/null +++ b/JAVASCRIPT/Leccion03/03-01-OperadoresJavaScript.js @@ -0,0 +1,28 @@ +//Ejercicio para encontrar numeros pares e impares +let parImpar = 1; +if(parImpar %2 == 0){ + console.log("Es un numero Par") + } + else { + console.log("Es un numero Impar") + } + + //Ejercicio: Es mayor de edad + let edad = 18, adulto = 18; + if(edad >= adulto) { + console.log ("Usted es una persona adulta") + } + else { + console.log("Usted es una persona menor de edad") + } + +//Ejercico : Dentro de un rango + +let dentroRango = 10; +let valMin =0,valMax= 10; +if(dentroRango >=valMin && dentroRango <= valMax){ + console.log("Esta dentro del rango establecido") +} +else{ + console.log("Esta fuera del rango establecido") +} \ No newline at end of file diff --git a/JAVASCRIPT/Leccion03/index.html b/JAVASCRIPT/Leccion03/index.html new file mode 100644 index 00000000..9857d0a3 --- /dev/null +++ b/JAVASCRIPT/Leccion03/index.html @@ -0,0 +1,11 @@ + + + + + + JavaScript + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion04/04-01-Ejercicios.js b/JAVASCRIPT/Leccion04/04-01-Ejercicios.js new file mode 100644 index 00000000..85de5adb --- /dev/null +++ b/JAVASCRIPT/Leccion04/04-01-Ejercicios.js @@ -0,0 +1,51 @@ + + + + +/* +Ampliando el uso de Var, let y const + +con var puedes reasignar en cualquier momento este forma parte del ambito global +Un error es que se sobreecriba +*/ + +var nombre = "Ariel"; +nombre = "Osvaldo"; +console.log(nombre); + +function saludar(){ + var nombre = "Natalia" + console.log(nombre); +} +console.log(nombre) // Aqui no lee el dato en la funcion + +if (true){ + var edad = 34; + console.log(edad); + } +console.log(edad) //En la funcion funciono correctamente, en la estructura if fallo + +/* +let: esta puede ser reasignada en cualquier momento, la diferencia es que su ambito es de bloque, +solo disponible dentro de un bloque de llaves o de una funcion +*/ + +function saludar2(){ + let nombre2 = "Ariel" + console.log(nombre2); +} +//console.log(nombre2) + +if (true){ + let edad2 = 33; + console.log(edad2); +} +//console.log(edad2); + +/* +const se utiliza para valores constantes que no se pueden ser reasignados +*/ +const fechaNacimiento = 2006; +console.log(fechaNacimiento); +///fechaNacimiento = 2003; +//console.log(fechaNacimiento); //solo se ejecuta el console anterior \ No newline at end of file diff --git a/JAVASCRIPT/Leccion05/05-01.js b/JAVASCRIPT/Leccion05/05-01.js new file mode 100644 index 00000000..b9b36aa8 --- /dev/null +++ b/JAVASCRIPT/Leccion05/05-01.js @@ -0,0 +1,17 @@ +//Tipo de dato undefined +var x; +console.log(typeof x); + +//null: significa ausencia de valor +var y=null; //null no es un tipo de dato, pero su origen es de tipo object +console.log( typeof y); + +//tipo de dato Array y Empty string +var autos = ['Citroen','Audi','BMW', 'Ford'] +console.log(autos); +console.log(typeof autos); //preguntamos que tipo de dato es + +var z = ''; +console.log(typeof z); + + diff --git a/JAVASCRIPT/Leccion05/index.html b/JAVASCRIPT/Leccion05/index.html new file mode 100644 index 00000000..062cf7d1 --- /dev/null +++ b/JAVASCRIPT/Leccion05/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion06/06-01-ConcatenacionDeCadenas.js b/JAVASCRIPT/Leccion06/06-01-ConcatenacionDeCadenas.js new file mode 100644 index 00000000..59122b7c --- /dev/null +++ b/JAVASCRIPT/Leccion06/06-01-ConcatenacionDeCadenas.js @@ -0,0 +1,20 @@ +var nombre= 'Jose'; +var apellido = 'Monte'; +var nombreCompleto= nombre+' '+apellido; +console.log(nombreCompleto); + +var nombreCompleto2= 'Joaquin'+ ' '+ 'Esposito'; +console.log(nombreCompleto2); + +var juntos= nombre + 219; +console.log(juntos); + +juntos= nombre + 78 + 17; +console.log(jnutos); + +juntos= 78+17+ nombre; +console.log(juntos); +// + +nombre += apellido; +console.log(nombre); diff --git a/JAVASCRIPT/Leccion06/index.html b/JAVASCRIPT/Leccion06/index.html new file mode 100644 index 00000000..5ca66ed1 --- /dev/null +++ b/JAVASCRIPT/Leccion06/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion07/07-01.js b/JAVASCRIPT/Leccion07/07-01.js new file mode 100644 index 00000000..1f82324d --- /dev/null +++ b/JAVASCRIPT/Leccion07/07-01.js @@ -0,0 +1,17 @@ +let nombre2 = "pedro"; +console.log(nombre2) + +const apellido2= "lepes"; +console.log(apellido2) + +let x,y; +x= 17, y= 21; + +let z= x + y; +console.log(y); + +let _1num= 31; +let rompiendo = "rompe"; + +console.log(_1num) +console.log(rompiendo) \ No newline at end of file diff --git a/JAVASCRIPT/Leccion07/07-03-ParImpar.js b/JAVASCRIPT/Leccion07/07-03-ParImpar.js new file mode 100644 index 00000000..02a63e5c --- /dev/null +++ b/JAVASCRIPT/Leccion07/07-03-ParImpar.js @@ -0,0 +1,6 @@ +let parImpar=10; +if(parImpar % 2 == 0){ + console.log("es un numero PAR") +}else{ + console.log("es un numero IMPAR") +} \ No newline at end of file diff --git a/JAVASCRIPT/Leccion07/07-04-MayorDeEdad.js b/JAVASCRIPT/Leccion07/07-04-MayorDeEdad.js new file mode 100644 index 00000000..23b617e9 --- /dev/null +++ b/JAVASCRIPT/Leccion07/07-04-MayorDeEdad.js @@ -0,0 +1,6 @@ +let edad=20, adulto =18; +if(edad >= adulto){ + console.log("es una persona adulta") +}else{ + console.log("es una persona menor de edad") +} \ No newline at end of file diff --git a/JAVASCRIPT/Leccion07/index.html b/JAVASCRIPT/Leccion07/index.html new file mode 100644 index 00000000..b19f32d2 --- /dev/null +++ b/JAVASCRIPT/Leccion07/index.html @@ -0,0 +1,11 @@ + + + + + + Document + + + + + \ No newline at end of file diff --git a/JAVASCRIPT/Leccion08/08-01.js b/JAVASCRIPT/Leccion08/08-01.js new file mode 100644 index 00000000..7bcc16c7 --- /dev/null +++ b/JAVASCRIPT/Leccion08/08-01.js @@ -0,0 +1,7 @@ +let dentroDeRango= 5; +let valMin= 0, valMax=10; +if(dentroRango >= valMin && dentroRango <=valMax){ + console.log("esta dentro del rango establecido") +}else{ + console.log("esta fuera del rango establecido") +} \ No newline at end of file diff --git a/JAVASCRIPT/Leccion10/Ejercicios-finales.js b/JAVASCRIPT/Leccion10/Ejercicios-finales.js new file mode 100644 index 00000000..35e3ee68 --- /dev/null +++ b/JAVASCRIPT/Leccion10/Ejercicios-finales.js @@ -0,0 +1,94 @@ +//Estacion del año +let mes=4; +let estacion; + +if(mes== 1 || mes == 2 || mes == 12){ + estacion="verano"; +}else if( mes == 3 || mes == 4 || mes == 5){ + estacion="otoño" +}else if( mes == 6 || mes == 7 || mes == 8){ + estacion="invierno" +}else if( mes == 9 || mes == 10 || mes == 11){ + estacion="primavera" +}else{ + estacion="valor incorrecto" +} +console.log("la estacion es "+estacion) + +// Hora del dia + +let horaDia = 22; +let mensaje; +if(horaDia >=6 && horaDia <=11){ + mensaje= "Good morning"; +} +else if(horaDia >=12 && horaDia <=16){ + mensaje= "Good afternoon"; +} +else if(horaDia >=17 && horaDia <=19){ + mensaje= "Good evening"; +} +else if(horaDia >=20 && horaDia <=23){ + mensaje= "Good night"; +} +else{ + mensaje= "Valor Incorrecto"; +} +console.log(mensaje) + +//estructura switch + +//Estructura switch(la sintaxis es igual a Java) +switch(mes){ + case 1: case 2: case 12: + estacion="Verano"; + break; + case 3: case 4: case 5: + estacion="Otoño"; + break; + case 6: case 7: case 8: + estacion="Invierno"; + break; + case 9: case 10: case 11: + estacion="Primavera"; + break; + default: + estacion = "Valor incorrecto"; +} +console.log("Bienvenido a la estacion de: "+estacion); + +// + +var nombre = "Ariel"; +nombre = "Osvaldo"; +console.log(nombre); + +function saludar(){ + var nombre = "Natalia" + console.log(nombre); +} +console.log(nombre) + +if (true){ + var edad = 34; + console.log(edad); + } +console.log(edad) + +// + +function saludar2(){ + let nombre2 = "Ariel" + console.log(nombre2); +} + + +if (true){ + let edad2 = 33; + console.log(edad2); +} + + + +const fechaNacimiento = 2006; +console.log(fechaNacimiento); \ No newline at end of file diff --git a/JAVASCRIPT/Sintaxis Js y Java.txt.txt b/JAVASCRIPT/Sintaxis Js y Java.txt.txt new file mode 100644 index 00000000..f18f9fc0 --- /dev/null +++ b/JAVASCRIPT/Sintaxis Js y Java.txt.txt @@ -0,0 +1,70 @@ +Sintaxis similares entre Java y JavaScript +Operadores Simplificados / Compuestos + ++= +-= +*= +/= +%= +**= + +Operadores Aritmeticos + ++ +- +* +/ +% //Residuo +** // exponente + +Operadores de Asignacion += + +Los opreadores simplificados tambien asignan + +Operadores de comparacion (booleano) + +== Revisa el valor sin importar el tipo de dato +=== Revisa el valor y el tipo tambien + + +Documentar +// = para una linea de comentarios +/* */ = para multiples lineas de comentarios + +Secuencias de Escape +\' = Mostrar una comilla simple dentro de una cadena en la salida de informacion +\" = Mostrar doble comilla dentro de una cadena en la salida de informacion +\\ = Barra invertida, diagonal inversa , es para mostrar un back slash +\n = es es un salto de linea +\r = Retorno +\t = Tabulacion +\b = Retroceso +\f = Salto de pagina + +Operador de Aumento +++ +Ejemplo : Let z = ++a; // pre incremento +Ejemplo : z = a++; //post incremento + +Operador Decremento +-- +Ejemplo : Let z = --a; // pre decremento +Ejemplo : z = a--; //post decremento + +Operador Distinto (booleano) + +!= comprueba el valor y sin revisar el tipo +!== comprueba el valor y tambien el tipo + +Operadores Relacionales (booleano) + +< +> +<= +>= + +Operadores Logicos + +And -> && Doble aspersan +Or -> \ No newline at end of file diff --git a/Python/Leccion4/EjercicioRango.py b/Python/Leccion4/EjercicioRango.py new file mode 100644 index 00000000..3d4e00db --- /dev/null +++ b/Python/Leccion4/EjercicioRango.py @@ -0,0 +1,26 @@ +""" +Sintaxis de range (inicio, fin , incremento ) + + +""" +#Ejercicio 1: Iterar un rango de 0 a 10 e imprimir numeros divisibles entre 3 +#Ejemplo de ejecucion : 0,3,6,9 + +print('Rango de 0 a 10 con numeros divisibles entre 3') +for i in range(10): + if i % 3 ==0: + print(i) + +#Ejercicio 2: Crear un rango de numeros de 2 a 6 e imprimirlos +#Ejemplo de ejecucion : 2,3,4,5,6 +print('Rango con valores de inicio de =2 y fin =6') +rango = range(2,7) +for i in rango: + print(i) + +# Ejercicio 3 : Crear un rango de 3 a 10 pero con incremento de 2 en 2 en lugar de 1 en 1 +# Ejemplo: 3,5,7,9 + +print('Rango con valores de inicio =3, fin = 10m incremento 2') +for i in range(3,11,2): + print(i) \ No newline at end of file diff --git a/Python/Leccion4/EjercicioTuplasListas b/Python/Leccion4/EjercicioTuplasListas new file mode 100644 index 00000000..995102e5 --- /dev/null +++ b/Python/Leccion4/EjercicioTuplasListas @@ -0,0 +1,23 @@ +import math # importamos la clase math para hacer uso de la funcion sqrt(raiz cuadrada) + +# Dada la siguiente Tupla +tupla = (13,1,8,3,2,5,8) # Definimos la tupla + +# Crear una lista que solo incluya los numeros menosres a 5 +# e imprimir por consola [1,3,2] + +lista =[] #definimos la lista +#filtramos los elemenos menores de 5 de la tupla +for elemento in tupla: + if elemento < 5: + lista.append(elemento) +print(lista) + +#Ejercicio Matematicas +#para sacar la raiz cuadrada de un numero positivo + +numero = int(input('Digite un numero positivo :')) +while numero < 0: + print("Error -> Deberia ser un numero positivo") + numero = int(input('Digite un numero positivo: ')) +print(f'\nSu raiz cuadrada es: {math.sqrt(numero):.2f}') \ No newline at end of file diff --git a/Python/Leccion4/Tuplas.py b/Python/Leccion4/Tuplas.py new file mode 100644 index 00000000..96890be8 --- /dev/null +++ b/Python/Leccion4/Tuplas.py @@ -0,0 +1,14 @@ +#Definimos un tupla +cocina = ('cuchara', 'cuchillo', 'tenedor') +print(len(cocina)) #funcion "len" sirve para saber cuantos elementos tenemos dentro de una tupla + +#Acceder a un elemento, para esto si usamos corchetes y no parentesis +print(cocina[0]) +#Mostrar de manera inversa +print(cocina[-1]) + +#Acceder a un rango +print(cocina[0:2]) + +#ejemplo para que sea si o si una tupla necesita llevar la "," despues del primer elemento, sino es un tipo string +verduras = ('papa') #esto no es una tupla diff --git a/Python/Leccion4/main.py b/Python/Leccion4/main.py new file mode 100644 index 00000000..bd6269d6 --- /dev/null +++ b/Python/Leccion4/main.py @@ -0,0 +1,32 @@ + +""" +#lista = Ariel, Lilinana, Natalia, Osvaldo +nombres = ['Naty', 'Osvaldo', 'Lily', 'Ariel'] + +print(nombres) +print(nombres[0]) +print(nombres[1]) + +print(nombres[-1]) #De esta forma utilizando un numero negativo vas a compenzar a ver la lista de atras para adelante +print(nombres[-2]) + +""" +nombres = ['Naty', 'Osvaldo', 'Lily', 'Ariel'] +print(nombres) +print(nombres[0:2]) # Solo nos muestra el indice 0,1 pero no el indice 2 + +#Para ir del inicio de la lista al indice (sin incluirlo) +print(nombres[:3]) # si dejamos vacio siginifica que es desde el inicio +print(nombres[1:]) + +# Modificamos un valor +nombres[2] = 'Liliana' +nombres[0] = 'Natalia' +print(nombres) + +#iterar una lista + +for nombre in nombres : #nombre es singular, la lista es plural + print(nombre) +else: + print('Se acabaron los nombres de la lista') \ No newline at end of file diff --git a/Python/Leccion5/EjercicioClase5.py b/Python/Leccion5/EjercicioClase5.py new file mode 100644 index 00000000..d4c0e3e9 --- /dev/null +++ b/Python/Leccion5/EjercicioClase5.py @@ -0,0 +1,19 @@ +# ingresar elementos al diccionario llamado seleccionArgentina, lo elementos a ingresar deben ser como mínimo 4 +# estos elementos son los jugadores con su número de camiseta, nombre, apellido, edad, altura, precio y posición de juego. + +seleccionArgentina ={ + 10:{'Nombre':'Lionel Messi', 'Edad': 35,'Altura': 1.70, 'Precio' : '50 Millones' , 'Posicion': 'Extremo Derecho'} , + 11:{'Nombre':'Angel Di Maria', 'Edad': 34,'Altura': 1.80, 'Precio' : '12 Millones' , 'Posicion': 'Extremo Derecho' }, + 24:{'Nombre':'Paulo Dybala', 'Edad': 28,'Altura': 1.77, 'Precio' : '35 Millones' , 'Posicion': 'Media Punta' }, + 19:{'Nombre':'Nicolas Otamendi', 'Edad': 34,'Altura': 1.83, 'Precio' : '3.5 Millones' , 'Posicion': 'Defensa Central' }, + 1:{'Nombre':'Franco Armani', 'Edad': 35,'Altura': 1.89, 'Precio' : '3.5 Millones' , 'Posicion': 'Portero' }, + 3:{'Nombre':'Nicolas Tagliafico', 'Edad': 31,'Altura': 1.72, 'Precio' : '25 Millones' , 'Posicion': 'Lateral Izquierdo' }, + 27:{'Nombre':'Julian Alvarez', 'Edad': 23,'Altura': 1.70, 'Precio' : '40 Millones' , 'Posicion': 'Delantero Central' }, + 7:{'Nombre':'Rodrigo De Paul', 'Edad': 29,'Altura': 1.80, 'Precio' : '33 Millones' , 'Posicion': 'Centrocampista' }, + 5:{'Nombre':'Leandro Paredes', 'Edad': 29,'Altura': 1.82, 'Precio' : '23 Millones' , 'Posicion': 'Centrocampista' }, +} +for llave, valor in seleccionArgentina.items(): + print(llave, valor) + +print ('Tenemos cargados en el diccionario la cantidad de jugadores: ', end= ' ') +print(len(seleccionArgentina)) \ No newline at end of file diff --git a/Python/Leccion5/main.py b/Python/Leccion5/main.py new file mode 100644 index 00000000..6c536fca --- /dev/null +++ b/Python/Leccion5/main.py @@ -0,0 +1,322 @@ +# Todas estas pertenecen a las colecciones en Python (listas, tuplas, diccionarios) +# las listas son lo que se conocen en otro lenguajes como arreglos o arrays, o vectores + + +#lista = Ariel, Lilinana, Natalia, Osvaldo +nombres = ['Naty', 'Osvaldo', 'Lily', 'Ariel'] + +print(nombres) +print(nombres[0]) +print(nombres[1]) + +print(nombres[-1]) #De esta forma utilizando un numero negativo vas a compenzar a ver la lista de atras para adelante +print(nombres[-2]) + + +nombres = ['Naty', 'Osvaldo', 'Lily', 'Ariel'] +print(nombres) +print(nombres[0:2]) # Solo nos muestra el indice 0,1 pero no el indice 2 + +#Para ir del inicio de la lista al indice (sin incluirlo) +print(nombres[:3]) # si dejamos vacio siginifica que es desde el inicio +print(nombres[1:]) + +# Modificamos un valor +nombres[2] = 'Liliana' +nombres[0] = 'Natalia' +print(nombres) + +#iterar una lista + +for nombre in nombres : #nombre es singular, la lista es plural + print(nombre) +else: + print('Se acabaron los nombres de la lista') + + + #Definimos un tupla +cocina = ('cuchara', 'cuchillo', 'tenedor') +print(len(cocina)) #funcion "len" sirve para saber cuantos elementos tenemos dentro de una tupla + +#Agregamos elementos + +nombres.append('Marcelo') +nombres.append([1, 2, 3]) +nombres.append(True) +nombres.append(10.45) +nombres.append([4, 5]) +nombres.append(7) + +print(nombres) + +#Acceder a un elemento, para esto si usamos corchetes y no parentesis +print(cocina[0]) +#Mostrar de manera inversa +print(cocina[-1]) + +#Acceder a un rango +print(cocina[0:2]) + +#ejemplo para que sea si o si una tupla necesita llevar la "," despues del primer elemento, sino es un tipo string +verduras = ('papa') #esto no es una tupla + +# Tipo set +# (el orde es aleatorio ,por lo tanto los elemento no tienen indice y por lo tanto sin orden) + +planetas ={'Marte', 'Jupiter', 'Venus'} +print(planetas) +print(len(planetas)) #usamos la funcion len para saber el largo de nuestra coleccion + +#revisar si un elemento existe o no dentro de set (coleccion) +print('Marte' in planetas) + +#Agregamos un elemento +planetas.add('Tierra') #add es una funcion para agregar +planetas.add('Tierra') # Si queremos volver a agregar un elemento el cual sea repetido no nos va a mostrar, ya que no lo permite tener elementos repetidos + +print(planetas) + +# Eliminar elementos, puede arrojar error si el elemento no existe +planetas.remove('Jupiter') +print(planetas) + +planetas.discard('Tierra') #sirve para eliminar un elemento tambien, si no ponemos bien el nombre del elemento no lo elimina, pero no nos va a dar error como cuando usamos "remove" +print(planetas) + +#limpiar set +planetas.clear() +print(planetas) + +#eliminar set o conjunto +del planetas +#print(planetas) #al eliminar nos muestra un error porque ya no existe + +# 'Maradona' : 10 un diccionario esta compuesto por dos elementos, "una llave" y un "valor" +#dict(key, value) +diccionario = { + 'IDE': 'Integrated Development environment', #siempre al final lleva , + 'POO': 'Programacion orientada a objetos', + 'SABD': 'Sistema de administracion de base de datos' #menos el ultimo elemento + +} +#Verificamos la cantidad de elementos de un diccionario +print(len(diccionario)) +print(diccionario) + +#Acceder a un diccionario con la llave key +print(diccionario['IDE']) + +#otra forma de recuperar un elemento +print(diccionario.get('POO')) +print(diccionario.get('SABD')) + +#MODIFICAR LOS ELEMENTOS +diccionario['IDE'] = 'Entorno de desarrollo integrado' # LOS DICCIONARIOS SI SE PUEDEN CAMBIAR LOS ELEMENTOS + +print(diccionario) + +#como recorrer los elementos +for termino in diccionario: #recorremos unicamente las llaves + print(termino) + +#Necesitamos una funccion para recorrer un diccionario "esta es ITEMS()" +for termino, valor in diccionario.items(): + print(termino,valor) + +#otras maneras de accerder a un diccionario +for termino in diccionario.keys(): #estamos usando una funcion + print(termino) #muestra solo las llaves + + +#usamos una funcion para acceder al valor +for valor in diccionario.values(): + print(valor) + +#comprobamos la existencia de algun elemento +print('IDE' in diccionario) # devuevle un booleano + +#agregamos un elemento al diccionario +diccionario['PK'] = 'Primary Key' +print(diccionario) + +#eliminar un elemento +diccionario.pop('SABD') +print(diccionario) + +#vaciar un diccionario +diccionario.clear() +print(diccionario) + +#eliminar diccionario +del diccionario + +#concatenamos listas +lista1 =[1, 2, 3, 1] +lista2 = [4, 5 ,6, 1 ] +lista3= lista1+ lista2 # asi concatenamos + +print(lista3) + +lista3.extend([7, 8 , 9, 1 ]) # funcion para agregar varios elementos a una lista +print(lista3) + +print(lista3.index(5)) # funcion para ubicar en que indice se encuentra el valor que buscamos ,( si lo colocamos mal va a dar un error al igual que si no esta) + +#como saber cuantos valores repetidos hay en una lista +print(lista3.count(1)) + +#para poner una lista al reves o darla vuelta +lista3.reverse() +print(lista3) + +# Para que una lista se multiplique repitiendo sus elementos +lista3 = lista3 * 2 +print(lista3) + +# Metodos de ordenamiento +lista3.sort() # ordena todos los elementos ascendentemente +lista3.sort(reverse=True) # ordena todos los elementos descendentemente +print(lista3) + + +# las tuplas son listas INMUTABLES, ( no se pueden modificar ) y pueden tener diferentes tipos de datos dentro + +tupla = (3, 'hola', 6.78, [1, 2, 78,], 4, 'Hola') # puede tener diferentes tipos de datos dentro +print(tupla) + +print( 4 in tupla) # Accion booleana para buscar un elemento dentro ,y nos reponde de forma booleana + +#LO QUE PODEMOS USAR DENTRO DE TUPLAS: index, count, len +# En tuplas se puede vconverti de tupla a lista y lista a tupla + + +#Repaso de set o conjunto +#para definir un conjunto + +conjunto= set() # de esta forma le podremos agregar con la funcion .add, por mas que lo inicializamos vacio +conjunto1 = {'Bye'} # una vez inicializado asi el conjunto con las {} estando vacio no se le pueden agregar mas elementos, si o si tiene que tener al menos uno + + +conjunto.add(7) +conjunto.add('Hola') +print(conjunto) + +conjunto1.add('Hola') +print(conjunto1) +print(3 not in conjunto1) # preguntamos si el numero 3 no esta en el conjunto1 + +#como hacer la igualdad de dos conjuntos +print(conjunto == conjunto1) # nos devuelve como respuesta un booleano + +#operaciones en conjuntos +conjunto3 = conjunto1| conjunto # la linea | une los dos conjuntos +print(conjunto3) # si se repitiera un elemento , el mismo quedaria borrado + +conjunto3= conjunto & conjunto1 #que elemento tienen en comun +print(conjunto3) + +conjunto3 = conjunto - conjunto1 #Asigna el valor dque esta en el conjunto y no en el conjunto2 +print(conjunto3) +conjunto3= conjunto1 - conjunto +print(conjunto3) + +conjunto3= conjunto ^ conjunto1 # Elementos que no comparten o son diferentes entre ambos +print(conjunto3) + +conjunto3 = conjunto | conjunto1 +print(conjunto.issubset(conjunto3)) # aqui preguntamos si un conjunto es un subonjunto dentro de otro +print(conjunto1.issubset(conjunto3)) +print(conjunto3.issubset(conjunto)) +print(conjunto3.issubset(conjunto1)) + +print(conjunto3.issuperset(conjunto)) #preguntamos si los elementos del conjunto1 estan dentro del 3 +print(conjunto3.issuperset(conjunto1)) # Si es verdadero quiere decir que el conjunto3 es superconjunto +print(conjunto1.issuperset(conjunto3)) + +#como saber si ambos conjuntos son disconexos, esto es si no comparten ningun elemento en comun +print(conjunto.isdisjoint(conjunto1)) # no hay cosas en comun + +#convertir un conjunto totalmente en inmutable +conjunto = frozenset #esto hace que el conjunto sea totalmente inmutable +#no se puede agregar, modificar, ni eliminar elementos del conjunto + + +#Repaso diccionarios +diccionarioNuevo = {'azul': 'blue', 'rojo' : 'red', 'verde' :'green', 'amarillo' : 'yellow'} +print(diccionarioNuevo) + +#como eliminar un elemento +del (diccionarioNuevo['azul']) +print(diccionarioNuevo) + +#los diccionarios pueden almacenar diferentes tipos de datos +diccionario2 = {'Ariel' : {'Edad': 40, 'Altura' :1.83}, 'Osvaldo':[45, 1.85], 'Natalia': [35, 1.67]} +print(diccionario2) + + +# ingresar elementos al diccionario llamado seleccionArgentina, lo elementos a ingresar deben ser como mínimo 4 +# estos elementos son los jugadores con su número de camiseta, nombre, apellido, edad, altura, precio y posición de juego. + +seleccionArgentina ={ + 10:{'Nombre':'Lionel Messi', 'Edad': 35,'Altura': 1.70, 'Precio' : '50 Millones' , 'Posicion': 'Extremo Derecho'} , + 11:{'Nombre':'Angel Di Maria', 'Edad': 34,'Altura': 1.80, 'Precio' : '12 Millones' , 'Posicion': 'Extremo Derecho' }, + 21:{'Nombre':'Paulo Dybala', 'Edad': 28,'Altura': 1.77, 'Precio' : '35 Millones' , 'Posicion': 'Media Punta' }, + 19:{'Nombre':'Nicolas Otamendi', 'Edad': 34,'Altura': 1.83, 'Precio' : '3.5 Millones' , 'Posicion': 'Defensa Central' }, + 1:{'Nombre':'Franco Armani', 'Edad': 35,'Altura': 1.89, 'Precio' : '3.5 Millones' , 'Posicion': 'Portero' }, +} +for llave, valor in seleccionArgentina.items(): + print(llave, valor) + +#como tarea agregar por lo menos 4 jugadores mas al diccionario: seleccionArgentina +print ('Tenemos cargados en el diccionario la cantidad de jugadores: ', end= ' ') +print(len(seleccionArgentina)) + +#Pilas usando Listas +pila =[1, 2 , 3] + +#Agregamos elementos a la pila por el final +pila.append(4) +pila.append(5) +print(pila) + +#Sacamos elementos desde el final +pila.pop() +print(pila) + +elementoBorrado =pila.pop() # quita el ultimo elemento ylo guarda en la variable +print(f'Sacamos el elemento: {elementoBorrado}') +print(f'La pila ahora quedo asi : {pila} ') + +#colas con listas +#Estructura de datos de tipo fifo (first input /first output) + +cola = ['Ariel', 'Osvaldo', 'Liliana', 'Pilar'] +#Agregamos elementos al final de la cola +cola.append('Natalia') +cola.append('Jose') +print(cola) + +#Sacamos elementos de la cola +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +seRetira= cola.pop(0) +print(f'Atendido el cliente: {seRetira}') +print(cola) + +#Seguimos mostrando como recorrer un diccionario con el ciclo for +for i in seleccionArgentina: + print(f'{i} -> {seleccionArgentina[i]}') \ No newline at end of file diff --git a/Python/Leeccion6/Ejercicio01.py b/Python/Leeccion6/Ejercicio01.py new file mode 100644 index 00000000..8f70bc80 --- /dev/null +++ b/Python/Leeccion6/Ejercicio01.py @@ -0,0 +1,13 @@ +#Ejercicio 1 : Llenar una lista +#Llenar una lista con los numeros del 1 al 50, luego mostrar +# laa lista con el bucle for, los elementos deben mostrarse de la siguiente forma +#1-2-3-4-5....-50 + +# lista = [] +# i=1 +# while i <= 50: +# lista.append(i) +# i += 1 +lista = list(range(1, 51)) #forma de hacerlo en un algortirmo mas eficas , en vez de 5 lineas +for i in lista: + print(i, end= '-') \ No newline at end of file diff --git a/Python/Leeccion6/Ejercicio02.py b/Python/Leeccion6/Ejercicio02.py new file mode 100644 index 00000000..ddcdca84 --- /dev/null +++ b/Python/Leeccion6/Ejercicio02.py @@ -0,0 +1,16 @@ +#Ejercicio 2 : Modificar los elementos de una lista +# Llenar la lista con los numeros del 1 al 10 , luego modificar los +#elementos de la lista multiplicandolos por un valor ingresado por el usuario + +lista= list(range(1,11)) +print('Lista Original') +for i in lista: + print(i, end= '-') +valor =int(input('\nDigite un valor a multiplicar')) +#multiplicamos todos los elementos de la lista +for indice, i in enumerate(lista): #funcion para modificar los indices de la lista + lista[indice] *=valor #El iterador solo recorre los indicies, en esta linea se multiplica + +print(f'Lista final con los elementos multiplicados por {valor}') +for i in lista: + print(i, end= '-') \ No newline at end of file diff --git a/Python/Leeccion6/Ejercicio3.py b/Python/Leeccion6/Ejercicio3.py new file mode 100644 index 00000000..131129b6 --- /dev/null +++ b/Python/Leeccion6/Ejercicio3.py @@ -0,0 +1,16 @@ +#Ejercicio 3: Insertar elementos y ordenarlos +#Pedir numeros y meterlos en una lista, cuando el usuario +#Introduzca un numero 0, nuestro programa dejaria de insertar +#Por ultimo, mostrar los numeros ordenados de menor a mayor + +lista= [] +salir = False +while not salir: + numero= int(input('Digite un numero : ')) + if numero == 0: + salir = True + else: + lista.append(numero) + +lista.sort() # la lista esta ordenada con esta funcion +print(f'\nLista ordenada: \n{lista}') \ No newline at end of file diff --git a/Python/Leeccion6/EjercicioColecciones01.py b/Python/Leeccion6/EjercicioColecciones01.py new file mode 100644 index 00000000..bba5bf2f --- /dev/null +++ b/Python/Leeccion6/EjercicioColecciones01.py @@ -0,0 +1,15 @@ +#Ejercicio 1: Eliminar duplicados de una lista +#Escriba un programa donde tenga una lista y que a continuacion +#elimine los elementos repetidos, por ultimo mostrar la lista + +#Creamos una lista + +lista =[1, 2, 3, "Ariel", 7, 7, 3, "santiago", 5, "Franco", "santiago"] +conjunto = set(lista) #Convertimos la lista a un conjunto de tipo set +lista = list(conjunto) #Convertimos el conjunto a una lista +print(lista) + +#otra forma de hacerlo y acortar el codigo es + +#lista = list(set(lista)) +#print(lista) diff --git a/Python/Leeccion6/EjercicioColecciones02.py b/Python/Leeccion6/EjercicioColecciones02.py new file mode 100644 index 00000000..d203d050 --- /dev/null +++ b/Python/Leeccion6/EjercicioColecciones02.py @@ -0,0 +1,26 @@ +#Ejercicio 2: Operaciones de conjuntos con listas +#Escriba un programa que tenga 2 listas y que a continuacion +#cree las siguientes listas (en las que no deben haber repeticion) +# 1 Lista de palabras que aperecen en las listas +# 2 Lista de palabras que aperecen en la primera lista, pero no en la segunda +# 3 Lista de palabras que aprecen en la segunda lista, pero no en la primera +# 4 Lista de palabras que aprecen en ambas listas + +lista1 = [1, 2, 3, 4, 5, 4, 3, 2, 2, 1, 5] +lista2 = [4, 5, 6, 7, 8, 4, 5, 6, 7, 7, 8] + +# Eliminamos los elementos repetidos de ambas listas de conjuntos + +conjunto1 = set(lista1) +conjunto2 = set(lista2) + + +union = list(conjunto1 | conjunto2) # unimos los dos conjuntos +solo1 = list (conjunto1 - conjunto2) #solo muesta el conjunto1 +solo2 = list(conjunto2 - conjunto1) #solo muestra el conjunto2 +interseccion =list(conjunto1 & conjunto2) #mostramos ambas listas + +print(f"Lista de palabras que aperecen en las listas: {union}") +print(f"Lista de palabras que aperecen en la primera lista, pero no en la segunda: {solo1}") +print(f"Lista de palabras que aprecen en la segunda lista, pero no en la primera: {solo2}") +print(f"Lista de palabras que aprecen en ambas listas: {interseccion}") \ No newline at end of file diff --git a/Python/Leeccion6/EjercicioColecciones03.py b/Python/Leeccion6/EjercicioColecciones03.py new file mode 100644 index 00000000..de8e5e21 --- /dev/null +++ b/Python/Leeccion6/EjercicioColecciones03.py @@ -0,0 +1,34 @@ +#Ejercicio 3 : Agregar personajes a una lista +# Escriba un programa donde cree una lista con los siguientes personajes del señor de los anillos +#Nombre: Aragon +#Clase: Guerrero +#Raza: Dunadan del Norte + +#Nombre: Gandalf +#Clase: Mago +#Raza: Istar + +#Nombre: Legolas +#Clase: Arquero +#Raza: Elfon Sindar + +personajes= [] #creamos una lista vacia +#creamos diccionarios +P ={'Nombre' : 'Aragon', 'Clase' : 'Guerrero', 'Raza' : 'Dunudan del Norte'} +personajes.append(P) +P ={'Nombre' : 'Gandalf', 'Clase' : 'Mago', 'Raza' : 'Istar'} +personajes.append(P) +P ={'Nombre' : 'Legolas', 'Clase' : 'Arquero', 'Raza' : 'Elfo Sindar'} +personajes.append(P) + +print(personajes) +#Tarea: Agregar por lo menos otros tres personajes, que sean a tu eleccion + +P ={'Nombre' : 'Frodo Bolson', 'Clase' : 'Saqueador', 'Raza' : 'Hobbit'} +personajes.append(P) +P ={'Nombre' : 'Galadriel', 'Clase' : 'Guerrera', 'Raza' : 'Elfo Sindar'} +personajes.append(P) +P ={'Nombre' : 'Radagast', 'Clase' : 'Mago', 'Raza' : 'Istari'} +personajes.append(P) + +print(personajes) \ No newline at end of file diff --git a/Python/Rangos/rangos.py b/Python/Rangos/rangos.py new file mode 100644 index 00000000..3d4046b3 --- /dev/null +++ b/Python/Rangos/rangos.py @@ -0,0 +1,14 @@ +# ejercicio 1 +for i in range(0,10): + if i%3==0: + print(i) + + +# ejercicio 2 +for i in range(2,6): + print(i) + +# ejercicio 3 +for i in range(3,10,2): + print (i) + diff --git a/Python/Tuplas/tuplas.py b/Python/Tuplas/tuplas.py new file mode 100644 index 00000000..674eb072 --- /dev/null +++ b/Python/Tuplas/tuplas.py @@ -0,0 +1,9 @@ +tupla= (13,1,8,3,2,5,8) + +lista=[] + +for i in tupla: + if i < 5: + lista.append(i) + +print(lista) \ No newline at end of file