From ade24937984e43a5c02617d7e6014d9a4721f3ab Mon Sep 17 00:00:00 2001 From: BrunoOlivera99 Date: Wed, 6 Sep 2023 19:43:36 -0300 Subject: [PATCH 01/11] leccion02 ciclos --- Leccion02/.DS_Store | Bin 0 -> 6148 bytes Leccion02/CicloWhile/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/CicloWhile/EjercicioWhile01.class | Bin 0 -> 1146 bytes Leccion02/CicloWhile/manifest.mf | 3 + Leccion02/CicloWhile/nbproject/build-impl.xml | 1420 +++++++++++++++++ .../CicloWhile/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../CicloWhile/nbproject/private/private.xml | 9 + .../CicloWhile/nbproject/project.properties | 74 + Leccion02/CicloWhile/nbproject/project.xml | 15 + .../src/CicloWhile/EjercicioWhile01.java | 31 + 13 files changed, 1635 insertions(+) create mode 100644 Leccion02/.DS_Store create mode 100644 Leccion02/CicloWhile/build.xml create mode 100644 Leccion02/CicloWhile/build/classes/.netbeans_automatic_build create mode 100644 Leccion02/CicloWhile/build/classes/.netbeans_update_resources create mode 100644 Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class create mode 100644 Leccion02/CicloWhile/manifest.mf create mode 100644 Leccion02/CicloWhile/nbproject/build-impl.xml create mode 100644 Leccion02/CicloWhile/nbproject/genfiles.properties create mode 100644 Leccion02/CicloWhile/nbproject/private/private.properties create mode 100644 Leccion02/CicloWhile/nbproject/private/private.xml create mode 100644 Leccion02/CicloWhile/nbproject/project.properties create mode 100644 Leccion02/CicloWhile/nbproject/project.xml create mode 100644 Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java diff --git a/Leccion02/.DS_Store b/Leccion02/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..aacdaf382913d2a911f9310fc4d670406929418e GIT binary patch literal 6148 zcmeHKO>5gg5S?}0Mvf`?(14E%y_!~uL!tDd*v=u>D%6LzIF@Z<880TRb+4c-EiIr>*|v3twFrlO^l8pL|Y7i(c(@+vKx;nvW)y zkPb&k`PxnMp;@%dJReRiH+BO-C8+dj_2se|HXFKm6s{V2`QbQh=#%FA)v6L4zIpfY zQ}28BBR98p_N4H=T6^Vj4R;8(>TwfK^33E{7+-VO96?b)6c7cTngV_w3#w0T;xb=R zKot1v3h@4*;f#^T!lB(d(AW|HSVp%s#QeL+9PKgkSUAK8OgSphQI#(-l%u0x`@G0w z;n2}Z`Qk(QCo5l}DEoBWU)yw2kwa-k0a4&j1-SNu)%g5B+g<ii literal 0 HcmV?d00001 diff --git a/Leccion02/CicloWhile/build.xml b/Leccion02/CicloWhile/build.xml new file mode 100644 index 00000000..ce2c321f --- /dev/null +++ b/Leccion02/CicloWhile/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CicloWhile. + + + diff --git a/Leccion02/CicloWhile/build/classes/.netbeans_automatic_build b/Leccion02/CicloWhile/build/classes/.netbeans_automatic_build new file mode 100644 index 00000000..e69de29b diff --git a/Leccion02/CicloWhile/build/classes/.netbeans_update_resources b/Leccion02/CicloWhile/build/classes/.netbeans_update_resources new file mode 100644 index 00000000..e69de29b diff --git a/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class b/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class new file mode 100644 index 0000000000000000000000000000000000000000..22748277a6e22414160909d211286f280b9773f2 GIT binary patch literal 1146 zcmaJsrJbI#1S-=Dt%n82k78j%X)1bS8U zMW7%R!bv%wl0&~71|mpfFodBHhE<$aF(MG0vTVzp5m3^D3j+RGCvOTgXD!>Dua*|g z%3Xc2$V^MtG4$esUa@4no%Fj))`~zfJ8Kz5=iZW4G&9$h&5B_emKTnVPqJxAw`_s- z^uz43{zT6db-R$sxfRPUOv*z;hGVQVeZ&Im+zkG-|HY#Q#qRPO1DYnFI3PL&%m&pXS> z+@^6Z?KAZf%?;}1vT5f9M$$*PdnmOnjD?Bx+~9w+JUv5>U&M zUXk}5JBrW(U#P~XDnB2DyatX@Mj6h6b6{u#;$waL7{_2esi1{x%>$qnZH&T*p`95P zivpjwpScgpR6Mwf-cRs-f%0Gj{+2)u!FUa74WSysuY_3N`k_qk0YnH$>;ilu5mnc= zekwD`sJe>bWT5;OJ$vvC#3y&~>+Gqp=l6a1;5rijEb;JCq5>&#o`R%MA5{J!q$sVQ zV$*czGX1$qi8pA#9pdg&`eO=r89zfOUf?)hqYH14z#8NC=&oBefdH}?MF(>Vp6{$^ w5i7cQo)7O3=dR#6FInBmOp^HoBAf7uzD)?Ri9Rv#3jw)q>g0mx?s{#{AG3u6djJ3c literal 0 HcmV?d00001 diff --git a/Leccion02/CicloWhile/manifest.mf b/Leccion02/CicloWhile/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/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/Leccion02/CicloWhile/nbproject/build-impl.xml b/Leccion02/CicloWhile/nbproject/build-impl.xml new file mode 100644 index 00000000..a34258b3 --- /dev/null +++ b/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/Leccion02/CicloWhile/nbproject/genfiles.properties b/Leccion02/CicloWhile/nbproject/genfiles.properties new file mode 100644 index 00000000..c15a4a1f --- /dev/null +++ b/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/Leccion02/CicloWhile/nbproject/private/private.properties b/Leccion02/CicloWhile/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/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/Leccion02/CicloWhile/nbproject/private/private.xml b/Leccion02/CicloWhile/nbproject/private/private.xml new file mode 100644 index 00000000..56bcdefe --- /dev/null +++ b/Leccion02/CicloWhile/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/Users/brunitox/STecnicatura2023/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java + + + diff --git a/Leccion02/CicloWhile/nbproject/project.properties b/Leccion02/CicloWhile/nbproject/project.properties new file mode 100644 index 00000000..08e7fd59 --- /dev/null +++ b/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/Leccion02/CicloWhile/nbproject/project.xml b/Leccion02/CicloWhile/nbproject/project.xml new file mode 100644 index 00000000..4254fd21 --- /dev/null +++ b/Leccion02/CicloWhile/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CicloWhile + + + + + + + + + diff --git a/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java b/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java new file mode 100644 index 00000000..6098f854 --- /dev/null +++ b/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); + } + } +} From 78a4f5ccef354e64ffee02a1e4a79ecf181f4676 Mon Sep 17 00:00:00 2001 From: BrunoOlivera99 Date: Wed, 6 Sep 2023 19:45:03 -0300 Subject: [PATCH 02/11] Reubicacion archivos reubicados --- .DS_Store | Bin 0 -> 6148 bytes {Leccion02 => Java/Leccion02}/.DS_Store | Bin .../Leccion02}/CicloWhile/build.xml | 0 .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/CicloWhile/EjercicioWhile01.class | Bin .../Leccion02}/CicloWhile/manifest.mf | 0 .../CicloWhile/nbproject/build-impl.xml | 0 .../CicloWhile/nbproject/genfiles.properties | 0 .../nbproject/private/private.properties | 0 .../CicloWhile/nbproject/private/private.xml | 0 .../CicloWhile/nbproject/project.properties | 0 .../Leccion02}/CicloWhile/nbproject/project.xml | 0 .../src/CicloWhile/EjercicioWhile01.java | 0 14 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 .DS_Store rename {Leccion02 => Java/Leccion02}/.DS_Store (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/build.xml (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/build/classes/.netbeans_automatic_build (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/build/classes/.netbeans_update_resources (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/manifest.mf (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/nbproject/build-impl.xml (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/nbproject/genfiles.properties (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/nbproject/private/private.properties (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/nbproject/private/private.xml (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/nbproject/project.properties (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/nbproject/project.xml (100%) rename {Leccion02 => Java/Leccion02}/CicloWhile/src/CicloWhile/EjercicioWhile01.java (100%) diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5e16355aebe275c2c47288d6af9537350b496c29 GIT binary patch literal 6148 zcmeHKJxc>Y5PcIjm4%ZaMT$&|Gcn50F@6F@4>(5Sc zk2D)^ou5tCVjujR4}FaAfIG}EXa5uno_nsA(#b!#W2_@=SV2v@bQwF{Pj;w4v literal 0 HcmV?d00001 diff --git a/Leccion02/.DS_Store b/Java/Leccion02/.DS_Store similarity index 100% rename from Leccion02/.DS_Store rename to Java/Leccion02/.DS_Store diff --git a/Leccion02/CicloWhile/build.xml b/Java/Leccion02/CicloWhile/build.xml similarity index 100% rename from Leccion02/CicloWhile/build.xml rename to Java/Leccion02/CicloWhile/build.xml diff --git a/Leccion02/CicloWhile/build/classes/.netbeans_automatic_build b/Java/Leccion02/CicloWhile/build/classes/.netbeans_automatic_build similarity index 100% rename from Leccion02/CicloWhile/build/classes/.netbeans_automatic_build rename to Java/Leccion02/CicloWhile/build/classes/.netbeans_automatic_build diff --git a/Leccion02/CicloWhile/build/classes/.netbeans_update_resources b/Java/Leccion02/CicloWhile/build/classes/.netbeans_update_resources similarity index 100% rename from Leccion02/CicloWhile/build/classes/.netbeans_update_resources rename to Java/Leccion02/CicloWhile/build/classes/.netbeans_update_resources diff --git a/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class b/Java/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class similarity index 100% rename from Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class rename to Java/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class diff --git a/Leccion02/CicloWhile/manifest.mf b/Java/Leccion02/CicloWhile/manifest.mf similarity index 100% rename from Leccion02/CicloWhile/manifest.mf rename to Java/Leccion02/CicloWhile/manifest.mf diff --git a/Leccion02/CicloWhile/nbproject/build-impl.xml b/Java/Leccion02/CicloWhile/nbproject/build-impl.xml similarity index 100% rename from Leccion02/CicloWhile/nbproject/build-impl.xml rename to Java/Leccion02/CicloWhile/nbproject/build-impl.xml diff --git a/Leccion02/CicloWhile/nbproject/genfiles.properties b/Java/Leccion02/CicloWhile/nbproject/genfiles.properties similarity index 100% rename from Leccion02/CicloWhile/nbproject/genfiles.properties rename to Java/Leccion02/CicloWhile/nbproject/genfiles.properties diff --git a/Leccion02/CicloWhile/nbproject/private/private.properties b/Java/Leccion02/CicloWhile/nbproject/private/private.properties similarity index 100% rename from Leccion02/CicloWhile/nbproject/private/private.properties rename to Java/Leccion02/CicloWhile/nbproject/private/private.properties diff --git a/Leccion02/CicloWhile/nbproject/private/private.xml b/Java/Leccion02/CicloWhile/nbproject/private/private.xml similarity index 100% rename from Leccion02/CicloWhile/nbproject/private/private.xml rename to Java/Leccion02/CicloWhile/nbproject/private/private.xml diff --git a/Leccion02/CicloWhile/nbproject/project.properties b/Java/Leccion02/CicloWhile/nbproject/project.properties similarity index 100% rename from Leccion02/CicloWhile/nbproject/project.properties rename to Java/Leccion02/CicloWhile/nbproject/project.properties diff --git a/Leccion02/CicloWhile/nbproject/project.xml b/Java/Leccion02/CicloWhile/nbproject/project.xml similarity index 100% rename from Leccion02/CicloWhile/nbproject/project.xml rename to Java/Leccion02/CicloWhile/nbproject/project.xml diff --git a/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java b/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java similarity index 100% rename from Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java rename to Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java From a56cbe70fd2cd73c7849e227d61c96a2311f1e9f Mon Sep 17 00:00:00 2001 From: BrunoOlivera8 <83358445+BrunoOlivera8@users.noreply.github.com> Date: Wed, 1 Nov 2023 16:59:12 -0300 Subject: [PATCH 03/11] Add files via upload commit de lecciones 02 y 03 --- .../CicloWhile/nbproject/private/private.xml | 4 +- Java/Leccion02/EjercicioCiclos01/build.xml | 73 + .../build/classes/Ciclos01/Ciclos01.class | Bin 0 -> 1344 bytes .../build/classes/Ciclos01/Ejercicio01.class | Bin 0 -> 1261 bytes Java/Leccion02/EjercicioCiclos01/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 74 + .../EjercicioCiclos01/nbproject/project.xml | 15 + .../src/Ciclos01/Ciclos01.java | 23 + .../src/Ciclos01/Ejercicio01.java | 18 + Java/Leccion02/EjercicioCiclos02/pom.xml | 13 + .../src/main/java/Ciclos02/Ciclos02.java | 27 + .../src/main/java/Ciclos02/Ejercicio02.java | 26 + Java/Leccion02/EjercicioCiclos03/build.xml | 73 + Java/Leccion02/EjercicioCiclos03/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 74 + .../EjercicioCiclos03/nbproject/project.xml | 15 + .../src/Ciclos03/Ciclos03.java | 28 + .../src/Ciclos03/Ejercicios03.java | 27 + Java/Leccion02/EjercicioCiclos04/build.xml | 73 + Java/Leccion02/EjercicioCiclos04/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 74 + .../EjercicioCiclos04/nbproject/project.xml | 15 + .../src/Ciclos04/Ciclos04.java | 25 + .../src/Ciclos04/Ejercicio04.java | 24 + Java/Leccion02/EjercicioCiclos05/build.xml | 73 + Java/Leccion02/EjercicioCiclos05/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 74 + .../EjercicioCiclos05/nbproject/project.xml | 15 + .../src/Ciclos05/Ciclos05.java | 32 + .../src/Ciclos05/Ejercicio05.java | 32 + Java/Leccion03/leccionClasesObjetos/build.xml | 73 + .../leccionClasesObjetos/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../src/Clases/Persona.java | 8 + 55 files changed, 8308 insertions(+), 3 deletions(-) create mode 100644 Java/Leccion02/EjercicioCiclos01/build.xml create mode 100644 Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class create mode 100644 Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class create mode 100644 Java/Leccion02/EjercicioCiclos01/manifest.mf create mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml create mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties create mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties create mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml create mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/project.properties create mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/project.xml create mode 100644 Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java create mode 100644 Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java create mode 100644 Java/Leccion02/EjercicioCiclos02/pom.xml create mode 100644 Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java create mode 100644 Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java create mode 100644 Java/Leccion02/EjercicioCiclos03/build.xml create mode 100644 Java/Leccion02/EjercicioCiclos03/manifest.mf create mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml create mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties create mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties create mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml create mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/project.properties create mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/project.xml create mode 100644 Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java create mode 100644 Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java create mode 100644 Java/Leccion02/EjercicioCiclos04/build.xml create mode 100644 Java/Leccion02/EjercicioCiclos04/manifest.mf create mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml create mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties create mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties create mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml create mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/project.properties create mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/project.xml create mode 100644 Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java create mode 100644 Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java create mode 100644 Java/Leccion02/EjercicioCiclos05/build.xml create mode 100644 Java/Leccion02/EjercicioCiclos05/manifest.mf create mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml create mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties create mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties create mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml create mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/project.properties create mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/project.xml create mode 100644 Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java create mode 100644 Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java create mode 100644 Java/Leccion03/leccionClasesObjetos/build.xml create mode 100644 Java/Leccion03/leccionClasesObjetos/manifest.mf create mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml create mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties create mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties create mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml create mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/project.properties create mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/project.xml create mode 100644 Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java diff --git a/Java/Leccion02/CicloWhile/nbproject/private/private.xml b/Java/Leccion02/CicloWhile/nbproject/private/private.xml index 56bcdefe..6807a2ba 100644 --- a/Java/Leccion02/CicloWhile/nbproject/private/private.xml +++ b/Java/Leccion02/CicloWhile/nbproject/private/private.xml @@ -2,8 +2,6 @@ - - file:/Users/brunitox/STecnicatura2023/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java - + diff --git a/Java/Leccion02/EjercicioCiclos01/build.xml b/Java/Leccion02/EjercicioCiclos01/build.xml new file mode 100644 index 00000000..871e3f2a --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos01/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos01. + + + diff --git a/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class b/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class new file mode 100644 index 0000000000000000000000000000000000000000..e792fa39e40672c6a93e8a8b30867749d2007ffb GIT binary patch literal 1344 zcmZ`(*-{fh6g?dvGmI0KuuIf&Pe2GNt_Ui`B^unKD5YgplQf}qGBY)q!Q}^h^9TF@ zpYKJ;7{+y+Rr8D*&gqy{^PG z1rr%uQVy3*T)|a_o{TKXKv^g;I;x6u~fz%kbge}%d4U5}WLm5j{$mu>7N&k8QZs5E1c!mk$@_e`C^D?*A zxV0)BZp)X7#dG~e8b_3PAlFHq-i83b`$Q*eR(f;gi6{hrLHQSzK$ICGs+9v<+DkW` zb-Xa3UJ70&^@o$&8dQ_p+>i*Hfw!pr&A`4|ZsPj`re=G}$yN#L#4T6H5zhm4MH%{& zsn+Y&=xQx4>ja{tl-E7(R|IYULrj;jt0~4J57wxD&wa+wk<4UL8MfNufkC+gfJRtOxGahk?Bqq)%Qw5sZee(lj%gJH|G^-qp;bG)8M+Cla(a zw;ZqwyJ^>nJ+KH-!C%o%FHri3$ntx%ZJ<5(9v$&$720?e`X)MO6K^n|c-0SM6XxqV zvVKHtc>`VX?kai`RrJQ=wAe+9D*7l+#rOXa|Mur+1q~3S%4>rvZ;XCNzz%w2=tCD_ z-BeZ&Qs~8X#E~cTF$S*Z`(fb literal 0 HcmV?d00001 diff --git a/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class b/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class new file mode 100644 index 0000000000000000000000000000000000000000..d8b5c67296eb9a5aa1f7406c6e25fd856e9c92c9 GIT binary patch literal 1261 zcmZux+foxj5IqwDyIGe@0s;!kdJm`syeoLY1T~rnRVY=KPeU>$gPWbL%?8vT@Xa6a z1ANv8q_j%k{Ut56Cs`^{vRgGh({twZ>F(M6@%zg+0GF_8VFag5oUxF`w1pX*?Yl!e z`mt~h=M$Jk#=x9~gvQNldqEEuOjrKZSYYT|l%5Q4G4!OT*BRnj zRTd0`1?h>$joO9?p70HqJgI^zad({uQm-RtJgmw(!)PHZORlQV&1aT3MNpC@spjU1 zJYM6{qy6;r!Y1G18JByN%vu;oud<+{nWY9V2fVBpSf1cKs1V(77c>d=8Z{9RvVSe) zrI$tSM)d))Bp42jjIt0w>m^Kb#l>9kak)d!Jp3~wnuxR5ZZW*|3;|`V#+_jNK z&cL#bd$`Xq_P^x24e6Fez+f%A5sPEv0rGly$T02*S8P!>4tJfs%p6fC&?6KK6m2}l z3Y9X_qQXE$JPhZF(+^Z7;5F`4x${DL+?8)Mo3DbsaGt2}P;OBbM!J=p@@$J<+1M1N zFv{aqroK&8&pcf5L#ez~?&&Vqt7<#%`He6qxvMG+r_&vcY7s0EL8Kzdx_`wi&9HYASSkKadE9o04O9)=vxs!YGYnw91fWWP4{mgMDmnkJH%KboSv8&FvNdhcQ8`1SWBWJo@l= z#L+``Jr&zU&o1JN6Yr6ocsqjLT^R3feuDWGiD#c-r4H=Cp4dTuYJet_G}*!64u%Mk zN|H?_BZ3cqzH48Kd|FKpw3_2EX-v>-p&th*wvFpFTfzW}7{XH|n@SzRkI}E@D5fY) g(glYS*C&g_F-59RG*_`-NU)#u)iInTM+~R_0#~Xq4*&oF literal 0 HcmV?d00001 diff --git a/Java/Leccion02/EjercicioCiclos01/manifest.mf b/Java/Leccion02/EjercicioCiclos01/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml new file mode 100644 index 00000000..7e886ee7 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties new file mode 100644 index 00000000..e0ff5fb2 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml b/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml new file mode 100644 index 00000000..0c048fdd --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos01/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos01/nbproject/project.properties new file mode 100644 index 00000000..c11aafb5 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml new file mode 100644 index 00000000..f32955f2 --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos01 + + + + + + + + + diff --git a/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java b/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java new file mode 100644 index 00000000..338a14df --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java b/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java new file mode 100644 index 00000000..f19f1471 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos02/pom.xml b/Java/Leccion02/EjercicioCiclos02/pom.xml new file mode 100644 index 00000000..fa31b74f --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java b/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java new file mode 100644 index 00000000..aec9622c --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java b/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java new file mode 100644 index 00000000..1d918ef9 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos03/build.xml b/Java/Leccion02/EjercicioCiclos03/build.xml new file mode 100644 index 00000000..f26938dc --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos03/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos03. + + + diff --git a/Java/Leccion02/EjercicioCiclos03/manifest.mf b/Java/Leccion02/EjercicioCiclos03/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml new file mode 100644 index 00000000..8f9f9c85 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties new file mode 100644 index 00000000..27d6b49c --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml b/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml new file mode 100644 index 00000000..a3d2d192 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos03/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos03/nbproject/project.properties new file mode 100644 index 00000000..5119f914 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml new file mode 100644 index 00000000..cd374fbd --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos03 + + + + + + + + + diff --git a/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java b/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java new file mode 100644 index 00000000..a98f76fe --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java b/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java new file mode 100644 index 00000000..1b963f9c --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos04/build.xml b/Java/Leccion02/EjercicioCiclos04/build.xml new file mode 100644 index 00000000..b28431cb --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos04/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos04. + + + diff --git a/Java/Leccion02/EjercicioCiclos04/manifest.mf b/Java/Leccion02/EjercicioCiclos04/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml new file mode 100644 index 00000000..69019ec7 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties new file mode 100644 index 00000000..af51c274 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml b/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml new file mode 100644 index 00000000..015e481f --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos04/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos04/nbproject/project.properties new file mode 100644 index 00000000..4f766bef --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml new file mode 100644 index 00000000..32f110f4 --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos04 + + + + + + + + + diff --git a/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java b/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java new file mode 100644 index 00000000..d0b7925f --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java b/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java new file mode 100644 index 00000000..71782c55 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos05/build.xml b/Java/Leccion02/EjercicioCiclos05/build.xml new file mode 100644 index 00000000..b97d6f8e --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos05/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos05. + + + diff --git a/Java/Leccion02/EjercicioCiclos05/manifest.mf b/Java/Leccion02/EjercicioCiclos05/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml new file mode 100644 index 00000000..d7bfa5a1 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties new file mode 100644 index 00000000..01484c5b --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml b/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml new file mode 100644 index 00000000..e82a46d7 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos05/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos05/nbproject/project.properties new file mode 100644 index 00000000..dfac2fb4 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml new file mode 100644 index 00000000..50b67949 --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos05 + + + + + + + + + diff --git a/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java b/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java new file mode 100644 index 00000000..4d6aeb6d --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java b/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java new file mode 100644 index 00000000..80f51e20 --- /dev/null +++ b/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/Java/Leccion03/leccionClasesObjetos/build.xml b/Java/Leccion03/leccionClasesObjetos/build.xml new file mode 100644 index 00000000..560a5e4e --- /dev/null +++ b/Java/Leccion03/leccionClasesObjetos/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project leccionClasesObjetos. + + + diff --git a/Java/Leccion03/leccionClasesObjetos/manifest.mf b/Java/Leccion03/leccionClasesObjetos/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/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/Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml b/Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml new file mode 100644 index 00000000..fdb0e2d0 --- /dev/null +++ b/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/Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties b/Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties new file mode 100644 index 00000000..b15bf907 --- /dev/null +++ b/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/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties b/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/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/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml b/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml new file mode 100644 index 00000000..48f03506 --- /dev/null +++ b/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/Java/Leccion03/leccionClasesObjetos/nbproject/project.properties b/Java/Leccion03/leccionClasesObjetos/nbproject/project.properties new file mode 100644 index 00000000..bf63382b --- /dev/null +++ b/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/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml b/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml new file mode 100644 index 00000000..d3a08d14 --- /dev/null +++ b/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + leccionClasesObjetos + + + + + + + + + diff --git a/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java b/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java new file mode 100644 index 00000000..14179106 --- /dev/null +++ b/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java @@ -0,0 +1,8 @@ + +package Clases; + +public class Persona { + //Atributos de la clase (caracteristicas) + String nombre; + String apellido; +} From 2d3c1035f5827ea0ff86a3d878ce6abb51c36f2d Mon Sep 17 00:00:00 2001 From: BrunoOlivera8 <83358445+BrunoOlivera8@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:34:11 -0300 Subject: [PATCH 04/11] Add files via upload commit de ejercicios 06 y 07 --- Java/Leccion02/EjercicioCiclos06/build.xml | 73 + Java/Leccion02/EjercicioCiclos06/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../EjercicioCiclos06/nbproject/project.xml | 15 + .../src/Ciclos06/Ciclos06.java | 20 + .../src/Ciclos06/Ejercicio06.java | 18 + Java/Leccion02/EjercicioCiclos07/build.xml | 73 + Java/Leccion02/EjercicioCiclos07/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../EjercicioCiclos07/nbproject/project.xml | 15 + .../src/Ciclos07/Ciclos07.java | 26 + .../src/Ciclos07/Ejercicio07.java | 24 + 18 files changed, 3278 insertions(+) create mode 100644 Java/Leccion02/EjercicioCiclos06/build.xml create mode 100644 Java/Leccion02/EjercicioCiclos06/manifest.mf create mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml create mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties create mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties create mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/project.properties create mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/project.xml create mode 100644 Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java create mode 100644 Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java create mode 100644 Java/Leccion02/EjercicioCiclos07/build.xml create mode 100644 Java/Leccion02/EjercicioCiclos07/manifest.mf create mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml create mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties create mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties create mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/project.properties create mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/project.xml create mode 100644 Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java create mode 100644 Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java diff --git a/Java/Leccion02/EjercicioCiclos06/build.xml b/Java/Leccion02/EjercicioCiclos06/build.xml new file mode 100644 index 00000000..5cd2e715 --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos06/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos06. + + + diff --git a/Java/Leccion02/EjercicioCiclos06/manifest.mf b/Java/Leccion02/EjercicioCiclos06/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml new file mode 100644 index 00000000..5fe466be --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties new file mode 100644 index 00000000..498750d1 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos06/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos06/nbproject/project.properties new file mode 100644 index 00000000..be3336b7 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml new file mode 100644 index 00000000..139daade --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos06 + + + + + + + + + diff --git a/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java b/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java new file mode 100644 index 00000000..39f22bcb --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java b/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java new file mode 100644 index 00000000..2a87b74d --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos07/build.xml b/Java/Leccion02/EjercicioCiclos07/build.xml new file mode 100644 index 00000000..33e8cc5f --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos07/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EjercicioCiclos07. + + + diff --git a/Java/Leccion02/EjercicioCiclos07/manifest.mf b/Java/Leccion02/EjercicioCiclos07/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml new file mode 100644 index 00000000..c1b3c544 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties new file mode 100644 index 00000000..e891af9e --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos07/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos07/nbproject/project.properties new file mode 100644 index 00000000..5416e496 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml new file mode 100644 index 00000000..c2cff8cc --- /dev/null +++ b/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EjercicioCiclos07 + + + + + + + + + diff --git a/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java b/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java new file mode 100644 index 00000000..65ad2b60 --- /dev/null +++ b/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/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java b/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java new file mode 100644 index 00000000..e9ec395a --- /dev/null +++ b/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"); + } + } +} From 33030a7b07688aaadb549d282d26e4adfe4b7de6 Mon Sep 17 00:00:00 2001 From: BrunoOlivera8 <83358445+BrunoOlivera8@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:36:52 -0300 Subject: [PATCH 05/11] Add files via upload commit de leccion 04 Clase en java de argumentos y operador this --- Java/Leccion04/Aritmetica/build.xml | 73 + .../classes/Operaciones/Aritmetica.class | Bin 0 -> 1046 bytes .../Operaciones/PruebaAritmetica.class | Bin 0 -> 1104 bytes Java/Leccion04/Aritmetica/manifest.mf | 3 + .../Aritmetica/nbproject/build-impl.xml | 1420 +++++++++++++++++ .../Aritmetica/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Aritmetica/nbproject/project.properties | 74 + .../Aritmetica/nbproject/project.xml | 15 + .../src/Operaciones/Aritmetica.java | 25 + .../src/Operaciones/PruebaAritmetica.java | 19 + 11 files changed, 1639 insertions(+) create mode 100644 Java/Leccion04/Aritmetica/build.xml create mode 100644 Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class create mode 100644 Java/Leccion04/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class create mode 100644 Java/Leccion04/Aritmetica/manifest.mf create mode 100644 Java/Leccion04/Aritmetica/nbproject/build-impl.xml create mode 100644 Java/Leccion04/Aritmetica/nbproject/genfiles.properties create mode 100644 Java/Leccion04/Aritmetica/nbproject/private/private.properties create mode 100644 Java/Leccion04/Aritmetica/nbproject/project.properties create mode 100644 Java/Leccion04/Aritmetica/nbproject/project.xml create mode 100644 Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java create mode 100644 Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java diff --git a/Java/Leccion04/Aritmetica/build.xml b/Java/Leccion04/Aritmetica/build.xml new file mode 100644 index 00000000..a71512ac --- /dev/null +++ b/Java/Leccion04/Aritmetica/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Aritmetica. + + + diff --git a/Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class b/Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class new file mode 100644 index 0000000000000000000000000000000000000000..f0d6375bb13a87d5f6c1d8ba2bf1f054150b46cf GIT binary patch literal 1046 zcmaKqYi|-k6o%j7wy<3((yO*=YpYVUMQgo6P1+_VB*YpqB*rftV1nDgE*TaR|C3)d zmL{6`1N>3OcK`uXVm5PT=3L(M%*_7!{rx9^J?z^^Vk3b|*fi!=0=IF;LdHfE8*yxz zIcv;aWA545#*WRzoQ3-q9ta4@QRJu!#0swG1}_A{nXQUIf{cz8?;p5)?{A5>2zCCQ%Px`nF*~r z-DV)`K6~^-N51z)1-|y^Ap)t=fBgr#!8$K6h0#p0Xo3-`8$5xTb_MLR-_z1?Hvz30Q4|*Yrp{4XA>3 z{#{A_n;{O~H!aMS(?-At#T@NCcR9|2b2NJn@r8>J7HDIAX9SB}JA(u)VVOIDE2H8Q zg!>IPv)>Tn2%i+bBJu;#cjt(utsdelJtTUtdzcw(Cs_s9{ARF0b<<;Upfl`Y<0`)t zdkOQlv<7vLIR@1pb^FZSByVbh*B_)6;+2gwrY+pE5y5nVV8+00BRU2O3CyBs z;f{?2rsJ41>%4)Ifx9*qaL*jPZ(-5G5<_f7xyoN-7;p-E4AD)mE*X*)<;vGVt19(d zQEieYUGZw7xhJ$T^06}Ne^MQWiOP0cYEe_3D?6nf9muL!*UE26U)97id2I>hGK@GM zEBoTJC^d!KDDC=MxsBy+RG}N>Cv$nmm{!}&s)vQZRjQljAvFaBSfvL;iH&eufOGlMvh0eOdD4%ke^(y6Uw80Dc7fFNYSEJ#YDR;-8#dZb3w1p zsg84|i+QJ9_>Vd6d%cD;WS#Q|$w8)@>{&t#R@=~P((B1xM2Mbj`cLZXx%5h5QBF;FSS4iGJ-tOE=dL&RuWtKSemLW0b8dME_XhZqiVDMYfE;;Hcvsehk1 z;WI;V0Sj>&!?e%9CT<*gl9rI9SCzs$O40D0>~SL7HIm}k!33@o<2=3ANh*XXzzwoQ GaPv3mX8v#h literal 0 HcmV?d00001 diff --git a/Java/Leccion04/Aritmetica/manifest.mf b/Java/Leccion04/Aritmetica/manifest.mf new file mode 100644 index 00000000..328e8e5b --- /dev/null +++ b/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/Java/Leccion04/Aritmetica/nbproject/build-impl.xml b/Java/Leccion04/Aritmetica/nbproject/build-impl.xml new file mode 100644 index 00000000..9cb2c223 --- /dev/null +++ b/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/Java/Leccion04/Aritmetica/nbproject/genfiles.properties b/Java/Leccion04/Aritmetica/nbproject/genfiles.properties new file mode 100644 index 00000000..e29da94c --- /dev/null +++ b/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/Java/Leccion04/Aritmetica/nbproject/private/private.properties b/Java/Leccion04/Aritmetica/nbproject/private/private.properties new file mode 100644 index 00000000..ef1af85a --- /dev/null +++ b/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/Java/Leccion04/Aritmetica/nbproject/project.properties b/Java/Leccion04/Aritmetica/nbproject/project.properties new file mode 100644 index 00000000..60c2dee0 --- /dev/null +++ b/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/Java/Leccion04/Aritmetica/nbproject/project.xml b/Java/Leccion04/Aritmetica/nbproject/project.xml new file mode 100644 index 00000000..82ddac8e --- /dev/null +++ b/Java/Leccion04/Aritmetica/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Aritmetica + + + + + + + + + diff --git a/Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java b/Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java new file mode 100644 index 00000000..ec02f127 --- /dev/null +++ b/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/Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java b/Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java new file mode 100644 index 00000000..b5ab0348 --- /dev/null +++ b/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); + } + +} From 3ce79721cc9d913e0c47f3c0881fc4e856d1c1c1 Mon Sep 17 00:00:00 2001 From: BrunoOlivera99 Date: Thu, 2 Nov 2023 11:01:07 -0300 Subject: [PATCH 06/11] reorganizacion de archivos --- .DS_Store | Bin 6148 -> 6148 bytes Java/Leccion02/.DS_Store | Bin 6148 -> 0 bytes Java/Leccion02/CicloWhile/build.xml | 73 - .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/CicloWhile/EjercicioWhile01.class | Bin 1146 -> 0 bytes Java/Leccion02/CicloWhile/manifest.mf | 3 - .../CicloWhile/nbproject/build-impl.xml | 1420 ----------------- .../CicloWhile/nbproject/genfiles.properties | 8 - .../nbproject/private/private.properties | 2 - .../CicloWhile/nbproject/private/private.xml | 7 - .../CicloWhile/nbproject/project.properties | 74 - .../CicloWhile/nbproject/project.xml | 15 - .../src/CicloWhile/EjercicioWhile01.java | 31 - Java/Leccion02/EjercicioCiclos01/build.xml | 73 - .../build/classes/Ciclos01/Ciclos01.class | Bin 1344 -> 0 bytes .../build/classes/Ciclos01/Ejercicio01.class | Bin 1261 -> 0 bytes Java/Leccion02/EjercicioCiclos01/manifest.mf | 3 - .../nbproject/build-impl.xml | 1420 ----------------- .../nbproject/genfiles.properties | 8 - .../nbproject/private/private.properties | 2 - .../nbproject/private/private.xml | 10 - .../nbproject/project.properties | 74 - .../EjercicioCiclos01/nbproject/project.xml | 15 - .../src/Ciclos01/Ciclos01.java | 23 - .../src/Ciclos01/Ejercicio01.java | 18 - Java/Leccion02/EjercicioCiclos02/pom.xml | 13 - .../src/main/java/Ciclos02/Ciclos02.java | 27 - .../src/main/java/Ciclos02/Ejercicio02.java | 26 - Java/Leccion02/EjercicioCiclos03/build.xml | 73 - Java/Leccion02/EjercicioCiclos03/manifest.mf | 3 - .../nbproject/build-impl.xml | 1420 ----------------- .../nbproject/genfiles.properties | 8 - .../nbproject/private/private.properties | 2 - .../nbproject/private/private.xml | 10 - .../nbproject/project.properties | 74 - .../EjercicioCiclos03/nbproject/project.xml | 15 - .../src/Ciclos03/Ciclos03.java | 28 - .../src/Ciclos03/Ejercicios03.java | 27 - Java/Leccion02/EjercicioCiclos04/build.xml | 73 - Java/Leccion02/EjercicioCiclos04/manifest.mf | 3 - .../nbproject/build-impl.xml | 1420 ----------------- .../nbproject/genfiles.properties | 8 - .../nbproject/private/private.properties | 2 - .../nbproject/private/private.xml | 10 - .../nbproject/project.properties | 74 - .../EjercicioCiclos04/nbproject/project.xml | 15 - .../src/Ciclos04/Ciclos04.java | 25 - .../src/Ciclos04/Ejercicio04.java | 24 - Java/Leccion02/EjercicioCiclos05/build.xml | 73 - Java/Leccion02/EjercicioCiclos05/manifest.mf | 3 - .../nbproject/build-impl.xml | 1420 ----------------- .../nbproject/genfiles.properties | 8 - .../nbproject/private/private.properties | 2 - .../nbproject/private/private.xml | 10 - .../nbproject/project.properties | 74 - .../EjercicioCiclos05/nbproject/project.xml | 15 - .../src/Ciclos05/Ciclos05.java | 32 - .../src/Ciclos05/Ejercicio05.java | 32 - Java/Leccion03/leccionClasesObjetos/build.xml | 73 - .../leccionClasesObjetos/manifest.mf | 3 - .../nbproject/build-impl.xml | 1420 ----------------- .../nbproject/genfiles.properties | 8 - .../nbproject/private/private.properties | 2 - .../nbproject/private/private.xml | 9 - .../nbproject/project.properties | 74 - .../nbproject/project.xml | 15 - .../src/Clases/Persona.java | 8 - 68 files changed, 9940 deletions(-) delete mode 100644 Java/Leccion02/.DS_Store delete mode 100644 Java/Leccion02/CicloWhile/build.xml delete mode 100644 Java/Leccion02/CicloWhile/build/classes/.netbeans_automatic_build delete mode 100644 Java/Leccion02/CicloWhile/build/classes/.netbeans_update_resources delete mode 100644 Java/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class delete mode 100644 Java/Leccion02/CicloWhile/manifest.mf delete mode 100644 Java/Leccion02/CicloWhile/nbproject/build-impl.xml delete mode 100644 Java/Leccion02/CicloWhile/nbproject/genfiles.properties delete mode 100644 Java/Leccion02/CicloWhile/nbproject/private/private.properties delete mode 100644 Java/Leccion02/CicloWhile/nbproject/private/private.xml delete mode 100644 Java/Leccion02/CicloWhile/nbproject/project.properties delete mode 100644 Java/Leccion02/CicloWhile/nbproject/project.xml delete mode 100644 Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java delete mode 100644 Java/Leccion02/EjercicioCiclos01/build.xml delete mode 100644 Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class delete mode 100644 Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class delete mode 100644 Java/Leccion02/EjercicioCiclos01/manifest.mf delete mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml delete mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties delete mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties delete mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml delete mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/project.properties delete mode 100644 Java/Leccion02/EjercicioCiclos01/nbproject/project.xml delete mode 100644 Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java delete mode 100644 Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java delete mode 100644 Java/Leccion02/EjercicioCiclos02/pom.xml delete mode 100644 Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java delete mode 100644 Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java delete mode 100644 Java/Leccion02/EjercicioCiclos03/build.xml delete mode 100644 Java/Leccion02/EjercicioCiclos03/manifest.mf delete mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml delete mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties delete mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties delete mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml delete mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/project.properties delete mode 100644 Java/Leccion02/EjercicioCiclos03/nbproject/project.xml delete mode 100644 Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java delete mode 100644 Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java delete mode 100644 Java/Leccion02/EjercicioCiclos04/build.xml delete mode 100644 Java/Leccion02/EjercicioCiclos04/manifest.mf delete mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml delete mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties delete mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties delete mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml delete mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/project.properties delete mode 100644 Java/Leccion02/EjercicioCiclos04/nbproject/project.xml delete mode 100644 Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java delete mode 100644 Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java delete mode 100644 Java/Leccion02/EjercicioCiclos05/build.xml delete mode 100644 Java/Leccion02/EjercicioCiclos05/manifest.mf delete mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml delete mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties delete mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties delete mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml delete mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/project.properties delete mode 100644 Java/Leccion02/EjercicioCiclos05/nbproject/project.xml delete mode 100644 Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java delete mode 100644 Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java delete mode 100644 Java/Leccion03/leccionClasesObjetos/build.xml delete mode 100644 Java/Leccion03/leccionClasesObjetos/manifest.mf delete mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml delete mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties delete mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties delete mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml delete mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/project.properties delete mode 100644 Java/Leccion03/leccionClasesObjetos/nbproject/project.xml delete mode 100644 Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java diff --git a/.DS_Store b/.DS_Store index 5e16355aebe275c2c47288d6af9537350b496c29..1e73deec64297804733e6d9ca49e984321ff3ab8 100644 GIT binary patch delta 91 zcmZoMXfc@J&&aVcU^gQp$7CKR6ONSP7*ZLM8S)r1 lfn*{>2}3DE5s)@wFaTm>m=4Cx6Pe3cCN>mqX6N|J4*+2O7~TK? delta 211 zcmZoMXfc@J&&atkU^gQp=VTrxlgXh>`SpSfUJQv0Wk4LvkjzlTkjYTMPy%E-Gn4|w zNIr+&+Ir&Kp3=9H5ydH@4{(}LK#lXOgWCBiIjIwCDco_m1Dj7=j7%~|08S?O1 X$k>h0I(a{n`DQid5|+*E9Dn%%PI5VE diff --git a/Java/Leccion02/.DS_Store b/Java/Leccion02/.DS_Store deleted file mode 100644 index aacdaf382913d2a911f9310fc4d670406929418e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKO>5gg5S?}0Mvf`?(14E%y_!~uL!tDd*v=u>D%6LzIF@Z<880TRb+4c-EiIr>*|v3twFrlO^l8pL|Y7i(c(@+vKx;nvW)y zkPb&k`PxnMp;@%dJReRiH+BO-C8+dj_2se|HXFKm6s{V2`QbQh=#%FA)v6L4zIpfY zQ}28BBR98p_N4H=T6^Vj4R;8(>TwfK^33E{7+-VO96?b)6c7cTngV_w3#w0T;xb=R zKot1v3h@4*;f#^T!lB(d(AW|HSVp%s#QeL+9PKgkSUAK8OgSphQI#(-l%u0x`@G0w z;n2}Z`Qk(QCo5l}DEoBWU)yw2kwa-k0a4&j1-SNu)%g5B+g<ii diff --git a/Java/Leccion02/CicloWhile/build.xml b/Java/Leccion02/CicloWhile/build.xml deleted file mode 100644 index ce2c321f..00000000 --- a/Java/Leccion02/CicloWhile/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project CicloWhile. - - - diff --git a/Java/Leccion02/CicloWhile/build/classes/.netbeans_automatic_build b/Java/Leccion02/CicloWhile/build/classes/.netbeans_automatic_build deleted file mode 100644 index e69de29b..00000000 diff --git a/Java/Leccion02/CicloWhile/build/classes/.netbeans_update_resources b/Java/Leccion02/CicloWhile/build/classes/.netbeans_update_resources deleted file mode 100644 index e69de29b..00000000 diff --git a/Java/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class b/Java/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class deleted file mode 100644 index 22748277a6e22414160909d211286f280b9773f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1146 zcmaJsrJbI#1S-=Dt%n82k78j%X)1bS8U zMW7%R!bv%wl0&~71|mpfFodBHhE<$aF(MG0vTVzp5m3^D3j+RGCvOTgXD!>Dua*|g z%3Xc2$V^MtG4$esUa@4no%Fj))`~zfJ8Kz5=iZW4G&9$h&5B_emKTnVPqJxAw`_s- z^uz43{zT6db-R$sxfRPUOv*z;hGVQVeZ&Im+zkG-|HY#Q#qRPO1DYnFI3PL&%m&pXS> z+@^6Z?KAZf%?;}1vT5f9M$$*PdnmOnjD?Bx+~9w+JUv5>U&M zUXk}5JBrW(U#P~XDnB2DyatX@Mj6h6b6{u#;$waL7{_2esi1{x%>$qnZH&T*p`95P zivpjwpScgpR6Mwf-cRs-f%0Gj{+2)u!FUa74WSysuY_3N`k_qk0YnH$>;ilu5mnc= zekwD`sJe>bWT5;OJ$vvC#3y&~>+Gqp=l6a1;5rijEb;JCq5>&#o`R%MA5{J!q$sVQ zV$*czGX1$qi8pA#9pdg&`eO=r89zfOUf?)hqYH14z#8NC=&oBefdH}?MF(>Vp6{$^ w5i7cQo)7O3=dR#6FInBmOp^HoBAf7uzD)?Ri9Rv#3jw)q>g0mx?s{#{AG3u6djJ3c diff --git a/Java/Leccion02/CicloWhile/manifest.mf b/Java/Leccion02/CicloWhile/manifest.mf deleted file mode 100644 index 328e8e5b..00000000 --- a/Java/Leccion02/CicloWhile/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/Java/Leccion02/CicloWhile/nbproject/build-impl.xml b/Java/Leccion02/CicloWhile/nbproject/build-impl.xml deleted file mode 100644 index a34258b3..00000000 --- a/Java/Leccion02/CicloWhile/nbproject/build-impl.xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Java/Leccion02/CicloWhile/nbproject/genfiles.properties b/Java/Leccion02/CicloWhile/nbproject/genfiles.properties deleted file mode 100644 index c15a4a1f..00000000 --- a/Java/Leccion02/CicloWhile/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -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/Java/Leccion02/CicloWhile/nbproject/private/private.properties b/Java/Leccion02/CicloWhile/nbproject/private/private.properties deleted file mode 100644 index ef1af85a..00000000 --- a/Java/Leccion02/CicloWhile/nbproject/private/private.properties +++ /dev/null @@ -1,2 +0,0 @@ -compile.on.save=true -user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Java/Leccion02/CicloWhile/nbproject/private/private.xml b/Java/Leccion02/CicloWhile/nbproject/private/private.xml deleted file mode 100644 index 6807a2ba..00000000 --- a/Java/Leccion02/CicloWhile/nbproject/private/private.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/Java/Leccion02/CicloWhile/nbproject/project.properties b/Java/Leccion02/CicloWhile/nbproject/project.properties deleted file mode 100644 index 08e7fd59..00000000 --- a/Java/Leccion02/CicloWhile/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -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/Java/Leccion02/CicloWhile/nbproject/project.xml b/Java/Leccion02/CicloWhile/nbproject/project.xml deleted file mode 100644 index 4254fd21..00000000 --- a/Java/Leccion02/CicloWhile/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - CicloWhile - - - - - - - - - diff --git a/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java b/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java deleted file mode 100644 index 6098f854..00000000 --- a/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java +++ /dev/null @@ -1,31 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos01/build.xml b/Java/Leccion02/EjercicioCiclos01/build.xml deleted file mode 100644 index 871e3f2a..00000000 --- a/Java/Leccion02/EjercicioCiclos01/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project EjercicioCiclos01. - - - diff --git a/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class b/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class deleted file mode 100644 index e792fa39e40672c6a93e8a8b30867749d2007ffb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1344 zcmZ`(*-{fh6g?dvGmI0KuuIf&Pe2GNt_Ui`B^unKD5YgplQf}qGBY)q!Q}^h^9TF@ zpYKJ;7{+y+Rr8D*&gqy{^PG z1rr%uQVy3*T)|a_o{TKXKv^g;I;x6u~fz%kbge}%d4U5}WLm5j{$mu>7N&k8QZs5E1c!mk$@_e`C^D?*A zxV0)BZp)X7#dG~e8b_3PAlFHq-i83b`$Q*eR(f;gi6{hrLHQSzK$ICGs+9v<+DkW` zb-Xa3UJ70&^@o$&8dQ_p+>i*Hfw!pr&A`4|ZsPj`re=G}$yN#L#4T6H5zhm4MH%{& zsn+Y&=xQx4>ja{tl-E7(R|IYULrj;jt0~4J57wxD&wa+wk<4UL8MfNufkC+gfJRtOxGahk?Bqq)%Qw5sZee(lj%gJH|G^-qp;bG)8M+Cla(a zw;ZqwyJ^>nJ+KH-!C%o%FHri3$ntx%ZJ<5(9v$&$720?e`X)MO6K^n|c-0SM6XxqV zvVKHtc>`VX?kai`RrJQ=wAe+9D*7l+#rOXa|Mur+1q~3S%4>rvZ;XCNzz%w2=tCD_ z-BeZ&Qs~8X#E~cTF$S*Z`(fb diff --git a/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class b/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class deleted file mode 100644 index d8b5c67296eb9a5aa1f7406c6e25fd856e9c92c9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1261 zcmZux+foxj5IqwDyIGe@0s;!kdJm`syeoLY1T~rnRVY=KPeU>$gPWbL%?8vT@Xa6a z1ANv8q_j%k{Ut56Cs`^{vRgGh({twZ>F(M6@%zg+0GF_8VFag5oUxF`w1pX*?Yl!e z`mt~h=M$Jk#=x9~gvQNldqEEuOjrKZSYYT|l%5Q4G4!OT*BRnj zRTd0`1?h>$joO9?p70HqJgI^zad({uQm-RtJgmw(!)PHZORlQV&1aT3MNpC@spjU1 zJYM6{qy6;r!Y1G18JByN%vu;oud<+{nWY9V2fVBpSf1cKs1V(77c>d=8Z{9RvVSe) zrI$tSM)d))Bp42jjIt0w>m^Kb#l>9kak)d!Jp3~wnuxR5ZZW*|3;|`V#+_jNK z&cL#bd$`Xq_P^x24e6Fez+f%A5sPEv0rGly$T02*S8P!>4tJfs%p6fC&?6KK6m2}l z3Y9X_qQXE$JPhZF(+^Z7;5F`4x${DL+?8)Mo3DbsaGt2}P;OBbM!J=p@@$J<+1M1N zFv{aqroK&8&pcf5L#ez~?&&Vqt7<#%`He6qxvMG+r_&vcY7s0EL8Kzdx_`wi&9HYASSkKadE9o04O9)=vxs!YGYnw91fWWP4{mgMDmnkJH%KboSv8&FvNdhcQ8`1SWBWJo@l= z#L+``Jr&zU&o1JN6Yr6ocsqjLT^R3feuDWGiD#c-r4H=Cp4dTuYJet_G}*!64u%Mk zN|H?_BZ3cqzH48Kd|FKpw3_2EX-v>-p&th*wvFpFTfzW}7{XH|n@SzRkI}E@D5fY) g(glYS*C&g_F-59RG*_`-NU)#u)iInTM+~R_0#~Xq4*&oF diff --git a/Java/Leccion02/EjercicioCiclos01/manifest.mf b/Java/Leccion02/EjercicioCiclos01/manifest.mf deleted file mode 100644 index 328e8e5b..00000000 --- a/Java/Leccion02/EjercicioCiclos01/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml deleted file mode 100644 index 7e886ee7..00000000 --- a/Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties deleted file mode 100644 index e0ff5fb2..00000000 --- a/Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties deleted file mode 100644 index ef1af85a..00000000 --- a/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties +++ /dev/null @@ -1,2 +0,0 @@ -compile.on.save=true -user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml b/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml deleted file mode 100644 index 0c048fdd..00000000 --- a/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 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/Java/Leccion02/EjercicioCiclos01/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos01/nbproject/project.properties deleted file mode 100644 index c11aafb5..00000000 --- a/Java/Leccion02/EjercicioCiclos01/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml deleted file mode 100644 index f32955f2..00000000 --- a/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - EjercicioCiclos01 - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java b/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java deleted file mode 100644 index 338a14df..00000000 --- a/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java +++ /dev/null @@ -1,23 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java b/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java deleted file mode 100644 index f19f1471..00000000 --- a/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java +++ /dev/null @@ -1,18 +0,0 @@ - -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/Java/Leccion02/EjercicioCiclos02/pom.xml b/Java/Leccion02/EjercicioCiclos02/pom.xml deleted file mode 100644 index fa31b74f..00000000 --- a/Java/Leccion02/EjercicioCiclos02/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - 4.0.0 - com.bruno - EjercicioCiclos02 - 1 - jar - - UTF-8 - 1.8 - 1.8 - - \ No newline at end of file diff --git a/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java b/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java deleted file mode 100644 index aec9622c..00000000 --- a/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java +++ /dev/null @@ -1,27 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java b/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java deleted file mode 100644 index 1d918ef9..00000000 --- a/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java +++ /dev/null @@ -1,26 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos03/build.xml b/Java/Leccion02/EjercicioCiclos03/build.xml deleted file mode 100644 index f26938dc..00000000 --- a/Java/Leccion02/EjercicioCiclos03/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project EjercicioCiclos03. - - - diff --git a/Java/Leccion02/EjercicioCiclos03/manifest.mf b/Java/Leccion02/EjercicioCiclos03/manifest.mf deleted file mode 100644 index 328e8e5b..00000000 --- a/Java/Leccion02/EjercicioCiclos03/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml deleted file mode 100644 index 8f9f9c85..00000000 --- a/Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties deleted file mode 100644 index 27d6b49c..00000000 --- a/Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties deleted file mode 100644 index ef1af85a..00000000 --- a/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties +++ /dev/null @@ -1,2 +0,0 @@ -compile.on.save=true -user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml b/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml deleted file mode 100644 index a3d2d192..00000000 --- a/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 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/Java/Leccion02/EjercicioCiclos03/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos03/nbproject/project.properties deleted file mode 100644 index 5119f914..00000000 --- a/Java/Leccion02/EjercicioCiclos03/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml deleted file mode 100644 index cd374fbd..00000000 --- a/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - EjercicioCiclos03 - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java b/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java deleted file mode 100644 index a98f76fe..00000000 --- a/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java +++ /dev/null @@ -1,28 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java b/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java deleted file mode 100644 index 1b963f9c..00000000 --- a/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java +++ /dev/null @@ -1,27 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos04/build.xml b/Java/Leccion02/EjercicioCiclos04/build.xml deleted file mode 100644 index b28431cb..00000000 --- a/Java/Leccion02/EjercicioCiclos04/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project EjercicioCiclos04. - - - diff --git a/Java/Leccion02/EjercicioCiclos04/manifest.mf b/Java/Leccion02/EjercicioCiclos04/manifest.mf deleted file mode 100644 index 328e8e5b..00000000 --- a/Java/Leccion02/EjercicioCiclos04/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml deleted file mode 100644 index 69019ec7..00000000 --- a/Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties deleted file mode 100644 index af51c274..00000000 --- a/Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties deleted file mode 100644 index ef1af85a..00000000 --- a/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties +++ /dev/null @@ -1,2 +0,0 @@ -compile.on.save=true -user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml b/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml deleted file mode 100644 index 015e481f..00000000 --- a/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 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/Java/Leccion02/EjercicioCiclos04/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos04/nbproject/project.properties deleted file mode 100644 index 4f766bef..00000000 --- a/Java/Leccion02/EjercicioCiclos04/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml deleted file mode 100644 index 32f110f4..00000000 --- a/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - EjercicioCiclos04 - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java b/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java deleted file mode 100644 index d0b7925f..00000000 --- a/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java +++ /dev/null @@ -1,25 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java b/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java deleted file mode 100644 index 71782c55..00000000 --- a/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java +++ /dev/null @@ -1,24 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos05/build.xml b/Java/Leccion02/EjercicioCiclos05/build.xml deleted file mode 100644 index b97d6f8e..00000000 --- a/Java/Leccion02/EjercicioCiclos05/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project EjercicioCiclos05. - - - diff --git a/Java/Leccion02/EjercicioCiclos05/manifest.mf b/Java/Leccion02/EjercicioCiclos05/manifest.mf deleted file mode 100644 index 328e8e5b..00000000 --- a/Java/Leccion02/EjercicioCiclos05/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml deleted file mode 100644 index d7bfa5a1..00000000 --- a/Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties deleted file mode 100644 index 01484c5b..00000000 --- a/Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties deleted file mode 100644 index ef1af85a..00000000 --- a/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties +++ /dev/null @@ -1,2 +0,0 @@ -compile.on.save=true -user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml b/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml deleted file mode 100644 index e82a46d7..00000000 --- a/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 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/Java/Leccion02/EjercicioCiclos05/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos05/nbproject/project.properties deleted file mode 100644 index dfac2fb4..00000000 --- a/Java/Leccion02/EjercicioCiclos05/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml deleted file mode 100644 index 50b67949..00000000 --- a/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - EjercicioCiclos05 - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java b/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java deleted file mode 100644 index 4d6aeb6d..00000000 --- a/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java +++ /dev/null @@ -1,32 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java b/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java deleted file mode 100644 index 80f51e20..00000000 --- a/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java +++ /dev/null @@ -1,32 +0,0 @@ -/* -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/Java/Leccion03/leccionClasesObjetos/build.xml b/Java/Leccion03/leccionClasesObjetos/build.xml deleted file mode 100644 index 560a5e4e..00000000 --- a/Java/Leccion03/leccionClasesObjetos/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project leccionClasesObjetos. - - - diff --git a/Java/Leccion03/leccionClasesObjetos/manifest.mf b/Java/Leccion03/leccionClasesObjetos/manifest.mf deleted file mode 100644 index 328e8e5b..00000000 --- a/Java/Leccion03/leccionClasesObjetos/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml b/Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml deleted file mode 100644 index fdb0e2d0..00000000 --- a/Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties b/Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties deleted file mode 100644 index b15bf907..00000000 --- a/Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -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/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties b/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties deleted file mode 100644 index ef1af85a..00000000 --- a/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties +++ /dev/null @@ -1,2 +0,0 @@ -compile.on.save=true -user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml b/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml deleted file mode 100644 index 48f03506..00000000 --- a/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - file:/Users/brunitox/STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java - - - diff --git a/Java/Leccion03/leccionClasesObjetos/nbproject/project.properties b/Java/Leccion03/leccionClasesObjetos/nbproject/project.properties deleted file mode 100644 index bf63382b..00000000 --- a/Java/Leccion03/leccionClasesObjetos/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -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/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml b/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml deleted file mode 100644 index d3a08d14..00000000 --- a/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - leccionClasesObjetos - - - - - - - - - diff --git a/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java b/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java deleted file mode 100644 index 14179106..00000000 --- a/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java +++ /dev/null @@ -1,8 +0,0 @@ - -package Clases; - -public class Persona { - //Atributos de la clase (caracteristicas) - String nombre; - String apellido; -} From e591bde94115cf810cf37bdfed9924eec49d2060 Mon Sep 17 00:00:00 2001 From: BrunoOlivera99 Date: Thu, 2 Nov 2023 11:10:44 -0300 Subject: [PATCH 07/11] creacion de carpetas --- .DS_Store | Bin 6148 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/.DS_Store b/.DS_Store index 1e73deec64297804733e6d9ca49e984321ff3ab8..cbf4a029c96d4c93385b5bf12220cac0761be1f1 100644 GIT binary patch delta 96 zcmZoMXfc=|#>CJ*u~2NHo}wT#0|Nsi1A_oVN^x>dQht8U#6oRRkRS_#7egXL8ABpW rV)Fqech=1Y%nD4K**W+*fJSUqWd6=PnP0?^kzuk8kM!mkkrm7UY?v3! delta 258 zcmZoMXfc=|#>B)qF;Q%yo}wrR0|Nsi1A_pAXHI@{QcivnkT0;Ak#RYrCP<2f!HXf0 zp^PCBSsExl6^Kp#g8>7>#2$%yxWb%t!{Frn+ybBi7=X*==DWB+?ck_iE}%Xq3T Gg&6?2MmLE7 From 18b28e6fa73c9029d0c52becd9ce0e06da56a08b Mon Sep 17 00:00:00 2001 From: BrunoOlivera99 Date: Thu, 2 Nov 2023 11:28:08 -0300 Subject: [PATCH 08/11] a --- .DS_Store | Bin 6148 -> 6148 bytes Java/Leccion02/EjercicioCiclos06/build.xml | 73 - Java/Leccion02/EjercicioCiclos06/manifest.mf | 3 - .../nbproject/build-impl.xml | 1420 ----------------- .../nbproject/genfiles.properties | 8 - .../nbproject/private/private.properties | 2 - .../nbproject/project.properties | 74 - .../EjercicioCiclos06/nbproject/project.xml | 15 - .../src/Ciclos06/Ciclos06.java | 20 - .../src/Ciclos06/Ejercicio06.java | 18 - Java/Leccion02/EjercicioCiclos07/build.xml | 73 - Java/Leccion02/EjercicioCiclos07/manifest.mf | 3 - .../nbproject/build-impl.xml | 1420 ----------------- .../nbproject/genfiles.properties | 8 - .../nbproject/private/private.properties | 2 - .../nbproject/project.properties | 74 - .../EjercicioCiclos07/nbproject/project.xml | 15 - .../src/Ciclos07/Ciclos07.java | 26 - .../src/Ciclos07/Ejercicio07.java | 24 - Java/Leccion04/Aritmetica/build.xml | 73 - .../classes/Operaciones/Aritmetica.class | Bin 1046 -> 0 bytes .../Operaciones/PruebaAritmetica.class | Bin 1104 -> 0 bytes Java/Leccion04/Aritmetica/manifest.mf | 3 - .../Aritmetica/nbproject/build-impl.xml | 1420 ----------------- .../Aritmetica/nbproject/genfiles.properties | 8 - .../nbproject/private/private.properties | 2 - .../Aritmetica/nbproject/project.properties | 74 - .../Aritmetica/nbproject/project.xml | 15 - .../src/Operaciones/Aritmetica.java | 25 - .../src/Operaciones/PruebaAritmetica.java | 19 - 30 files changed, 4917 deletions(-) delete mode 100644 Java/Leccion02/EjercicioCiclos06/build.xml delete mode 100644 Java/Leccion02/EjercicioCiclos06/manifest.mf delete mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml delete mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties delete mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties delete mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/project.properties delete mode 100644 Java/Leccion02/EjercicioCiclos06/nbproject/project.xml delete mode 100644 Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java delete mode 100644 Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java delete mode 100644 Java/Leccion02/EjercicioCiclos07/build.xml delete mode 100644 Java/Leccion02/EjercicioCiclos07/manifest.mf delete mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml delete mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties delete mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties delete mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/project.properties delete mode 100644 Java/Leccion02/EjercicioCiclos07/nbproject/project.xml delete mode 100644 Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java delete mode 100644 Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java delete mode 100644 Java/Leccion04/Aritmetica/build.xml delete mode 100644 Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class delete mode 100644 Java/Leccion04/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class delete mode 100644 Java/Leccion04/Aritmetica/manifest.mf delete mode 100644 Java/Leccion04/Aritmetica/nbproject/build-impl.xml delete mode 100644 Java/Leccion04/Aritmetica/nbproject/genfiles.properties delete mode 100644 Java/Leccion04/Aritmetica/nbproject/private/private.properties delete mode 100644 Java/Leccion04/Aritmetica/nbproject/project.properties delete mode 100644 Java/Leccion04/Aritmetica/nbproject/project.xml delete mode 100644 Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java delete mode 100644 Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java diff --git a/.DS_Store b/.DS_Store index cbf4a029c96d4c93385b5bf12220cac0761be1f1..71094cbd35d090d6bac6d0d7d70d1197d45bb2a2 100644 GIT binary patch delta 308 zcmZoMXfc=|#>B)qF;Q%yo}wrV0|Nsi1A_nqgD-V&;mF-9>$jK}&F)+Bs$i&RT%Er#Y&cV$Q8=R3}9$b=GQd;bkSQHK7h2-bw zB*EB;Nnx3(Z+`RlQpyPmm5$F#v;DypK zs(a#PgNfG^dCG!|@^bR?(t+ZPKrgniY-Z=+=KzKUkn^2+GQWtS0LX|2kUSVMFl-JG H*}@C}M?XyP delta 105 zcmZoMXfc=|#>CJ*u~2NHo}wT#0|Nsi1A_oVN^x>dQht8U#6oQ`kRS_#7egXL8ABpW zf?+ZbQ`lrLW}eMcn2T99FJPX?w3(fQp95&t=84STnJ4p$7&0 - - - - - - - - - - Builds, tests, and runs the project EjercicioCiclos06. - - - diff --git a/Java/Leccion02/EjercicioCiclos06/manifest.mf b/Java/Leccion02/EjercicioCiclos06/manifest.mf deleted file mode 100644 index 328e8e5b..00000000 --- a/Java/Leccion02/EjercicioCiclos06/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml deleted file mode 100644 index 5fe466be..00000000 --- a/Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties deleted file mode 100644 index 498750d1..00000000 --- a/Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties deleted file mode 100644 index ef1af85a..00000000 --- a/Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties +++ /dev/null @@ -1,2 +0,0 @@ -compile.on.save=true -user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Java/Leccion02/EjercicioCiclos06/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos06/nbproject/project.properties deleted file mode 100644 index be3336b7..00000000 --- a/Java/Leccion02/EjercicioCiclos06/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml deleted file mode 100644 index 139daade..00000000 --- a/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - EjercicioCiclos06 - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java b/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java deleted file mode 100644 index 39f22bcb..00000000 --- a/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java +++ /dev/null @@ -1,20 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java b/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java deleted file mode 100644 index 2a87b74d..00000000 --- a/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java +++ /dev/null @@ -1,18 +0,0 @@ -/* -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/Java/Leccion02/EjercicioCiclos07/build.xml b/Java/Leccion02/EjercicioCiclos07/build.xml deleted file mode 100644 index 33e8cc5f..00000000 --- a/Java/Leccion02/EjercicioCiclos07/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project EjercicioCiclos07. - - - diff --git a/Java/Leccion02/EjercicioCiclos07/manifest.mf b/Java/Leccion02/EjercicioCiclos07/manifest.mf deleted file mode 100644 index 328e8e5b..00000000 --- a/Java/Leccion02/EjercicioCiclos07/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml b/Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml deleted file mode 100644 index c1b3c544..00000000 --- a/Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties b/Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties deleted file mode 100644 index e891af9e..00000000 --- a/Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties b/Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties deleted file mode 100644 index ef1af85a..00000000 --- a/Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties +++ /dev/null @@ -1,2 +0,0 @@ -compile.on.save=true -user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Java/Leccion02/EjercicioCiclos07/nbproject/project.properties b/Java/Leccion02/EjercicioCiclos07/nbproject/project.properties deleted file mode 100644 index 5416e496..00000000 --- a/Java/Leccion02/EjercicioCiclos07/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -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/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml b/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml deleted file mode 100644 index c2cff8cc..00000000 --- a/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - EjercicioCiclos07 - - - - - - - - - diff --git a/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java b/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java deleted file mode 100644 index 65ad2b60..00000000 --- a/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java +++ /dev/null @@ -1,26 +0,0 @@ - -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/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java b/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java deleted file mode 100644 index e9ec395a..00000000 --- a/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java +++ /dev/null @@ -1,24 +0,0 @@ - -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/Java/Leccion04/Aritmetica/build.xml b/Java/Leccion04/Aritmetica/build.xml deleted file mode 100644 index a71512ac..00000000 --- a/Java/Leccion04/Aritmetica/build.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - Builds, tests, and runs the project Aritmetica. - - - diff --git a/Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class b/Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class deleted file mode 100644 index f0d6375bb13a87d5f6c1d8ba2bf1f054150b46cf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1046 zcmaKqYi|-k6o%j7wy<3((yO*=YpYVUMQgo6P1+_VB*YpqB*rftV1nDgE*TaR|C3)d zmL{6`1N>3OcK`uXVm5PT=3L(M%*_7!{rx9^J?z^^Vk3b|*fi!=0=IF;LdHfE8*yxz zIcv;aWA545#*WRzoQ3-q9ta4@QRJu!#0swG1}_A{nXQUIf{cz8?;p5)?{A5>2zCCQ%Px`nF*~r z-DV)`K6~^-N51z)1-|y^Ap)t=fBgr#!8$K6h0#p0Xo3-`8$5xTb_MLR-_z1?Hvz30Q4|*Yrp{4XA>3 z{#{A_n;{O~H!aMS(?-At#T@NCcR9|2b2NJn@r8>J7HDIAX9SB}JA(u)VVOIDE2H8Q zg!>IPv)>Tn2%i+bBJu;#cjt(utsdelJtTUtdzcw(Cs_s9{ARF0b<<;Upfl`Y<0`)t zdkOQlv<7vLIR@1pb^FZSByVbh*B_)6;+2gwrY+pE5y5nVV8+00BRU2O3CyBs z;f{?2rsJ41>%4)Ifx9*qaL*jPZ(-5G5<_f7xyoN-7;p-E4AD)mE*X*)<;vGVt19(d zQEieYUGZw7xhJ$T^06}Ne^MQWiOP0cYEe_3D?6nf9muL!*UE26U)97id2I>hGK@GM zEBoTJC^d!KDDC=MxsBy+RG}N>Cv$nmm{!}&s)vQZRjQljAvFaBSfvL;iH&eufOGlMvh0eOdD4%ke^(y6Uw80Dc7fFNYSEJ#YDR;-8#dZb3w1p zsg84|i+QJ9_>Vd6d%cD;WS#Q|$w8)@>{&t#R@=~P((B1xM2Mbj`cLZXx%5h5QBF;FSS4iGJ-tOE=dL&RuWtKSemLW0b8dME_XhZqiVDMYfE;;Hcvsehk1 z;WI;V0Sj>&!?e%9CT<*gl9rI9SCzs$O40D0>~SL7HIm}k!33@o<2=3ANh*XXzzwoQ GaPv3mX8v#h diff --git a/Java/Leccion04/Aritmetica/manifest.mf b/Java/Leccion04/Aritmetica/manifest.mf deleted file mode 100644 index 328e8e5b..00000000 --- a/Java/Leccion04/Aritmetica/manifest.mf +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -X-COMMENT: Main-Class will be added automatically by build - diff --git a/Java/Leccion04/Aritmetica/nbproject/build-impl.xml b/Java/Leccion04/Aritmetica/nbproject/build-impl.xml deleted file mode 100644 index 9cb2c223..00000000 --- a/Java/Leccion04/Aritmetica/nbproject/build-impl.xml +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set src.dir - Must set test.src.dir - Must set build.dir - Must set dist.dir - Must set build.classes.dir - Must set dist.javadoc.dir - Must set build.test.classes.dir - Must set build.test.results.dir - Must set build.classes.excludes - Must set dist.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No tests executed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must set JVM to use for profiling in profiler.info.jvm - Must set profiler agent JVM arguments in profiler.info.jvmargs.agent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To run this application from the command line without Ant, try: - - java -jar "${dist.jar.resolved}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - Must select one file in the IDE or set run.class - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set debug.class - - - - - Must select one file in the IDE or set debug.class - - - - - Must set fix.includes - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - Must select one file in the IDE or set profile.class - This target only works when run from inside the NetBeans IDE. - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - This target only works when run from inside the NetBeans IDE. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select one file in the IDE or set run.class - - - - - - Must select some files in the IDE or set test.includes - - - - - Must select one file in the IDE or set run.class - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Must select some files in the IDE or set javac.includes - - - - - - - - - - - - - - - - - - - - Some tests failed; see details above. - - - - - - - - - Must select some files in the IDE or set test.includes - - - - Some tests failed; see details above. - - - - Must select some files in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - Some tests failed; see details above. - - - - - Must select one file in the IDE or set test.class - - - - Must select one file in the IDE or set test.class - Must select some method in the IDE or set test.method - - - - - - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - Must select one file in the IDE or set applet.url - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Java/Leccion04/Aritmetica/nbproject/genfiles.properties b/Java/Leccion04/Aritmetica/nbproject/genfiles.properties deleted file mode 100644 index e29da94c..00000000 --- a/Java/Leccion04/Aritmetica/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -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/Java/Leccion04/Aritmetica/nbproject/private/private.properties b/Java/Leccion04/Aritmetica/nbproject/private/private.properties deleted file mode 100644 index ef1af85a..00000000 --- a/Java/Leccion04/Aritmetica/nbproject/private/private.properties +++ /dev/null @@ -1,2 +0,0 @@ -compile.on.save=true -user.properties.file=/Users/brunitox/Library/Application Support/NetBeans/8.2/build.properties diff --git a/Java/Leccion04/Aritmetica/nbproject/project.properties b/Java/Leccion04/Aritmetica/nbproject/project.properties deleted file mode 100644 index 60c2dee0..00000000 --- a/Java/Leccion04/Aritmetica/nbproject/project.properties +++ /dev/null @@ -1,74 +0,0 @@ -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/Java/Leccion04/Aritmetica/nbproject/project.xml b/Java/Leccion04/Aritmetica/nbproject/project.xml deleted file mode 100644 index 82ddac8e..00000000 --- a/Java/Leccion04/Aritmetica/nbproject/project.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - org.netbeans.modules.java.j2seproject - - - Aritmetica - - - - - - - - - diff --git a/Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java b/Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java deleted file mode 100644 index ec02f127..00000000 --- a/Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java +++ /dev/null @@ -1,25 +0,0 @@ - -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/Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java b/Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java deleted file mode 100644 index b5ab0348..00000000 --- a/Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java +++ /dev/null @@ -1,19 +0,0 @@ - -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); - } - -} From bddd471b43eadb6defe2bd9c126b2a4003c9be06 Mon Sep 17 00:00:00 2001 From: BrunoOlivera8 <83358445+BrunoOlivera8@users.noreply.github.com> Date: Thu, 2 Nov 2023 11:41:31 -0300 Subject: [PATCH 09/11] Add files via upload --- .../Java/Leccion02/CicloWhile/build.xml | 73 + .../classes/CicloWhile/EjercicioWhile01.class | Bin 0 -> 1146 bytes .../Java/Leccion02/CicloWhile/manifest.mf | 3 + .../CicloWhile/nbproject/build-impl.xml | 1420 +++++++++++++++++ .../CicloWhile/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../CicloWhile/nbproject/private/private.xml | 7 + .../CicloWhile/nbproject/project.properties | 74 + .../CicloWhile/nbproject/project.xml | 15 + .../src/CicloWhile/EjercicioWhile01.java | 31 + .../Leccion02/EjercicioCiclos01/build.xml | 73 + .../build/classes/Ciclos01/Ciclos01.class | Bin 0 -> 1344 bytes .../build/classes/Ciclos01/Ejercicio01.class | Bin 0 -> 1261 bytes .../Leccion02/EjercicioCiclos01/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 74 + .../EjercicioCiclos01/nbproject/project.xml | 15 + .../src/Ciclos01/Ciclos01.java | 23 + .../src/Ciclos01/Ejercicio01.java | 18 + .../Java/Leccion02/EjercicioCiclos02/pom.xml | 13 + .../src/main/java/Ciclos02/Ciclos02.java | 27 + .../src/main/java/Ciclos02/Ejercicio02.java | 26 + .../Leccion02/EjercicioCiclos03/build.xml | 73 + .../Leccion02/EjercicioCiclos03/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 74 + .../EjercicioCiclos03/nbproject/project.xml | 15 + .../src/Ciclos03/Ciclos03.java | 28 + .../src/Ciclos03/Ejercicios03.java | 27 + .../Leccion02/EjercicioCiclos04/build.xml | 73 + .../Leccion02/EjercicioCiclos04/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 74 + .../EjercicioCiclos04/nbproject/project.xml | 15 + .../src/Ciclos04/Ciclos04.java | 25 + .../src/Ciclos04/Ejercicio04.java | 24 + .../Leccion02/EjercicioCiclos05/build.xml | 73 + .../Leccion02/EjercicioCiclos05/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 10 + .../nbproject/project.properties | 74 + .../EjercicioCiclos05/nbproject/project.xml | 15 + .../src/Ciclos05/Ciclos05.java | 32 + .../src/Ciclos05/Ejercicio05.java | 32 + .../Leccion02/EjercicioCiclos06/build.xml | 73 + .../Leccion02/EjercicioCiclos06/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../EjercicioCiclos06/nbproject/project.xml | 15 + .../src/Ciclos06/Ciclos06.java | 20 + .../src/Ciclos06/Ejercicio06.java | 18 + .../Leccion02/EjercicioCiclos07/build.xml | 73 + .../Leccion02/EjercicioCiclos07/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../EjercicioCiclos07/nbproject/project.xml | 15 + .../src/Ciclos07/Ciclos07.java | 26 + .../src/Ciclos07/Ejercicio07.java | 24 + .../Leccion03/leccionClasesObjetos/build.xml | 73 + .../leccionClasesObjetos/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../src/Clases/Persona.java | 14 + .../src/Clases/PruebaPersona.java | 19 + .../Java/Leccion04/Aritmetica/build.xml | 73 + .../classes/Operaciones/Aritmetica.class | Bin 0 -> 1046 bytes .../Operaciones/PruebaAritmetica.class | Bin 0 -> 1104 bytes .../Java/Leccion04/Aritmetica/manifest.mf | 3 + .../Aritmetica/nbproject/build-impl.xml | 1420 +++++++++++++++++ .../Aritmetica/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Aritmetica/nbproject/project.properties | 74 + .../Aritmetica/nbproject/project.xml | 15 + .../src/Operaciones/Aritmetica.java | 25 + .../src/Operaciones/PruebaAritmetica.java | 19 + 94 files changed, 14882 insertions(+) create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/build.xml create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/build/classes/CicloWhile/EjercicioWhile01.class create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/manifest.mf create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/build-impl.xml create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/genfiles.properties create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/private/private.properties create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/private/private.xml create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/project.properties create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/nbproject/project.xml create mode 100644 STecnicatura2023/Java/Leccion02/CicloWhile/src/CicloWhile/EjercicioWhile01.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ciclos01.class create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/build/classes/Ciclos01/Ejercicio01.class create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/manifest.mf create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/build-impl.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/genfiles.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/private/private.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/project.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/nbproject/project.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ciclos01.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos01/src/Ciclos01/Ejercicio01.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos02/pom.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ciclos02.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos02/src/main/java/Ciclos02/Ejercicio02.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/build.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/manifest.mf create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/build-impl.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/genfiles.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/private/private.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/project.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/nbproject/project.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ciclos03.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos03/src/Ciclos03/Ejercicios03.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/build.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/manifest.mf create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/build-impl.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/genfiles.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/private/private.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/project.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/nbproject/project.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ciclos04.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos04/src/Ciclos04/Ejercicio04.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/build.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/manifest.mf create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/build-impl.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/genfiles.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/private/private.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/project.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/nbproject/project.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ciclos05.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos05/src/Ciclos05/Ejercicio05.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos06/build.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos06/manifest.mf create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/build-impl.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/genfiles.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/private/private.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/project.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos06/nbproject/project.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ciclos06.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos06/src/Ciclos06/Ejercicio06.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos07/build.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos07/manifest.mf create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/build-impl.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/genfiles.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/private/private.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/project.properties create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos07/nbproject/project.xml create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ciclos07.java create mode 100644 STecnicatura2023/Java/Leccion02/EjercicioCiclos07/src/Ciclos07/Ejercicio07.java create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/build.xml create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/manifest.mf create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/build-impl.xml create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/genfiles.properties create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.properties create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/private/private.xml create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/project.properties create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/nbproject/project.xml create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/Persona.java create mode 100644 STecnicatura2023/Java/Leccion03/leccionClasesObjetos/src/Clases/PruebaPersona.java create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/build.xml create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/build/classes/Operaciones/Aritmetica.class create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/build/classes/Operaciones/PruebaAritmetica.class create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/manifest.mf create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/build-impl.xml create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/genfiles.properties create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/private/private.properties create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/project.properties create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/nbproject/project.xml create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/src/Operaciones/Aritmetica.java create mode 100644 STecnicatura2023/Java/Leccion04/Aritmetica/src/Operaciones/PruebaAritmetica.java 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 0000000000000000000000000000000000000000..22748277a6e22414160909d211286f280b9773f2 GIT binary patch literal 1146 zcmaJsrJbI#1S-=Dt%n82k78j%X)1bS8U zMW7%R!bv%wl0&~71|mpfFodBHhE<$aF(MG0vTVzp5m3^D3j+RGCvOTgXD!>Dua*|g z%3Xc2$V^MtG4$esUa@4no%Fj))`~zfJ8Kz5=iZW4G&9$h&5B_emKTnVPqJxAw`_s- z^uz43{zT6db-R$sxfRPUOv*z;hGVQVeZ&Im+zkG-|HY#Q#qRPO1DYnFI3PL&%m&pXS> z+@^6Z?KAZf%?;}1vT5f9M$$*PdnmOnjD?Bx+~9w+JUv5>U&M zUXk}5JBrW(U#P~XDnB2DyatX@Mj6h6b6{u#;$waL7{_2esi1{x%>$qnZH&T*p`95P zivpjwpScgpR6Mwf-cRs-f%0Gj{+2)u!FUa74WSysuY_3N`k_qk0YnH$>;ilu5mnc= zekwD`sJe>bWT5;OJ$vvC#3y&~>+Gqp=l6a1;5rijEb;JCq5>&#o`R%MA5{J!q$sVQ zV$*czGX1$qi8pA#9pdg&`eO=r89zfOUf?)hqYH14z#8NC=&oBefdH}?MF(>Vp6{$^ w5i7cQo)7O3=dR#6FInBmOp^HoBAf7uzD)?Ri9Rv#3jw)q>g0mx?s{#{AG3u6djJ3c literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..e792fa39e40672c6a93e8a8b30867749d2007ffb GIT binary patch literal 1344 zcmZ`(*-{fh6g?dvGmI0KuuIf&Pe2GNt_Ui`B^unKD5YgplQf}qGBY)q!Q}^h^9TF@ zpYKJ;7{+y+Rr8D*&gqy{^PG z1rr%uQVy3*T)|a_o{TKXKv^g;I;x6u~fz%kbge}%d4U5}WLm5j{$mu>7N&k8QZs5E1c!mk$@_e`C^D?*A zxV0)BZp)X7#dG~e8b_3PAlFHq-i83b`$Q*eR(f;gi6{hrLHQSzK$ICGs+9v<+DkW` zb-Xa3UJ70&^@o$&8dQ_p+>i*Hfw!pr&A`4|ZsPj`re=G}$yN#L#4T6H5zhm4MH%{& zsn+Y&=xQx4>ja{tl-E7(R|IYULrj;jt0~4J57wxD&wa+wk<4UL8MfNufkC+gfJRtOxGahk?Bqq)%Qw5sZee(lj%gJH|G^-qp;bG)8M+Cla(a zw;ZqwyJ^>nJ+KH-!C%o%FHri3$ntx%ZJ<5(9v$&$720?e`X)MO6K^n|c-0SM6XxqV zvVKHtc>`VX?kai`RrJQ=wAe+9D*7l+#rOXa|Mur+1q~3S%4>rvZ;XCNzz%w2=tCD_ z-BeZ&Qs~8X#E~cTF$S*Z`(fb literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..d8b5c67296eb9a5aa1f7406c6e25fd856e9c92c9 GIT binary patch literal 1261 zcmZux+foxj5IqwDyIGe@0s;!kdJm`syeoLY1T~rnRVY=KPeU>$gPWbL%?8vT@Xa6a z1ANv8q_j%k{Ut56Cs`^{vRgGh({twZ>F(M6@%zg+0GF_8VFag5oUxF`w1pX*?Yl!e z`mt~h=M$Jk#=x9~gvQNldqEEuOjrKZSYYT|l%5Q4G4!OT*BRnj zRTd0`1?h>$joO9?p70HqJgI^zad({uQm-RtJgmw(!)PHZORlQV&1aT3MNpC@spjU1 zJYM6{qy6;r!Y1G18JByN%vu;oud<+{nWY9V2fVBpSf1cKs1V(77c>d=8Z{9RvVSe) zrI$tSM)d))Bp42jjIt0w>m^Kb#l>9kak)d!Jp3~wnuxR5ZZW*|3;|`V#+_jNK z&cL#bd$`Xq_P^x24e6Fez+f%A5sPEv0rGly$T02*S8P!>4tJfs%p6fC&?6KK6m2}l z3Y9X_qQXE$JPhZF(+^Z7;5F`4x${DL+?8)Mo3DbsaGt2}P;OBbM!J=p@@$J<+1M1N zFv{aqroK&8&pcf5L#ez~?&&Vqt7<#%`He6qxvMG+r_&vcY7s0EL8Kzdx_`wi&9HYASSkKadE9o04O9)=vxs!YGYnw91fWWP4{mgMDmnkJH%KboSv8&FvNdhcQ8`1SWBWJo@l= z#L+``Jr&zU&o1JN6Yr6ocsqjLT^R3feuDWGiD#c-r4H=Cp4dTuYJet_G}*!64u%Mk zN|H?_BZ3cqzH48Kd|FKpw3_2EX-v>-p&th*wvFpFTfzW}7{XH|n@SzRkI}E@D5fY) g(glYS*C&g_F-59RG*_`-NU)#u)iInTM+~R_0#~Xq4*&oF literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..f0d6375bb13a87d5f6c1d8ba2bf1f054150b46cf GIT binary patch literal 1046 zcmaKqYi|-k6o%j7wy<3((yO*=YpYVUMQgo6P1+_VB*YpqB*rftV1nDgE*TaR|C3)d zmL{6`1N>3OcK`uXVm5PT=3L(M%*_7!{rx9^J?z^^Vk3b|*fi!=0=IF;LdHfE8*yxz zIcv;aWA545#*WRzoQ3-q9ta4@QRJu!#0swG1}_A{nXQUIf{cz8?;p5)?{A5>2zCCQ%Px`nF*~r z-DV)`K6~^-N51z)1-|y^Ap)t=fBgr#!8$K6h0#p0Xo3-`8$5xTb_MLR-_z1?Hvz30Q4|*Yrp{4XA>3 z{#{A_n;{O~H!aMS(?-At#T@NCcR9|2b2NJn@r8>J7HDIAX9SB}JA(u)VVOIDE2H8Q zg!>IPv)>Tn2%i+bBJu;#cjt(utsdelJtTUtdzcw(Cs_s9{ARF0b<<;Upfl`Y<0`)t zdkOQlv<7vLIR@1pb^FZSByVbh*B_)6;+2gwrY+pE5y5nVV8+00BRU2O3CyBs z;f{?2rsJ41>%4)Ifx9*qaL*jPZ(-5G5<_f7xyoN-7;p-E4AD)mE*X*)<;vGVt19(d zQEieYUGZw7xhJ$T^06}Ne^MQWiOP0cYEe_3D?6nf9muL!*UE26U)97id2I>hGK@GM zEBoTJC^d!KDDC=MxsBy+RG}N>Cv$nmm{!}&s)vQZRjQljAvFaBSfvL;iH&eufOGlMvh0eOdD4%ke^(y6Uw80Dc7fFNYSEJ#YDR;-8#dZb3w1p zsg84|i+QJ9_>Vd6d%cD;WS#Q|$w8)@>{&t#R@=~P((B1xM2Mbj`cLZXx%5h5QBF;FSS4iGJ-tOE=dL&RuWtKSemLW0b8dME_XhZqiVDMYfE;;Hcvsehk1 z;WI;V0Sj>&!?e%9CT<*gl9rI9SCzs$O40D0>~SL7HIm}k!33@o<2=3ANh*XXzzwoQ GaPv3mX8v#h literal 0 HcmV?d00001 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); + } + +} From 5b9f05946779139a1a88147e77064e2061582931 Mon Sep 17 00:00:00 2001 From: BrunoOlivera8 Date: Thu, 9 Nov 2023 22:15:37 -0300 Subject: [PATCH 10/11] commit commiteamos ejercicios de matrices --- .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../matriz_ejercicio_3/Matriz_Ejercicio_3.class | Bin 0 -> 1595 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_automatic_build create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_update_resources create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/matriz_ejercicio_3/Matriz_Ejercicio_3.class diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_automatic_build b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_automatic_build new file mode 100644 index 00000000..e69de29b diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_update_resources b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_update_resources new file mode 100644 index 00000000..e69de29b diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/matriz_ejercicio_3/Matriz_Ejercicio_3.class b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/matriz_ejercicio_3/Matriz_Ejercicio_3.class new file mode 100644 index 0000000000000000000000000000000000000000..f2e4d307228f9d618bdad3255da7fa300a4a27dd GIT binary patch literal 1595 zcma)5U2hvj6g{(Ed)MwdA5NSWh{2@|and%1v=m5MQ(9UuI8BL5P~}$D#94(k>$SC6 zqtX{7)CYbC5AcG7s47QlB_2S1srpih7x*QpRDm*1vC~|!{mXL2r6p5o)up>E zeMjj%qaJ+jtP4z5nlkX6o7e4z?bn^U)4G1VxDc7n_f7MJZ%W4#7%S8&4f&-ky3$)K zR+;Oq&8zaF!LQ8EVXXAm2tKk$sDNR6fiG7j{Si_paNJ_GE8#ADTJ#7kEL zS^r`|wtJ1Is;!P+w=X#AX#01!I-|O?@B&^G7!Et#iErS7g%9wd3MgCn2pJYG>c!`wv6Gy_@#M@ye$88nls)9Y> zXRk{_w%fM1DsXJCfL&LtH*?e~zpvVl})Ul&%ci*#myLRMGO zAf+ybn0GWco7InWF}!$77eD-SU*TnFzZIkQlhQ`E(MwzClYR6se@0=BZeeCaq(7cQ z`fW>7``Gglv-)iAe;}$M#-N7S;FN)V{9DK%O>Kaq8^kn*_MF@Oj1oPHm~lSN z!<1t9h7}{*O`Pf3e&4n|+_sTOOyD)uv(SiHAk7*4jVZ=zI70g@tWAs?&R literal 0 HcmV?d00001 From b78b0f9dab35a95619fcf8721ff2ad144d32494a Mon Sep 17 00:00:00 2001 From: BrunoOlivera8 Date: Thu, 9 Nov 2023 22:29:46 -0300 Subject: [PATCH 11/11] commit commiteamos ejercicio 4 y 5 de matrices en java --- .DS_Store | Bin 6148 -> 8196 bytes Bruno Olivera/.DS_Store | Bin 0 -> 6148 bytes Bruno Olivera/Java/.DS_Store | Bin 0 -> 10244 bytes .../Leccion10/Matriz_Ejercicio_3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Matriz_Ejercicio_3.class | Bin 1595 -> 0 bytes .../Leccion10/Matriz_Ejercicio_3/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../Matriz_Ejercicio_3/nbproject/project.xml | 15 + .../Matriz_Ejercicio_3.java | 12 + .../Leccion10/Matriz_Ejercicio_4/build.xml | 73 + .../Leccion10/Matriz_Ejercicio_4/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Matriz_Ejercicio_4/nbproject/project.xml | 15 + .../Matriz_Ejercicio_4.java | 34 + .../Leccion10/Matriz_Ejercicio_5/build.xml | 73 + .../Leccion10/Matriz_Ejercicio_5/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Matriz_Ejercicio_5/nbproject/project.xml | 15 + .../Matriz_Ejercicio_5.java | 73 + 32 files changed, 4912 insertions(+) create mode 100644 Bruno Olivera/.DS_Store create mode 100644 Bruno Olivera/Java/.DS_Store create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build.xml delete mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_automatic_build delete mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_update_resources delete mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/matriz_ejercicio_3/Matriz_Ejercicio_3.class create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/manifest.mf create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/build-impl.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/genfiles.properties create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/private/private.properties create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/project.properties create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/nbproject/project.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/src/matriz_ejercicio_3/Matriz_Ejercicio_3.java create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/build.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/manifest.mf create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/build-impl.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/genfiles.properties create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/private/private.properties create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/private/private.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/project.properties create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/nbproject/project.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_4/src/matriz_ejercicio_4/Matriz_Ejercicio_4.java create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/build.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/manifest.mf create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/build-impl.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/genfiles.properties create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/private/private.properties create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/private/private.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/project.properties create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/nbproject/project.xml create mode 100644 Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_5/src/matriz_ejercicio_5/Matriz_Ejercicio_5.java diff --git a/.DS_Store b/.DS_Store index 71094cbd35d090d6bac6d0d7d70d1197d45bb2a2..c6ef17122f38e443bda32ef49e2c3bb2c7d9eafe 100644 GIT binary patch literal 8196 zcmeHM%Wl&^6unLYbrjO3sEA4ku*5cnG$}0=n>0;@3PPZ!Dhoitd61eqo{&c)S`}pr zd;tG|kPs{Q0X_k~f(=VnaAxdMXPk$+sgOD&&D^m)XU?6IJJ%YAh_qa%GEX#1L^>+B zi5Qvzg+J#tP(t3F%di^oL=CD^6LoLh4vbbelmbctrGQdEDWDYi9~8hln-_h^d*6Mk zTBU$e;8ZHW^MirPZPv3r*NW7EMjQcPBe*RJ`Zxy&jN#d=XM3&{P|WF`9yAZCc}EP* zh2y!whr?z)+jFf8C(VVE<}qvD2}Kj^z!_pVX<65*Rw zlFdqZ$~V*s>h(XOphpx7BCuc6>-I=g9P>C-1Cvb*RjFdglSh_QVci_-IF**b z7TgDVRF4)D7x(wmw~|ICeULQv=QGPoNn>eo`QRX`U$}PT_C|5Xt~=}v|D})#HP=$y zvxnv_IwKZn*X9dlR&N{*A3eIx@_A1V{obX?pI2UgTN#I_923#lK8{Dbg{EUOrv@*$ z0#mex0N6ta6cG+Q;42~o5Cl}013}~4!XNO{qtOT}Dfk03Ba?)ZLHG7TIXn;cF-#$8Z4}7r=MFSyN|vk zFfF);q6hGQmiW)nL#&$7D=1#(O4D8N@5)g}JaPG%Cx_vJoRO;%XOuP&vn!N`_iJ<= zF<$9kr-)EL+YA-pl>`5{PBnOGfWJykIE?G(xXTlFAkqiuHF%z1N3%$t@Hq8*l7J_h zLMsQXW#HO~SiV!!ltRr&`1ip3)Am@rFL{4G@#H;=L!C zJUgQd&E8zIvFns_pqTNf3A^3d80;Em<5m@=fKuReDWFC2g?tWc)`qN`pS2CtXQ;gJ yaXr@x2pVx5hZVon z&dA6z`Jt%FnIo+8BFdJPvA@`PR>cn&(C3;JXcI*@=I~KjSWRC vi`h9i1et-x0f7KFkZ=WAv$60y^JIP*N02)}7J=+zV1hUVEVenGXAUy}`G6n8 diff --git a/Bruno Olivera/.DS_Store b/Bruno Olivera/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..01c08effac9d5b63bd555006385a0567284e6d0b GIT binary patch literal 6148 zcmeHK%}T>S5Z-O0O(;SSiXH=Ai}nYs#Y>F!phqKmP^pP28jRV}zZ^;-SA8Mh#MjZ8 z-AzHOCqbml!0fk~o!KzohMf#!jJxBo&RB&pW`ZIXEEv8KTt{7yg0>U^Iqq>1i@P8e z0X*Y|B>$fQJUfG(GM`PD|K%OEKe&i`X}7X|B$AOICB1C{kC9lW-_w zJ+)w3rq!)%PN$9is@-hNs`j+rY`3a*Yp*?eljmv4rB^qaZvP`GY9 zxGmiocNEe{3=jjK8Nl8Tq=NPT_~-s#I?+H35ChA}05>{b$A#Q3yOk% nnZkJpOk^nrUo6F2pi;nY;{?#rm?;Dc2>l318fYK}{*-|a4y;rp literal 0 HcmV?d00001 diff --git a/Bruno Olivera/Java/.DS_Store b/Bruno Olivera/Java/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..1cbf2a70a1afb8334b3dce5f164084de07125180 GIT binary patch literal 10244 zcmeHMJ8u&~5Z+A;IV&JpC_IW3C($6}htLVHXBQ-aXx7^O?sn(9$2YTknl)pL7q_c6VS04YEUkOHItDex~S0N-pZ#=Jsm zNdZ!T6xde)*9Q|SVnJh1p0vcOR!!|Svfn(@VJ`1MxXvcB<|*~E#HbHYfRmF5FH zTNT3h`o|UTZoSr7OD)_GLAz29YE4O~S8HJM@LoNricV2%2i2D3meqifG?Htn3*GLL z?dH>_o!d#9-MnL^&5WDf*-08_FJ8HJXYGl<6^NJe*%{YM2s^FL_uE&|Z}zm@415u6 zz$h|D)pAz+A+Xep^&1vpD(VOnDH~9iQ*X3Amx<~EJ1B-okDsQ@j-rQZh|8uN2!Satc z<1MH1raRG_nUFWT6TO)k@aCsOU&+qFN|w*1O)F+*K35ZK>^k-$awcUaYISv3D|Q>M z^ENi}vmwSVFy6#6mWLVq3^3lsGIAkC4;UX}8Tk<7D==QiFl=TGGiHjwcpuLgh?38T z9wq0yT?c~1budcc!v~A`ayB3O++i3%85<_}ISenjAVnxlfD|AFNP**` zz^r-^6Ziii!yotm|8aR;dJj^76o^oOCrafKrab+Pv9Jy9wVO~ML&bu2J%y424VqxT z+>VD6+>XDb`z%B(FkaBuQz+@sFX@14H~+x@43McEKEX%=WHHMBJ + + + + + + + + + + Builds, tests, and runs the project Matriz_Ejercicio_3. + + + diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_automatic_build b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_automatic_build deleted file mode 100644 index e69de29b..00000000 diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_update_resources b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/.netbeans_update_resources deleted file mode 100644 index e69de29b..00000000 diff --git a/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/matriz_ejercicio_3/Matriz_Ejercicio_3.class b/Bruno Olivera/Java/Leccion10/Matriz_Ejercicio_3/build/classes/matriz_ejercicio_3/Matriz_Ejercicio_3.class deleted file mode 100644 index f2e4d307228f9d618bdad3255da7fa300a4a27dd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1595 zcma)5U2hvj6g{(Ed)MwdA5NSWh{2@|and%1v=m5MQ(9UuI8BL5P~}$D#94(k>$SC6 zqtX{7)CYbC5AcG7s47QlB_2S1srpih7x*QpRDm*1vC~|!{mXL2r6p5o)up>E zeMjj%qaJ+jtP4z5nlkX6o7e4z?bn^U)4G1VxDc7n_f7MJZ%W4#7%S8&4f&-ky3$)K zR+;Oq&8zaF!LQ8EVXXAm2tKk$sDNR6fiG7j{Si_paNJ_GE8#ADTJ#7kEL zS^r`|wtJ1Is;!P+w=X#AX#01!I-|O?@B&^G7!Et#iErS7g%9wd3MgCn2pJYG>c!`wv6Gy_@#M@ye$88nls)9Y> zXRk{_w%fM1DsXJCfL&LtH*?e~zpvVl})Ul&%ci*#myLRMGO zAf+ybn0GWco7InWF}!$77eD-SU*TnFzZIkQlhQ`E(MwzClYR6se@0=BZeeCaq(7cQ z`fW>7``Gglv-)iAe;}$M#-N7S;FN)V{9DK%O>Kaq8^kn*_MF@Oj1oPHm~lSN z!<1t9h7}{*O`Pf3e&4n|+_sTOOyD)uv(SiHAk7*4jVZ=zI70g@tWAs?&R 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(""); + } +}