h?91fs!^&^Yqw_}q
literal 0
HcmV?d00001
diff --git a/src/main/java/eliasvillalva/practices/07-ManipulateFormat/build/classes/ex07_3_exercise/ShoppingCart.class b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/build/classes/ex07_3_exercise/ShoppingCart.class
new file mode 100644
index 0000000000000000000000000000000000000000..cdb4e0e0176f68dc56c1eef61d18a963373e0152
GIT binary patch
literal 1034
zcmaJ<&rcIU6#fRc-ECQ+6bb?rR}@@OCo(F!k&0&vzMP<@4nC
z1n$5!F_J_a!xl!hzN^JOEyj`&bdfeaUk<|8y(@^`e$}o@@M-#I+&uAm~ySZGY;QHlC=UJ#~Y8K_AHw$70BDX}K2vK*3QgTdPK
zL&XC{0NENt!rSK&_mqgpUZwm(Sc^QdCiMm#r$LQt95yQdblYUY6
z>Mhiy(tA63PLw!%VdUhuHlNKqHfAxW#X}qOSTM0@;}M9?zNdsL3LP&DoI~zYK~Xq<
z7?hedj~TL;k;ahvhh}T{KzQnmtMI0(M44VKtWhA-q*aEw7sRO|W(6-3?{QwKh@i+Y
z=3YSjIoHX)RG4))MlK0kDr~+ULzjC#ks5S1(4PgwU{*9dpH3lj5g@w1th;``-(Os~
ziFUer{k4D|6ls#3WaUUR(y`HFu#b&!7s+_T8Apcx?PdbH(L+`O*U(EIUHkzCWdbW*
zXjx7hb4KdB@EyOt!U9nIkdDv^)nd6EvjI+P1!9N
F`U6ZA?g#(?
literal 0
HcmV?d00001
diff --git a/src/main/java/eliasvillalva/practices/07-ManipulateFormat/manifest.mf b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/manifest.mf
new file mode 100644
index 0000000..1574df4
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/manifest.mf
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+X-COMMENT: Main-Class will be added automatically by build
+
diff --git a/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/build-impl.xml b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/build-impl.xml
new file mode 100644
index 0000000..62f2a99
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/genfiles.properties b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/genfiles.properties
new file mode 100644
index 0000000..11de48f
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=64a0022e
+build.xml.script.CRC32=f0a1776b
+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=64a0022e
+nbproject/build-impl.xml.script.CRC32=e84509a6
+nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
diff --git a/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/private/private.properties b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/private/private.properties
new file mode 100644
index 0000000..43bab30
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/private/private.properties
@@ -0,0 +1,2 @@
+compile.on.save=true
+user.properties.file=C:\\Users\\Weedman\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
diff --git a/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/private/private.xml b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/private/private.xml
new file mode 100644
index 0000000..db03bb0
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/private/private.xml
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/project.properties b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/project.properties
new file mode 100644
index 0000000..92f26c7
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/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}/07-ManipulateFormat.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/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/project.xml b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/project.xml
new file mode 100644
index 0000000..985da7a
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/nbproject/project.xml
@@ -0,0 +1,15 @@
+
+
+ org.netbeans.modules.java.j2seproject
+
+
+ 07-ManipulateFormat
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/eliasvillalva/practices/07-ManipulateFormat/src/ex07_1_exercise/ShoppingCart.java b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/src/ex07_1_exercise/ShoppingCart.java
new file mode 100644
index 0000000..65338a9
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/src/ex07_1_exercise/ShoppingCart.java
@@ -0,0 +1,17 @@
+package ex07_1_exercise;
+/**
+ *
+ * @author evillalva
+ */
+public class ShoppingCart {
+ public static void main (String[] args){
+ String custName = "Steve Smith";
+ String firstName;
+ int spaceIdx;
+ // Get the index of the space character (" ") in custName.
+ spaceIdx = custName.indexOf(" ");
+ // Use the substring method parse out the first name and print it.
+ firstName = custName.substring(0, spaceIdx);
+ System.out.println("First Name: "+firstName);
+ }
+}
diff --git a/src/main/java/eliasvillalva/practices/07-ManipulateFormat/src/ex07_2_exercise/ShoppingCart.java b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/src/ex07_2_exercise/ShoppingCart.java
new file mode 100644
index 0000000..a7e67f8
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/src/ex07_2_exercise/ShoppingCart.java
@@ -0,0 +1,24 @@
+package ex07_2_exercise;
+/**
+ *
+ * @author evillalva
+ */
+public class ShoppingCart {
+ public static void main (String[] args){
+ String custName = "Steve Smith";
+ String firstName;
+ int spaceIdx;
+ StringBuilder sb;
+
+ spaceIdx = custName.indexOf(" ");
+ firstName = custName.substring(0, spaceIdx);
+ System.out.println(firstName);
+ //Instantiate and initialize sb to firstName.
+ sb = new StringBuilder(firstName);
+ // Put the full name back together, using StringBuilder append method.
+ // You can just enter the String literal for the last name.
+ sb.append(custName.substring(spaceIdx));
+ // Print the full name.
+ System.out.println(sb);
+ }
+}
diff --git a/src/main/java/eliasvillalva/practices/07-ManipulateFormat/src/ex07_3_exercise/ShoppingCart.java b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/src/ex07_3_exercise/ShoppingCart.java
new file mode 100644
index 0000000..dc9060c
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/07-ManipulateFormat/src/ex07_3_exercise/ShoppingCart.java
@@ -0,0 +1,19 @@
+package ex07_3_exercise;
+/**
+ *
+ * @author evillalva
+ */
+public class ShoppingCart {
+ public static void main(String[] args){
+ int int1;
+ // Declare and initialize variables of type long, float, and char.
+ long larguisimo = 1234567890123456789L;
+ float flotante = 90.09723497F;
+ char character = 'M';
+ // Print the long variable.
+ System.out.println("Suitable Laber for LONG: "+larguisimo);
+ // Assign the long to the int and print the int variable.
+ int1 = (int) larguisimo;
+ System.out.println("Entero con valor de long: "+int1);
+ }
+}
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/build.xml b/src/main/java/eliasvillalva/practices/08-Methods/build.xml
new file mode 100644
index 0000000..92d742a
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/build.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+ Builds, tests, and runs the project 08-Methods.
+
+
+
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/build/classes/ex08_1_exercise/Item.class b/src/main/java/eliasvillalva/practices/08-Methods/build/classes/ex08_1_exercise/Item.class
new file mode 100644
index 0000000000000000000000000000000000000000..80d15c8ba930da9b8005c6e2e7555dd4a9767cde
GIT binary patch
literal 435
zcmZvX%}&BV6ot=iOQ97kBI1IL?tq2W#D$5*O%oFn)CGnZH)N<29W0cTVt5=MfQ<`d
z;=%{;p^SG1;>yL`pEGm5d*}P-^9#T+c6~V5_F$u4#7+?nLLp9*G$T+%aL?34<>v&u
z)$S9VD1DHGpsObGdOjY?>{bjDR%+ce7D-=ZO80Bg$)D7W(CEs=;mP1=AQv)=)l7z$
zxg4JoN;8>9t65GfYTpwoyk$1sa?(5&vgqF^sO&39PNk|i4&Q!}$Y#`!!^11bjDSlRxNf!U4sH%`*aZEo%!aRZ_doGKi_`>c!I|{%%Ec9P7W3-W~gSdh+3Aj
zr5u)VH-md7-nX%0V^tviOb0rCE|91Th!Qe=6HtAbY+OOYi+lIXLSo*9k|Fr(S5&_uTnb){VLY
z2YG>o%RL)52X!=TtT|}nfrE!wx8XY20QK|R!Lju9L9G?~VPwEZ0+q`w=j8+n|Bk!U
zJyKpQkQu6Y!a!TDB$=o2vXWu!P}_&cP{
mqe^sz^hT~cr9_D{Q?rQcxIw|2%=o&0qiVyl3EU!J;r3r83#c6c
literal 0
HcmV?d00001
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/build/classes/ex08_2_exercise/Item.class b/src/main/java/eliasvillalva/practices/08-Methods/build/classes/ex08_2_exercise/Item.class
new file mode 100644
index 0000000000000000000000000000000000000000..9fad1e6596d1dde514f48b5c05d20e2020d201e3
GIT binary patch
literal 1364
zcmaJ=TT|0e5dKcmCT$21S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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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/src/main/java/eliasvillalva/practices/08-Methods/nbproject/genfiles.properties b/src/main/java/eliasvillalva/practices/08-Methods/nbproject/genfiles.properties
new file mode 100644
index 0000000..44e1e8b
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=772162be
+build.xml.script.CRC32=6458d670
+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=772162be
+nbproject/build-impl.xml.script.CRC32=e5dd5536
+nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/nbproject/private/private.properties b/src/main/java/eliasvillalva/practices/08-Methods/nbproject/private/private.properties
new file mode 100644
index 0000000..43bab30
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/nbproject/private/private.properties
@@ -0,0 +1,2 @@
+compile.on.save=true
+user.properties.file=C:\\Users\\Weedman\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/nbproject/private/private.xml b/src/main/java/eliasvillalva/practices/08-Methods/nbproject/private/private.xml
new file mode 100644
index 0000000..3f45d08
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/nbproject/private/private.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ file:/E:/CursoJava/PROYECTOS/08-Methods/src/ex08_1_exercise/ShoppingCart.java
+ file:/E:/CursoJava/PROYECTOS/08-Methods/src/ex08_1_exercise/Item.java
+
+
+
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/nbproject/project.properties b/src/main/java/eliasvillalva/practices/08-Methods/nbproject/project.properties
new file mode 100644
index 0000000..ef4bf4f
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/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}/08-Methods.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/src/main/java/eliasvillalva/practices/08-Methods/nbproject/project.xml b/src/main/java/eliasvillalva/practices/08-Methods/nbproject/project.xml
new file mode 100644
index 0000000..5826eab
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/nbproject/project.xml
@@ -0,0 +1,15 @@
+
+
+ org.netbeans.modules.java.j2seproject
+
+
+ 08-Methods
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_1_exercise/Item.java b/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_1_exercise/Item.java
new file mode 100644
index 0000000..2852d3b
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_1_exercise/Item.java
@@ -0,0 +1,16 @@
+package ex08_1_exercise;
+/**
+ *
+ * @author evillalva
+ */
+public class Item {
+ char color;
+ boolean setColor(char color) {
+ if(color == ' '){
+ return false;
+ }else{
+ this.color = color;
+ return true;
+ }
+ }
+}
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_1_exercise/ShoppingCart.java b/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_1_exercise/ShoppingCart.java
new file mode 100644
index 0000000..c5477df
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_1_exercise/ShoppingCart.java
@@ -0,0 +1,19 @@
+package ex08_1_exercise;
+/**
+ *
+ * @author evillalva
+ */
+public class ShoppingCart {
+ public static void main(String[] args){
+ Item item1 = new Item();
+ // Call the setColor method on item1. Print the new color value from
+ // item1 if the method returns true. Otherwise print an "invalid color"
+ // message.
+ if(item1.setColor(' ')){
+ System.out.println(item1.color);
+ }else{
+ System.out.println("Invalid Color");
+ }
+ // Test the class, using both valid and invalid colors.
+ }
+}
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_2_exercise/Item.java b/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_2_exercise/Item.java
new file mode 100644
index 0000000..3c369f4
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_2_exercise/Item.java
@@ -0,0 +1,32 @@
+package ex08_2_exercise;
+/**
+ *
+ * @author evillalva
+ */
+public class Item {
+ String desc;
+ int quantity;
+ double price;
+ char colorCode = 'U'; //'U' = Undetermined
+ public void displayItem() {
+ System.out.println("Item: " + desc + ", " + quantity + ", "
+ + price + ", "+colorCode);
+ }
+ // Write a public 3-arg setItemDisplay method that returns void.
+ public void setItemFields(String desc, int quantity, double price){
+ this.desc=desc;
+ this.quantity=quantity;
+ this.price=price;
+ }
+ // Write a public 4-arg setItemDisplay method that returns an int.
+ public int setItemFields(String desc, int quantity, double price, char colorCode){
+ int r=0;
+ if(colorCode==' '){
+ r = -1;
+ }else{
+ this.colorCode=colorCode;
+ setItemFields(desc, quantity, price);
+ }
+ return r;
+ }
+}
diff --git a/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_2_exercise/ShoppingCart.java b/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_2_exercise/ShoppingCart.java
new file mode 100644
index 0000000..cca4221
--- /dev/null
+++ b/src/main/java/eliasvillalva/practices/08-Methods/src/ex08_2_exercise/ShoppingCart.java
@@ -0,0 +1,20 @@
+package ex08_2_exercise;
+/**
+ *
+ * @author evillalva
+ */
+public class ShoppingCart {
+ public static void main(String[] args) {
+ Item item1 = new Item();
+ // Call the 3-arg setItemFields method and then call displayItem.
+ item1.setItemFields("20", 99, 10.5);
+ item1.displayItem();
+ // Call the 4-arg setItemFields method, checking the return value.
+ if(item1.setItemFields("30", 88, 11.8, ' ') < 0){
+ System.out.println("Invalid color code.");
+ }else{
+ item1.displayItem();
+ }
+ // Test your code for both valid and invalid values
+ }
+}