diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..c6ef1712 Binary files /dev/null and b/.DS_Store differ diff --git a/Bruno Olivera/.DS_Store b/Bruno Olivera/.DS_Store new file mode 100644 index 00000000..01c08eff Binary files /dev/null and b/Bruno Olivera/.DS_Store differ diff --git a/Bruno Olivera/Java/.DS_Store b/Bruno Olivera/Java/.DS_Store new file mode 100644 index 00000000..1cbf2a70 Binary files /dev/null and b/Bruno Olivera/Java/.DS_Store differ diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build.xml new file mode 100644 index 00000000..dca99a32 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Matriz_Ejercicio_3. + + + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/manifest.mf b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/build-impl.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/build-impl.xml new file mode 100644 index 00000000..eb7e9190 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/genfiles.properties b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/genfiles.properties new file mode 100644 index 00000000..d5a3097e --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=485d69e6 +build.xml.script.CRC32=0b2776e6 +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=485d69e6 +nbproject/build-impl.xml.script.CRC32=64a0d6d7 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/private/private.properties b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/project.properties b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/project.properties new file mode 100644 index 00000000..c327c46b --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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}/Matriz_Ejercicio_3.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/project.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/project.xml new file mode 100644 index 00000000..bfecaae0 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Matriz_Ejercicio_3 + + + + + + + + + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/src/matriz_ejercicio_3/Matriz_Ejercicio_3.java b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/src/matriz_ejercicio_3/Matriz_Ejercicio_3.java new file mode 100644 index 00000000..b66d8577 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/src/matriz_ejercicio_3/Matriz_Ejercicio_3.java @@ -0,0 +1,12 @@ +/* + crear y cargar una matriz de 3x3, trasponerla y cargarla + */ +package matriz_ejercicio_3; + +public class Matriz_Ejercicio_3 { + + public static void main(String[] args) { + + } + +} diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/build.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/build.xml new file mode 100644 index 00000000..23a50f2d --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Matriz_Ejercicio_4. + + + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/manifest.mf b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/build-impl.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/build-impl.xml new file mode 100644 index 00000000..837edc20 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/genfiles.properties b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/genfiles.properties new file mode 100644 index 00000000..29f8e993 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7027cd14 +build.xml.script.CRC32=fd19d7c6 +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=7027cd14 +nbproject/build-impl.xml.script.CRC32=78371e8a +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/private/private.properties b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/private/private.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/private/private.xml new file mode 100644 index 00000000..47509625 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/project.properties b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/project.properties new file mode 100644 index 00000000..cff7e4e5 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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}/Matriz_Ejercicio_4.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=matriz_ejercicio_4.Matriz_Ejercicio_4 +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/project.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/project.xml new file mode 100644 index 00000000..27c9119d --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Matriz_Ejercicio_4 + + + + + + + + + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/src/matriz_ejercicio_4/Matriz_Ejercicio_4.java b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/src/matriz_ejercicio_4/Matriz_Ejercicio_4.java new file mode 100644 index 00000000..75a30ca0 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/src/matriz_ejercicio_4/Matriz_Ejercicio_4.java @@ -0,0 +1,34 @@ +/* +ejercicio 4: crear una matriz de tamaño 7x7 y rellenarla de forma que los +elementos de la diagonal principal sean 1 y el resto 0 + */ +package matriz_ejercicio_4; + +import java.util.Scanner; + +public class Matriz_Ejercicio_4 { + + public static void main(String[] args) { + Scanner entrada = new Scanner(System.in); + int matriz[][] = new int[7][7]; + + //rellenando matriz + for (int i = 0; i < 7; i++) { + for (int j = 0; j < 7; j++) { + if (i == j) { + matriz[i][j] = 1; + } else { + matriz[i][j] = 0; + } + } + } + // mostrando matriz + for (int i = 0; i < 7; i++) { + for (int j = 0; j < 7; j++) { + System.out.print(matriz[i][j] + " "); + } + System.out.println(""); + } + } + +} diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/build.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/build.xml new file mode 100644 index 00000000..23d87137 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Matriz_Ejercicio_5. + + + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/manifest.mf b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/build-impl.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/build-impl.xml new file mode 100644 index 00000000..ca6764a3 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/genfiles.properties b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/genfiles.properties new file mode 100644 index 00000000..6cced3ec --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=78344132 +build.xml.script.CRC32=50868390 +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=78344132 +nbproject/build-impl.xml.script.CRC32=39165c8e +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/private/private.properties b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/private/private.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/private/private.xml new file mode 100644 index 00000000..47509625 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/project.properties b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/project.properties new file mode 100644 index 00000000..d4f1ba7f --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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}/Matriz_Ejercicio_5.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=matriz_ejercicio_5.Matriz_Ejercicio_5 +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/project.xml b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/project.xml new file mode 100644 index 00000000..34198e71 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Matriz_Ejercicio_5 + + + + + + + + + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/src/matriz_ejercicio_5/Matriz_Ejercicio_5.java b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/src/matriz_ejercicio_5/Matriz_Ejercicio_5.java new file mode 100644 index 00000000..02388224 --- /dev/null +++ b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/src/matriz_ejercicio_5/Matriz_Ejercicio_5.java @@ -0,0 +1,73 @@ +/* +crear y cargar una matriz de tamaño n x m, mostrar la suma de cada fila y de cada columna + */ +package matriz_ejercicio_5; + +import java.util.Scanner; +import javax.swing.JOptionPane; + +public class Matriz_Ejercicio_5 { + + public static void main(String[] args) { + Scanner entrada = new Scanner(System.in); + int matriz[][], nFilas, nCol, sumaFilas, sumaCol; + int posFila, posCol; + + nFilas = Integer.parseInt(JOptionPane.showInputDialog("Ingrese el numero de filas: ")); + nCol = Integer.parseInt(JOptionPane.showInputDialog("Ingrese el numero de columnas: ")); + + matriz = new int[nFilas][nCol]; + int filas[] = new int[nFilas]; + int columnas[] = new int[nCol]; + + System.out.println("Relllenando la matriz: "); + for (int i = 0; i < nFilas; i++) { + for (int j = 0; j < nCol; j++) { + System.out.println("Matriz [" + i + "] [" + j + "]"); + matriz[i][j] = entrada.nextInt(); + } + } + + System.out.println("Matriz original: "); + for (int i = 0; i < nFilas; i++) { + for (int j = 0; j < nCol; j++) { + System.out.print(matriz[i][j] + " "); + } + System.out.println(""); + } + + //sumando las filas + posFila = 0; + for (int i = 0; i < nFilas; i++) { + sumaFilas = 0; + for (int j = 0; j < nCol; j++) { + sumaFilas += matriz[i][j]; + } + filas[posFila] = sumaFilas; + posFila++; + } + + //sumando las columnas + posCol = 0; + for (int j = 0; j < nCol; j++) { + sumaCol = 0; + for (int i = 0; i < nFilas; i++) { + sumaCol += matriz[i][j]; + } + columnas[posCol] = sumaCol; + posCol++; + } + + System.out.println("La suma de las filas es: "); + for (int i = 0; i < nFilas; i++) { + System.out.println(filas[i] + " - "); + } + System.out.println(""); + + System.out.println("La suma de las columnas es: "); + for (int i = 0; i < nCol; i++) { + System.out.println(columnas[i] + " - "); + } + System.out.println(""); + } +} diff --git a/STecnicatura2023/Java/Leccion02/CicloWhile/build.xml b/STecnicatura2023/Java/Leccion02/CicloWhile/build.xml new file mode 100644 index 00000000..ce2c321f --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/CicloWhile/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CicloWhile. + + + diff --git a/STecnicatura2023/Java/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class b/STecnicatura2023/Java/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class new file mode 100644 index 00000000..22748277 Binary files /dev/null and b/STecnicatura2023/Java/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class differ diff --git a/STecnicatura2023/Java/Leccion02/CicloWhile/manifest.mf b/STecnicatura2023/Java/Leccion02/CicloWhile/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/CicloWhile/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/build-impl.xml b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/build-impl.xml new file mode 100644 index 00000000..a34258b3 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/genfiles.properties b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/genfiles.properties new file mode 100644 index 00000000..c15a4a1f --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0d2ac486 +build.xml.script.CRC32=0ab073dc +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=6637b47c +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/private/private.properties b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/private/private.xml b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/private/private.xml new file mode 100644 index 00000000..6807a2ba --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/project.properties b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/project.properties new file mode 100644 index 00000000..08e7fd59 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/project.xml b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/project.xml new file mode 100644 index 00000000..4254fd21 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CicloWhile + + + + + + + + + diff --git a/STecnicatura2023/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java b/STecnicatura2023/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java new file mode 100644 index 00000000..6098f854 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java @@ -0,0 +1,31 @@ +package CicloWhile; + +public class EjercicioWhile01 { + + public static void main(String[] args) { + int conteo = 0; + while (conteo < 3) { + System.out.println("conteo = " + conteo); + conteo++; + } + + int contador = 0; + do { + System.out.println("contador = " + contador); + contador++; + } while (contador <= 7); + inicio: + for (int contando = 0; contando < 7; contando++) { + if (contando % 2 == 0) { + System.out.println("contando = " + contando); + break inicio; + } + } + for (int contando = 0; contando < 7; contando++) { + if (contando % 2 == 0) { + continue; + } + System.out.println("contando = " + contando); + } + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build.xml new file mode 100644 index 00000000..871e3f2a --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos01. + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class new file mode 100644 index 00000000..e792fa39 Binary files /dev/null and b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class differ diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class new file mode 100644 index 00000000..d8b5c672 Binary files /dev/null and b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class differ diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/manifest.mf b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml new file mode 100644 index 00000000..7e886ee7 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties new file mode 100644 index 00000000..e0ff5fb2 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7515729e +build.xml.script.CRC32=403e0d08 +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=4f1dbcc0 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml new file mode 100644 index 00000000..0c048fdd --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/Users/brunitox/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java + file:/Users/brunitox/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/project.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/project.properties new file mode 100644 index 00000000..c11aafb5 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml new file mode 100644 index 00000000..f32955f2 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos01 + + + + + + + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java new file mode 100644 index 00000000..338a14df --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java @@ -0,0 +1,23 @@ +/* +Ejercicio 1: leer un numero y mostrar su cuadrado, repetir el proceso +hasta que se introduzca un numero negativo +*/ +package Ciclos01; + +import java.util.Scanner; + +public class Ciclos01 { + public static void main(String[] args) { + Scanner entrada = new Scanner(System.in); + int numero, cuadrado; + System.out.println("Digite un numero"); + numero = Integer.parseInt(entrada.nextLine()); + while (numero>=0){ + cuadrado = (int)Math.pow(numero,2); + System.out.println("El numero " + numero + " elevado al cuadrado es " + cuadrado); + System.out.println("Digite otro numero"); + numero = Integer.parseInt(entrada.nextLine()); + } + System.out.println("El programa ha finalizado por numero negativo"); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java new file mode 100644 index 00000000..f19f1471 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java @@ -0,0 +1,18 @@ + +package Ciclos01; + +import javax.swing.JOptionPane; + +public class Ejercicio01 { + public static void main(String[] args) { + int numero, cuadrado; + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + while (numero>=0){ + cuadrado = (int)Math.pow(numero,2); + System.out.println("El numero " + numero + " elevado al cuadrado es " + cuadrado); + System.out.println("Digite otro numero"); + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro numero")); + } + System.out.println("El programa ha finalizado por numero negativo"); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos02/pom.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos02/pom.xml new file mode 100644 index 00000000..fa31b74f --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos02/pom.xml @@ -0,0 +1,13 @@ + + + 4.0.0 + com.bruno + EjercicioCiclos02 + 1 + jar + + UTF-8 + 1.8 + 1.8 + + \ No newline at end of file diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java new file mode 100644 index 00000000..aec9622c --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java @@ -0,0 +1,27 @@ +/* +Ejercicio 2: leer un numero e identificar si es positivo o +negativo. El proceso se repetira hasta que se introduzca un 0 +*/ +package Ciclos02; + +import javax.swing.JOptionPane; + + +public class Ciclos02 { + public static void main(String[] args) { + + + int numero = Integer.parseInt(JOptionPane.showInputDialog("Digite un numero")); + while (numero!=0){ + if (numero>0){ + JOptionPane.showInputDialog(null, "El numero " + numero + " es positivo"); + + } else { + JOptionPane.showInputDialog(null, "El numero " + numero + " es negativo"); + } + System.out.println("Digite otro numero:"); + numero = Integer.parseInt(JOptionPane.showInputDialog("Digite otro numero")); + } + JOptionPane.showInputDialog(null, "El numero " + numero + " finaliza el programa"); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java new file mode 100644 index 00000000..1d918ef9 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java @@ -0,0 +1,26 @@ +/* +Ejercicio 2: leer un numero e identificar si es positivo o +negativo. El proceso se repetira hasta que se introduzca un 0 +*/ +package Ciclos02; + +import java.util.Scanner; + +public class Ejercicio02 { + public static void main(String[] args) { + Scanner entrada = new Scanner(System.in); + System.out.println("Digite un numero:"); + int numero = Integer.parseInt(entrada.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(entrada.nextLine()); + } + System.out.println("El numero " + numero + " finaliza el programa"); + } + +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/build.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/build.xml new file mode 100644 index 00000000..f26938dc --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos03. + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/manifest.mf b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml new file mode 100644 index 00000000..8f9f9c85 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties new file mode 100644 index 00000000..27d6b49c --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=65326ad2 +build.xml.script.CRC32=08ac13b5 +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=700cebc6 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml new file mode 100644 index 00000000..a3d2d192 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/Users/brunitox/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java + file:/Users/brunitox/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/project.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/project.properties new file mode 100644 index 00000000..5119f914 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml new file mode 100644 index 00000000..cd374fbd --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos03 + + + + + + + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java new file mode 100644 index 00000000..a98f76fe --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java @@ -0,0 +1,28 @@ +/* +Ejercicio 3: leer numeros hasta que se introduzca 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 entrada = new Scanner(System.in); + int numero; + System.out.println("Digite un numero:"); + numero = Integer.parseInt(entrada.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(entrada.nextLine()); + } + System.out.println("El numero ingresado " + numero + " finaliza el programa"); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java new file mode 100644 index 00000000..1b963f9c --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java @@ -0,0 +1,27 @@ +/* +Ejercicio 3: leer numeros hasta que se introduzca 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 Ejercicios03 { + public static void main(String[] args) { + int numero; + + numero = Integer.parseInt(JOptionPane.showInputDialog(null,"Digite un numero:")); + while(numero!=0){ + if(numero %2 == 0){ + JOptionPane.showInputDialog(null, "El numero ingresado " + numero + " es PAR"); + } else{ + JOptionPane.showInputDialog(null, "El numero ingresado " + numero + " es IMPAR"); + } + numero = Integer.parseInt(JOptionPane.showInputDialog(null,"Digite un numero:")); + } + JOptionPane.showInputDialog(null, "El numero ingresado " + numero + " finaliza el programa"); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/build.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/build.xml new file mode 100644 index 00000000..b28431cb --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos04. + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/manifest.mf b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml new file mode 100644 index 00000000..69019ec7 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties new file mode 100644 index 00000000..af51c274 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5d48ce20 +build.xml.script.CRC32=18ebbc0c +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=2eb7b94f +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml new file mode 100644 index 00000000..015e481f --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/Users/brunitox/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java + file:/Users/brunitox/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/project.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/project.properties new file mode 100644 index 00000000..4f766bef --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml new file mode 100644 index 00000000..32f110f4 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos04 + + + + + + + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java new file mode 100644 index 00000000..d0b7925f --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java @@ -0,0 +1,25 @@ +/* +Ejercicio 4: pedir numeros hasta que se teclee un numero 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 entrada = new Scanner(System.in); + int numero, conteo = 0; + System.out.println("Digite un numero:"); + numero = Integer.parseInt(entrada.nextLine()); + while (numero>=0){ + System.out.println("El numero " + numero + " es positivo"); + conteo++; + System.out.println("Digite otro numero:"); + numero = Integer.parseInt(entrada.nextLine()); + } + System.out.println("Ha ingresado " + conteo + " numeros que no son negativos"); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java new file mode 100644 index 00000000..71782c55 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java @@ -0,0 +1,24 @@ +/* +Ejercicio 4: pedir numeros hasta que se teclee un numero 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, conteo = 0; + + numero = Integer.parseInt(JOptionPane.showInputDialog(null,"Digite un numero:")); + while (numero>=0){ + JOptionPane.showMessageDialog(null, "El numero " + numero + " es positivo"); + conteo++; + numero = Integer.parseInt(JOptionPane.showInputDialog(null,"Digite otro numero:")); + } + JOptionPane.showMessageDialog(null, "Ha ingresado " + conteo + " numeros que no son negativos"); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/build.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/build.xml new file mode 100644 index 00000000..b97d6f8e --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos05. + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/manifest.mf b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml new file mode 100644 index 00000000..d7bfa5a1 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties new file mode 100644 index 00000000..01484c5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=555b4206 +build.xml.script.CRC32=d11a3072 +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=313f12cc +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml new file mode 100644 index 00000000..e82a46d7 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/Users/brunitox/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java + file:/Users/brunitox/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/project.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/project.properties new file mode 100644 index 00000000..dfac2fb4 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml new file mode 100644 index 00000000..50b67949 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos05 + + + + + + + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java new file mode 100644 index 00000000..4d6aeb6d --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java @@ -0,0 +1,32 @@ +/* +Ejercicio 5: realizar un juego para advininar 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 menos 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 entrada = new Scanner(System.in); + int numero, conteo = 0, aleatorio = 0; + aleatorio = (int)(Math.random()*100); //esto genera un numero aleatorio + do { + System.out.println("Digite un numero: "); + numero = Integer.parseInt(entrada.nextLine()); + if (numeroaleatorio){ + System.out.println("Digitee un numero menor"); + } else { + System.out.println("FELICIDADES! Has acertado el numero"); + } + conteo++; + } while(numero!=aleatorio); + System.out.println("Adivinaste el numero en " + conteo + " intentos"); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java new file mode 100644 index 00000000..80f51e20 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java @@ -0,0 +1,32 @@ +/* +Ejercicio 5: realizar un juego para advininar 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 menos 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, conteo = 0, aleatorio = 0; + aleatorio = (int)(Math.random()*100); //esto genera un numero aleatorio + do { + + numero = Integer.parseInt(JOptionPane.showInputDialog(null, "Digite un numero: ")); + if (numeroaleatorio){ + JOptionPane.showMessageDialog(null, "Digite un numero menor"); + } else { + JOptionPane.showMessageDialog(null, "FELICIDADES! Has acertado el numero"); + } + conteo++; + } while(numero!=aleatorio); + JOptionPane.showMessageDialog(null, "Adivinaste el numero en " + conteo + " intentos"); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/build.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/build.xml new file mode 100644 index 00000000..5cd2e715 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos06. + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/manifest.mf b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml new file mode 100644 index 00000000..5fe466be --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties new file mode 100644 index 00000000..498750d1 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4d6fd66c +build.xml.script.CRC32=5079a2b1 +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=4d6fd66c +nbproject/build-impl.xml.script.CRC32=11a6ee49 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/project.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/project.properties new file mode 100644 index 00000000..be3336b7 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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}/EjercicioCiclos06.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml new file mode 100644 index 00000000..139daade --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos06 + + + + + + + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java new file mode 100644 index 00000000..39f22bcb --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/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 introducidos + */ +package Ciclos06; + +import java.util.Scanner; + +public class Ciclos06 { + public static void main(String[] args) { + Scanner entrada = new Scanner(System.in); + int numero, suma = 0; + do { + System.out.println("Digite un numero: "); + numero = Integer.parseInt(entrada.nextLine()); + suma+= numero; + } while(numero!=0); + System.out.println("La suma de todos los numeros ingresados es: " + suma); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java new file mode 100644 index 00000000..2a87b74d --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java @@ -0,0 +1,18 @@ +/* +Ejercicio 6: Pedir numeros hasta que se teclee un 0, mostrar +la suma de todos los numeros introducidos + */ +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(null, "Digite un numero:")); + suma+= numero; + } while(numero!=0); + JOptionPane.showMessageDialog(null, "La suma de los numeros ingresados es: " + suma); + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/build.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/build.xml new file mode 100644 index 00000000..33e8cc5f --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos07. + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/manifest.mf b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml new file mode 100644 index 00000000..c1b3c544 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties new file mode 100644 index 00000000..e891af9e --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=457c5a4a +build.xml.script.CRC32=99882ecf +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=457c5a4a +nbproject/build-impl.xml.script.CRC32=0e2e45ca +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/project.properties b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/project.properties new file mode 100644 index 00000000..5416e496 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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}/EjercicioCiclos07.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml new file mode 100644 index 00000000..c2cff8cc --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos07 + + + + + + + + + diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java new file mode 100644 index 00000000..65ad2b60 --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java @@ -0,0 +1,26 @@ + +package Ciclos07; + +import java.util.Scanner; + +public class Ciclos07 { + public static void main(String[] args) { + Scanner entrada = new Scanner(System.in); + int numero, conteo = 0, suma = 0; + float promedio = 0; + System.out.println("Digite un numero: "); + numero = Integer.parseInt(entrada.nextLine()); + while (numero>=0){ + suma+=numero; + conteo++; + System.out.println("Digite otro numero: "); + numero = Integer.parseInt(entrada.nextLine()); + } + if (conteo==0){ + System.out.println("Error, la division entre 0 no existe"); + } else { + promedio = (float)suma/conteo; + System.out.println("El promedio es: " + promedio); + } + } +} diff --git a/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java new file mode 100644 index 00000000..e9ec395a --- /dev/null +++ b/STecnicatura2023/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java @@ -0,0 +1,24 @@ + +package Ciclos07; + +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(null, "Digite un numero:")); + while (numero>=0){ + suma+=numero; + conteo++; + numero = Integer.parseInt(JOptionPane.showInputDialog(null, "Digite otro numero:")); + } + if (conteo==0){ + JOptionPane.showMessageDialog(null, "Error, la division entre 0 no existe"); + } else { + promedio = (float)suma/conteo; + JOptionPane.showMessageDialog(null, "El promedio es: \" + promedio"); + } + } +} diff --git a/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/build.xml b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/build.xml new file mode 100644 index 00000000..560a5e4e --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project leccionClasesObjetos. + + + diff --git a/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/manifest.mf b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml new file mode 100644 index 00000000..fdb0e2d0 --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties new file mode 100644 index 00000000..b15bf907 --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=79e6c7c1 +build.xml.script.CRC32=c2ff6fa1 +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=f50f28bd +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml new file mode 100644 index 00000000..48f03506 --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/Users/brunitox/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java + + + diff --git a/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/project.properties b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/project.properties new file mode 100644 index 00000000..bf63382b --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml new file mode 100644 index 00000000..d3a08d14 --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + leccionClasesObjetos + + + + + + + + + diff --git a/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java new file mode 100644 index 00000000..ad6deda1 --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java @@ -0,0 +1,14 @@ + +package Clases; + +public class Persona { + //Atributos de la clase (caracteristicas) + String nombre; + String apellido; + + //Metodos de la clase (accionees) + public void obtenerInformacion(){ + System.out.println("Nombre: " + nombre); + System.out.println("Apellido: " + apellido); + } +} diff --git a/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/PruebaPersona.java b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/PruebaPersona.java new file mode 100644 index 00000000..4b09bcce --- /dev/null +++ b/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/PruebaPersona.java @@ -0,0 +1,19 @@ + +package Clases; + +public class PruebaPersona { + public static void main(String[] args) { + Persona persona1 = new Persona(); //llamamos al constructor + persona1.nombre = "Bruno"; + persona1.apellido = "Olivera"; + 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/STecnicatura2023/Java/Leccion04/Aritmetica/build.xml b/STecnicatura2023/Java/Leccion04/Aritmetica/build.xml new file mode 100644 index 00000000..a71512ac --- /dev/null +++ b/STecnicatura2023/Java/Leccion04/Aritmetica/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Aritmetica. + + + diff --git a/STecnicatura2023/Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class b/STecnicatura2023/Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class new file mode 100644 index 00000000..f0d6375b Binary files /dev/null and b/STecnicatura2023/Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class differ diff --git a/STecnicatura2023/Java/Leccion04/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class b/STecnicatura2023/Java/Leccion04/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class new file mode 100644 index 00000000..2a9e10ae Binary files /dev/null and b/STecnicatura2023/Java/Leccion04/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class differ diff --git a/STecnicatura2023/Java/Leccion04/Aritmetica/manifest.mf b/STecnicatura2023/Java/Leccion04/Aritmetica/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/STecnicatura2023/Java/Leccion04/Aritmetica/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/build-impl.xml b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/build-impl.xml new file mode 100644 index 00000000..9cb2c223 --- /dev/null +++ b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/genfiles.properties b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/genfiles.properties new file mode 100644 index 00000000..e29da94c --- /dev/null +++ b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=76081a62 +build.xml.script.CRC32=6b4f2526 +build.xml.stylesheet.CRC32=8064a381@1.80.1.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=25841738 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/private/private.properties b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/project.properties b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/project.properties new file mode 100644 index 00000000..60c2dee0 --- /dev/null +++ b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/project.properties @@ -0,0 +1,74 @@ +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.test.classpath=\ + ${run.test.classpath} +# 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 +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +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.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/project.xml b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/project.xml new file mode 100644 index 00000000..82ddac8e --- /dev/null +++ b/STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Aritmetica + + + + + + + + + diff --git a/STecnicatura2023/Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java b/STecnicatura2023/Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java new file mode 100644 index 00000000..ec02f127 --- /dev/null +++ b/STecnicatura2023/Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java @@ -0,0 +1,25 @@ + +package Operaciones; + +public class Aritmetica { + //Atributos de la clase + int a; + int b; + //Metodo + public void sumarNumeros(){ + int resultado = a + b; + System.out.println("resultado= " + resultado); + } + + public int sumarConRetorno(){ + //int resultado = a + b; + return this.a+this.b; + } + + public int sumarConArgumentos(int arg1, int arg2){ + this.a = a; + this.b = b; + // return a+b; + return this.sumarConRetorno(); + } +} diff --git a/STecnicatura2023/Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java b/STecnicatura2023/Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java new file mode 100644 index 00000000..b5ab0348 --- /dev/null +++ b/STecnicatura2023/Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java @@ -0,0 +1,19 @@ + +package Operaciones; + +public class PruebaAritmetica { + + public static void main(String[] args) { + Aritmetica aritmetica1= new Aritmetica(); + aritmetica1.a = 3; + aritmetica1.b = 7; + aritmetica1.sumarNumeros(); + + int resultado = aritmetica1.sumarConRetorno(); + System.out.println("resultado= " + resultado); + + resultado = aritmetica1.sumarConArgumentos(12, 26); + System.out.println("resultado= " + resultado); + } + +}