From 07b9c8bcc9f98493b97acc1027972324f59afd5a Mon Sep 17 00:00:00 2001 From: Anda77 Date: Wed, 20 Dec 2017 22:44:50 +0200 Subject: [PATCH] adaug un produs in cos 4 browsere --- HeeeyWebSite/Chrome/AddProductChrome.java | 84 + HeeeyWebSite/Chrome/ContactPageChrome.java | 70 + HeeeyWebSite/Edge/AddProductEdge.java | 65 + HeeeyWebSite/Edge/ContactPageEdge.java | 66 + HeeeyWebSite/Firefox/AddProductFirefox.java | 73 + HeeeyWebSite/Firefox/ContactPageFirefox.java | 66 + HeeeyWebSite/IE11/AddProductIE11.java | 73 + HeeeyWebSite/Sources/AbstractPage.java | 24 + HeeeyWebSite/Sources/Constants.java | 14 + HeeeyWebSite/Sources/ContactPage.java | 44 + HeeeyWebSite/Sources/CosCumparaturi.java | 174 ++ HeeeyWebSite/Sources/ProdusCeai.java | 261 +++ HeeeyWebSite/Sources/ProdusCeaiIE11.java | 261 +++ HeeeyWebSite/Sources/RunSiteTest.java | 54 + PrjJava/JavaApplication653/build.xml | 73 + PrjJava/JavaApplication653/manifest.mf | 3 + .../nbproject/build-impl.xml | 1420 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/project.properties | 74 + .../JavaApplication653/nbproject/project.xml | 15 + .../src/javaapplication653/Print.java | 34 + .../src/javaapplication653/StaticBlock1.java | 59 + PrjJava/OCA7/ChainedDeclaration/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../ChainedDeclaration.class | Bin 0 -> 617 bytes PrjJava/OCA7/ChainedDeclaration/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../ChainedDeclaration/nbproject/project.xml | 15 + .../ChainedDeclaration.java | 24 + PrjJava/OCA7/Chapter1/Abstract1/build.xml | 73 + PrjJava/OCA7/Chapter1/Abstract1/manifest.mf | 3 + .../Abstract1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Abstract1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Abstract1/nbproject/private/private.xml | 7 + .../Abstract1/nbproject/project.properties | 74 + .../Chapter1/Abstract1/nbproject/project.xml | 15 + .../Abstract1/src/abstract1/Abstract1.java | 19 + PrjJava/OCA7/Chapter1/Abstract2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/abstract2/Abstract2.class | Bin 0 -> 608 bytes PrjJava/OCA7/Chapter1/Abstract2/manifest.mf | 3 + .../Abstract2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Abstract2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Abstract2/nbproject/private/private.xml | 4 + .../Abstract2/nbproject/project.properties | 74 + .../Chapter1/Abstract2/nbproject/project.xml | 15 + .../Abstract2/src/abstract2/Abstract2.java | 24 + PrjJava/OCA7/Chapter1/Abstract3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/abstract3/Abstract3.class | Bin 0 -> 379 bytes .../Abstract3/build/classes/abstract3/I.class | Bin 0 -> 172 bytes .../Abstract3/build/classes/abstract3/J.class | Bin 0 -> 179 bytes .../Abstract3/build/classes/abstract3/K.class | Bin 0 -> 205 bytes .../build/classes/abstract3/MyIJ.class | Bin 0 -> 300 bytes PrjJava/OCA7/Chapter1/Abstract3/manifest.mf | 3 + .../Abstract3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Abstract3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Abstract3/nbproject/private/private.xml | 4 + .../Abstract3/nbproject/project.properties | 74 + .../Chapter1/Abstract3/nbproject/project.xml | 15 + .../Abstract3/src/abstract3/Abstract3.java | 28 + PrjJava/OCA7/Chapter1/Abstract4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/abstract4/Abstract4.class | Bin 0 -> 891 bytes PrjJava/OCA7/Chapter1/Abstract4/manifest.mf | 3 + .../Abstract4/nbproject/build-impl.xml | 1420 ++++++++++++++++ .../Abstract4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Abstract4/nbproject/private/private.xml | 4 + .../Abstract4/nbproject/project.properties | 74 + .../Chapter1/Abstract4/nbproject/project.xml | 15 + .../Abstract4/src/abstract4/Abstract4.java | 31 + PrjJava/OCA7/Chapter1/Abstract5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/abstract5/Abstract5$1.class | Bin 0 -> 400 bytes .../build/classes/abstract5/Abstract5.class | Bin 0 -> 558 bytes .../build/classes/abstract5/abstract6.class | Bin 0 -> 497 bytes PrjJava/OCA7/Chapter1/Abstract5/manifest.mf | 3 + .../Abstract5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Abstract5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Abstract5/nbproject/private/private.xml | 4 + .../Abstract5/nbproject/project.properties | 74 + .../Chapter1/Abstract5/nbproject/project.xml | 15 + .../Abstract5/src/abstract5/Abstract5.java | 23 + .../Abstract5/src/abstract5/abstract6.java | 18 + PrjJava/OCA7/Chapter1/Assigments1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/assigments1/Assigments1.class | Bin 0 -> 909 bytes PrjJava/OCA7/Chapter1/Assigments1/manifest.mf | 3 + .../Assigments1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Assigments1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Assigments1/nbproject/private/private.xml | 7 + .../Assigments1/nbproject/project.properties | 74 + .../Assigments1/nbproject/project.xml | 15 + .../src/assigments1/Assigments1.java | 46 + PrjJava/OCA7/Chapter1/Chapter10_1/build.xml | 73 + .../classes/chapter10_1/Chapter10_1.class | Bin 0 -> 554 bytes PrjJava/OCA7/Chapter1/Chapter10_1/manifest.mf | 3 + .../Chapter10_1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter10_1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter10_1/nbproject/private/private.xml | 7 + .../Chapter10_1/nbproject/project.properties | 74 + .../Chapter10_1/nbproject/project.xml | 15 + .../src/chapter10_1/Chapter10_1.java | 24 + PrjJava/OCA7/Chapter1/Chapter1_5/build.xml | 73 + PrjJava/OCA7/Chapter1/Chapter1_5/manifest.mf | 3 + .../Chapter1_5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter1_5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter1_5/nbproject/private/private.xml | 7 + .../Chapter1_5/nbproject/project.properties | 74 + .../Chapter1/Chapter1_5/nbproject/project.xml | 15 + .../Chapter1_5/src/chapter1_5/Chapter1_5.java | 23 + .../Chapter1/Chapter1_5/src/com/foo/Bleh.java | 20 + PrjJava/OCA7/Chapter1/Declarations1/build.xml | 73 + .../OCA7/Chapter1/Declarations1/manifest.mf | 3 + .../Declarations1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../Declarations1/nbproject/project.xml | 15 + .../Declarations1/src/declarations1/Dec.java | 15 + .../src/declarations1/Declarations1.java | 21 + PrjJava/OCA7/Chapter1/Encapsul1/build.xml | 73 + .../build/classes/encapsul1/Encapsul1.class | Bin 0 -> 540 bytes .../build/classes/encapsul1/Parrot.class | Bin 0 -> 505 bytes .../build/classes/encapsul1/Parrotet.class | Bin 0 -> 512 bytes PrjJava/OCA7/Chapter1/Encapsul1/manifest.mf | 3 + .../Encapsul1/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Encapsul1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Encapsul1/nbproject/private/private.xml | 7 + .../Encapsul1/nbproject/project.properties | 74 + .../Chapter1/Encapsul1/nbproject/project.xml | 15 + .../Encapsul1/src/encapsul1/Encapsul1.java | 25 + .../Encapsul1/src/encapsul1/Parrot.java | 17 + .../Encapsul1/src/encapsul1/Parrotet.java | 17 + PrjJava/OCA7/Chapter1/FinalVariable/build.xml | 73 + .../OCA7/Chapter1/FinalVariable/manifest.mf | 3 + .../FinalVariable/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../FinalVariable/nbproject/project.xml | 15 + .../src/finalvariable/FinalVariable.java | 23 + PrjJava/OCA7/Chapter1/ImportStatic/build.xml | 73 + .../OCA7/Chapter1/ImportStatic/manifest.mf | 3 + .../ImportStatic/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../ImportStatic/nbproject/project.properties | 74 + .../ImportStatic/nbproject/project.xml | 15 + .../src/com/bar/ImportStatic.java | 21 + .../Chapter1/ImportStatic/src/com/foo/X.java | 19 + PrjJava/OCA7/Chapter1/Main1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Main1/build/classes/main1/Main1.class | Bin 0 -> 623 bytes PrjJava/OCA7/Chapter1/Main1/manifest.mf | 3 + .../Chapter1/Main1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Main1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Main1/nbproject/private/private.xml | 7 + .../Main1/nbproject/project.properties | 74 + .../OCA7/Chapter1/Main1/nbproject/project.xml | 15 + .../OCA7/Chapter1/Main1/src/main1/Main1.java | 27 + PrjJava/OCA7/Chapter1/Main2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Main2/build/classes/main2/Main2.class | Bin 0 -> 523 bytes PrjJava/OCA7/Chapter1/Main2/manifest.mf | 3 + .../Chapter1/Main2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Main2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Main2/nbproject/private/private.xml | 4 + .../Main2/nbproject/project.properties | 74 + .../OCA7/Chapter1/Main2/nbproject/project.xml | 15 + .../OCA7/Chapter1/Main2/src/main2/Main2.java | 28 + PrjJava/OCA7/Chapter1/Main3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Main3/build/classes/main3/Main3.class | Bin 0 -> 927 bytes PrjJava/OCA7/Chapter1/Main3/manifest.mf | 3 + .../Chapter1/Main3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Main3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Main3/nbproject/private/private.xml | 4 + .../Main3/nbproject/project.properties | 74 + .../OCA7/Chapter1/Main3/nbproject/project.xml | 15 + .../OCA7/Chapter1/Main3/src/main3/Main3.java | 33 + PrjJava/OCA7/Chapter1/Main4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Main4/build/classes/main4/Main4.class | Bin 0 -> 689 bytes PrjJava/OCA7/Chapter1/Main4/manifest.mf | 3 + .../Chapter1/Main4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Main4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Main4/nbproject/private/private.xml | 4 + .../Main4/nbproject/project.properties | 74 + .../OCA7/Chapter1/Main4/nbproject/project.xml | 15 + .../OCA7/Chapter1/Main4/src/main4/Main4.java | 28 + PrjJava/OCA7/Chapter1/Main5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Main5/build/classes/main5/Main5.class | Bin 0 -> 613 bytes PrjJava/OCA7/Chapter1/Main5/manifest.mf | 3 + .../Chapter1/Main5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Main5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Main5/nbproject/private/private.xml | 4 + .../Main5/nbproject/project.properties | 74 + .../OCA7/Chapter1/Main5/nbproject/project.xml | 15 + .../OCA7/Chapter1/Main5/src/main5/Main5.java | 28 + PrjJava/OCA7/Chapter1/Main6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Main6/build/classes/main6/Main6.class | Bin 0 -> 765 bytes PrjJava/OCA7/Chapter1/Main6/manifest.mf | 3 + .../Chapter1/Main6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Main6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Main6/nbproject/private/private.xml | 7 + .../Main6/nbproject/project.properties | 74 + .../OCA7/Chapter1/Main6/nbproject/project.xml | 15 + .../OCA7/Chapter1/Main6/src/main6/Main6.class | Bin 0 -> 493 bytes .../OCA7/Chapter1/Main6/src/main6/Main6.java | 34 + PrjJava/OCA7/Chapter1/Main7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Main7/build/classes/main7/Main7.class | Bin 0 -> 524 bytes .../build/classes/main7/anothermain.class | Bin 0 -> 537 bytes PrjJava/OCA7/Chapter1/Main7/manifest.mf | 3 + .../Chapter1/Main7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Main7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Main7/nbproject/private/private.xml | 4 + .../Main7/nbproject/project.properties | 74 + .../OCA7/Chapter1/Main7/nbproject/project.xml | 15 + .../OCA7/Chapter1/Main7/src/main7/Main7.java | 28 + PrjJava/OCA7/Chapter1/Main8/build.xml | 73 + PrjJava/OCA7/Chapter1/Main8/manifest.mf | 3 + .../Chapter1/Main8/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Main8/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Main8/nbproject/private/private.xml | 7 + .../Main8/nbproject/project.properties | 74 + .../OCA7/Chapter1/Main8/nbproject/project.xml | 15 + .../OCA7/Chapter1/Main8/src/main8/Main8.class | Bin 0 -> 427 bytes .../OCA7/Chapter1/Main8/src/main8/Main8.java | 24 + PrjJava/OCA7/Chapter1/ManyMain/build.xml | 73 + PrjJava/OCA7/Chapter1/ManyMain/manifest.mf | 3 + .../ManyMain/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ManyMain/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ManyMain/nbproject/private/private.xml | 7 + .../ManyMain/nbproject/project.properties | 74 + .../Chapter1/ManyMain/nbproject/project.xml | 15 + .../ManyMain/src/manymain/ManyMain.java | 21 + .../OCA7/Chapter1/Nameofvariables/build.xml | 73 + .../OCA7/Chapter1/Nameofvariables/manifest.mf | 3 + .../Nameofvariables/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Nameofvariables/nbproject/project.xml | 15 + .../src/nameofvariables/Nameofvariables.java | 23 + .../OCA7/Chapter1/Numedevariabile/build.xml | 73 + .../numedevariabile/Numedevariabile.class | Bin 0 -> 420 bytes .../OCA7/Chapter1/Numedevariabile/manifest.mf | 3 + .../Numedevariabile/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../Numedevariabile/nbproject/project.xml | 15 + .../src/numedevariabile/Numedevariabile.java | 32 + PrjJava/OCA7/Chapter1/Question1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Question1/build/classes/question1/A.class | Bin 0 -> 344 bytes .../build/classes/question1/Question1.class | Bin 0 -> 564 bytes PrjJava/OCA7/Chapter1/Question1/manifest.mf | 3 + .../Question1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Question1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Question1/nbproject/private/private.xml | 4 + .../Question1/nbproject/project.properties | 74 + .../Chapter1/Question1/nbproject/project.xml | 15 + .../Chapter1/Question1/src/question1/A.java | 18 + .../Question1/src/question1/Question1.java | 23 + PrjJava/OCA7/Chapter1/ScopeTest/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/scopetest/ScopeTest.class | Bin 0 -> 615 bytes PrjJava/OCA7/Chapter1/ScopeTest/manifest.mf | 3 + .../ScopeTest/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ScopeTest/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ScopeTest/nbproject/private/private.xml | 4 + .../ScopeTest/nbproject/project.properties | 74 + .../Chapter1/ScopeTest/nbproject/project.xml | 15 + .../ScopeTest/src/scopetest/ScopeTest.java | 25 + PrjJava/OCA7/Chapter1/ScopeVariable/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/scopevariable/ScopeVariable.class | Bin 0 -> 1028 bytes .../OCA7/Chapter1/ScopeVariable/manifest.mf | 3 + .../ScopeVariable/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 76 + .../ScopeVariable/nbproject/project.xml | 15 + .../src/scopevariable/ScopeVariable.java | 28 + PrjJava/OCA7/Chapter1/ShortMaxValue/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/shortmaxvalue/ShortMaxValue.class | Bin 0 -> 635 bytes .../OCA7/Chapter1/ShortMaxValue/manifest.mf | 3 + .../ShortMaxValue/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../ShortMaxValue/nbproject/project.xml | 15 + .../src/shortmaxvalue/ShortMaxValue.java | 26 + PrjJava/OCA7/Chapter1/Undefined1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/undefined1/Undefined1.class | Bin 0 -> 629 bytes PrjJava/OCA7/Chapter1/Undefined1/manifest.mf | 3 + .../Undefined1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Undefined1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Undefined1/nbproject/private/private.xml | 7 + .../Undefined1/nbproject/project.properties | 74 + .../Chapter1/Undefined1/nbproject/project.xml | 15 + .../Undefined1/src/undefined1/Undefined1.java | 27 + PrjJava/OCA7/Chapter1/VarArg1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/vararg1/VarArg1.class | Bin 0 -> 1029 bytes PrjJava/OCA7/Chapter1/VarArg1/manifest.mf | 3 + .../Chapter1/VarArg1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../VarArg1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../VarArg1/nbproject/private/private.xml | 4 + .../VarArg1/nbproject/project.properties | 74 + .../Chapter1/VarArg1/nbproject/project.xml | 15 + .../Chapter1/VarArg1/src/vararg1/VarArg1.java | 32 + .../Chapter1/Variabileneintializate/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Variabileneintializate.class | Bin 0 -> 572 bytes .../Variabileneintializate/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../Variabileneintializate.java | 35 + PrjJava/OCA7/Chapter1/Variables/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/variables/Variables.class | Bin 0 -> 595 bytes PrjJava/OCA7/Chapter1/Variables/manifest.mf | 3 + .../Variables/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Variables/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Variables/nbproject/private/private.xml | 4 + .../Variables/nbproject/project.properties | 74 + .../Chapter1/Variables/nbproject/project.xml | 15 + .../Variables/src/variables/Variables.java | 29 + PrjJava/OCA7/Chapter1/Variables1/build.xml | 73 + PrjJava/OCA7/Chapter1/Variables1/manifest.mf | 3 + .../Variables1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Variables1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Variables1/nbproject/private/private.xml | 4 + .../Variables1/nbproject/project.properties | 74 + .../Chapter1/Variables1/nbproject/project.xml | 15 + .../Variables1/src/variables1/Variables1.java | 38 + PrjJava/OCA7/Chapter1/Variables2/build.xml | 73 + PrjJava/OCA7/Chapter1/Variables2/manifest.mf | 3 + .../Variables2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Variables2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Variables2/nbproject/private/private.xml | 4 + .../Variables2/nbproject/project.properties | 74 + .../Chapter1/Variables2/nbproject/project.xml | 15 + .../Variables2/src/variables2/Variables2.java | 25 + .../OCA7/Chapter1/VariablesNames/build.xml | 73 + .../variablesnames/VariablesNames.class | Bin 0 -> 631 bytes .../OCA7/Chapter1/VariablesNames/manifest.mf | 3 + .../VariablesNames/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../VariablesNames/nbproject/project.xml | 15 + .../src/variablesnames/VariablesNames.java | 25 + .../OCA7/Chapter1/namevariables1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../namevariables1/Namevariables1.class | Bin 0 -> 955 bytes .../OCA7/Chapter1/namevariables1/manifest.mf | 3 + .../namevariables1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../namevariables1/nbproject/project.xml | 15 + .../src/namevariables1/Namevariables1.java | 25 + .../OCA7/Chapter1/variabilelocale/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../variabilelocale/Variabilelocale.class | Bin 0 -> 727 bytes .../OCA7/Chapter1/variabilelocale/manifest.mf | 3 + .../variabilelocale/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../variabilelocale/nbproject/project.xml | 15 + .../src/variabilelocale/Variabilelocale.java | 29 + PrjJava/OCA7/Chapter2/CallByValue/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/callbyvalue/CallByValue.class | Bin 0 -> 837 bytes .../build/classes/callbyvalue/Wrapper.class | Bin 0 -> 310 bytes PrjJava/OCA7/Chapter2/CallByValue/manifest.mf | 3 + .../CallByValue/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../CallByValue/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../CallByValue/nbproject/private/private.xml | 4 + .../CallByValue/nbproject/project.properties | 74 + .../CallByValue/nbproject/project.xml | 15 + .../src/callbyvalue/CallByValue.java | 39 + .../OCA7/Chapter2/CallByValueRef/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../callbyvalueref/CallByValueRef.class | Bin 0 -> 1157 bytes .../OCA7/Chapter2/CallByValueRef/manifest.mf | 3 + .../CallByValueRef/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../CallByValueRef/nbproject/project.xml | 15 + .../src/callbyvalueref/CallByValueRef.java | 37 + .../OCA7/Chapter2/CallConstructor/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../callconstructor/CallConstructor.class | Bin 0 -> 436 bytes .../build/classes/callconstructor/Uber.class | Bin 0 -> 388 bytes .../OCA7/Chapter2/CallConstructor/manifest.mf | 3 + .../CallConstructor/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../CallConstructor/nbproject/project.xml | 15 + .../src/callconstructor/CallConstructor.java | 30 + .../src/callconstructor/Uber.java | 21 + .../OCA7/Chapter2/CallConstructor1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/callconstructor1/Building.class | Bin 0 -> 722 bytes .../callconstructor1/CallConstructor1.class | Bin 0 -> 910 bytes .../Chapter2/CallConstructor1/manifest.mf | 3 + .../CallConstructor1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../CallConstructor1/nbproject/project.xml | 15 + .../src/callconstructor1/Building.java | 21 + .../callconstructor1/CallConstructor1.java | 34 + .../OCA7/Chapter2/CallConstructor2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../callconstructor2/CallConstructor2.class | Bin 0 -> 615 bytes .../build/classes/callconstructor2/TC.class | Bin 0 -> 486 bytes .../Chapter2/CallConstructor2/manifest.mf | 3 + .../CallConstructor2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../CallConstructor2/nbproject/project.xml | 15 + .../callconstructor2/CallConstructor2.java | 34 + .../OCA7/Chapter2/CallPolimorfic/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../callpolimorfic/CallPolimorfic.class | Bin 0 -> 1211 bytes .../OCA7/Chapter2/CallPolimorfic/manifest.mf | 3 + .../CallPolimorfic/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../CallPolimorfic/nbproject/project.xml | 15 + .../src/callpolimorfic/CallPolimorfic.java | 41 + .../Chapter2/CallValuePrimitive/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../CallValuePrimitive.class | Bin 0 -> 748 bytes .../Chapter2/CallValuePrimitive/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../CallValuePrimitive/nbproject/project.xml | 15 + .../CallValuePrimitive.java | 29 + PrjJava/OCA7/Chapter2/CastReference/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/castreference/CastReference.class | Bin 0 -> 915 bytes .../classes/castreference/GoodSpeak.class | Bin 0 -> 540 bytes .../build/classes/castreference/Tone.class | Bin 0 -> 131 bytes .../OCA7/Chapter2/CastReference/manifest.mf | 3 + .../CastReference/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../CastReference/nbproject/project.xml | 15 + .../src/castreference/CastReference.java | 38 + PrjJava/OCA7/Chapter2/Casting2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Casting2/build/classes/casting2/A.class | Bin 0 -> 253 bytes .../Casting2/build/classes/casting2/B.class | Bin 0 -> 247 bytes .../build/classes/casting2/Casting2.class | Bin 0 -> 945 bytes PrjJava/OCA7/Chapter2/Casting2/manifest.mf | 3 + .../Casting2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Casting2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Casting2/nbproject/private/private.xml | 4 + .../Casting2/nbproject/project.properties | 74 + .../Chapter2/Casting2/nbproject/project.xml | 15 + .../Casting2/src/casting2/Casting2.java | 38 + PrjJava/OCA7/Chapter2/CastingShort/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/castingshort/CastingShort.class | Bin 0 -> 637 bytes .../OCA7/Chapter2/CastingShort/manifest.mf | 3 + .../CastingShort/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../CastingShort/nbproject/project.properties | 74 + .../CastingShort/nbproject/project.xml | 15 + .../src/castingshort/CastingShort.java | 28 + .../OCA7/Chapter2/CastingSubclasa/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/castingsubclasa/B.class | Bin 0 -> 274 bytes .../build/classes/castingsubclasa/B1.class | Bin 0 -> 277 bytes .../build/classes/castingsubclasa/B2.class | Bin 0 -> 277 bytes .../castingsubclasa/CastingSubclasa.class | Bin 0 -> 663 bytes .../OCA7/Chapter2/CastingSubclasa/manifest.mf | 3 + .../CastingSubclasa/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../CastingSubclasa/nbproject/project.xml | 15 + .../src/castingsubclasa/CastingSubclasa.java | 39 + .../Constructor/ChainingConstructor/build.xml | 73 + .../ChainingConstructor/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../ChainingConstructor/nbproject/project.xml | 15 + .../ChainingConstructor.java | 29 + .../src/chainingconstructor/Feline.java | 19 + .../ChainingConstructor1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/chainingconstructor1/A.class | Bin 0 -> 495 bytes .../ChainingConstructor1.class | Bin 0 -> 751 bytes .../ChainingConstructor1/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../src/chainingconstructor1/A.java | 16 + .../ChainingConstructor1.java | 24 + .../Constructor/Constructor1/build.xml | 73 + .../build/classes/constructor1/Animal.class | Bin 0 -> 335 bytes .../classes/constructor1/Constructor1.class | Bin 0 -> 469 bytes .../Constructor/Constructor1/manifest.mf | 3 + .../Constructor1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Constructor1/nbproject/project.properties | 74 + .../Constructor1/nbproject/project.xml | 15 + .../Constructor1/src/constructor1/Animal.java | 19 + .../src/constructor1/Constructor1.java | 29 + .../Constructor/Constructor2/build.xml | 73 + .../Constructor/Constructor2/manifest.mf | 3 + .../Constructor2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Constructor2/nbproject/project.properties | 74 + .../Constructor2/nbproject/project.xml | 15 + .../src/constructor2/Constructor2.java | 22 + .../Constructor2/src/constructor2/Horeos.java | 26 + .../Constructor/ConstructorChaining/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/constructorchaining/A.class | Bin 0 -> 498 bytes .../ConstructorChaining.class | Bin 0 -> 724 bytes .../ConstructorChaining/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../ConstructorChaining/nbproject/project.xml | 15 + .../ConstructorChaining.java | 38 + .../ConstructorThrowsCheckException/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../ConstructorThrowsCheckException.class | Bin 0 -> 899 bytes .../manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../ConstructorThrowsCheckException.java | 36 + .../build.xml | 73 + .../manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../ConstructorThrowsCheckException1.java | 31 + .../ConstructorThrowsException/build.xml | 73 + .../ConstructorThrowsException/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../ConstructorThrowsException.java | 36 + PrjJava/OCA7/Chapter2/Encapsu2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Encapsu2/build/classes/encapsu2/Dog.class | Bin 0 -> 252 bytes .../build/classes/encapsu2/Dog1.class | Bin 0 -> 251 bytes .../build/classes/encapsu2/Encapsu2.class | Bin 0 -> 571 bytes PrjJava/OCA7/Chapter2/Encapsu2/manifest.mf | 3 + .../Encapsu2/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Encapsu2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Encapsu2/nbproject/private/private.xml | 4 + .../Encapsu2/nbproject/project.properties | 74 + .../Chapter2/Encapsu2/nbproject/project.xml | 15 + .../Chapter2/Encapsu2/src/encapsu2/Dog.java | 14 + .../Chapter2/Encapsu2/src/encapsu2/Dog1.java | 14 + .../Encapsu2/src/encapsu2/Encapsu2.java | 27 + PrjJava/OCA7/Chapter2/Encapsulation/build.xml | 73 + .../OCA7/Chapter2/Encapsulation/manifest.mf | 3 + .../Encapsulation/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Encapsulation/nbproject/project.xml | 15 + .../Encapsulation/src/encapsulation/A.java | 17 + .../Encapsulation/src/encapsulation/B.java | 18 + .../Encapsulation/src/encapsulation/C.java | 14 + .../src/encapsulation/Encapsulation.java | 24 + .../Interface/Implement2Interfaces/build.xml | 73 + .../Implement2Interfaces/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../Implement2Interfaces.java | 31 + .../Chapter2/Interface/Interface2/build.xml | 73 + .../Chapter2/Interface/Interface2/manifest.mf | 3 + .../Interface2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Interface2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Interface2/nbproject/private/private.xml | 4 + .../Interface2/nbproject/project.properties | 74 + .../Interface2/nbproject/project.xml | 15 + .../Interface2/src/interface2/Bird.java | 22 + .../Interface2/src/interface2/Flyer.java | 16 + .../Interface2/src/interface2/Interface2.java | 26 + .../Chapter2/Interface/Interface3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/interface3/Bird.class | Bin 0 -> 346 bytes .../build/classes/interface3/Flyer.class | Bin 0 -> 143 bytes .../build/classes/interface3/Flyer.rs | 1 + .../build/classes/interface3/Interface2.class | Bin 0 -> 464 bytes .../build/classes/interface3/Interface3.class | Bin 0 -> 395 bytes .../Chapter2/Interface/Interface3/manifest.mf | 3 + .../Interface3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Interface3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Interface3/nbproject/private/private.xml | 4 + .../Interface3/nbproject/project.properties | 74 + .../Interface3/nbproject/project.xml | 15 + .../Interface3/src/interface3/Bird.java | 19 + .../Interface3/src/interface3/Flyer.java | 16 + .../Interface3/src/interface3/Interface2.java | 26 + .../Interface3/src/interface3/Interface3.java | 21 + .../Interface/InterfaceExtend/build.xml | 73 + .../Interface/InterfaceExtend/manifest.mf | 3 + .../InterfaceExtend/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../InterfaceExtend/nbproject/project.xml | 15 + .../src/interfaceextend/InterfaceExtend.java | 38 + .../Interface/InterfaceVariable/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/interfacevariable/IInt.class | Bin 0 -> 159 bytes .../interfacevariable/InterfaceVariable.class | Bin 0 -> 558 bytes .../Interface/InterfaceVariable/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../InterfaceVariable/nbproject/project.xml | 15 + .../src/interfacevariable/IInt.java | 14 + .../interfacevariable/InterfaceVariable.java | 25 + .../OCA7/Chapter2/IntergerParseInt/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../intergerparseint/IntergerParseInt.class | Bin 0 -> 1313 bytes .../Chapter2/IntergerParseInt/manifest.mf | 3 + .../IntergerParseInt/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../IntergerParseInt/nbproject/project.xml | 15 + .../intergerparseint/IntergerParseInt.java | 31 + .../OCA7/Chapter2/JavaApplication67/build.xml | 73 + .../classes/javaapplication67/Bottom2.class | Bin 0 -> 572 bytes .../build/classes/javaapplication67/Top.class | Bin 0 -> 422 bytes .../Chapter2/JavaApplication67/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../JavaApplication67/nbproject/project.xml | 15 + .../src/javaapplication67/Bottom2.java | 20 + .../src/javaapplication67/Top.java | 17 + PrjJava/OCA7/Chapter2/Meltdown/build.xml | 73 + PrjJava/OCA7/Chapter2/Meltdown/manifest.mf | 3 + .../Meltdown/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Meltdown/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Meltdown/nbproject/project.properties | 74 + .../Chapter2/Meltdown/nbproject/project.xml | 15 + .../Meltdown/src/meltdown/Animal.java | 19 + .../Chapter2/Meltdown/src/meltdown/Horse.java | 18 + .../Meltdown/src/meltdown/Meltdown.java | 24 + .../build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../MethodWithTheSameWithConstructor.class | Bin 0 -> 880 bytes .../manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../MethodWithTheSameWithConstructor.java | 34 + .../MethodsamenameConstructor/build.xml | 73 + .../MethodsamenameConstructor/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../MethodsamenameConstructor.java | 30 + PrjJava/OCA7/Chapter2/Overiding2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/overiding2/A.class | Bin 0 -> 622 bytes .../build/classes/overiding2/Overiding2.class | Bin 0 -> 885 bytes PrjJava/OCA7/Chapter2/Overiding2/manifest.mf | 3 + .../Overiding2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Overiding2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Overiding2/nbproject/private/private.xml | 4 + .../Overiding2/nbproject/project.properties | 74 + .../Chapter2/Overiding2/nbproject/project.xml | 15 + .../Overiding2/src/overiding2/Overiding2.java | 54 + .../OCA7/Chapter2/OveridingIncorect/build.xml | 73 + .../Chapter2/OveridingIncorect/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../OveridingIncorect/nbproject/project.xml | 15 + .../overidingincorect/OveridingIncorect.java | 29 + .../OCA7/Chapter2/OveridingRules/build.xml | 73 + .../OCA7/Chapter2/OveridingRules/manifest.mf | 3 + .../OveridingRules/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../OveridingRules/nbproject/project.xml | 15 + .../src/overidingrules/OveridingRules.java | 29 + .../Chapter2/Overloaded/Overloaded1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/overloaded1/Overloaded1.class | Bin 0 -> 740 bytes .../build/classes/overloaded1/Super.class | Bin 0 -> 365 bytes .../Overloaded/Overloaded1/manifest.mf | 3 + .../Overloaded1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Overloaded1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Overloaded1/nbproject/private/private.xml | 4 + .../Overloaded1/nbproject/project.properties | 74 + .../Overloaded1/nbproject/project.xml | 15 + .../src/overloaded1/Overloaded1.java | 33 + .../Overloaded/Overloaded10/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/overloaded/Overloaded.class | Bin 0 -> 990 bytes .../Overloaded/Overloaded10/manifest.mf | 3 + .../Overloaded10/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../Overloaded10/nbproject/project.properties | 74 + .../Overloaded10/nbproject/project.xml | 15 + .../src/overloaded/Overloaded.java | 44 + .../Chapter2/Overloaded/Overloaded3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/overloaded3/Overloaded3.class | Bin 0 -> 847 bytes .../Overloaded/Overloaded3/manifest.mf | 3 + .../Overloaded3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Overloaded3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Overloaded3/nbproject/private/private.xml | 4 + .../Overloaded3/nbproject/project.properties | 74 + .../Overloaded3/nbproject/project.xml | 15 + .../src/overloaded3/Overloaded3.java | 33 + .../Overloaded/Overloading1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/overloading1/Overloading1.class | Bin 0 -> 998 bytes .../Overloaded/Overloading1/manifest.mf | 3 + .../Overloading1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Overloading1/nbproject/project.properties | 74 + .../Overloading1/nbproject/project.xml | 15 + .../src/overloading1/Overloading1.java | 42 + .../Overloaded/Overloading5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/overloading5/Overloading5.class | Bin 0 -> 918 bytes .../Overloaded/Overloading5/manifest.mf | 3 + .../Overloading5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Overloading5/nbproject/project.properties | 74 + .../Overloading5/nbproject/project.xml | 15 + .../src/overloading5/Overloading5.java | 35 + PrjJava/OCA7/Chapter2/Overloading/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/overloading/Overloading.class | Bin 0 -> 1028 bytes PrjJava/OCA7/Chapter2/Overloading/manifest.mf | 3 + .../Overloading/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Overloading/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Overloading/nbproject/private/private.xml | 4 + .../Overloading/nbproject/project.properties | 74 + .../Overloading/nbproject/project.xml | 15 + .../src/overloading/Overloading.java | 28 + PrjJava/OCA7/Chapter2/Overridding2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/overridding2/Felix.class | Bin 0 -> 347 bytes .../classes/overridding2/Overridding2.class | Bin 0 -> 680 bytes .../OCA7/Chapter2/Overridding2/manifest.mf | 3 + .../Overridding2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Overridding2/nbproject/project.properties | 74 + .../Overridding2/nbproject/project.xml | 15 + .../Overridding2/src/overridding2/Felix.java | 18 + .../src/overridding2/Overridding2.java | 29 + .../OverriddingCovariantParameter/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../OverriddingCovariantParameter.class | Bin 0 -> 1176 bytes .../OverriddingCovariantParameter/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../OverriddingCovariantParameter.java | 35 + .../OverriddingErrorCompiler/build.xml | 73 + .../OverriddingErrorCompiler/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../OverriddingErrorCompiler.java | 35 + PrjJava/OCA7/Chapter2/Override10/build.xml | 73 + PrjJava/OCA7/Chapter2/Override10/manifest.mf | 3 + .../Override10/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Override10/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Override10/nbproject/private/private.xml | 7 + .../Override10/nbproject/project.properties | 74 + .../Chapter2/Override10/nbproject/project.xml | 15 + .../Chapter2/Override10/src/override/Foo.java | 18 + .../Override10/src/override/Override.java | 35 + PrjJava/OCA7/Chapter2/Override3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/override3/Game.class | Bin 0 -> 533 bytes .../build/classes/override3/Override3.class | Bin 0 -> 734 bytes PrjJava/OCA7/Chapter2/Override3/manifest.mf | 3 + .../Override3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Override3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Override3/nbproject/private/private.xml | 4 + .../Override3/nbproject/project.properties | 74 + .../Chapter2/Override3/nbproject/project.xml | 15 + .../Override3/src/override3/Override3.java | 34 + PrjJava/OCA7/Chapter2/Overriding4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/overriding4/Overriding4.class | Bin 0 -> 816 bytes .../build/classes/overriding4/Utils.class | Bin 0 -> 445 bytes PrjJava/OCA7/Chapter2/Overriding4/manifest.mf | 3 + .../Overriding4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Overriding4/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../Overriding4/nbproject/private/private.xml | 4 + .../Overriding4/nbproject/project.properties | 76 + .../Overriding4/nbproject/project.xml | 15 + .../src/overriding4/Overriding4.java | 35 + PrjJava/OCA7/Chapter2/PaaByValue3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/paabyvalue3/PaaByValue3.class | Bin 0 -> 1037 bytes PrjJava/OCA7/Chapter2/PaaByValue3/manifest.mf | 3 + .../PaaByValue3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../PaaByValue3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../PaaByValue3/nbproject/private/private.xml | 4 + .../PaaByValue3/nbproject/project.properties | 74 + .../PaaByValue3/nbproject/project.xml | 15 + .../src/paabyvalue3/PaaByValue3.java | 34 + PrjJava/OCA7/Chapter2/Private1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/private1/Private1.class | Bin 0 -> 715 bytes .../build/classes/private1/Rocket.class | Bin 0 -> 480 bytes PrjJava/OCA7/Chapter2/Private1/manifest.mf | 3 + .../Private1/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Private1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Private1/nbproject/private/private.xml | 4 + .../Private1/nbproject/project.properties | 74 + .../Chapter2/Private1/nbproject/project.xml | 15 + .../Private1/src/private1/Private1.java | 31 + .../Private1/src/private1/Rocket.java | 18 + PrjJava/OCA7/Chapter2/Private2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Private2/build/classes/private2/A.class | Bin 0 -> 321 bytes .../Private2/build/classes/private2/B.class | Bin 0 -> 315 bytes .../Private2/build/classes/private2/C.class | Bin 0 -> 247 bytes .../build/classes/private2/Private2.class | Bin 0 -> 593 bytes PrjJava/OCA7/Chapter2/Private2/manifest.mf | 3 + .../Private2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Private2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Private2/nbproject/project.properties | 74 + .../Chapter2/Private2/nbproject/project.xml | 15 + .../Private2/src/private2/Private2.java | 43 + PrjJava/OCA7/Chapter2/PrivateClass1/build.xml | 73 + .../OCA7/Chapter2/PrivateClass1/manifest.mf | 3 + .../PrivateClass1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../PrivateClass1/nbproject/project.xml | 15 + .../src/privateclass1/PrivateClass1.java | 27 + PrjJava/OCA7/Chapter2/Protected1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/protected1/Felix.class | Bin 0 -> 379 bytes .../build/classes/protected1/Protected1.class | Bin 0 -> 739 bytes PrjJava/OCA7/Chapter2/Protected1/manifest.mf | 3 + .../Protected1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Protected1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Protected1/nbproject/private/private.xml | 7 + .../Protected1/nbproject/project.properties | 74 + .../Chapter2/Protected1/nbproject/project.xml | 15 + .../Protected1/src/protected1/Felix.java | 19 + .../Protected1/src/protected1/Protected1.java | 31 + PrjJava/OCA7/Chapter2/Protected2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/newpackage/NewClass.class | Bin 0 -> 605 bytes .../build/classes/protected2/NewClass.class | Bin 0 -> 619 bytes .../build/classes/protected2/Protected2.class | Bin 0 -> 464 bytes PrjJava/OCA7/Chapter2/Protected2/manifest.mf | 3 + .../Protected2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Protected2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Protected2/nbproject/private/private.xml | 7 + .../Protected2/nbproject/project.properties | 74 + .../Chapter2/Protected2/nbproject/project.xml | 15 + .../Protected2/src/newpackage/NewClass.java | 27 + .../Protected2/src/protected2/NewClass.java | 20 + .../Protected2/src/protected2/Protected2.java | 23 + PrjJava/OCA7/Chapter2/Question4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Question4/build/classes/com/Cat.class | Bin 0 -> 463 bytes .../build/classes/question4/Animal.class | Bin 0 -> 487 bytes .../build/classes/question4/Question4.class | Bin 0 -> 507 bytes PrjJava/OCA7/Chapter2/Question4/manifest.mf | 3 + .../Question4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Question4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Question4/nbproject/private/private.xml | 7 + .../Question4/nbproject/project.properties | 74 + .../Chapter2/Question4/nbproject/project.xml | 15 + .../OCA7/Chapter2/Question4/src/com/Cat.java | 18 + .../Question4/src/question4/Animal.java | 17 + .../Question4/src/question4/Question4.java | 25 + .../Chapter2/ReturnType/Return1/build.xml | 73 + .../Chapter2/ReturnType/Return1/manifest.mf | 3 + .../Return1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Return1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Return1/nbproject/private/private.xml | 4 + .../Return1/nbproject/project.properties | 74 + .../ReturnType/Return1/nbproject/project.xml | 15 + .../Return1/src/return1/Return1.java | 36 + .../Chapter2/ReturnType/ReturnValue/build.xml | 73 + .../classes/returnvalue/ReturnValue.class | Bin 0 -> 931 bytes .../ReturnType/ReturnValue/manifest.mf | 3 + .../ReturnValue/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ReturnValue/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ReturnValue/nbproject/project.properties | 74 + .../ReturnValue/nbproject/project.xml | 15 + .../src/returnvalue/ReturnValue.java | 45 + PrjJava/OCA7/Chapter2/ReturnType/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/returntype/ReturnType.class | Bin 0 -> 709 bytes PrjJava/OCA7/Chapter2/ReturnType/manifest.mf | 3 + .../ReturnType/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ReturnType/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ReturnType/nbproject/private/private.xml | 4 + .../ReturnType/nbproject/project.properties | 74 + .../Chapter2/ReturnType/nbproject/project.xml | 15 + .../Chapter2/ReturnType/returnData/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/returndata/ReturnData.class | Bin 0 -> 664 bytes .../ReturnType/returnData/manifest.mf | 3 + .../returnData/nbproject/build-impl.xml | 1450 +++++++++++++++++ .../returnData/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../returnData/nbproject/project.properties | 74 + .../returnData/nbproject/project.xml | 16 + .../returnData/src/returndata/ReturnData.java | 28 + .../ReturnType/src/returntype/ReturnType.java | 28 + .../OCA7/Chapter2/Static/Static1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/static1/Static1.class | Bin 0 -> 896 bytes .../OCA7/Chapter2/Static/Static1/manifest.mf | 3 + .../Static/Static1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Static1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Static1/nbproject/private/private.xml | 7 + .../Static1/nbproject/project.properties | 74 + .../Static/Static1/nbproject/project.xml | 15 + .../Static/Static1/src/static1/Static1.java | 34 + .../OCA7/Chapter2/Static/Static2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/static2/Animal.class | Bin 0 -> 459 bytes .../Static2/build/classes/static2/Dog.class | Bin 0 -> 458 bytes .../build/classes/static2/Static2.class | Bin 0 -> 620 bytes .../OCA7/Chapter2/Static/Static2/manifest.mf | 3 + .../Static/Static2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Static2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Static2/nbproject/private/private.xml | 7 + .../Static2/nbproject/project.properties | 74 + .../Static/Static2/nbproject/project.xml | 15 + .../Static/Static2/src/static2/Animal.java | 19 + .../Static/Static2/src/static2/Dog.java | 19 + .../Static/Static2/src/static2/Static2.java | 28 + .../OCA7/Chapter2/Static/Static3/build.xml | 73 + .../Static3/build/classes/static3/Frog.class | Bin 0 -> 357 bytes .../build/classes/static3/Static3.class | Bin 0 -> 831 bytes .../OCA7/Chapter2/Static/Static3/manifest.mf | 3 + .../Static/Static3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Static3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Static3/nbproject/private/private.xml | 7 + .../Static3/nbproject/project.properties | 74 + .../Static/Static3/nbproject/project.xml | 15 + .../Static/Static3/src/static3/Frog.java | 19 + .../Static/Static3/src/static3/Static3.java | 25 + .../OCA7/Chapter2/Static/Static4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/static4/Static4.class | Bin 0 -> 669 bytes .../OCA7/Chapter2/Static/Static4/manifest.mf | 3 + .../Static/Static4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Static4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Static4/nbproject/private/private.xml | 7 + .../Static4/nbproject/project.properties | 74 + .../Static/Static4/nbproject/project.xml | 15 + .../Static/Static4/src/static4/Static4.java | 32 + .../OCA7/Chapter2/Static/Static5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/static5/Static5.class | Bin 0 -> 758 bytes .../OCA7/Chapter2/Static/Static5/manifest.mf | 3 + .../Static/Static5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Static5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Static5/nbproject/private/private.xml | 7 + .../Static5/nbproject/project.properties | 74 + .../Static/Static5/nbproject/project.xml | 15 + .../Static/Static5/src/static5/Static5.java | 29 + .../OCA7/Chapter2/Static/Static6/build.xml | 73 + .../OCA7/Chapter2/Static/Static6/manifest.mf | 3 + .../Static/Static6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Static6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Static6/nbproject/private/private.xml | 4 + .../Static6/nbproject/project.properties | 74 + .../Static/Static6/nbproject/project.xml | 15 + .../Static/Static6/src/static6/A.java | 17 + .../Static/Static6/src/static6/B.java | 14 + .../Static/Static6/src/static6/Static6.java | 25 + .../OCA7/Chapter2/Static/Static7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/static7/Static7.class | Bin 0 -> 569 bytes .../OCA7/Chapter2/Static/Static7/manifest.mf | 3 + .../Static/Static7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Static7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Static7/nbproject/private/private.xml | 7 + .../Static7/nbproject/project.properties | 74 + .../Static/Static7/nbproject/project.xml | 15 + .../Static/Static7/src/static7/Static7.java | 24 + .../Chapter2/Static/StaticBlock1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/staticblock1/StaticBlock1.class | Bin 0 -> 915 bytes .../Chapter2/Static/StaticBlock1/manifest.mf | 3 + .../StaticBlock1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../StaticBlock1/nbproject/project.properties | 74 + .../Static/StaticBlock1/nbproject/project.xml | 15 + .../src/staticblock1/StaticBlock1.java | 30 + .../Chapter2/Static/StaticBlock2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/staticblock2/Init.class | Bin 0 -> 765 bytes .../classes/staticblock2/StaticBlock2.class | Bin 0 -> 476 bytes .../Chapter2/Static/StaticBlock2/manifest.mf | 3 + .../StaticBlock2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../StaticBlock2/nbproject/project.properties | 74 + .../Static/StaticBlock2/nbproject/project.xml | 15 + .../StaticBlock2/src/staticblock2/Init.java | 31 + .../src/staticblock2/StaticBlock2.java | 23 + .../Chapter2/Static/StaticBlock3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/staticblock3/StaticBlock3.class | Bin 0 -> 847 bytes .../Chapter2/Static/StaticBlock3/manifest.mf | 3 + .../StaticBlock3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../StaticBlock3/nbproject/project.properties | 74 + .../Static/StaticBlock3/nbproject/project.xml | 15 + .../src/staticblock3/StaticBlock3.java | 26 + .../Chapter2/Static/StaticBlock4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/staticblock4/StaticBlock4.class | Bin 0 -> 677 bytes .../Chapter2/Static/StaticBlock4/manifest.mf | 3 + .../StaticBlock4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../StaticBlock4/nbproject/project.properties | 74 + .../Static/StaticBlock4/nbproject/project.xml | 15 + .../src/staticblock4/StaticBlock4.java | 28 + .../Chapter2/Static/StaticBlock5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/staticblock5/StaticBlock5.class | Bin 0 -> 1009 bytes .../Chapter2/Static/StaticBlock5/manifest.mf | 3 + .../StaticBlock5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../StaticBlock5/nbproject/project.properties | 74 + .../Static/StaticBlock5/nbproject/project.xml | 15 + .../src/staticblock5/StaticBlock5.java | 31 + .../Chapter2/Static/StaticBlock6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/staticblock6/StaticBlock6.class | Bin 0 -> 996 bytes .../Chapter2/Static/StaticBlock6/manifest.mf | 3 + .../StaticBlock6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../StaticBlock6/nbproject/project.properties | 74 + .../Static/StaticBlock6/nbproject/project.xml | 15 + .../src/staticblock6/StaticBlock6.java | 42 + .../Chapter2/Static/StaticBlock9/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/staticblock9/StaticBlock9.class | Bin 0 -> 763 bytes .../Chapter2/Static/StaticBlock9/manifest.mf | 3 + .../StaticBlock9/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../StaticBlock9/nbproject/project.properties | 74 + .../Static/StaticBlock9/nbproject/project.xml | 15 + .../src/staticblock9/StaticBlock9.java | 33 + .../OCA7/Chapter2/Static/StaticCall/build.xml | 73 + .../Chapter2/Static/StaticCall/manifest.mf | 3 + .../StaticCall/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../StaticCall/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StaticCall/nbproject/private/private.xml | 7 + .../StaticCall/nbproject/project.properties | 74 + .../Static/StaticCall/nbproject/project.xml | 15 + .../StaticCall/src/staticcall/StaticCall.java | 37 + .../Chapter2/Static/StaticField/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/staticfield/StaticField.class | Bin 0 -> 642 bytes .../build/classes/staticfield/Sub.class | Bin 0 -> 506 bytes .../build/classes/staticfield/Super.class | Bin 0 -> 380 bytes .../Chapter2/Static/StaticField/manifest.mf | 3 + .../StaticField/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../StaticField/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StaticField/nbproject/private/private.xml | 4 + .../StaticField/nbproject/project.properties | 74 + .../Static/StaticField/nbproject/project.xml | 15 + .../src/staticfield/StaticField.java | 37 + .../Chapter2/Static/Staticblock7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/staticblock7/Staticblock7.class | Bin 0 -> 1064 bytes .../Chapter2/Static/Staticblock7/manifest.mf | 3 + .../Staticblock7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Staticblock7/nbproject/project.properties | 74 + .../Static/Staticblock7/nbproject/project.xml | 15 + .../src/staticblock7/Staticblock7.java | 36 + .../Chapter2/Static/Staticblock8/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/staticblock8/Staticblock8.class | Bin 0 -> 850 bytes .../Chapter2/Static/Staticblock8/manifest.mf | 3 + .../Staticblock8/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Staticblock8/nbproject/project.properties | 74 + .../Static/Staticblock8/nbproject/project.xml | 15 + .../src/staticblock8/Staticblock8.java | 33 + PrjJava/OCA7/Chapter2/Super1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/super1/AlternateFuel.class | Bin 0 -> 332 bytes .../Super1/build/classes/super1/Fuel.class | Bin 0 -> 310 bytes .../Super1/build/classes/super1/Super1.class | Bin 0 -> 595 bytes PrjJava/OCA7/Chapter2/Super1/manifest.mf | 3 + .../Chapter2/Super1/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Super1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Super1/nbproject/private/private.xml | 7 + .../Super1/nbproject/project.properties | 74 + .../Chapter2/Super1/nbproject/project.xml | 15 + .../Super1/src/super1/AlternateFuel.java | 18 + .../OCA7/Chapter2/Super1/src/super1/Fuel.java | 19 + .../Chapter2/Super1/src/super1/Super1.java | 28 + PrjJava/OCA7/Chapter2/Super2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Super2/build/classes/super2/Super2.class | Bin 0 -> 592 bytes PrjJava/OCA7/Chapter2/Super2/manifest.mf | 3 + .../Chapter2/Super2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Super2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Super2/nbproject/private/private.xml | 4 + .../Super2/nbproject/project.properties | 74 + .../Chapter2/Super2/nbproject/project.xml | 15 + .../Chapter2/Super2/src/super2/Super2.java | 30 + PrjJava/OCA7/Chapter2/Super3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Super3/build/classes/super3/A.class | Bin 0 -> 391 bytes .../Super3/build/classes/super3/B.class | Bin 0 -> 360 bytes .../Super3/build/classes/super3/C.class | Bin 0 -> 362 bytes .../Super3/build/classes/super3/Super3.class | Bin 0 -> 603 bytes PrjJava/OCA7/Chapter2/Super3/manifest.mf | 3 + .../Chapter2/Super3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Super3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Super3/nbproject/private/private.xml | 4 + .../Super3/nbproject/project.properties | 74 + .../Chapter2/Super3/nbproject/project.xml | 15 + .../Chapter2/Super3/src/super3/Super3.java | 52 + PrjJava/OCA7/Chapter2/Super4/build.xml | 73 + PrjJava/OCA7/Chapter2/Super4/manifest.mf | 3 + .../Chapter2/Super4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Super4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Super4/nbproject/private/private.xml | 7 + .../Super4/nbproject/project.properties | 74 + .../Chapter2/Super4/nbproject/project.xml | 15 + .../Chapter2/Super4/src/super4/Super4.java | 24 + PrjJava/OCA7/Chapter2/Super5/build.xml | 73 + PrjJava/OCA7/Chapter2/Super5/manifest.mf | 3 + .../Chapter2/Super5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Super5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Super5/nbproject/private/private.xml | 4 + .../Super5/nbproject/project.properties | 74 + .../Chapter2/Super5/nbproject/project.xml | 15 + .../Chapter2/Super5/src/super5/Super5.java | 27 + PrjJava/OCA7/Chapter2/This1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../This1/build/classes/this1/Test.class | Bin 0 -> 674 bytes .../This1/build/classes/this1/This1.class | Bin 0 -> 403 bytes PrjJava/OCA7/Chapter2/This1/manifest.mf | 3 + .../Chapter2/This1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../This1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../This1/nbproject/private/private.xml | 7 + .../This1/nbproject/project.properties | 74 + .../OCA7/Chapter2/This1/nbproject/project.xml | 15 + .../OCA7/Chapter2/This1/src/this1/Test.java | 23 + .../OCA7/Chapter2/This1/src/this1/This1.java | 22 + PrjJava/OCA7/Chapter2/This2/build.xml | 73 + PrjJava/OCA7/Chapter2/This2/manifest.mf | 3 + .../Chapter2/This2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../This2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../This2/nbproject/private/private.xml | 7 + .../This2/nbproject/project.properties | 74 + .../OCA7/Chapter2/This2/nbproject/project.xml | 15 + .../OCA7/Chapter2/This2/src/this2/This2.java | 21 + PrjJava/OCA7/Chapter2/Types/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Types/build/classes/types/Types.class | Bin 0 -> 645 bytes PrjJava/OCA7/Chapter2/Types/manifest.mf | 3 + .../Chapter2/Types/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Types/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Types/nbproject/private/private.xml | 4 + .../Types/nbproject/project.properties | 74 + .../OCA7/Chapter2/Types/nbproject/project.xml | 15 + .../OCA7/Chapter2/Types/src/types/Types.java | 31 + PrjJava/OCA7/Chapter2/this3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../this3/build/classes/this3/This3.class | Bin 0 -> 795 bytes PrjJava/OCA7/Chapter2/this3/manifest.mf | 3 + .../Chapter2/this3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../this3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../this3/nbproject/private/private.xml | 7 + .../this3/nbproject/project.properties | 74 + .../OCA7/Chapter2/this3/nbproject/project.xml | 15 + .../OCA7/Chapter2/this3/src/this3/This3.java | 36 + PrjJava/OCA7/Chapter3/Final1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Final1/build/classes/final1/Final1.class | Bin 0 -> 905 bytes PrjJava/OCA7/Chapter3/Final1/manifest.mf | 3 + .../Chapter3/Final1/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Final1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Final1/nbproject/private/private.xml | 7 + .../Final1/nbproject/project.properties | 74 + .../Chapter3/Final1/nbproject/project.xml | 15 + .../Chapter3/Final1/src/final1/Final1.java | 37 + PrjJava/OCA7/Chapter3/Final2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Final2/build/classes/final2/Final2.class | Bin 0 -> 508 bytes PrjJava/OCA7/Chapter3/Final2/manifest.mf | 3 + .../Chapter3/Final2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Final2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Final2/nbproject/private/private.xml | 7 + .../Final2/nbproject/project.properties | 74 + .../Chapter3/Final2/nbproject/project.xml | 15 + .../Chapter3/Final2/src/final2/Final2.java | 24 + PrjJava/OCA7/Chapter3/Final3/build.xml | 73 + PrjJava/OCA7/Chapter3/Final3/manifest.mf | 3 + .../Chapter3/Final3/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Final3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Final3/nbproject/private/private.xml | 7 + .../Final3/nbproject/project.properties | 74 + .../Chapter3/Final3/nbproject/project.xml | 15 + .../Chapter3/Final3/src/final3/Final3.java | 30 + PrjJava/OCA7/Chapter3/Final4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Final4/build/classes/final4/Final4.class | Bin 0 -> 413 bytes PrjJava/OCA7/Chapter3/Final4/manifest.mf | 3 + .../Chapter3/Final4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Final4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Final4/nbproject/private/private.xml | 7 + .../Final4/nbproject/project.properties | 74 + .../Chapter3/Final4/nbproject/project.xml | 15 + .../Chapter3/Final4/src/final4/Final4.java | 28 + PrjJava/OCA7/Chapter3/Final5/build.xml | 73 + PrjJava/OCA7/Chapter3/Final5/manifest.mf | 3 + .../Chapter3/Final5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Final5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Final5/nbproject/private/private.xml | 7 + .../Final5/nbproject/project.properties | 74 + .../Chapter3/Final5/nbproject/project.xml | 15 + .../Chapter3/Final5/src/final5/Final5.java | 21 + .../OCA7/Chapter3/FinalDeclaring/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../finaldeclaring/FinalDeclaring.class | Bin 0 -> 634 bytes .../OCA7/Chapter3/FinalDeclaring/manifest.mf | 3 + .../FinalDeclaring/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../FinalDeclaring/nbproject/project.xml | 15 + .../src/finaldeclaring/FinalDeclaring.java | 29 + .../OCA7/Chapter3/FinalDeclaring1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../finaldeclaring1/FinalDeclaring1.class | Bin 0 -> 624 bytes .../OCA7/Chapter3/FinalDeclaring1/manifest.mf | 3 + .../FinalDeclaring1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../FinalDeclaring1/nbproject/project.xml | 15 + .../src/finaldeclaring1/FinalDeclaring1.java | 28 + .../Chapter3/FinalInitialization/build.xml | 73 + .../Chapter3/FinalInitialization/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../FinalInitialization/nbproject/project.xml | 15 + .../FinalInitialization.java | 40 + PrjJava/OCA7/Chapter3/Question16/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/question16/Question16.class | Bin 0 -> 715 bytes .../build/classes/question16/SubClass.class | Bin 0 -> 855 bytes .../build/classes/question16/SuperClass.class | Bin 0 -> 881 bytes PrjJava/OCA7/Chapter3/Question16/manifest.mf | 3 + .../Question16/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Question16/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Question16/nbproject/private/private.xml | 7 + .../Question16/nbproject/project.properties | 74 + .../Chapter3/Question16/nbproject/project.xml | 15 + .../Question16/src/question16/Question16.java | 25 + .../Question16/src/question16/SubClass.java | 21 + .../Question16/src/question16/SuperClass.java | 21 + PrjJava/OCA7/Chapter3/Shadowing/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/shadowing/Shadowing.class | Bin 0 -> 786 bytes PrjJava/OCA7/Chapter3/Shadowing/manifest.mf | 3 + .../Shadowing/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Shadowing/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Shadowing/nbproject/private/private.xml | 7 + .../Shadowing/nbproject/project.properties | 74 + .../Chapter3/Shadowing/nbproject/project.xml | 15 + .../Shadowing/src/shadowing/Shadowing.java | 32 + PrjJava/OCA7/Chapter4/Addboolean/build.xml | 73 + PrjJava/OCA7/Chapter4/Addboolean/manifest.mf | 3 + .../Addboolean/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Addboolean/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Addboolean/nbproject/private/private.xml | 4 + .../Addboolean/nbproject/project.properties | 74 + .../Chapter4/Addboolean/nbproject/project.xml | 15 + .../Addboolean/src/addboolean/Addboolean.java | 24 + PrjJava/OCA7/Chapter4/Asigment1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/asigment1/Asigment1.class | Bin 0 -> 612 bytes PrjJava/OCA7/Chapter4/Asigment1/manifest.mf | 3 + .../Asigment1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Asigment1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Asigment1/nbproject/private/private.xml | 4 + .../Asigment1/nbproject/project.properties | 74 + .../Chapter4/Asigment1/nbproject/project.xml | 15 + .../Asigment1/src/asigment1/Asigment1.java | 26 + PrjJava/OCA7/Chapter4/AsigmentTrick/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/asigmenttrick/AsigmentTrick.class | Bin 0 -> 636 bytes .../OCA7/Chapter4/AsigmentTrick/manifest.mf | 3 + .../AsigmentTrick/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../AsigmentTrick/nbproject/project.xml | 15 + .../src/asigmenttrick/AsigmentTrick.java | 24 + PrjJava/OCA7/Chapter4/Byte1/build.xml | 73 + PrjJava/OCA7/Chapter4/Byte1/manifest.mf | 3 + .../Chapter4/Byte1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Byte1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Byte1/nbproject/private/private.xml | 7 + .../Byte1/nbproject/project.properties | 74 + .../OCA7/Chapter4/Byte1/nbproject/project.xml | 15 + .../OCA7/Chapter4/Byte1/src/byte1/Byte1.java | 27 + PrjJava/OCA7/Chapter4/Byte2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Byte2/build/classes/byte2/Byte2.class | Bin 0 -> 783 bytes PrjJava/OCA7/Chapter4/Byte2/manifest.mf | 3 + .../Chapter4/Byte2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Byte2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Byte2/nbproject/private/private.xml | 4 + .../Byte2/nbproject/project.properties | 74 + .../OCA7/Chapter4/Byte2/nbproject/project.xml | 15 + .../OCA7/Chapter4/Byte2/src/byte2/Byte2.java | 25 + PrjJava/OCA7/Chapter4/ByteType/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/bytetype/ByteType.class | Bin 0 -> 676 bytes PrjJava/OCA7/Chapter4/ByteType/manifest.mf | 3 + .../ByteType/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ByteType/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ByteType/nbproject/private/private.xml | 7 + .../ByteType/nbproject/project.properties | 74 + .../Chapter4/ByteType/nbproject/project.xml | 15 + .../ByteType/src/bytetype/ByteType.java | 30 + PrjJava/OCA7/Chapter4/Chapter4_10/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/chapter4_10/Boat.class | Bin 0 -> 287 bytes .../classes/chapter4_10/Chapter4_10.class | Bin 0 -> 1138 bytes .../build/classes/chapter4_10/SpeedBoat.class | Bin 0 -> 299 bytes .../build/classes/chapter4_10/Toy.class | Bin 0 -> 99 bytes .../build/classes/chapter4_10/Vessel.class | Bin 0 -> 105 bytes PrjJava/OCA7/Chapter4/Chapter4_10/manifest.mf | 3 + .../Chapter4_10/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter4_10/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter4_10/nbproject/private/private.xml | 7 + .../Chapter4_10/nbproject/project.properties | 74 + .../Chapter4_10/nbproject/project.xml | 15 + .../Chapter4_10/src/chapter4_10/Boat.java | 14 + .../src/chapter4_10/Chapter4_10.java | 30 + .../src/chapter4_10/SpeedBoat.java | 14 + .../Chapter4_10/src/chapter4_10/Toy.java | 14 + .../Chapter4_10/src/chapter4_10/Vessel.java | 14 + PrjJava/OCA7/Chapter4/Chapter4_2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/chapter4_2/Chapter4_2.class | Bin 0 -> 671 bytes PrjJava/OCA7/Chapter4/Chapter4_2/manifest.mf | 3 + .../Chapter4_2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter4_2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter4_2/nbproject/private/private.xml | 4 + .../Chapter4_2/nbproject/project.properties | 74 + .../Chapter4/Chapter4_2/nbproject/project.xml | 15 + .../Chapter4_2/src/chapter4_2/Chapter4_2.java | 26 + PrjJava/OCA7/Chapter4/Chapter4_3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/chapter4_3/Chapter4_3.class | Bin 0 -> 880 bytes PrjJava/OCA7/Chapter4/Chapter4_3/manifest.mf | 3 + .../Chapter4_3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter4_3/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../Chapter4_3/nbproject/private/private.xml | 7 + .../Chapter4_3/nbproject/project.properties | 76 + .../Chapter4/Chapter4_3/nbproject/project.xml | 15 + .../Chapter4_3/src/chapter4_3/Chapter4_3.java | 27 + PrjJava/OCA7/Chapter4/Chapter4_4/build.xml | 73 + .../build/classes/chapter4_4/Chapter4_4.class | Bin 0 -> 1172 bytes PrjJava/OCA7/Chapter4/Chapter4_4/manifest.mf | 3 + .../Chapter4_4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter4_4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter4_4/nbproject/private/private.xml | 4 + .../Chapter4_4/nbproject/project.properties | 74 + .../Chapter4/Chapter4_4/nbproject/project.xml | 15 + .../Chapter4_4/src/chapter4_4/Chapter4_4.java | 27 + PrjJava/OCA7/Chapter4/Chapter4_5/build.xml | 73 + .../build/classes/chapter4_5/Chapter4_5.class | Bin 0 -> 1232 bytes PrjJava/OCA7/Chapter4/Chapter4_5/manifest.mf | 3 + .../Chapter4_5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter4_5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter4_5/nbproject/private/private.xml | 7 + .../Chapter4_5/nbproject/project.properties | 74 + .../Chapter4/Chapter4_5/nbproject/project.xml | 15 + .../Chapter4_5/src/chapter4_5/Chapter4_5.java | 34 + PrjJava/OCA7/Chapter4/Chapter4_6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/chapter4_6/Chapter4_6.class | Bin 0 -> 841 bytes PrjJava/OCA7/Chapter4/Chapter4_6/manifest.mf | 3 + .../Chapter4_6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter4_6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter4_6/nbproject/private/private.xml | 7 + .../Chapter4_6/nbproject/project.properties | 74 + .../Chapter4/Chapter4_6/nbproject/project.xml | 15 + .../Chapter4_6/src/chapter4_6/Chapter4_6.java | 38 + PrjJava/OCA7/Chapter4/Chapter4_7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/chapter4_7/Chapter4_7$Days.class | Bin 0 -> 1249 bytes .../build/classes/chapter4_7/Chapter4_7.class | Bin 0 -> 1153 bytes PrjJava/OCA7/Chapter4/Chapter4_7/manifest.mf | 3 + .../Chapter4_7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter4_7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter4_7/nbproject/private/private.xml | 4 + .../Chapter4_7/nbproject/project.properties | 74 + .../Chapter4/Chapter4_7/nbproject/project.xml | 15 + .../Chapter4_7/src/chapter4_7/Chapter4_7.java | 33 + PrjJava/OCA7/Chapter4/Chapter4_8/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/chapter4_8/Chapter4_8.class | Bin 0 -> 948 bytes PrjJava/OCA7/Chapter4/Chapter4_8/manifest.mf | 3 + .../Chapter4_8/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter4_8/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter4_8/nbproject/private/private.xml | 7 + .../Chapter4_8/nbproject/project.properties | 74 + .../Chapter4/Chapter4_8/nbproject/project.xml | 15 + .../Chapter4_8/src/chapter4_8/Chapter4_8.java | 29 + PrjJava/OCA7/Chapter4/Char1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Char1/build/classes/char1/Char1.class | Bin 0 -> 578 bytes PrjJava/OCA7/Chapter4/Char1/manifest.mf | 3 + .../Chapter4/Char1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Char1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Char1/nbproject/private/private.xml | 7 + .../Char1/nbproject/project.properties | 74 + .../OCA7/Chapter4/Char1/nbproject/project.xml | 15 + .../OCA7/Chapter4/Char1/src/char1/Char1.java | 24 + PrjJava/OCA7/Chapter4/Char2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Char2/build/classes/char2/TestChar.class | Bin 0 -> 1071 bytes PrjJava/OCA7/Chapter4/Char2/manifest.mf | 3 + .../Chapter4/Char2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Char2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Char2/nbproject/private/private.xml | 4 + .../Char2/nbproject/project.properties | 74 + .../OCA7/Chapter4/Char2/nbproject/project.xml | 15 + .../Chapter4/Char2/src/char2/TestChar.java | 31 + PrjJava/OCA7/Chapter4/Char3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Char3/build/classes/char3/Char3.class | Bin 0 -> 573 bytes PrjJava/OCA7/Chapter4/Char3/manifest.mf | 3 + .../Chapter4/Char3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Char3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Char3/nbproject/private/private.xml | 7 + .../Char3/nbproject/project.properties | 74 + .../OCA7/Chapter4/Char3/nbproject/project.xml | 15 + .../OCA7/Chapter4/Char3/src/char3/Char3.java | 28 + PrjJava/OCA7/Chapter4/CharAdd/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/charadd/CharAdd.class | Bin 0 -> 506 bytes PrjJava/OCA7/Chapter4/CharAdd/manifest.mf | 3 + .../Chapter4/CharAdd/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../CharAdd/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../CharAdd/nbproject/private/private.xml | 4 + .../CharAdd/nbproject/project.properties | 74 + .../Chapter4/CharAdd/nbproject/project.xml | 15 + .../Chapter4/CharAdd/src/charadd/CharAdd.java | 22 + PrjJava/OCA7/Chapter4/CompareDouble/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/comparedouble/CompareDouble.class | Bin 0 -> 546 bytes .../OCA7/Chapter4/CompareDouble/manifest.mf | 3 + .../CompareDouble/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../CompareDouble/nbproject/project.xml | 15 + .../src/comparedouble/CompareDouble.java | 23 + .../OCA7/Chapter4/ComparePrimitives/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../compareprimitives/ComparePrimitives.class | Bin 0 -> 672 bytes .../Chapter4/ComparePrimitives/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../ComparePrimitives/nbproject/project.xml | 15 + .../compareprimitives/ComparePrimitives.java | 25 + PrjJava/OCA7/Chapter4/Converion/build.xml | 73 + PrjJava/OCA7/Chapter4/Converion/manifest.mf | 3 + .../Converion/nbproject/build-impl.xml | 1450 +++++++++++++++++ .../Converion/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 6 + .../Converion/nbproject/private/private.xml | 7 + .../Converion/nbproject/project.properties | 76 + .../Chapter4/Converion/nbproject/project.xml | 16 + .../Converion/src/converion/Converion.class | Bin 0 -> 674 bytes .../Converion/src/converion/Converion.java | 27 + PrjJava/OCA7/Chapter4/ConvertChar/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/convertchar/ConvertChar.class | Bin 0 -> 1040 bytes PrjJava/OCA7/Chapter4/ConvertChar/manifest.mf | 3 + .../ConvertChar/nbproject/build-impl.xml | 1449 ++++++++++++++++ .../ConvertChar/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ConvertChar/nbproject/private/private.xml | 4 + .../ConvertChar/nbproject/project.properties | 74 + .../ConvertChar/nbproject/project.xml | 16 + .../src/convertchar/ConvertChar.java | 32 + PrjJava/OCA7/Chapter4/Decrement/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/decrement/Decrement.class | Bin 0 -> 582 bytes PrjJava/OCA7/Chapter4/Decrement/manifest.mf | 3 + .../Decrement/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Decrement/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Decrement/nbproject/private/private.xml | 4 + .../Decrement/nbproject/project.properties | 74 + .../Chapter4/Decrement/nbproject/project.xml | 15 + .../Decrement/src/decrement/Decrement.java | 26 + PrjJava/OCA7/Chapter4/DecrementChar/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/decrementchar/DecrementChar.class | Bin 0 -> 568 bytes .../OCA7/Chapter4/DecrementChar/manifest.mf | 3 + .../DecrementChar/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../DecrementChar/nbproject/project.xml | 15 + .../src/decrementchar/DecrementChar.java | 24 + PrjJava/OCA7/Chapter4/Division/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/division/Division.class | Bin 0 -> 737 bytes PrjJava/OCA7/Chapter4/Division/manifest.mf | 3 + .../Division/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Division/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Division/nbproject/private/private.xml | 4 + .../Division/nbproject/project.properties | 74 + .../Chapter4/Division/nbproject/project.xml | 15 + .../Division/src/division/Division.java | 28 + PrjJava/OCA7/Chapter4/Equals1/build.xml | 73 + PrjJava/OCA7/Chapter4/Equals1/manifest.mf | 3 + .../Chapter4/Equals1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Equals1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Equals1/nbproject/private/private.xml | 7 + .../Equals1/nbproject/project.properties | 74 + .../Chapter4/Equals1/nbproject/project.xml | 15 + .../Chapter4/Equals1/src/equals1/Equals1.java | 24 + PrjJava/OCA7/Chapter4/Equals2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/equals2/Equals2.class | Bin 0 -> 790 bytes PrjJava/OCA7/Chapter4/Equals2/manifest.mf | 3 + .../Chapter4/Equals2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Equals2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Equals2/nbproject/private/private.xml | 7 + .../Equals2/nbproject/project.properties | 74 + .../Chapter4/Equals2/nbproject/project.xml | 15 + .../Chapter4/Equals2/src/equals2/Equals2.java | 30 + .../OCA7/Chapter4/EvaluateOperands/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../evaluateoperands/EvaluateOperands.class | Bin 0 -> 897 bytes .../Chapter4/EvaluateOperands/manifest.mf | 3 + .../EvaluateOperands/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../EvaluateOperands/nbproject/project.xml | 15 + .../evaluateoperands/EvaluateOperands.java | 33 + PrjJava/OCA7/Chapter4/Float1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Float1/build/classes/float1/Float1.class | Bin 0 -> 843 bytes PrjJava/OCA7/Chapter4/Float1/manifest.mf | 3 + .../Chapter4/Float1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Float1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Float1/nbproject/private/private.xml | 7 + .../Float1/nbproject/project.properties | 74 + .../Chapter4/Float1/nbproject/project.xml | 15 + .../Chapter4/Float1/src/float1/Float1.java | 36 + PrjJava/OCA7/Chapter4/Hex1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Hex1/build/classes/hex1/Hex1.class | Bin 0 -> 819 bytes PrjJava/OCA7/Chapter4/Hex1/manifest.mf | 3 + .../Chapter4/Hex1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Hex1/nbproject/genfiles.properties | 8 + .../Hex1/nbproject/private/private.properties | 2 + .../Hex1/nbproject/private/private.xml | 7 + .../Hex1/nbproject/project.properties | 74 + .../OCA7/Chapter4/Hex1/nbproject/project.xml | 15 + PrjJava/OCA7/Chapter4/Hex1/src/hex1/Hex1.java | 26 + PrjJava/OCA7/Chapter4/HexTest/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/hextest/HexTest.class | Bin 0 -> 934 bytes PrjJava/OCA7/Chapter4/HexTest/manifest.mf | 3 + .../Chapter4/HexTest/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../HexTest/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../HexTest/nbproject/private/private.xml | 7 + .../HexTest/nbproject/project.properties | 74 + .../Chapter4/HexTest/nbproject/project.xml | 15 + .../Chapter4/HexTest/src/hextest/HexTest.java | 27 + PrjJava/OCA7/Chapter4/Infinity/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/infinity/Infinity.class | Bin 0 -> 595 bytes PrjJava/OCA7/Chapter4/Infinity/manifest.mf | 3 + .../Infinity/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Infinity/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Infinity/nbproject/private/private.xml | 7 + .../Infinity/nbproject/project.properties | 74 + .../Chapter4/Infinity/nbproject/project.xml | 15 + .../Infinity/src/infinity/Infinity.java | 24 + PrjJava/OCA7/Chapter4/Infinity1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/infinity1/Infinity1.class | Bin 0 -> 589 bytes PrjJava/OCA7/Chapter4/Infinity1/manifest.mf | 3 + .../Infinity1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Infinity1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Infinity1/nbproject/private/private.xml | 4 + .../Infinity1/nbproject/project.properties | 74 + .../Chapter4/Infinity1/nbproject/project.xml | 15 + .../Infinity1/src/infinity1/Infinity1.java | 24 + PrjJava/OCA7/Chapter4/Infinity2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/infinity2/Infinity2.class | Bin 0 -> 548 bytes PrjJava/OCA7/Chapter4/Infinity2/manifest.mf | 3 + .../Infinity2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Infinity2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Infinity2/nbproject/project.properties | 74 + .../Chapter4/Infinity2/nbproject/project.xml | 15 + .../Infinity2/src/infinity2/Infinity2.java | 23 + PrjJava/OCA7/Chapter4/Infinity3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/infinity3/Infinity3.class | Bin 0 -> 698 bytes PrjJava/OCA7/Chapter4/Infinity3/manifest.mf | 3 + .../Infinity3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Infinity3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Infinity3/nbproject/private/private.xml | 4 + .../Infinity3/nbproject/project.properties | 74 + .../Chapter4/Infinity3/nbproject/project.xml | 15 + .../Infinity3/src/infinity3/Infinity3.java | 30 + PrjJava/OCA7/Chapter4/Infinity4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/infinity4/Infinity4.class | Bin 0 -> 1496 bytes PrjJava/OCA7/Chapter4/Infinity4/manifest.mf | 3 + .../Infinity4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Infinity4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Infinity4/nbproject/private/private.xml | 7 + .../Infinity4/nbproject/project.properties | 74 + .../Chapter4/Infinity4/nbproject/project.xml | 15 + .../Infinity4/src/infinity4/Infinity4.java | 30 + PrjJava/OCA7/Chapter4/Infnity1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/infnity1/Infnity1.class | Bin 0 -> 547 bytes PrjJava/OCA7/Chapter4/Infnity1/manifest.mf | 3 + .../Infnity1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Infnity1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Infnity1/nbproject/project.properties | 74 + .../Chapter4/Infnity1/nbproject/project.xml | 15 + .../Infnity1/src/infnity1/Infnity1.java | 23 + PrjJava/OCA7/Chapter4/Inheritance/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/inheritance/A.class | Bin 0 -> 499 bytes .../classes/inheritance/Inheritance.class | Bin 0 -> 692 bytes PrjJava/OCA7/Chapter4/Inheritance/manifest.mf | 3 + .../Inheritance/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Inheritance/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Inheritance/nbproject/private/private.xml | 4 + .../Inheritance/nbproject/project.properties | 74 + .../Inheritance/nbproject/project.xml | 15 + .../src/inheritance/Inheritance.java | 41 + PrjJava/OCA7/Chapter4/Inheritance1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/inheritance1/Inheritance1.class | Bin 0 -> 607 bytes .../build/classes/inheritance1/Sub.class | Bin 0 -> 470 bytes .../build/classes/inheritance1/Super.class | Bin 0 -> 383 bytes .../OCA7/Chapter4/Inheritance1/manifest.mf | 3 + .../Inheritance1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../Inheritance1/nbproject/project.properties | 74 + .../Inheritance1/nbproject/project.xml | 15 + .../src/inheritance1/Inheritance1.java | 28 + PrjJava/OCA7/Chapter4/Inheritance2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/inheritance2/Inheritance2.class | Bin 0 -> 633 bytes .../build/classes/inheritance2/X.class | Bin 0 -> 477 bytes .../build/classes/inheritance2/Y.class | Bin 0 -> 475 bytes .../build/classes/inheritance2/Z.class | Bin 0 -> 475 bytes .../OCA7/Chapter4/Inheritance2/manifest.mf | 3 + .../Inheritance2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Inheritance2/nbproject/project.properties | 74 + .../Inheritance2/nbproject/project.xml | 15 + .../src/inheritance2/Inheritance2.java | 49 + PrjJava/OCA7/Chapter4/InstanceOf2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/instanceof2/Bat.class | Bin 0 -> 266 bytes .../build/classes/instanceof2/Bird.class | Bin 0 -> 293 bytes .../build/classes/instanceof2/Eagle.class | Bin 0 -> 270 bytes .../build/classes/instanceof2/Flyer.class | Bin 0 -> 109 bytes .../classes/instanceof2/InstanceOf2.class | Bin 0 -> 590 bytes PrjJava/OCA7/Chapter4/InstanceOf2/manifest.mf | 3 + .../InstanceOf2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../InstanceOf2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../InstanceOf2/nbproject/private/private.xml | 4 + .../InstanceOf2/nbproject/project.properties | 74 + .../InstanceOf2/nbproject/project.xml | 15 + .../src/instanceof2/InstanceOf2.java | 27 + PrjJava/OCA7/Chapter4/InstanceOf3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/instanceof3/A.class | Bin 0 -> 306 bytes .../build/classes/instanceof3/B.class | Bin 0 -> 281 bytes .../classes/instanceof3/InstanceOf3.class | Bin 0 -> 794 bytes .../build/classes/instanceof3/T1.class | Bin 0 -> 106 bytes .../build/classes/instanceof3/T2.class | Bin 0 -> 106 bytes PrjJava/OCA7/Chapter4/InstanceOf3/manifest.mf | 3 + .../InstanceOf3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../InstanceOf3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../InstanceOf3/nbproject/private/private.xml | 4 + .../InstanceOf3/nbproject/project.properties | 74 + .../InstanceOf3/nbproject/project.xml | 15 + .../src/instanceof3/InstanceOf3.java | 38 + PrjJava/OCA7/Chapter4/InstanceOf4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/instanceof4/A.class | Bin 0 -> 262 bytes .../build/classes/instanceof4/B.class | Bin 0 -> 259 bytes .../build/classes/instanceof4/C.class | Bin 0 -> 259 bytes .../classes/instanceof4/InstanceOf4.class | Bin 0 -> 616 bytes PrjJava/OCA7/Chapter4/InstanceOf4/manifest.mf | 3 + .../InstanceOf4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../InstanceOf4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../InstanceOf4/nbproject/private/private.xml | 7 + .../InstanceOf4/nbproject/project.properties | 74 + .../InstanceOf4/nbproject/project.xml | 15 + .../src/instanceof4/InstanceOf4.java | 29 + .../Chapter4/InstanceOfOperator/build.xml | 73 + .../Chapter4/InstanceOfOperator/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 6 + .../nbproject/project.properties | 74 + .../InstanceOfOperator/nbproject/project.xml | 15 + .../src/instanceofoperator/Cat.java | 15 + .../InstanceOfOperator.java | 23 + PrjJava/OCA7/Chapter4/Instanceof1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/instanceof1/Instanceof1.class | Bin 0 -> 870 bytes PrjJava/OCA7/Chapter4/Instanceof1/manifest.mf | 3 + .../Instanceof1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Instanceof1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Instanceof1/nbproject/private/private.xml | 7 + .../Instanceof1/nbproject/project.properties | 74 + .../Instanceof1/nbproject/project.xml | 15 + .../src/instanceof1/Instanceof1.java | 26 + PrjJava/OCA7/Chapter4/Instanceof5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/instanceof5/A.class | Bin 0 -> 262 bytes .../build/classes/instanceof5/B.class | Bin 0 -> 259 bytes .../build/classes/instanceof5/C.class | Bin 0 -> 259 bytes .../build/classes/instanceof5/D.class | Bin 0 -> 259 bytes .../classes/instanceof5/Instanceof5.class | Bin 0 -> 856 bytes PrjJava/OCA7/Chapter4/Instanceof5/manifest.mf | 3 + .../Instanceof5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Instanceof5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Instanceof5/nbproject/private/private.xml | 4 + .../Instanceof5/nbproject/project.properties | 74 + .../Instanceof5/nbproject/project.xml | 15 + .../src/instanceof5/Instanceof5.java | 47 + PrjJava/OCA7/Chapter4/Int1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Int1/build/classes/int1/Int1.class | Bin 0 -> 658 bytes PrjJava/OCA7/Chapter4/Int1/manifest.mf | 3 + .../Chapter4/Int1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Int1/nbproject/genfiles.properties | 8 + .../Int1/nbproject/private/private.properties | 2 + .../Int1/nbproject/private/private.xml | 4 + .../Int1/nbproject/project.properties | 74 + .../OCA7/Chapter4/Int1/nbproject/project.xml | 15 + PrjJava/OCA7/Chapter4/Int1/src/int1/Int1.java | 30 + PrjJava/OCA7/Chapter4/IntOperation/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/intoperation/IntOperation.class | Bin 0 -> 812 bytes .../OCA7/Chapter4/IntOperation/manifest.mf | 3 + .../IntOperation/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../IntOperation/nbproject/project.properties | 74 + .../IntOperation/nbproject/project.xml | 15 + .../src/intoperation/IntOperation.java | 30 + PrjJava/OCA7/Chapter4/Interface/build.xml | 73 + PrjJava/OCA7/Chapter4/Interface/manifest.mf | 3 + .../Interface/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Interface/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Interface/nbproject/private/private.xml | 4 + .../Interface/nbproject/project.properties | 74 + .../Chapter4/Interface/nbproject/project.xml | 15 + .../Interface/src/pkginterface/Interface.java | 23 + PrjJava/OCA7/Chapter4/Interface1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/interface1/Foo.class | Bin 0 -> 164 bytes .../build/classes/interface1/Interface1.class | Bin 0 -> 633 bytes PrjJava/OCA7/Chapter4/Interface1/manifest.mf | 3 + .../Interface1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Interface1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Interface1/nbproject/private/private.xml | 9 + .../Interface1/nbproject/project.properties | 74 + .../Chapter4/Interface1/nbproject/project.xml | 15 + .../Interface1/src/interface1/Foo.java | 16 + .../Interface1/src/interface1/Interface1.java | 27 + PrjJava/OCA7/Chapter4/Interface4/build.xml | 73 + .../Interface4/build/built-jar.properties | 4 + .../build/classes/interface4/Bird.class | Bin 0 -> 412 bytes .../build/classes/interface4/CallAplet.html | 21 + .../build/classes/interface4/Flyer.class | Bin 0 -> 146 bytes .../build/classes/interface4/Interface4.class | Bin 0 -> 467 bytes .../Chapter4/Interface4/build/manifest.mf | 10 + .../Chapter4/Interface4/dist/Interface4.jar | Bin 0 -> 3204 bytes .../OCA7/Chapter4/Interface4/dist/README.TXT | 32 + .../OCA7/Chapter4/Interface4/dist/launch.html | 30 + .../OCA7/Chapter4/Interface4/dist/launch.jnlp | 18 + .../Chapter4/Interface4/dist/launch.jnlp_ | 24 + .../Chapter4/Interface4/dist/lib/game.jar | Bin 0 -> 55568 bytes PrjJava/OCA7/Chapter4/Interface4/manifest.mf | 3 + .../Chapter4/Interface4/master-applet.jnlp | 23 + .../Interface4/nbproject/build-impl.xml | 1420 ++++++++++++++++ .../configs/JWS_generated.properties | 4 + .../Interface4/nbproject/genfiles.properties | 8 + .../Interface4/nbproject/jnlp-impl.xml | 923 +++++++++++ .../nbproject/private/config.properties | 1 + .../nbproject/private/private.properties | 6 + .../Interface4/nbproject/private/private.xml | 7 + .../Interface4/nbproject/project.properties | 100 ++ .../Chapter4/Interface4/nbproject/project.xml | 21 + .../Chapter4/Interface4/preview-applet.html | 30 + .../Interface4/src/interface4/Bird.java | 21 + .../Interface4/src/interface4/CallAplet.html | 21 + .../Interface4/src/interface4/Flyer.java | 18 + .../Interface4/src/interface4/Interface4.java | 25 + PrjJava/OCA7/Chapter4/Interface5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/interface5/Breakable.class | Bin 0 -> 140 bytes .../build/classes/interface5/Car.class | Bin 0 -> 470 bytes .../build/classes/interface5/FancyCar.class | Bin 0 -> 511 bytes .../build/classes/interface5/Interface5.class | Bin 0 -> 711 bytes .../classes/interface5/SuperFancyCar.class | Bin 0 -> 613 bytes PrjJava/OCA7/Chapter4/Interface5/manifest.mf | 3 + .../Interface5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Interface5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Interface5/nbproject/private/private.xml | 4 + .../Interface5/nbproject/project.properties | 74 + .../Chapter4/Interface5/nbproject/project.xml | 15 + .../Interface5/src/interface5/Breakable.java | 15 + .../Interface5/src/interface5/Car.java | 18 + .../Interface5/src/interface5/FancyCar.java | 17 + .../Interface5/src/interface5/Interface5.java | 32 + .../src/interface5/SuperFancyCar.java | 23 + PrjJava/OCA7/Chapter4/Interface6/build.xml | 73 + PrjJava/OCA7/Chapter4/Interface6/manifest.mf | 3 + .../Interface6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Interface6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Interface6/nbproject/private/private.xml | 4 + .../Interface6/nbproject/project.properties | 74 + .../Chapter4/Interface6/nbproject/project.xml | 15 + .../Interface6/src/interface6/Interface6.java | 21 + PrjJava/OCA7/Chapter4/Interface7/build.xml | 73 + PrjJava/OCA7/Chapter4/Interface7/manifest.mf | 3 + .../Interface7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Interface7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Interface7/nbproject/private/private.xml | 4 + .../Interface7/nbproject/project.properties | 74 + .../Chapter4/Interface7/nbproject/project.xml | 15 + .../Interface7/src/interface7/Interface7.java | 39 + PrjJava/OCA7/Chapter4/Intsum/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Intsum/build/classes/intsum/Intsum.class | Bin 0 -> 802 bytes PrjJava/OCA7/Chapter4/Intsum/manifest.mf | 3 + .../Chapter4/Intsum/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Intsum/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Intsum/nbproject/private/private.xml | 7 + .../Intsum/nbproject/project.properties | 74 + .../Chapter4/Intsum/nbproject/project.xml | 15 + .../Chapter4/Intsum/src/intsum/Intsum.java | 26 + .../OCA7/Chapter4/JavaApplication32/build.xml | 73 + .../javaapplication32/JavaApplication32.class | Bin 0 -> 588 bytes .../Chapter4/JavaApplication32/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 74 + .../JavaApplication32/nbproject/project.xml | 15 + .../javaapplication32/JavaApplication32.java | 25 + .../Chapter4/Left-Hand Operand1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../left/hand/operand1/LeftHandOperand1.class | Bin 0 -> 602 bytes .../Chapter4/Left-Hand Operand1/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Left-Hand Operand1/nbproject/project.xml | 15 + .../left/hand/operand1/LeftHandOperand1.java | 24 + .../OCA7/Chapter4/Left-HandOperand/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../left/handoperand/LeftHandOperand.class | Bin 0 -> 1120 bytes .../Chapter4/Left-HandOperand/manifest.mf | 3 + .../Left-HandOperand/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Left-HandOperand/nbproject/project.xml | 15 + .../src/left/handoperand/LeftHandOperand.java | 33 + PrjJava/OCA7/Chapter4/Method1/build.xml | 73 + PrjJava/OCA7/Chapter4/Method1/manifest.mf | 3 + .../Chapter4/Method1/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Method1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Method1/nbproject/private/private.xml | 4 + .../Method1/nbproject/project.properties | 74 + .../Chapter4/Method1/nbproject/project.xml | 15 + .../Chapter4/Method1/src/method1/Method1.java | 33 + PrjJava/OCA7/Chapter4/Method2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/method2/Method2.class | Bin 0 -> 489 bytes .../Method2/build/classes/method22/A.class | Bin 0 -> 461 bytes .../Method2/build/classes/method22/B.class | Bin 0 -> 449 bytes PrjJava/OCA7/Chapter4/Method2/manifest.mf | 3 + .../Chapter4/Method2/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Method2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Method2/nbproject/private/private.xml | 4 + .../Method2/nbproject/project.properties | 74 + .../Chapter4/Method2/nbproject/project.xml | 15 + .../Chapter4/Method2/src/method2/Method2.java | 27 + .../OCA7/Chapter4/Method2/src/method22/A.java | 17 + .../OCA7/Chapter4/Method2/src/method22/B.java | 18 + .../OCA7/Chapter4/NullInstanceOf/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../nullinstanceof/NullInstanceOf.class | Bin 0 -> 722 bytes .../OCA7/Chapter4/NullInstanceOf/manifest.mf | 3 + .../NullInstanceOf/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../NullInstanceOf/nbproject/project.xml | 15 + .../src/nullinstanceof/NullInstanceOf.java | 29 + .../OCA7/Chapter4/ORNonShortCircuit/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../ornonshortcircuit/ORNonShortCircuit.class | Bin 0 -> 553 bytes .../Chapter4/ORNonShortCircuit/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../ORNonShortCircuit/nbproject/project.xml | 15 + .../ornonshortcircuit/ORNonShortCircuit.java | 22 + PrjJava/OCA7/Chapter4/Octal1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Octal1/build/classes/octal1/Octal1.class | Bin 0 -> 768 bytes PrjJava/OCA7/Chapter4/Octal1/manifest.mf | 3 + .../Chapter4/Octal1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Octal1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Octal1/nbproject/private/private.xml | 7 + .../Octal1/nbproject/project.properties | 74 + .../Chapter4/Octal1/nbproject/project.xml | 15 + .../Chapter4/Octal1/src/octal1/Octal1.java | 26 + PrjJava/OCA7/Chapter4/Operator1/build.xml | 73 + .../build/classes/operator1/Operator1.class | Bin 0 -> 992 bytes PrjJava/OCA7/Chapter4/Operator1/manifest.mf | 3 + .../Operator1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator1/nbproject/project.properties | 74 + .../Chapter4/Operator1/nbproject/project.xml | 15 + .../Operator1/src/operator1/Operator1.java | 33 + PrjJava/OCA7/Chapter4/Operator10/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/operator10/Operator10.class | Bin 0 -> 921 bytes PrjJava/OCA7/Chapter4/Operator10/manifest.mf | 3 + .../Operator10/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator10/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator10/nbproject/private/private.xml | 7 + .../Operator10/nbproject/project.properties | 74 + .../Chapter4/Operator10/nbproject/project.xml | 15 + .../Operator10/src/operator10/Operator10.java | 31 + PrjJava/OCA7/Chapter4/Operator11/build.xml | 73 + PrjJava/OCA7/Chapter4/Operator11/manifest.mf | 3 + .../Operator11/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator11/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator11/nbproject/private/private.xml | 7 + .../Operator11/nbproject/project.properties | 74 + .../Chapter4/Operator11/nbproject/project.xml | 15 + .../Operator11/src/operator11/Operator11.java | 24 + PrjJava/OCA7/Chapter4/Operator2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/operator2/Operator2.class | Bin 0 -> 875 bytes PrjJava/OCA7/Chapter4/Operator2/manifest.mf | 3 + .../Operator2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator2/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../Operator2/nbproject/private/private.xml | 4 + .../Operator2/nbproject/project.properties | 76 + .../Chapter4/Operator2/nbproject/project.xml | 15 + .../Operator2/src/operator2/Operator2.java | 29 + PrjJava/OCA7/Chapter4/Operator3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/operator3/Operator3.class | Bin 0 -> 1200 bytes PrjJava/OCA7/Chapter4/Operator3/manifest.mf | 3 + .../Operator3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator3/nbproject/private/private.xml | 7 + .../Operator3/nbproject/project.properties | 74 + .../Chapter4/Operator3/nbproject/project.xml | 15 + .../Operator3/src/operator3/Operator3.java | 35 + PrjJava/OCA7/Chapter4/Operator4/build.xml | 73 + .../build/classes/operator4/Operator4.class | Bin 0 -> 817 bytes PrjJava/OCA7/Chapter4/Operator4/manifest.mf | 3 + .../Operator4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator4/nbproject/private/private.xml | 7 + .../Operator4/nbproject/project.properties | 74 + .../Chapter4/Operator4/nbproject/project.xml | 15 + .../Operator4/src/operator4/Operator4.java | 25 + PrjJava/OCA7/Chapter4/Operator5/build.xml | 73 + .../build/classes/operator5/Operator5.class | Bin 0 -> 548 bytes PrjJava/OCA7/Chapter4/Operator5/manifest.mf | 3 + .../Operator5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator5/nbproject/private/private.xml | 7 + .../Operator5/nbproject/project.properties | 74 + .../Chapter4/Operator5/nbproject/project.xml | 15 + .../Operator5/src/operator5/Operator5.java | 23 + PrjJava/OCA7/Chapter4/Operator6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/operator6/Operator6.class | Bin 0 -> 568 bytes PrjJava/OCA7/Chapter4/Operator6/manifest.mf | 3 + .../Operator6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator6/nbproject/private/private.xml | 4 + .../Operator6/nbproject/project.properties | 74 + .../Chapter4/Operator6/nbproject/project.xml | 15 + .../Operator6/src/operator6/Operator6.java | 23 + PrjJava/OCA7/Chapter4/Operator7/build.xml | 73 + PrjJava/OCA7/Chapter4/Operator7/manifest.mf | 3 + .../Operator7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator7/nbproject/private/private.xml | 4 + .../Operator7/nbproject/project.properties | 74 + .../Chapter4/Operator7/nbproject/project.xml | 15 + .../Operator7/src/operator7/Operator7.java | 23 + PrjJava/OCA7/Chapter4/Operator8/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/operator8/Operator8.class | Bin 0 -> 576 bytes PrjJava/OCA7/Chapter4/Operator8/manifest.mf | 3 + .../Operator8/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator8/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator8/nbproject/private/private.xml | 7 + .../Operator8/nbproject/project.properties | 74 + .../Chapter4/Operator8/nbproject/project.xml | 15 + .../Operator8/src/operator8/Operator8.java | 25 + PrjJava/OCA7/Chapter4/Operator9/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/operator9/Operator9.class | Bin 0 -> 567 bytes PrjJava/OCA7/Chapter4/Operator9/manifest.mf | 3 + .../Operator9/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Operator9/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Operator9/nbproject/private/private.xml | 4 + .../Operator9/nbproject/project.properties | 74 + .../Chapter4/Operator9/nbproject/project.xml | 15 + .../Operator9/src/operator9/Operator9.java | 25 + PrjJava/OCA7/Chapter4/ParseFloat/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/parsefloat/ParseFloat.class | Bin 0 -> 1017 bytes PrjJava/OCA7/Chapter4/ParseFloat/manifest.mf | 3 + .../ParseFloat/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ParseFloat/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ParseFloat/nbproject/private/private.xml | 4 + .../ParseFloat/nbproject/project.properties | 74 + .../Chapter4/ParseFloat/nbproject/project.xml | 15 + .../ParseFloat/src/parsefloat/ParseFloat.java | 36 + PrjJava/OCA7/Chapter4/PassByValue3/build.xml | 73 + .../OCA7/Chapter4/PassByValue3/manifest.mf | 3 + .../PassByValue3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../PassByValue3/nbproject/project.properties | 74 + .../PassByValue3/nbproject/project.xml | 15 + .../src/passbyvalue3/PassByValue3.java | 33 + PrjJava/OCA7/Chapter4/PassbyValue2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/passbyvalue2/PassbyValue2.class | Bin 0 -> 1158 bytes .../OCA7/Chapter4/PassbyValue2/manifest.mf | 3 + .../PassbyValue2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../PassbyValue2/nbproject/project.properties | 74 + .../PassbyValue2/nbproject/project.xml | 15 + .../src/passbyvalue2/PassbyValue2.java | 32 + PrjJava/OCA7/Chapter4/PreIncrement1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/preincrement1/PreIncrement1.class | Bin 0 -> 663 bytes .../OCA7/Chapter4/PreIncrement1/manifest.mf | 3 + .../PreIncrement1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../PreIncrement1/nbproject/project.xml | 15 + .../src/preincrement1/PreIncrement1.java | 28 + .../Chapter4/PrimitiveConversion/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../PrimitiveConversion.class | Bin 0 -> 1155 bytes .../Chapter4/PrimitiveConversion/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../PrimitiveConversion/nbproject/project.xml | 15 + .../PrimitiveConversion.java | 33 + .../OCA7/Chapter4/PromotePlusInt/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../promoteplusint/PromotePlusInt.class | Bin 0 -> 813 bytes .../OCA7/Chapter4/PromotePlusInt/manifest.mf | 3 + .../PromotePlusInt/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../PromotePlusInt/nbproject/project.xml | 15 + .../src/promoteplusint/PromotePlusInt.java | 33 + PrjJava/OCA7/Chapter4/Promotion1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/promotion1/Promotion1.class | Bin 0 -> 728 bytes PrjJava/OCA7/Chapter4/Promotion1/manifest.mf | 3 + .../Promotion1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Promotion1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Promotion1/nbproject/private/private.xml | 4 + .../Promotion1/nbproject/project.properties | 74 + .../Chapter4/Promotion1/nbproject/project.xml | 15 + .../Promotion1/src/promotion1/Promotion1.java | 32 + PrjJava/OCA7/Chapter4/Shadowing3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/shadowing3/ABCD.class | Bin 0 -> 378 bytes .../build/classes/shadowing3/MNOP.class | Bin 0 -> 377 bytes .../build/classes/shadowing3/Shadowing3.class | Bin 0 -> 830 bytes PrjJava/OCA7/Chapter4/Shadowing3/manifest.mf | 3 + .../Shadowing3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Shadowing3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Shadowing3/nbproject/private/private.xml | 4 + .../Shadowing3/nbproject/project.properties | 74 + .../Chapter4/Shadowing3/nbproject/project.xml | 15 + .../Shadowing3/src/shadowing3/Shadowing3.java | 31 + .../OCA7/Chapter4/UnreacheableCode3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../unreacheablecode3/UnreacheableCode3.class | Bin 0 -> 612 bytes .../Chapter4/UnreacheableCode3/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../UnreacheableCode3/nbproject/project.xml | 15 + .../unreacheablecode3/UnreacheableCode3.java | 26 + .../OCA7/Chapter4/Unreacheablecode2/build.xml | 73 + .../Chapter4/Unreacheablecode2/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Unreacheablecode2/nbproject/project.xml | 15 + .../unreacheablecode2/Unreacheablecode2.java | 23 + .../OCA7/Chapter4/UnreachebleCode1/build.xml | 73 + .../Chapter4/UnreachebleCode1/manifest.mf | 3 + .../UnreachebleCode1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../UnreachebleCode1/nbproject/project.xml | 15 + .../unreacheblecode1/UnreachebleCode1.java | 38 + .../OCA7/Chapter4/UnrecheableCode1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../unrecheablecode1/UnrecheableCode1.class | Bin 0 -> 500 bytes .../Chapter4/UnrecheableCode1/manifest.mf | 3 + .../UnrecheableCode1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../UnrecheableCode1/nbproject/project.xml | 15 + .../unrecheablecode1/UnrecheableCode1.java | 27 + .../OCA7/Chapter4/UnrereableCode4/build.xml | 73 + .../OCA7/Chapter4/UnrereableCode4/manifest.mf | 3 + .../UnrereableCode4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../UnrereableCode4/nbproject/project.xml | 15 + .../src/unrereablecode4/UnrereableCode4.java | 26 + PrjJava/OCA7/Chapter4/XOR1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../XOR1/build/classes/xor1/XOR1.class | Bin 0 -> 600 bytes PrjJava/OCA7/Chapter4/XOR1/manifest.mf | 3 + .../Chapter4/XOR1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../XOR1/nbproject/genfiles.properties | 8 + .../XOR1/nbproject/private/private.properties | 2 + .../XOR1/nbproject/private/private.xml | 7 + .../XOR1/nbproject/project.properties | 74 + .../OCA7/Chapter4/XOR1/nbproject/project.xml | 15 + PrjJava/OCA7/Chapter4/XOR1/src/xor1/XOR1.java | 24 + PrjJava/OCA7/Chapter4/boolean1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/boolean1/Boolean1.class | Bin 0 -> 1028 bytes PrjJava/OCA7/Chapter4/boolean1/manifest.mf | 3 + .../boolean1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../boolean1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../boolean1/nbproject/private/private.xml | 4 + .../boolean1/nbproject/project.properties | 74 + .../Chapter4/boolean1/nbproject/project.xml | 15 + .../boolean1/src/boolean1/Boolean1.java | 32 + .../Chapter5/ArrayList/ArrayList2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/arraylist2/ArrayList2.class | Bin 0 -> 1494 bytes .../Chapter5/ArrayList/ArrayList2/manifest.mf | 3 + .../ArrayList2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ArrayList2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ArrayList2/nbproject/private/private.xml | 4 + .../ArrayList2/nbproject/project.properties | 74 + .../ArrayList2/nbproject/project.xml | 15 + .../ArrayList2/src/arraylist2/ArrayList2.java | 31 + .../Chapter5/ArrayList/ArrayList3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/arraylist3/ArrayList3.class | Bin 0 -> 1204 bytes .../Chapter5/ArrayList/ArrayList3/manifest.mf | 3 + .../ArrayList3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ArrayList3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ArrayList3/nbproject/private/private.xml | 7 + .../ArrayList3/nbproject/project.properties | 74 + .../ArrayList3/nbproject/project.xml | 15 + .../ArrayList3/src/arraylist3/ArrayList3.java | 34 + .../ArrayList/ArrayListSublist/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../arraylistsublist/ArrayListSublist.class | Bin 0 -> 973 bytes .../ArrayList/ArrayListSublist/manifest.mf | 3 + .../ArrayListSublist/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../ArrayListSublist/nbproject/project.xml | 15 + .../arraylistsublist/ArrayListSublist.java | 31 + .../Chapter5/ArrayList/Arraylist4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/arraylist4/Arraylist4.class | Bin 0 -> 937 bytes .../Chapter5/ArrayList/Arraylist4/manifest.mf | 3 + .../Arraylist4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Arraylist4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Arraylist4/nbproject/private/private.xml | 7 + .../Arraylist4/nbproject/project.properties | 74 + .../Arraylist4/nbproject/project.xml | 15 + .../Arraylist4/src/arraylist4/Arraylist4.java | 29 + .../OCA7/Chapter5/ArrayList/List1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../List1/build/classes/list1/Apple.class | Bin 0 -> 252 bytes .../List1/build/classes/list1/List1.class | Bin 0 -> 1177 bytes .../OCA7/Chapter5/ArrayList/List1/manifest.mf | 3 + .../ArrayList/List1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../List1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../List1/nbproject/private/private.xml | 7 + .../List1/nbproject/project.properties | 74 + .../ArrayList/List1/nbproject/project.xml | 15 + .../ArrayList/List1/src/list1/List1.java | 44 + PrjJava/OCA7/Chapter5/Arrays/Aray17/build.xml | 73 + .../OCA7/Chapter5/Arrays/Aray17/manifest.mf | 3 + .../Arrays/Aray17/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Aray17/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Aray17/nbproject/private/private.xml | 4 + .../Aray17/nbproject/project.properties | 74 + .../Arrays/Aray17/nbproject/project.xml | 15 + .../Arrays/Aray17/src/aray17/Aray17.java | 51 + PrjJava/OCA7/Chapter5/Arrays/Array1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Array1/build/classes/array1/Array1.class | Bin 0 -> 691 bytes .../OCA7/Chapter5/Arrays/Array1/manifest.mf | 3 + .../Arrays/Array1/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Array1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array1/nbproject/private/private.xml | 7 + .../Array1/nbproject/project.properties | 74 + .../Arrays/Array1/nbproject/project.xml | 15 + .../Arrays/Array1/src/array1/Array1.java | 29 + .../OCA7/Chapter5/Arrays/Array10/build.xml | 73 + .../OCA7/Chapter5/Arrays/Array10/manifest.mf | 3 + .../Arrays/Array10/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array10/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array10/nbproject/private/private.xml | 7 + .../Array10/nbproject/project.properties | 74 + .../Arrays/Array10/nbproject/project.xml | 15 + .../Arrays/Array10/src/array10/Array10.java | 21 + .../OCA7/Chapter5/Arrays/Array11/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/array11/Array11.class | Bin 0 -> 596 bytes .../OCA7/Chapter5/Arrays/Array11/manifest.mf | 3 + .../Arrays/Array11/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array11/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array11/nbproject/private/private.xml | 4 + .../Array11/nbproject/project.properties | 74 + .../Arrays/Array11/nbproject/project.xml | 15 + .../Arrays/Array11/src/array11/Array11.java | 24 + .../OCA7/Chapter5/Arrays/Array12/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/array12/Array12.class | Bin 0 -> 803 bytes .../OCA7/Chapter5/Arrays/Array12/manifest.mf | 3 + .../Arrays/Array12/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array12/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array12/nbproject/private/private.xml | 7 + .../Array12/nbproject/project.properties | 74 + .../Arrays/Array12/nbproject/project.xml | 15 + .../Arrays/Array12/src/array12/Array12.java | 28 + .../OCA7/Chapter5/Arrays/Array13/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/array13/Array13.class | Bin 0 -> 1113 bytes .../OCA7/Chapter5/Arrays/Array13/manifest.mf | 3 + .../Arrays/Array13/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array13/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array13/nbproject/private/private.xml | 4 + .../Array13/nbproject/project.properties | 74 + .../Arrays/Array13/nbproject/project.xml | 15 + .../Arrays/Array13/src/array13/Array13.java | 32 + .../OCA7/Chapter5/Arrays/Array14/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/array14/Array14.class | Bin 0 -> 695 bytes .../OCA7/Chapter5/Arrays/Array14/manifest.mf | 3 + .../Arrays/Array14/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array14/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array14/nbproject/private/private.xml | 7 + .../Array14/nbproject/project.properties | 74 + .../Arrays/Array14/nbproject/project.xml | 15 + .../Arrays/Array14/src/array14/Array14.java | 28 + .../OCA7/Chapter5/Arrays/Array15/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/array15/Array15.class | Bin 0 -> 687 bytes .../OCA7/Chapter5/Arrays/Array15/manifest.mf | 3 + .../Arrays/Array15/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array15/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array15/nbproject/private/private.xml | 7 + .../Array15/nbproject/project.properties | 74 + .../Arrays/Array15/nbproject/project.xml | 15 + .../Arrays/Array15/src/array15/Array15.java | 29 + .../OCA7/Chapter5/Arrays/Array16/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/array16/Array16.class | Bin 0 -> 842 bytes .../OCA7/Chapter5/Arrays/Array16/manifest.mf | 3 + .../Arrays/Array16/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array16/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array16/nbproject/private/private.xml | 4 + .../Array16/nbproject/project.properties | 74 + .../Arrays/Array16/nbproject/project.xml | 15 + .../Arrays/Array16/src/array16/Array16.java | 24 + PrjJava/OCA7/Chapter5/Arrays/Array2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Array2/build/classes/array2/Array2.class | Bin 0 -> 915 bytes .../OCA7/Chapter5/Arrays/Array2/manifest.mf | 3 + .../Arrays/Array2/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Array2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array2/nbproject/private/private.xml | 9 + .../Array2/nbproject/project.properties | 74 + .../Arrays/Array2/nbproject/project.xml | 15 + .../Arrays/Array2/src/array2/Array2.java | 23 + .../OCA7/Chapter5/Arrays/Array20/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/array20/Array20.class | Bin 0 -> 649 bytes .../OCA7/Chapter5/Arrays/Array20/manifest.mf | 3 + .../Arrays/Array20/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array20/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array20/nbproject/private/private.xml | 4 + .../Array20/nbproject/project.properties | 74 + .../Arrays/Array20/nbproject/project.xml | 15 + .../Arrays/Array20/src/array20/Array20.java | 26 + PrjJava/OCA7/Chapter5/Arrays/Array3/build.xml | 73 + .../Array3/build/classes/array3/Array3.class | Bin 0 -> 863 bytes .../OCA7/Chapter5/Arrays/Array3/manifest.mf | 3 + .../Arrays/Array3/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Array3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array3/nbproject/private/private.xml | 7 + .../Array3/nbproject/project.properties | 74 + .../Arrays/Array3/nbproject/project.xml | 15 + .../Arrays/Array3/src/array3/Array3.java | 26 + PrjJava/OCA7/Chapter5/Arrays/Array4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Array4/build/classes/array4/Array4.class | Bin 0 -> 872 bytes .../OCA7/Chapter5/Arrays/Array4/manifest.mf | 3 + .../Arrays/Array4/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Array4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array4/nbproject/private/private.xml | 9 + .../Array4/nbproject/project.properties | 74 + .../Arrays/Array4/nbproject/project.xml | 15 + .../Arrays/Array4/src/array4/Array4.java | 30 + PrjJava/OCA7/Chapter5/Arrays/Array5/build.xml | 73 + .../Array5/build/classes/array5/Array5.class | Bin 0 -> 814 bytes .../OCA7/Chapter5/Arrays/Array5/manifest.mf | 3 + .../Arrays/Array5/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Array5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array5/nbproject/private/private.xml | 9 + .../Array5/nbproject/project.properties | 74 + .../Arrays/Array5/nbproject/project.xml | 15 + .../Arrays/Array5/src/array5/Array5.java | 23 + PrjJava/OCA7/Chapter5/Arrays/Array6/build.xml | 73 + .../OCA7/Chapter5/Arrays/Array6/manifest.mf | 3 + .../Arrays/Array6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array6/nbproject/private/private.xml | 9 + .../Array6/nbproject/project.properties | 74 + .../Arrays/Array6/nbproject/project.xml | 15 + .../Arrays/Array6/src/array6/Array6.java | 26 + .../OCA7/Chapter5/Arrays/Array6_1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../OCA7/Chapter5/Arrays/Array6_1/manifest.mf | 3 + .../Arrays/Array6_1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array6_1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array6_1/nbproject/private/private.xml | 7 + .../Array6_1/nbproject/project.properties | 74 + .../Arrays/Array6_1/nbproject/project.xml | 15 + .../Array6_1/src/array6_1/Array6_1.java | 26 + PrjJava/OCA7/Chapter5/Arrays/Array7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Array7/build/classes/array7/Array7.class | Bin 0 -> 582 bytes .../OCA7/Chapter5/Arrays/Array7/manifest.mf | 3 + .../Arrays/Array7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array7/nbproject/private/private.xml | 7 + .../Array7/nbproject/project.properties | 74 + .../Arrays/Array7/nbproject/project.xml | 15 + .../Arrays/Array7/src/array7/Array7.java | 25 + PrjJava/OCA7/Chapter5/Arrays/Array8/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Array8/build/classes/array8/Array8.class | Bin 0 -> 1158 bytes .../OCA7/Chapter5/Arrays/Array8/manifest.mf | 3 + .../Arrays/Array8/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Array8/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array8/nbproject/private/private.xml | 9 + .../Array8/nbproject/project.properties | 74 + .../Arrays/Array8/nbproject/project.xml | 15 + .../Arrays/Array8/src/array8/Array8.java | 37 + PrjJava/OCA7/Chapter5/Arrays/Array9/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Array9/build/classes/array9/Array9.class | Bin 0 -> 663 bytes .../OCA7/Chapter5/Arrays/Array9/manifest.mf | 3 + .../Arrays/Array9/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Array9/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Array9/nbproject/private/private.xml | 7 + .../Array9/nbproject/project.properties | 74 + .../Arrays/Array9/nbproject/project.xml | 15 + .../Arrays/Array9/src/array9/Array9.java | 28 + .../Chapter5/Arrays/ArrayCompare/build.xml | 73 + .../build/classes/StartTest.class | Bin 0 -> 524 bytes .../classes/arraycompare/ArrayCompare.class | Bin 0 -> 1179 bytes .../Chapter5/Arrays/ArrayCompare/manifest.mf | 3 + .../ArrayCompare/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../ArrayCompare/nbproject/project.properties | 74 + .../Arrays/ArrayCompare/nbproject/project.xml | 15 + .../Arrays/ArrayCompare/src/StartTest.java | 19 + .../src/arraycompare/ArrayCompare.java | 27 + .../OCA7/Chapter5/Arrays/ArrayCopy1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/arraycopy1/ArrayCopy1.class | Bin 0 -> 791 bytes .../Chapter5/Arrays/ArrayCopy1/manifest.mf | 3 + .../ArrayCopy1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ArrayCopy1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ArrayCopy1/nbproject/private/private.xml | 4 + .../ArrayCopy1/nbproject/project.properties | 74 + .../Arrays/ArrayCopy1/nbproject/project.xml | 15 + .../ArrayCopy1/src/arraycopy1/ArrayCopy1.java | 27 + .../OCA7/Chapter5/Arrays/ArrayCopy2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/arraycopy2/ArrayCopy2.class | Bin 0 -> 793 bytes .../Chapter5/Arrays/ArrayCopy2/manifest.mf | 3 + .../ArrayCopy2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ArrayCopy2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ArrayCopy2/nbproject/private/private.xml | 4 + .../ArrayCopy2/nbproject/project.properties | 74 + .../Arrays/ArrayCopy2/nbproject/project.xml | 15 + .../ArrayCopy2/src/arraycopy2/ArrayCopy2.java | 27 + .../ArrayIndexOutOfBoundsException/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../ArrayIndexOutOfBoundsException.class | Bin 0 -> 1078 bytes .../MySpecialException.class | Bin 0 -> 465 bytes .../manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../ArrayIndexOutOfBoundsException.java | 39 + .../OCA7/Chapter5/Arrays/ArrayNull/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/arraynull/ArrayNull.class | Bin 0 -> 545 bytes .../Chapter5/Arrays/ArrayNull/manifest.mf | 3 + .../Arrays/ArrayNull/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ArrayNull/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ArrayNull/nbproject/private/private.xml | 4 + .../ArrayNull/nbproject/project.properties | 74 + .../Arrays/ArrayNull/nbproject/project.xml | 15 + .../ArrayNull/src/arraynull/ArrayNull.java | 23 + .../Chapter5/Arrays/ArrayOfSizeZero/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../arrayofsizezero/ArrayOfSizeZEro.class | Bin 0 -> 678 bytes .../Arrays/ArrayOfSizeZero/manifest.mf | 3 + .../ArrayOfSizeZero/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../ArrayOfSizeZero/nbproject/project.xml | 15 + .../src/arrayofsizezero/ArrayOfSizeZEro.java | 29 + .../Chapter5/Arrays/ArrayTriple/build.xml | 73 + .../Chapter5/Arrays/ArrayTriple/manifest.mf | 3 + .../ArrayTriple/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ArrayTriple/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ArrayTriple/nbproject/private/private.xml | 4 + .../ArrayTriple/nbproject/project.properties | 74 + .../Arrays/ArrayTriple/nbproject/project.xml | 15 + .../src/arraytriple/ArrayTriple.java | 24 + .../ArrayindexoutvoundsException1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../ArrayindexoutvoundsException1.class | Bin 0 -> 749 bytes .../ArrayindexoutvoundsException1/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../ArrayindexoutvoundsException1.java | 29 + .../Chapter5/Arrays/Declare2Array/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/declare2array/Declare2Array.class | Bin 0 -> 505 bytes .../Chapter5/Arrays/Declare2Array/manifest.mf | 3 + .../Declare2Array/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../Declare2Array/nbproject/project.xml | 15 + .../src/declare2array/Declare2Array.java | 31 + .../Chapter5/Arrays/DoubleArray1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/doublearray1/DoubleArray1.class | Bin 0 -> 611 bytes .../Chapter5/Arrays/DoubleArray1/manifest.mf | 3 + .../DoubleArray1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../DoubleArray1/nbproject/project.properties | 74 + .../Arrays/DoubleArray1/nbproject/project.xml | 15 + .../src/doublearray1/DoubleArray1.java | 25 + .../Chapter5/Arrays/InitialiseArray/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../initialisearray/InitialiseArray.class | Bin 0 -> 756 bytes .../Arrays/InitialiseArray/manifest.mf | 3 + .../InitialiseArray/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../InitialiseArray/nbproject/project.xml | 15 + .../src/initialisearray/InitialiseArray.java | 27 + .../OCA7/Chapter5/Arrays/LargeArray/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/largearray/LargeArray.class | Bin 0 -> 583 bytes .../Chapter5/Arrays/LargeArray/manifest.mf | 3 + .../LargeArray/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../LargeArray/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../LargeArray/nbproject/private/private.xml | 7 + .../LargeArray/nbproject/project.properties | 74 + .../Arrays/LargeArray/nbproject/project.xml | 15 + .../LargeArray/src/largearray/LargeArray.java | 24 + .../Arrays/LastElementArray/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../lastelementarray/LastElementArray.class | Bin 0 -> 707 bytes .../Arrays/LastElementArray/manifest.mf | 3 + .../LastElementArray/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 76 + .../LastElementArray/nbproject/project.xml | 15 + .../lastelementarray/LastElementArray.java | 32 + .../OCA7/Chapter5/Arrays/SizeArray/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/sizearray/SizeArray.class | Bin 0 -> 1115 bytes .../Chapter5/Arrays/SizeArray/manifest.mf | 3 + .../Arrays/SizeArray/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../SizeArray/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../SizeArray/nbproject/private/private.xml | 7 + .../SizeArray/nbproject/project.properties | 76 + .../Arrays/SizeArray/nbproject/project.xml | 15 + .../SizeArray/src/sizearray/SizeArray.java | 32 + .../Chapter5/Arrays/TripleArray1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/triplearray1/TripleArray1.class | Bin 0 -> 839 bytes .../Chapter5/Arrays/TripleArray1/manifest.mf | 3 + .../TripleArray1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../TripleArray1/nbproject/project.properties | 74 + .../Arrays/TripleArray1/nbproject/project.xml | 15 + .../src/triplearray1/TripleArray1.java | 23 + .../OCA7/Chapter5/Arrays/arrayadi/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/arrayadi/Arrayadi.class | Bin 0 -> 603 bytes .../OCA7/Chapter5/Arrays/arrayadi/manifest.mf | 3 + .../Arrays/arrayadi/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../arrayadi/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../arrayadi/nbproject/private/private.xml | 7 + .../arrayadi/nbproject/project.properties | 74 + .../Arrays/arrayadi/nbproject/project.xml | 15 + .../arrayadi/src/arrayadi/Arrayadi.java | 29 + PrjJava/OCA7/Chapter5/Chpater5_2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/chpater5_2/Chpater5_2.class | Bin 0 -> 928 bytes PrjJava/OCA7/Chapter5/Chpater5_2/manifest.mf | 3 + .../Chpater5_2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chpater5_2/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../Chpater5_2/nbproject/private/private.xml | 7 + .../Chpater5_2/nbproject/project.properties | 77 + .../Chapter5/Chpater5_2/nbproject/project.xml | 15 + .../Chpater5_2/src/chpater5_2/Chpater5_2.java | 31 + .../Chapter5/Strings/ReverseString/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/reversestring/ReverseString.class | Bin 0 -> 1490 bytes .../Strings/ReverseString/manifest.mf | 3 + .../ReverseString/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../ReverseString/nbproject/project.xml | 15 + .../src/reversestring/ReverseString.java | 60 + .../OCA7/Chapter5/Strings/StrEqual/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/strequal/StrEqual.class | Bin 0 -> 928 bytes .../Chapter5/Strings/StrEqual/manifest.mf | 3 + .../Strings/StrEqual/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../StrEqual/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StrEqual/nbproject/private/private.xml | 7 + .../StrEqual/nbproject/project.properties | 74 + .../Strings/StrEqual/nbproject/project.xml | 15 + .../StrEqual/src/strequal/StrEqual.java | 41 + .../OCA7/Chapter5/Strings/String1/build.xml | 73 + .../build/classes/string1/String1.class | Bin 0 -> 1063 bytes .../OCA7/Chapter5/Strings/String1/manifest.mf | 3 + .../Strings/String1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String1/nbproject/private/private.xml | 4 + .../String1/nbproject/project.properties | 74 + .../Strings/String1/nbproject/project.xml | 15 + .../Strings/String1/src/string1/String1.java | 29 + .../OCA7/Chapter5/Strings/String10/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/string10/String10.class | Bin 0 -> 895 bytes .../Chapter5/Strings/String10/manifest.mf | 3 + .../Strings/String10/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String10/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String10/nbproject/private/private.xml | 4 + .../String10/nbproject/project.properties | 74 + .../Strings/String10/nbproject/project.xml | 15 + .../String10/src/string10/String10.java | 28 + .../OCA7/Chapter5/Strings/String11/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/string11/String11.class | Bin 0 -> 937 bytes .../Chapter5/Strings/String11/manifest.mf | 3 + .../Strings/String11/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String11/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String11/nbproject/private/private.xml | 4 + .../String11/nbproject/project.properties | 74 + .../Strings/String11/nbproject/project.xml | 15 + .../String11/src/string11/String11.java | 33 + .../OCA7/Chapter5/Strings/String12/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/string12/String12.class | Bin 0 -> 585 bytes .../Chapter5/Strings/String12/manifest.mf | 3 + .../Strings/String12/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String12/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String12/nbproject/private/private.xml | 7 + .../String12/nbproject/project.properties | 74 + .../Strings/String12/nbproject/project.xml | 15 + .../String12/src/string12/String12.java | 23 + .../OCA7/Chapter5/Strings/String13/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/string13/String13.class | Bin 0 -> 1347 bytes .../Chapter5/Strings/String13/manifest.mf | 3 + .../Strings/String13/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String13/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../String13/nbproject/private/private.xml | 4 + .../String13/nbproject/project.properties | 76 + .../Strings/String13/nbproject/project.xml | 15 + .../String13/src/string13/String13.java | 45 + .../OCA7/Chapter5/Strings/String2/build.xml | 73 + .../build/classes/string2/String2.class | Bin 0 -> 869 bytes .../OCA7/Chapter5/Strings/String2/manifest.mf | 3 + .../Strings/String2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String2/nbproject/private/private.xml | 7 + .../String2/nbproject/project.properties | 74 + .../Strings/String2/nbproject/project.xml | 15 + .../Strings/String2/src/string2/String2.java | 29 + .../OCA7/Chapter5/Strings/String3/build.xml | 73 + .../build/classes/string3/String3.class | Bin 0 -> 1327 bytes .../OCA7/Chapter5/Strings/String3/manifest.mf | 3 + .../Strings/String3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String3/nbproject/private/private.xml | 7 + .../String3/nbproject/project.properties | 74 + .../Strings/String3/nbproject/project.xml | 15 + .../Strings/String3/src/string3/String3.java | 33 + .../OCA7/Chapter5/Strings/String4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/string4/String4.class | Bin 0 -> 877 bytes .../OCA7/Chapter5/Strings/String4/manifest.mf | 3 + .../Strings/String4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String4/nbproject/private/private.xml | 7 + .../String4/nbproject/project.properties | 74 + .../Strings/String4/nbproject/project.xml | 15 + .../Strings/String4/src/string4/String4.java | 26 + .../OCA7/Chapter5/Strings/String5/build.xml | 73 + .../OCA7/Chapter5/Strings/String5/manifest.mf | 3 + .../Strings/String5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String5/nbproject/private/private.xml | 7 + .../String5/nbproject/project.properties | 74 + .../Strings/String5/nbproject/project.xml | 15 + .../Strings/String5/src/string5/String5.java | 25 + .../OCA7/Chapter5/Strings/String6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/string6/String6.class | Bin 0 -> 887 bytes .../OCA7/Chapter5/Strings/String6/manifest.mf | 3 + .../Strings/String6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String6/nbproject/private/private.xml | 4 + .../String6/nbproject/project.properties | 74 + .../Strings/String6/nbproject/project.xml | 15 + .../Strings/String6/src/string6/String6.java | 29 + .../OCA7/Chapter5/Strings/String8/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/string8/String8.class | Bin 0 -> 1293 bytes .../OCA7/Chapter5/Strings/String8/manifest.mf | 3 + .../Strings/String8/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../String8/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../String8/nbproject/private/private.xml | 4 + .../String8/nbproject/project.properties | 74 + .../Strings/String8/nbproject/project.xml | 15 + .../Strings/String8/src/string8/String8.java | 29 + .../Strings/StringAddObject/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../stringaddobject/StringAddObject.class | Bin 0 -> 924 bytes .../Strings/StringAddObject/manifest.mf | 3 + .../StringAddObject/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../StringAddObject/nbproject/project.xml | 15 + .../src/stringaddobject/StringAddObject.java | 26 + .../Chapter5/Strings/StringBuilder1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../stringbuilder1/StringBuilder1.class | Bin 0 -> 767 bytes .../Strings/StringBuilder1/manifest.mf | 3 + .../StringBuilder1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../StringBuilder1/nbproject/project.xml | 15 + .../src/stringbuilder1/StringBuilder1.java | 25 + .../Chapter5/Strings/StringBuilder5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../stringbuilder5/StringBuilder5.class | Bin 0 -> 1331 bytes .../Strings/StringBuilder5/manifest.mf | 3 + .../StringBuilder5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../StringBuilder5/nbproject/project.xml | 15 + .../src/stringbuilder5/StringBuilder5.java | 35 + .../Strings/StringBuilderDelete/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../StringBuilderDelete.class | Bin 0 -> 1179 bytes .../Strings/StringBuilderDelete/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../StringBuilderDelete/nbproject/project.xml | 15 + .../StringBuilderDelete.java | 36 + .../Chapter5/Strings/StringEquals/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/stringequals/StringEquals.class | Bin 0 -> 918 bytes .../Chapter5/Strings/StringEquals/manifest.mf | 3 + .../StringEquals/nbproject/build-impl.xml | 1450 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StringEquals/nbproject/project.properties | 74 + .../StringEquals/nbproject/project.xml | 16 + .../src/stringequals/StringEquals.java | 47 + .../Chapter5/Strings/StringMethods/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/stringmethods/StringMethods.class | Bin 0 -> 1343 bytes .../Strings/StringMethods/manifest.mf | 3 + .../StringMethods/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../StringMethods/nbproject/project.xml | 15 + .../src/stringmethods/StringMethods.java | 39 + .../Strings/StringOperations/build.xml | 73 + .../stringoperations/StringOperations.class | Bin 0 -> 923 bytes .../Strings/StringOperations/manifest.mf | 3 + .../StringOperations/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 74 + .../StringOperations/nbproject/project.xml | 15 + .../stringoperations/StringOperations.java | 29 + .../Chapter5/Strings/StringPool1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/stringpool1/StringPool1.class | Bin 0 -> 953 bytes .../Chapter5/Strings/StringPool1/manifest.mf | 3 + .../StringPool1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../StringPool1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StringPool1/nbproject/private/private.xml | 7 + .../StringPool1/nbproject/project.properties | 74 + .../Strings/StringPool1/nbproject/project.xml | 15 + .../src/stringpool1/StringPool1.java | 26 + .../Chapter5/Strings/StringPool2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/stringpool2/StringPool2.class | Bin 0 -> 802 bytes .../Chapter5/Strings/StringPool2/manifest.mf | 3 + .../StringPool2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../StringPool2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StringPool2/nbproject/private/private.xml | 7 + .../StringPool2/nbproject/project.properties | 74 + .../Strings/StringPool2/nbproject/project.xml | 15 + .../src/stringpool2/StringPool2.java | 25 + .../Chapter5/Strings/StringPool3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/stringpool3/StringPool3.class | Bin 0 -> 807 bytes .../Chapter5/Strings/StringPool3/manifest.mf | 3 + .../StringPool3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../StringPool3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StringPool3/nbproject/private/private.xml | 7 + .../StringPool3/nbproject/project.properties | 74 + .../Strings/StringPool3/nbproject/project.xml | 15 + .../src/stringpool3/StringPool3.java | 25 + .../Chapter5/Strings/StringPool4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/stringpool4/StringPool4.class | Bin 0 -> 832 bytes .../Chapter5/Strings/StringPool4/manifest.mf | 3 + .../StringPool4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../StringPool4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StringPool4/nbproject/private/private.xml | 7 + .../StringPool4/nbproject/project.properties | 74 + .../Strings/StringPool4/nbproject/project.xml | 15 + .../src/stringpool4/StringPool4.java | 26 + .../Chapter5/Strings/StringProc2/build.xml | 73 + .../classes/stringproc2/StringProc2.class | Bin 0 -> 917 bytes .../Chapter5/Strings/StringProc2/manifest.mf | 3 + .../StringProc2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../StringProc2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StringProc2/nbproject/private/private.xml | 7 + .../StringProc2/nbproject/project.properties | 74 + .../Strings/StringProc2/nbproject/project.xml | 15 + .../src/stringproc2/StringProc2.java | 27 + .../Chapter5/Strings/StringProces1/build.xml | 73 + .../classes/stringproces1/StringProces1.class | Bin 0 -> 860 bytes .../Strings/StringProces1/manifest.mf | 3 + .../StringProces1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../StringProces1/nbproject/project.xml | 15 + .../src/stringproces1/StringProces1.java | 32 + .../Chapter5/Strings/Stringliteral/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/stringliteral/Stringliteral.class | Bin 0 -> 801 bytes .../Strings/Stringliteral/manifest.mf | 3 + .../Stringliteral/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Stringliteral/nbproject/project.xml | 15 + .../src/stringliteral/Stringliteral.java | 28 + .../OCA7/Chapter5/Strings/SubList1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/sublist1/SubList1.class | Bin 0 -> 933 bytes .../Chapter5/Strings/SubList1/manifest.mf | 3 + .../Strings/SubList1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../SubList1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../SubList1/nbproject/private/private.xml | 4 + .../SubList1/nbproject/project.properties | 74 + .../Strings/SubList1/nbproject/project.xml | 15 + .../SubList1/src/sublist1/SubList1.java | 28 + .../OCA7/Chapter5/Strings/ToString1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/tostring1/Super.class | Bin 0 -> 364 bytes .../build/classes/tostring1/ToString1.class | Bin 0 -> 778 bytes .../Chapter5/Strings/ToString1/manifest.mf | 3 + .../ToString1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ToString1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ToString1/nbproject/private/private.xml | 4 + .../ToString1/nbproject/project.properties | 74 + .../Strings/ToString1/nbproject/project.xml | 15 + .../ToString1/src/tostring1/ToString1.java | 31 + .../OCA7/Chapter5/Strings/toString2/build.xml | 73 + .../Chapter5/Strings/toString2/manifest.mf | 3 + .../toString2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../toString2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../toString2/nbproject/private/private.xml | 4 + .../toString2/nbproject/project.properties | 74 + .../Strings/toString2/nbproject/project.xml | 15 + .../toString2/src/tostring2/ToString2.java | 30 + .../OCA7/Chapter5/Strings/toString3/build.xml | 73 + .../Chapter5/Strings/toString3/manifest.mf | 3 + .../toString3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../toString3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../toString3/nbproject/private/private.xml | 4 + .../toString3/nbproject/project.properties | 74 + .../Strings/toString3/nbproject/project.xml | 15 + .../toString3/src/tostring3/ToString3.java | 46 + PrjJava/OCA7/Chapter6/Chapter6_4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/chapter6_4/Chapter6_4.class | Bin 0 -> 1325 bytes PrjJava/OCA7/Chapter6/Chapter6_4/manifest.mf | 3 + .../Chapter6_4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter6_4/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../Chapter6_4/nbproject/private/private.xml | 7 + .../Chapter6_4/nbproject/project.properties | 76 + .../Chapter6/Chapter6_4/nbproject/project.xml | 15 + .../Chapter6_4/src/chapter6_4/Chapter6_4.java | 39 + PrjJava/OCA7/Chapter6/Chapter6_7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/chapter6_7/CC2.class | Bin 0 -> 383 bytes .../build/classes/chapter6_7/CC4.class | Bin 0 -> 401 bytes .../build/classes/chapter6_7/CC5.class | Bin 0 -> 323 bytes .../build/classes/chapter6_7/Chapter6_7.class | Bin 0 -> 514 bytes .../classes/chapter6_7/SubException.class | Bin 0 -> 286 bytes .../classes/chapter6_7/SubSubException.class | Bin 0 -> 299 bytes PrjJava/OCA7/Chapter6/Chapter6_7/manifest.mf | 3 + .../Chapter6_7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Chapter6_7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Chapter6_7/nbproject/private/private.xml | 7 + .../Chapter6_7/nbproject/project.properties | 74 + .../Chapter6/Chapter6_7/nbproject/project.xml | 15 + .../Chapter6_7/src/chapter6_7/CC2.java | 18 + .../Chapter6_7/src/chapter6_7/CC4.java | 17 + .../Chapter6_7/src/chapter6_7/CC5.java | 18 + .../Chapter6_7/src/chapter6_7/Chapter6_7.java | 27 + .../src/chapter6_7/SubException.java | 13 + .../src/chapter6_7/SubSubException.java | 14 + PrjJava/OCA7/Chapter6/Excecise64/build.xml | 73 + .../Excecise64/build/built-jar.properties | 4 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/excecise64/BadFoodException.class | Bin 0 -> 220 bytes .../build/classes/excecise64/Excecise64.class | Bin 0 -> 996 bytes .../Chapter6/Excecise64/dist/Excecise64.jar | Bin 0 -> 2112 bytes .../OCA7/Chapter6/Excecise64/dist/README.TXT | 32 + PrjJava/OCA7/Chapter6/Excecise64/manifest.mf | 3 + .../Excecise64/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Excecise64/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../Excecise64/nbproject/private/private.xml | 7 + .../Excecise64/nbproject/project.properties | 77 + .../Chapter6/Excecise64/nbproject/project.xml | 15 + .../src/excecise64/BadFoodException.class | Bin 0 -> 220 bytes .../src/excecise64/BadFoodException.java | 15 + .../src/excecise64/Excecise64.class | Bin 0 -> 717 bytes .../Excecise64/src/excecise64/Excecise64.java | 37 + .../Exceptions/AritmeticException1/build.xml | 73 + .../AritmeticException1/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../AritmeticException1/nbproject/project.xml | 15 + .../AritmeticException1.java | 21 + .../Exceptions/AritmeticException2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../AritmeticException2.class | Bin 0 -> 1149 bytes .../AritmeticException2/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../AritmeticException2/nbproject/project.xml | 15 + .../AritmeticException2.java | 39 + .../Exceptions/AritmeticException3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../AritmeticException3.class | Bin 0 -> 772 bytes .../AritmeticException3/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../AritmeticException3/nbproject/project.xml | 15 + .../AritmeticException3.java | 33 + .../Exceptions/BlockstaticException/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../BlockstaticException.class | Bin 0 -> 537 bytes .../BlockstaticException/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../BlockstaticException.java | 24 + .../Exceptions/ClassCastException1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../ClassCastException1.class | Bin 0 -> 745 bytes .../ClassCastException1/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../ClassCastException1/nbproject/project.xml | 15 + .../ClassCastException1.java | 27 + .../Exceptions/ClassCastException2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/classcastexception2/Child.class | Bin 0 -> 500 bytes .../ClassCastException2.class | Bin 0 -> 633 bytes .../classes/classcastexception2/Parent.class | Bin 0 -> 493 bytes .../ClassCastException2/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../ClassCastException2/nbproject/project.xml | 15 + .../ClassCastException2.java | 41 + .../Exceptions/CustomException1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/customexception1/CatEx.class | Bin 0 -> 277 bytes .../customexception1/CustomException1.class | Bin 0 -> 668 bytes .../classes/customexception1/DogEx.class | Bin 0 -> 277 bytes .../Exceptions/CustomException1/manifest.mf | 3 + .../CustomException1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../CustomException1/nbproject/project.xml | 15 + .../src/customexception1/CatEx.java | 14 + .../customexception1/CustomException1.java | 32 + .../src/customexception1/DogEx.java | 14 + .../Exceptions/CustomException2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../customexception2/CustomException2.class | Bin 0 -> 935 bytes .../build/classes/customexception2/E1.class | Bin 0 -> 282 bytes .../build/classes/customexception2/E2.class | Bin 0 -> 282 bytes .../Exceptions/CustomException2/manifest.mf | 3 + .../CustomException2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../CustomException2/nbproject/project.xml | 15 + .../customexception2/CustomException2.java | 32 + .../Exceptions/CustomException3/build.xml | 73 + .../Exceptions/CustomException3/manifest.mf | 3 + .../CustomException3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../CustomException3/nbproject/project.xml | 15 + .../customexception3/CustomException3.java | 42 + .../Exceptions/CustomException4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../customexception4/CustomException4.class | Bin 0 -> 985 bytes .../customexception4/CustomException5.class | Bin 0 -> 310 bytes .../Exceptions/CustomException4/manifest.mf | 3 + .../CustomException4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 80 + .../CustomException4/nbproject/project.xml | 15 + .../customexception4/CustomException4.java | 42 + .../Exceptions/Exception1/OutFile.txt | 0 .../Chapter6/Exceptions/Exception1/build.xml | 73 + .../Exception1/build/built-jar.properties | 4 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/exception1/Exception1.class | Bin 0 -> 1182 bytes .../Exceptions/Exception1/dist/Exception1.jar | Bin 0 -> 1862 bytes .../Exceptions/Exception1/dist/README.TXT | 32 + .../Exceptions/Exception1/manifest.mf | 3 + .../Exception1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception1/nbproject/private/private.xml | 7 + .../Exception1/nbproject/project.properties | 74 + .../Exception1/nbproject/project.xml | 15 + .../Exception1/src/exception1/Exception1.java | 31 + .../Chapter6/Exceptions/Exception10/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/exception10/Master.class | Bin 0 -> 424 bytes .../build/classes/exception10/Slave.class | Bin 0 -> 921 bytes .../Exceptions/Exception10/manifest.mf | 3 + .../Exception10/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception10/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception10/nbproject/private/private.xml | 7 + .../Exception10/nbproject/project.properties | 74 + .../Exception10/nbproject/project.xml | 15 + .../Exception10/src/exception10/Master.java | 20 + .../Exception10/src/exception10/Slave.java | 65 + .../Chapter6/Exceptions/Exception11/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exception11/Exception11.class | Bin 0 -> 1568 bytes .../Exceptions/Exception11/manifest.mf | 3 + .../Exception11/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception11/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception11/nbproject/private/private.xml | 9 + .../Exception11/nbproject/project.properties | 74 + .../Exception11/nbproject/project.xml | 15 + .../src/exception11/Exception11.java | 46 + .../Chapter6/Exceptions/Exception12/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exception12/Exception12.class | Bin 0 -> 845 bytes .../build/classes/exception12/Utils.class | Bin 0 -> 439 bytes .../Exceptions/Exception12/manifest.mf | 3 + .../Exception12/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception12/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception12/nbproject/private/private.xml | 10 + .../Exception12/nbproject/project.properties | 74 + .../Exception12/nbproject/project.xml | 15 + .../src/exception12/Exception12.java | 36 + .../Exception12/src/exception12/Utils.java | 17 + .../Chapter6/Exceptions/Exception13/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exception13/Exception13.class | Bin 0 -> 499 bytes .../Exceptions/Exception13/manifest.mf | 3 + .../Exception13/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception13/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception13/nbproject/private/private.xml | 9 + .../Exception13/nbproject/project.properties | 74 + .../Exception13/nbproject/project.xml | 15 + .../src/exception13/Exception13.java | 26 + .../Chapter6/Exceptions/Exception14/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exception14/Exception14.class | Bin 0 -> 767 bytes .../Exceptions/Exception14/manifest.mf | 3 + .../Exception14/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception14/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception14/nbproject/private/private.xml | 9 + .../Exception14/nbproject/project.properties | 74 + .../Exception14/nbproject/project.xml | 15 + .../src/exception14/Exception14.java | 35 + .../Chapter6/Exceptions/Exception15/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exception15/Exception15.class | Bin 0 -> 685 bytes .../classes/exsception15/Exsception15.class | Bin 0 -> 792 bytes .../Exceptions/Exception15/manifest.mf | 3 + .../Exception15/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception15/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception15/nbproject/private/private.xml | 9 + .../Exception15/nbproject/project.properties | 74 + .../Exception15/nbproject/project.xml | 15 + .../src/exception15/Exception15.java | 26 + .../src/exsception15/Exsception15.java | 34 + .../Chapter6/Exceptions/Exception16/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exception16/Exception16.class | Bin 0 -> 624 bytes .../classes/exception16/MyException.class | Bin 0 -> 285 bytes .../build/classes/exception16/Tire.class | Bin 0 -> 328 bytes .../Exceptions/Exception16/manifest.mf | 3 + .../Exception16/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception16/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception16/nbproject/private/private.xml | 11 + .../Exception16/nbproject/project.properties | 74 + .../Exception16/nbproject/project.xml | 15 + .../src/exception16/Exception16.java | 27 + .../src/exception16/MyException.java | 15 + .../Exception16/src/exception16/Tire.java | 18 + .../Chapter6/Exceptions/Exception17/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exception17/Exception17.class | Bin 0 -> 682 bytes .../classes/exception17/MyException.class | Bin 0 -> 285 bytes .../build/classes/exception17/Tire.class | Bin 0 -> 328 bytes .../Exceptions/Exception17/manifest.mf | 3 + .../Exception17/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception17/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception17/nbproject/private/private.xml | 9 + .../Exception17/nbproject/project.properties | 74 + .../Exception17/nbproject/project.xml | 15 + .../src/exception17/Exception17.java | 27 + .../src/exception17/MyException.java | 15 + .../Exception17/src/exception17/Tire.java | 18 + .../Chapter6/Exceptions/Exception18/build.xml | 73 + .../Exceptions/Exception18/manifest.mf | 3 + .../Exception18/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception18/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception18/nbproject/private/private.xml | 4 + .../Exception18/nbproject/project.properties | 74 + .../Exception18/nbproject/project.xml | 15 + .../src/exception18/Exception18.java | 27 + .../src/exception18/MyException.java | 15 + .../Exception18/src/exception18/Tire.java | 18 + .../Chapter6/Exceptions/Exception19/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exception19/Exception19.class | Bin 0 -> 679 bytes .../classes/exception19/MyException.class | Bin 0 -> 285 bytes .../build/classes/exception19/Tire.class | Bin 0 -> 328 bytes .../Exceptions/Exception19/manifest.mf | 3 + .../Exception19/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception19/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception19/nbproject/private/private.xml | 4 + .../Exception19/nbproject/project.properties | 74 + .../Exception19/nbproject/project.xml | 15 + .../src/exception19/Exception19.java | 28 + .../src/exception19/MyException.java | 15 + .../Exception19/src/exception19/Tire.java | 18 + .../Chapter6/Exceptions/Exception6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/exception6/Exception6.class | Bin 0 -> 968 bytes .../Exceptions/Exception6/manifest.mf | 3 + .../Exception6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception6/nbproject/private/private.xml | 7 + .../Exception6/nbproject/project.properties | 74 + .../Exception6/nbproject/project.xml | 15 + .../Exception6/src/exception6/Exception6.java | 39 + .../Chapter6/Exceptions/Exception7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/exception7/Exception7.class | Bin 0 -> 650 bytes .../build/classes/exception7/Percentage.class | Bin 0 -> 626 bytes .../Exceptions/Exception7/manifest.mf | 3 + .../Exception7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception7/nbproject/private/private.xml | 7 + .../Exception7/nbproject/project.properties | 74 + .../Exception7/nbproject/project.xml | 15 + .../Exception7/src/exception7/Exception7.java | 26 + .../Exception7/src/exception7/Percentage.java | 32 + .../Chapter6/Exceptions/Exception8/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/exception8/Exception8.class | Bin 0 -> 862 bytes .../Exceptions/Exception8/manifest.mf | 3 + .../Exception8/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception8/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception8/nbproject/private/private.xml | 7 + .../Exception8/nbproject/project.properties | 74 + .../Exception8/nbproject/project.xml | 15 + .../Exception8/src/exception8/Exception8.java | 33 + .../Chapter6/Exceptions/Exception9/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/exception9/Exception9.class | Bin 0 -> 1286 bytes .../Exceptions/Exception9/manifest.mf | 3 + .../Exception9/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exception9/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exception9/nbproject/private/private.xml | 7 + .../Exception9/nbproject/project.properties | 74 + .../Exception9/nbproject/project.xml | 15 + .../Exception9/src/exception9/Exception9.java | 43 + .../Exceptions/ExceptionSample/build.xml | 73 + .../Exceptions/ExceptionSample/manifest.mf | 3 + .../ExceptionSample/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../ExceptionSample/nbproject/project.xml | 15 + .../JavaApplication237.java | 26 + .../Exceptions/Excercise63_1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/excercise63_1/Excercise63_1.class | Bin 0 -> 1028 bytes .../classes/excercise63_1/Excercise63_1.rs | 1 + .../Exceptions/Excercise63_1/manifest.mf | 3 + .../Excercise63_1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../Excercise63_1/nbproject/project.xml | 15 + .../src/excercise63_1/Excercise63_1.java | 38 + .../Exceptions/Excersise6-2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/excersise6/pkg2/Excersise62.class | Bin 0 -> 736 bytes .../Exceptions/Excersise6-2/manifest.mf | 3 + .../Excersise6-2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../Excersise6-2/nbproject/project.properties | 74 + .../Excersise6-2/nbproject/project.xml | 15 + .../src/excersise6/pkg2/Excersise62.java | 35 + .../Chapter6/Exceptions/Exercise6-3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exercise6/pkg3/Exercise63.class | Bin 0 -> 1350 bytes .../Exceptions/Exercise6-3/manifest.mf | 3 + .../Exercise6-3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Exercise6-3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Exercise6-3/nbproject/private/private.xml | 7 + .../Exercise6-3/nbproject/project.properties | 74 + .../Exercise6-3/nbproject/project.xml | 15 + .../src/exercise6/pkg3/Exercise63.java | 42 + .../Chapter6/Exceptions/Finally1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/finally1/Finally1.class | Bin 0 -> 814 bytes .../Chapter6/Exceptions/Finally1/manifest.mf | 3 + .../Finally1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Finally1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Finally1/nbproject/private/private.xml | 7 + .../Finally1/nbproject/project.properties | 74 + .../Exceptions/Finally1/nbproject/project.xml | 15 + .../Finally1/src/finally1/Finally1.java | 34 + .../IllegalArgumentException/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/exception4/Exception4.class | Bin 0 -> 965 bytes .../IllegalArgumentException/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 9 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../src/exception4/Exception4.java | 34 + .../OCA7/Chapter6/Exceptions/NPE1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../NPE1/build/classes/npe1/NPE1.class | Bin 0 -> 716 bytes .../OCA7/Chapter6/Exceptions/NPE1/manifest.mf | 3 + .../Exceptions/NPE1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../NPE1/nbproject/genfiles.properties | 8 + .../NPE1/nbproject/private/private.properties | 2 + .../NPE1/nbproject/private/private.xml | 4 + .../NPE1/nbproject/project.properties | 74 + .../Exceptions/NPE1/nbproject/project.xml | 15 + .../Exceptions/NPE1/src/npe1/NPE1.java | 29 + .../OCA7/Chapter6/Exceptions/NPE2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../NPE2/build/classes/npe2/NPE2.class | Bin 0 -> 599 bytes .../OCA7/Chapter6/Exceptions/NPE2/manifest.mf | 3 + .../Exceptions/NPE2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../NPE2/nbproject/genfiles.properties | 8 + .../NPE2/nbproject/private/private.properties | 2 + .../NPE2/nbproject/private/private.xml | 4 + .../NPE2/nbproject/project.properties | 74 + .../Exceptions/NPE2/nbproject/project.xml | 15 + .../Exceptions/NPE2/src/npe2/NPE2.java | 27 + .../OCA7/Chapter6/Exceptions/NPE3/build.xml | 73 + .../OCA7/Chapter6/Exceptions/NPE3/manifest.mf | 3 + .../Exceptions/NPE3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../NPE3/nbproject/genfiles.properties | 8 + .../NPE3/nbproject/private/private.properties | 2 + .../NPE3/nbproject/private/private.xml | 4 + .../NPE3/nbproject/project.properties | 74 + .../Exceptions/NPE3/nbproject/project.xml | 15 + .../Exceptions/NPE3/src/npe3/NPE3.java | 22 + .../Exceptions/NullPointerException/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../NullPointerException.class | Bin 0 -> 712 bytes .../NullPointerException/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../NullPointerException.java | 21 + .../NullPointerException1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../NullPointerException1.class | Bin 0 -> 802 bytes .../NullPointerException1/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../NullPointerException1.java | 26 + .../Exceptions/NumberFormat1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/numberformat1/NumberFormat1.class | Bin 0 -> 1153 bytes .../Exceptions/NumberFormat1/manifest.mf | 3 + .../NumberFormat1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../NumberFormat1/nbproject/project.xml | 15 + .../src/numberformat1/NumberFormat1.java | 40 + .../Exceptions/OutOfMemoryError1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../outofmemoryerror1/OutOfMemoryError1.class | Bin 0 -> 1176 bytes .../Exceptions/OutOfMemoryError1/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../OutOfMemoryError1/nbproject/project.xml | 15 + .../outofmemoryerror1/OutOfMemoryError1.java | 34 + .../Chapter6/Exceptions/Runtime1/build.xml | 73 + .../build/classes/runtime1/Runtime1.class | Bin 0 -> 1416 bytes .../Chapter6/Exceptions/Runtime1/manifest.mf | 3 + .../Runtime1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Runtime1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Runtime1/nbproject/private/private.xml | 4 + .../Runtime1/nbproject/project.properties | 74 + .../Exceptions/Runtime1/nbproject/project.xml | 15 + .../Runtime1/src/runtime1/Runtime1.java | 37 + .../Exceptions/RuntimeException/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../runtimeexception/RuntimeException1.class | Bin 0 -> 1008 bytes .../Exceptions/RuntimeException/manifest.mf | 3 + .../RuntimeException/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../RuntimeException/nbproject/project.xml | 15 + .../runtimeexception/RuntimeException1.java | 43 + .../Exceptions/RuntimeException1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/runtimeexception1/Lake.class | Bin 0 -> 553 bytes .../runtimeexception1/RuntimeException1.class | Bin 0 -> 962 bytes .../Exceptions/RuntimeException1/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../RuntimeException1/nbproject/project.xml | 15 + .../src/runtimeexception1/Lake.java | 18 + .../runtimeexception1/RuntimeException1.java | 29 + .../Exceptions/RuntimeException2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../runtimeexception2/RuntimeException2.class | Bin 0 -> 733 bytes .../Exceptions/RuntimeException2/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../RuntimeException2/nbproject/project.xml | 15 + .../runtimeexception2/RuntimeException2.java | 31 + .../Exceptions/RuntimeException3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../runtimeexception3/MyException.class | Bin 0 -> 303 bytes .../runtimeexception3/RuntimeException3.class | Bin 0 -> 989 bytes .../Exceptions/RuntimeException3/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../RuntimeException3/nbproject/project.xml | 15 + .../runtimeexception3/RuntimeException3.java | 42 + .../TheMostSpecificException/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../MyException.class | Bin 0 -> 324 bytes .../MyException1.class | Bin 0 -> 343 bytes .../MyException2.class | Bin 0 -> 343 bytes .../MyException3.class | Bin 0 -> 344 bytes .../TheMostSpecificException.class | Bin 0 -> 1240 bytes .../TheMostSpecificException/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../TheMostSpecificException.java | 51 + .../Chapter6/Exceptions/ThorwNPE/build.xml | 73 + .../Chapter6/Exceptions/ThorwNPE/manifest.mf | 3 + .../ThorwNPE/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ThorwNPE/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ThorwNPE/nbproject/private/private.xml | 4 + .../ThorwNPE/nbproject/project.properties | 74 + .../Exceptions/ThorwNPE/nbproject/project.xml | 15 + .../ThorwNPE/src/thorwnpe/ThorwNPE.java | 24 + .../OCA7/Chapter6/Exceptions/Throw1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Throw1/build/classes/throw1/Throw1.class | Bin 0 -> 902 bytes .../Chapter6/Exceptions/Throw1/manifest.mf | 3 + .../Throw1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Throw1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Throw1/nbproject/private/private.xml | 7 + .../Throw1/nbproject/project.properties | 74 + .../Exceptions/Throw1/nbproject/project.xml | 15 + .../Exceptions/Throw1/src/throw1/Throw1.java | 35 + .../Chapter6/Exceptions/Throwable/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/exception5/Exception5.class | Bin 0 -> 916 bytes .../Chapter6/Exceptions/Throwable/manifest.mf | 3 + .../Throwable/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Throwable/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Throwable/nbproject/private/private.xml | 7 + .../Throwable/nbproject/project.properties | 74 + .../Throwable/nbproject/project.xml | 15 + .../Throwable/src/exception5/Exception5.java | 37 + .../Chapter6/Exceptions/Thrownable1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/thrownable1/Thrownable1.class | Bin 0 -> 927 bytes .../Exceptions/Thrownable1/manifest.mf | 3 + .../Thrownable1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Thrownable1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Thrownable1/nbproject/private/private.xml | 7 + .../Thrownable1/nbproject/project.properties | 74 + .../Thrownable1/nbproject/project.xml | 15 + .../src/thrownable1/Thrownable1.java | 36 + .../Chapter6/Exceptions/Thrownable2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/thrownable2/MyThrowable.class | Bin 0 -> 291 bytes .../classes/thrownable2/SomeThwonable.class | Bin 0 -> 291 bytes .../classes/thrownable2/Thrownable2.class | Bin 0 -> 881 bytes .../Exceptions/Thrownable2/manifest.mf | 3 + .../Thrownable2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Thrownable2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Thrownable2/nbproject/private/private.xml | 7 + .../Thrownable2/nbproject/project.properties | 74 + .../Thrownable2/nbproject/project.xml | 15 + .../src/thrownable2/MyThrowable.java | 14 + .../src/thrownable2/SomeThwonable.java | 14 + .../src/thrownable2/Thrownable2.java | 33 + .../Chapter6/Exceptions/Throws1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/throws1/Throws1.class | Bin 0 -> 784 bytes .../Chapter6/Exceptions/Throws1/manifest.mf | 3 + .../Throws1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Throws1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Throws1/nbproject/private/private.xml | 7 + .../Throws1/nbproject/project.properties | 74 + .../Exceptions/Throws1/nbproject/project.xml | 15 + .../Throws1/src/throws1/Throws1.java | 30 + .../Chapter6/Exceptions/Throws2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/throws2/AnotherException.class | Bin 0 -> 283 bytes .../build/classes/throws2/NewException.class | Bin 0 -> 275 bytes .../build/classes/throws2/Throws2.class | Bin 0 -> 721 bytes .../Chapter6/Exceptions/Throws2/manifest.mf | 3 + .../Throws2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Throws2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Throws2/nbproject/private/private.xml | 4 + .../Throws2/nbproject/project.properties | 74 + .../Exceptions/Throws2/nbproject/project.xml | 15 + .../Throws2/src/throws2/Throws2.java | 30 + .../Chapter6/Exceptions/Throws3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/throws3/Throws3.class | Bin 0 -> 468 bytes .../Throws3/build/classes/throws3/XXX.class | Bin 0 -> 375 bytes .../Throws3/build/classes/throws3/YYY.class | Bin 0 -> 310 bytes .../Chapter6/Exceptions/Throws3/manifest.mf | 3 + .../Throws3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Throws3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Throws3/nbproject/private/private.xml | 4 + .../Throws3/nbproject/project.properties | 74 + .../Exceptions/Throws3/nbproject/project.xml | 15 + .../Throws3/src/throws3/Throws3.java | 36 + .../Chapter6/Exceptions/Throws4/build.xml | 73 + .../Chapter6/Exceptions/Throws4/manifest.mf | 3 + .../Throws4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Throws4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Throws4/nbproject/private/private.xml | 7 + .../Throws4/nbproject/project.properties | 74 + .../Exceptions/Throws4/nbproject/project.xml | 15 + .../Throws4/src/throws4/Throws4.java | 31 + .../Chapter6/Exceptions/Throws5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/throws5/Throws5.class | Bin 0 -> 1020 bytes .../Chapter6/Exceptions/Throws5/manifest.mf | 3 + .../Throws5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Throws5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Throws5/nbproject/private/private.xml | 7 + .../Throws5/nbproject/project.properties | 74 + .../Exceptions/Throws5/nbproject/project.xml | 15 + .../Throws5/src/throws5/Throws5.java | 31 + .../Exceptions/TransferException/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../transferexception/TransferException.class | Bin 0 -> 858 bytes .../classes/transferexception/Utils.class | Bin 0 -> 451 bytes .../Exceptions/TransferException/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 76 + .../TransferException/nbproject/project.xml | 15 + .../transferexception/TransferException.java | 29 + .../src/transferexception/Utils.java | 16 + .../Exceptions/TransferException1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../TransferException1.class | Bin 0 -> 1317 bytes .../Exceptions/TransferException1/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../TransferException1/nbproject/project.xml | 15 + .../TransferException1.java | 44 + .../Exceptions/TransferExceptionOut/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../transferexceptionout/MyException.class | Bin 0 -> 363 bytes .../TransferExceptionOut.class | Bin 0 -> 1027 bytes .../TransferExceptionOut/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 15 + .../src/transferexceptionout/MyException.java | 18 + .../TransferExceptionOut.java | 37 + .../OCA7/Chapter6/Flow/Blocklabeled/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/blocklabeled/Blocklabeled.class | Bin 0 -> 879 bytes .../Chapter6/Flow/Blocklabeled/manifest.mf | 3 + .../Blocklabeled/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Blocklabeled/nbproject/project.properties | 74 + .../Flow/Blocklabeled/nbproject/project.xml | 15 + .../src/blocklabeled/Blocklabeled.java | 38 + .../OCA7/Chapter6/Flow/Continue1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/continue1/Continue1.class | Bin 0 -> 891 bytes .../OCA7/Chapter6/Flow/Continue1/manifest.mf | 3 + .../Flow/Continue1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Continue1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Continue1/nbproject/private/private.xml | 4 + .../Continue1/nbproject/project.properties | 74 + .../Flow/Continue1/nbproject/project.xml | 15 + .../Continue1/src/continue1/Continue1.java | 31 + .../OCA7/Chapter6/Flow/Continue2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/continue2/Continue2.class | Bin 0 -> 722 bytes .../OCA7/Chapter6/Flow/Continue2/manifest.mf | 3 + .../Flow/Continue2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Continue2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Continue2/nbproject/private/private.xml | 4 + .../Continue2/nbproject/project.properties | 74 + .../Flow/Continue2/nbproject/project.xml | 15 + .../Continue2/src/continue2/Continue2.java | 32 + .../OCA7/Chapter6/Flow/Crazyloop/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/crazyloop/Crazyloop.class | Bin 0 -> 719 bytes .../OCA7/Chapter6/Flow/Crazyloop/manifest.mf | 3 + .../Flow/Crazyloop/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Crazyloop/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Crazyloop/nbproject/private/private.xml | 4 + .../Crazyloop/nbproject/project.properties | 74 + .../Flow/Crazyloop/nbproject/project.xml | 15 + .../Crazyloop/src/crazyloop/Crazyloop.java | 38 + PrjJava/OCA7/Chapter6/Flow/Do1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/Do1/build/classes/do1/Do1.class | Bin 0 -> 571 bytes PrjJava/OCA7/Chapter6/Flow/Do1/manifest.mf | 3 + .../Flow/Do1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/Do1/nbproject/genfiles.properties | 8 + .../Do1/nbproject/private/private.properties | 2 + .../Flow/Do1/nbproject/private/private.xml | 4 + .../Flow/Do1/nbproject/project.properties | 74 + .../Chapter6/Flow/Do1/nbproject/project.xml | 15 + .../OCA7/Chapter6/Flow/Do1/src/do1/Do1.java | 26 + PrjJava/OCA7/Chapter6/Flow/Do2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/Do2/build/classes/do2/Do2.class | Bin 0 -> 827 bytes PrjJava/OCA7/Chapter6/Flow/Do2/manifest.mf | 3 + .../Flow/Do2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/Do2/nbproject/genfiles.properties | 8 + .../Do2/nbproject/private/private.properties | 2 + .../Flow/Do2/nbproject/private/private.xml | 7 + .../Flow/Do2/nbproject/project.properties | 74 + .../Chapter6/Flow/Do2/nbproject/project.xml | 15 + .../OCA7/Chapter6/Flow/Do2/src/do2/Do2.java | 26 + PrjJava/OCA7/Chapter6/Flow/Do8/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/Do8/build/classes/do8/Do8.class | Bin 0 -> 958 bytes PrjJava/OCA7/Chapter6/Flow/Do8/manifest.mf | 3 + .../Flow/Do8/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/Do8/nbproject/genfiles.properties | 8 + .../Do8/nbproject/private/private.properties | 2 + .../Flow/Do8/nbproject/private/private.xml | 7 + .../Flow/Do8/nbproject/project.properties | 74 + .../Chapter6/Flow/Do8/nbproject/project.xml | 15 + .../OCA7/Chapter6/Flow/Do8/src/do8/Do8.java | 33 + PrjJava/OCA7/Chapter6/Flow/Exit1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Exit1/build/classes/exit1/Exit1.class | Bin 0 -> 635 bytes PrjJava/OCA7/Chapter6/Flow/Exit1/manifest.mf | 3 + .../Flow/Exit1/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Flow/Exit1/nbproject/genfiles.properties | 8 + .../Exit1/nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../Flow/Exit1/nbproject/private/private.xml | 7 + .../Flow/Exit1/nbproject/project.properties | 76 + .../Chapter6/Flow/Exit1/nbproject/project.xml | 15 + .../Chapter6/Flow/Exit1/src/exit1/Exit1.java | 27 + PrjJava/OCA7/Chapter6/Flow/Exit2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Exit2/build/classes/exit2/Exit2.class | Bin 0 -> 638 bytes PrjJava/OCA7/Chapter6/Flow/Exit2/manifest.mf | 3 + .../Flow/Exit2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/Exit2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/Exit2/nbproject/private/private.xml | 4 + .../Flow/Exit2/nbproject/project.properties | 74 + .../Chapter6/Flow/Exit2/nbproject/project.xml | 15 + .../Chapter6/Flow/Exit2/src/exit2/Exit2.java | 25 + .../OCA7/Chapter6/Flow/ExitFromFor1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/exitfromfor1/ExitFromFor1.class | Bin 0 -> 712 bytes .../Chapter6/Flow/ExitFromFor1/manifest.mf | 3 + .../ExitFromFor1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../ExitFromFor1/nbproject/project.properties | 74 + .../Flow/ExitFromFor1/nbproject/project.xml | 15 + .../src/exitfromfor1/ExitFromFor1.java | 40 + PrjJava/OCA7/Chapter6/Flow/For1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/For1/build/classes/for1/For1.class | Bin 0 -> 854 bytes PrjJava/OCA7/Chapter6/Flow/For1/manifest.mf | 3 + .../Flow/For1/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Flow/For1/nbproject/genfiles.properties | 8 + .../For1/nbproject/private/private.properties | 2 + .../Flow/For1/nbproject/private/private.xml | 7 + .../Flow/For1/nbproject/project.properties | 74 + .../Chapter6/Flow/For1/nbproject/project.xml | 15 + .../Chapter6/Flow/For1/src/for1/For1.java | 30 + PrjJava/OCA7/Chapter6/Flow/For10/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../For10/build/classes/for10/For10.class | Bin 0 -> 603 bytes PrjJava/OCA7/Chapter6/Flow/For10/manifest.mf | 3 + .../Flow/For10/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For10/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/For10/nbproject/private/private.xml | 4 + .../Flow/For10/nbproject/project.properties | 74 + .../Chapter6/Flow/For10/nbproject/project.xml | 15 + .../Chapter6/Flow/For10/src/for10/For10.java | 34 + PrjJava/OCA7/Chapter6/Flow/For11/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../For11/build/classes/for11/For11.class | Bin 0 -> 1045 bytes PrjJava/OCA7/Chapter6/Flow/For11/manifest.mf | 3 + .../Flow/For11/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For11/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/For11/nbproject/private/private.xml | 4 + .../Flow/For11/nbproject/project.properties | 74 + .../Chapter6/Flow/For11/nbproject/project.xml | 15 + .../Chapter6/Flow/For11/src/for11/For11.java | 41 + PrjJava/OCA7/Chapter6/Flow/For12/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../For12/build/classes/for12/For12.class | Bin 0 -> 997 bytes PrjJava/OCA7/Chapter6/Flow/For12/manifest.mf | 3 + .../Flow/For12/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For12/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/For12/nbproject/private/private.xml | 4 + .../Flow/For12/nbproject/project.properties | 74 + .../Chapter6/Flow/For12/nbproject/project.xml | 15 + .../Chapter6/Flow/For12/src/for12/For12.java | 33 + PrjJava/OCA7/Chapter6/Flow/For13/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../For13/build/classes/for13/For13.class | Bin 0 -> 611 bytes PrjJava/OCA7/Chapter6/Flow/For13/manifest.mf | 3 + .../Flow/For13/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For13/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/For13/nbproject/private/private.xml | 7 + .../Flow/For13/nbproject/project.properties | 74 + .../Chapter6/Flow/For13/nbproject/project.xml | 15 + .../Chapter6/Flow/For13/src/for13/For13.java | 34 + PrjJava/OCA7/Chapter6/Flow/For14/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../For14/build/classes/for14/For14.class | Bin 0 -> 598 bytes PrjJava/OCA7/Chapter6/Flow/For14/manifest.mf | 3 + .../Flow/For14/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For14/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/For14/nbproject/private/private.xml | 4 + .../Flow/For14/nbproject/project.properties | 74 + .../Chapter6/Flow/For14/nbproject/project.xml | 15 + .../Chapter6/Flow/For14/src/for14/For14.java | 27 + PrjJava/OCA7/Chapter6/Flow/For2/build.xml | 73 + PrjJava/OCA7/Chapter6/Flow/For2/manifest.mf | 3 + .../Flow/For2/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Flow/For2/nbproject/genfiles.properties | 8 + .../For2/nbproject/private/private.properties | 2 + .../Flow/For2/nbproject/private/private.xml | 4 + .../Flow/For2/nbproject/project.properties | 74 + .../Chapter6/Flow/For2/nbproject/project.xml | 15 + .../Chapter6/Flow/For2/src/for2/For2.java | 25 + PrjJava/OCA7/Chapter6/Flow/For3/build.xml | 73 + PrjJava/OCA7/Chapter6/Flow/For3/manifest.mf | 3 + .../Flow/For3/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Flow/For3/nbproject/genfiles.properties | 8 + .../For3/nbproject/private/private.properties | 2 + .../Flow/For3/nbproject/private/private.xml | 4 + .../Flow/For3/nbproject/project.properties | 74 + .../Chapter6/Flow/For3/nbproject/project.xml | 15 + .../Chapter6/Flow/For3/src/for3/For3.java | 26 + PrjJava/OCA7/Chapter6/Flow/For4/build.xml | 73 + PrjJava/OCA7/Chapter6/Flow/For4/manifest.mf | 3 + .../Flow/For4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For4/nbproject/genfiles.properties | 8 + .../For4/nbproject/private/private.properties | 2 + .../Flow/For4/nbproject/private/private.xml | 4 + .../Flow/For4/nbproject/project.properties | 74 + .../Chapter6/Flow/For4/nbproject/project.xml | 15 + .../Chapter6/Flow/For4/src/for4/For4.java | 23 + PrjJava/OCA7/Chapter6/Flow/For5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/For5/build/classes/for5/For5.class | Bin 0 -> 647 bytes PrjJava/OCA7/Chapter6/Flow/For5/manifest.mf | 3 + .../Flow/For5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For5/nbproject/genfiles.properties | 8 + .../For5/nbproject/private/private.properties | 2 + .../Flow/For5/nbproject/private/private.xml | 4 + .../Flow/For5/nbproject/project.properties | 74 + .../Chapter6/Flow/For5/nbproject/project.xml | 15 + .../Chapter6/Flow/For5/src/for5/For5.java | 26 + PrjJava/OCA7/Chapter6/Flow/For6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/For6/build/classes/for6/For6.class | Bin 0 -> 613 bytes PrjJava/OCA7/Chapter6/Flow/For6/manifest.mf | 3 + .../Flow/For6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For6/nbproject/genfiles.properties | 8 + .../For6/nbproject/private/private.properties | 2 + .../Flow/For6/nbproject/private/private.xml | 4 + .../Flow/For6/nbproject/project.properties | 74 + .../Chapter6/Flow/For6/nbproject/project.xml | 15 + .../Chapter6/Flow/For6/src/for6/For6.java | 26 + PrjJava/OCA7/Chapter6/Flow/For7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/For7/build/classes/for7/For7.class | Bin 0 -> 699 bytes PrjJava/OCA7/Chapter6/Flow/For7/manifest.mf | 3 + .../Flow/For7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For7/nbproject/genfiles.properties | 8 + .../For7/nbproject/private/private.properties | 2 + .../Flow/For7/nbproject/private/private.xml | 4 + .../Flow/For7/nbproject/project.properties | 74 + .../Chapter6/Flow/For7/nbproject/project.xml | 15 + .../Chapter6/Flow/For7/src/for7/For7.java | 39 + PrjJava/OCA7/Chapter6/Flow/For8/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/For8/build/classes/for8/For8.class | Bin 0 -> 909 bytes PrjJava/OCA7/Chapter6/Flow/For8/manifest.mf | 3 + .../Flow/For8/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/For8/nbproject/genfiles.properties | 8 + .../For8/nbproject/private/private.properties | 2 + .../Flow/For8/nbproject/private/private.xml | 7 + .../Flow/For8/nbproject/project.properties | 74 + .../Chapter6/Flow/For8/nbproject/project.xml | 15 + .../Chapter6/Flow/For8/src/for8/For8.java | 31 + .../Flow/ForCareNuSeExecuta/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../ForCareNuSeExecuta.class | Bin 0 -> 1179 bytes .../Flow/ForCareNuSeExecuta/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../ForCareNuSeExecuta/nbproject/project.xml | 15 + .../ForCareNuSeExecuta.java | 38 + PrjJava/OCA7/Chapter6/Flow/ForChar/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/forchar/ForChar.class | Bin 0 -> 807 bytes .../OCA7/Chapter6/Flow/ForChar/manifest.mf | 3 + .../Flow/ForChar/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ForChar/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ForChar/nbproject/private/private.xml | 7 + .../Flow/ForChar/nbproject/project.properties | 74 + .../Flow/ForChar/nbproject/project.xml | 15 + .../Flow/ForChar/src/forchar/ForChar.java | 33 + .../OCA7/Chapter6/Flow/ForCiudat/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/forciudat/ForCiudat.class | Bin 0 -> 868 bytes .../OCA7/Chapter6/Flow/ForCiudat/manifest.mf | 3 + .../Flow/ForCiudat/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ForCiudat/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ForCiudat/nbproject/private/private.xml | 4 + .../ForCiudat/nbproject/project.properties | 74 + .../Flow/ForCiudat/nbproject/project.xml | 15 + .../ForCiudat/src/forciudat/ForCiudat.java | 27 + .../OCA7/Chapter6/Flow/ForCiudat1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/forciudat1/ForCiudat1.class | Bin 0 -> 873 bytes .../OCA7/Chapter6/Flow/ForCiudat1/manifest.mf | 3 + .../Flow/ForCiudat1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ForCiudat1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ForCiudat1/nbproject/private/private.xml | 7 + .../ForCiudat1/nbproject/project.properties | 74 + .../Flow/ForCiudat1/nbproject/project.xml | 15 + .../ForCiudat1/src/forciudat1/ForCiudat1.java | 27 + PrjJava/OCA7/Chapter6/Flow/ForFor1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/forfor1/ForFor1.class | Bin 0 -> 695 bytes .../OCA7/Chapter6/Flow/ForFor1/manifest.mf | 3 + .../Flow/ForFor1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ForFor1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ForFor1/nbproject/private/private.xml | 4 + .../Flow/ForFor1/nbproject/project.properties | 74 + .../Flow/ForFor1/nbproject/project.xml | 15 + .../Flow/ForFor1/src/forfor1/ForFor1.java | 30 + PrjJava/OCA7/Chapter6/Flow/ForInFor/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/forinfor/ForInFor.class | Bin 0 -> 1042 bytes .../OCA7/Chapter6/Flow/ForInFor/manifest.mf | 3 + .../Flow/ForInFor/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ForInFor/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ForInFor/nbproject/private/private.xml | 7 + .../ForInFor/nbproject/project.properties | 74 + .../Flow/ForInFor/nbproject/project.xml | 15 + .../Flow/ForInFor/src/forinfor/ForInFor.java | 37 + .../Chapter6/Flow/ForInForinFor/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/forinforinfor/ForInForinFor.class | Bin 0 -> 744 bytes .../Chapter6/Flow/ForInForinFor/manifest.mf | 3 + .../ForInForinFor/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Flow/ForInForinFor/nbproject/project.xml | 15 + .../src/forinforinfor/ForInForinFor.java | 36 + .../OCA7/Chapter6/Flow/ForIncorect/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/forincorect/ForIncorect.class | Bin 0 -> 964 bytes .../Chapter6/Flow/ForIncorect/manifest.mf | 3 + .../Flow/ForIncorect/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../ForIncorect/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../ForIncorect/nbproject/private/private.xml | 7 + .../ForIncorect/nbproject/project.properties | 74 + .../Flow/ForIncorect/nbproject/project.xml | 15 + .../src/forincorect/ForIncorect.java | 33 + .../OCA7/Chapter6/Flow/ForIncorrect/build.xml | 73 + .../Chapter6/Flow/ForIncorrect/manifest.mf | 3 + .../ForIncorrect/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../ForIncorrect/nbproject/project.properties | 74 + .../Flow/ForIncorrect/nbproject/project.xml | 15 + .../src/forincorrect/ForIncorrect.java | 23 + .../Chapter6/Flow/Forformascurta/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../forformascurta/Forformascurta.class | Bin 0 -> 890 bytes .../Chapter6/Flow/Forformascurta/manifest.mf | 3 + .../Forformascurta/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Flow/Forformascurta/nbproject/project.xml | 15 + .../src/forformascurta/Forformascurta.java | 31 + .../OCA7/Chapter6/Flow/Forlabeled/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/forlabeled/Forlabeled.class | Bin 0 -> 683 bytes .../OCA7/Chapter6/Flow/Forlabeled/manifest.mf | 3 + .../Flow/Forlabeled/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Forlabeled/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Forlabeled/nbproject/private/private.xml | 7 + .../Forlabeled/nbproject/project.properties | 74 + .../Flow/Forlabeled/nbproject/project.xml | 15 + .../Forlabeled/src/forlabeled/Forlabeled.java | 31 + PrjJava/OCA7/Chapter6/Flow/If1/build.xml | 73 + .../Flow/If1/build/classes/if1/If1.class | Bin 0 -> 421 bytes PrjJava/OCA7/Chapter6/Flow/If1/manifest.mf | 3 + .../Flow/If1/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../Flow/If1/nbproject/genfiles.properties | 8 + .../If1/nbproject/private/private.properties | 2 + .../Flow/If1/nbproject/private/private.xml | 4 + .../Flow/If1/nbproject/project.properties | 74 + .../Chapter6/Flow/If1/nbproject/project.xml | 15 + .../OCA7/Chapter6/Flow/If1/src/if1/If1.java | 24 + PrjJava/OCA7/Chapter6/Flow/If5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/If5/build/classes/if5/If5.class | Bin 0 -> 518 bytes PrjJava/OCA7/Chapter6/Flow/If5/manifest.mf | 3 + .../Flow/If5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/If5/nbproject/genfiles.properties | 8 + .../If5/nbproject/private/private.properties | 2 + .../Flow/If5/nbproject/private/private.xml | 4 + .../Flow/If5/nbproject/project.properties | 74 + .../Chapter6/Flow/If5/nbproject/project.xml | 15 + .../OCA7/Chapter6/Flow/If5/src/if5/If5.java | 26 + PrjJava/OCA7/Chapter6/Flow/If6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Flow/If6/build/classes/if6/If6.class | Bin 0 -> 660 bytes PrjJava/OCA7/Chapter6/Flow/If6/manifest.mf | 3 + .../Flow/If6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/If6/nbproject/genfiles.properties | 8 + .../If6/nbproject/private/private.properties | 2 + .../Flow/If6/nbproject/private/private.xml | 4 + .../Flow/If6/nbproject/project.properties | 74 + .../Chapter6/Flow/If6/nbproject/project.xml | 15 + .../OCA7/Chapter6/Flow/If6/src/if6/If6.java | 30 + PrjJava/OCA7/Chapter6/Flow/If7/build.xml | 73 + PrjJava/OCA7/Chapter6/Flow/If7/manifest.mf | 3 + .../Flow/If7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/If7/nbproject/genfiles.properties | 8 + .../If7/nbproject/private/private.properties | 2 + .../Flow/If7/nbproject/private/private.xml | 7 + .../Flow/If7/nbproject/project.properties | 74 + .../Chapter6/Flow/If7/nbproject/project.xml | 15 + .../OCA7/Chapter6/Flow/If7/src/if7/If7.java | 21 + .../OCA7/Chapter6/Flow/IllegalFor/build.xml | 73 + .../OCA7/Chapter6/Flow/IllegalFor/manifest.mf | 3 + .../Flow/IllegalFor/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../IllegalFor/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../IllegalFor/nbproject/private/private.xml | 4 + .../IllegalFor/nbproject/project.properties | 74 + .../Flow/IllegalFor/nbproject/project.xml | 15 + .../IllegalFor/src/illegalfor/IllegalFor.java | 25 + PrjJava/OCA7/Chapter6/Flow/Loop1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Loop1/build/classes/loop1/Loop1.class | Bin 0 -> 824 bytes PrjJava/OCA7/Chapter6/Flow/Loop1/manifest.mf | 3 + .../Flow/Loop1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/Loop1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/Loop1/nbproject/private/private.xml | 4 + .../Flow/Loop1/nbproject/project.properties | 74 + .../Chapter6/Flow/Loop1/nbproject/project.xml | 15 + .../Chapter6/Flow/Loop1/src/loop1/Loop1.java | 27 + PrjJava/OCA7/Chapter6/Flow/Loop3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Loop3/build/classes/loop3/Loop3.class | Bin 0 -> 842 bytes PrjJava/OCA7/Chapter6/Flow/Loop3/manifest.mf | 3 + .../Flow/Loop3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/Loop3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/Loop3/nbproject/private/private.xml | 4 + .../Flow/Loop3/nbproject/project.properties | 74 + .../Chapter6/Flow/Loop3/nbproject/project.xml | 15 + .../Chapter6/Flow/Loop3/src/loop3/Loop3.java | 38 + .../OCA7/Chapter6/Flow/Receablecode/build.xml | 73 + .../Chapter6/Flow/Receablecode/manifest.mf | 3 + .../Receablecode/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../Receablecode/nbproject/project.properties | 74 + .../Flow/Receablecode/nbproject/project.xml | 15 + .../src/receablecode/ReachableCode.java | 28 + .../Flow/SampleBreakContinue/build.xml | 73 + .../SampleBreakContinue.class | Bin 0 -> 995 bytes .../Flow/SampleBreakContinue/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../SampleBreakContinue/nbproject/project.xml | 15 + .../SampleBreakContinue.java | 36 + .../Flow/SampleBreaklabeled/build.xml | 73 + .../SampleBreaklabeled.class | Bin 0 -> 1110 bytes .../Flow/SampleBreaklabeled/manifest.mf | 3 + .../nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../SampleBreaklabeled/nbproject/project.xml | 15 + .../SampleBreaklabeled.java | 44 + .../Chapter6/Flow/SampleTryCatch/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../sampletrycatch/SampleTryCatch.class | Bin 0 -> 890 bytes .../Chapter6/Flow/SampleTryCatch/manifest.mf | 3 + .../SampleTryCatch/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../Flow/SampleTryCatch/nbproject/project.xml | 15 + .../src/sampletrycatch/SampleTryCatch.java | 39 + .../Chapter6/Flow/StatementLabled/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../statementlabled/StatementLabled.class | Bin 0 -> 906 bytes .../Chapter6/Flow/StatementLabled/manifest.mf | 3 + .../StatementLabled/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../StatementLabled/nbproject/project.xml | 15 + .../src/statementlabled/StatementLabled.java | 44 + .../OCA7/Chapter6/Flow/StaticFor/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/staticfor/StaticFor.class | Bin 0 -> 653 bytes .../OCA7/Chapter6/Flow/StaticFor/manifest.mf | 3 + .../Flow/StaticFor/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../StaticFor/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../StaticFor/nbproject/private/private.xml | 4 + .../StaticFor/nbproject/project.properties | 74 + .../Flow/StaticFor/nbproject/project.xml | 15 + .../StaticFor/src/staticfor/StaticFor.java | 26 + .../Chapter6/Flow/SwichIncorect/build.xml | 73 + .../Chapter6/Flow/SwichIncorect/manifest.mf | 3 + .../SwichIncorect/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Flow/SwichIncorect/nbproject/project.xml | 15 + .../src/swichincorect/SwichIncorect.java | 26 + .../OCA7/Chapter6/Flow/SwitcFloat/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/switcfloat/SwitcFloat.class | Bin 0 -> 1190 bytes .../OCA7/Chapter6/Flow/SwitcFloat/manifest.mf | 3 + .../Flow/SwitcFloat/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../SwitcFloat/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../SwitcFloat/nbproject/private/private.xml | 7 + .../SwitcFloat/nbproject/project.properties | 76 + .../Flow/SwitcFloat/nbproject/project.xml | 15 + .../SwitcFloat/src/switcfloat/SwitcFloat.java | 37 + PrjJava/OCA7/Chapter6/Flow/Switch1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/switch1/Beyond.class | Bin 0 -> 259 bytes .../build/classes/switch1/Infinity.class | Bin 0 -> 265 bytes .../build/classes/switch1/Switch1.class | Bin 0 -> 678 bytes .../OCA7/Chapter6/Flow/Switch1/manifest.mf | 3 + .../Flow/Switch1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Switch1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Switch1/nbproject/private/private.xml | 4 + .../Flow/Switch1/nbproject/project.properties | 74 + .../Flow/Switch1/nbproject/project.xml | 15 + .../Flow/Switch1/src/switch1/Beyond.java | 16 + .../Flow/Switch1/src/switch1/Infinity.java | 14 + .../Flow/Switch1/src/switch1/Switch1.java | 33 + PrjJava/OCA7/Chapter6/Flow/Switch2/build.xml | 73 + .../OCA7/Chapter6/Flow/Switch2/manifest.mf | 3 + .../Flow/Switch2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Switch2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Switch2/nbproject/private/private.xml | 4 + .../Flow/Switch2/nbproject/project.properties | 74 + .../Flow/Switch2/nbproject/project.xml | 15 + .../Flow/Switch2/src/switch2/Switch2.java | 33 + PrjJava/OCA7/Chapter6/Flow/Switch3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/switch3/Switch3.class | Bin 0 -> 747 bytes .../OCA7/Chapter6/Flow/Switch3/manifest.mf | 3 + .../Flow/Switch3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Switch3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Switch3/nbproject/private/private.xml | 4 + .../Flow/Switch3/nbproject/project.properties | 74 + .../Flow/Switch3/nbproject/project.xml | 15 + .../Flow/Switch3/src/switch3/Switch3.java | 34 + PrjJava/OCA7/Chapter6/Flow/Switch4/build.xml | 73 + .../OCA7/Chapter6/Flow/Switch4/manifest.mf | 3 + .../Flow/Switch4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Switch4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Switch4/nbproject/private/private.xml | 4 + .../Flow/Switch4/nbproject/project.properties | 74 + .../Flow/Switch4/nbproject/project.xml | 15 + .../Flow/Switch4/src/switch4/Switch4.java | 28 + PrjJava/OCA7/Chapter6/Flow/Switch5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/switch5/NewEnum.class | Bin 0 -> 985 bytes .../build/classes/switch5/Switch5$1.class | Bin 0 -> 612 bytes .../build/classes/switch5/Switch5.class | Bin 0 -> 1089 bytes .../OCA7/Chapter6/Flow/Switch5/manifest.mf | 3 + .../Flow/Switch5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Switch5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Switch5/nbproject/private/private.xml | 4 + .../Flow/Switch5/nbproject/project.properties | 74 + .../Flow/Switch5/nbproject/project.xml | 15 + .../Flow/Switch5/src/switch5/NewEnum.java | 12 + .../Flow/Switch5/src/switch5/Switch5.java | 35 + PrjJava/OCA7/Chapter6/Flow/Switch6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/switch6/Switch6.class | Bin 0 -> 778 bytes .../OCA7/Chapter6/Flow/Switch6/manifest.mf | 3 + .../Flow/Switch6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Switch6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Switch6/nbproject/private/private.xml | 7 + .../Flow/Switch6/nbproject/project.properties | 74 + .../Flow/Switch6/nbproject/project.xml | 15 + .../Flow/Switch6/src/switch6/Switch6.java | 32 + PrjJava/OCA7/Chapter6/Flow/Switch7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/switch7/Switch7.class | Bin 0 -> 726 bytes .../OCA7/Chapter6/Flow/Switch7/manifest.mf | 3 + .../Flow/Switch7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Switch7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Switch7/nbproject/private/private.xml | 4 + .../Flow/Switch7/nbproject/project.properties | 74 + .../Flow/Switch7/nbproject/project.xml | 15 + .../Flow/Switch7/src/switch7/Switch7.java | 31 + .../OCA7/Chapter6/Flow/SwitchChar/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/switchchar/SwitchChar.class | Bin 0 -> 900 bytes .../OCA7/Chapter6/Flow/SwitchChar/manifest.mf | 3 + .../Flow/SwitchChar/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../SwitchChar/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../SwitchChar/nbproject/private/private.xml | 7 + .../SwitchChar/nbproject/project.properties | 74 + .../Flow/SwitchChar/nbproject/project.xml | 15 + .../SwitchChar/src/switchchar/SwitchChar.java | 49 + .../OCA7/Chapter6/Flow/SwitchChar1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/switchchar1/SwitchChar1.class | Bin 0 -> 660 bytes .../Chapter6/Flow/SwitchChar1/manifest.mf | 3 + .../Flow/SwitchChar1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../SwitchChar1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../SwitchChar1/nbproject/private/private.xml | 7 + .../SwitchChar1/nbproject/project.properties | 74 + .../Flow/SwitchChar1/nbproject/project.xml | 15 + .../src/switchchar1/SwitchChar1.java | 25 + .../OCA7/Chapter6/Flow/SwitchCiudat/build.xml | 73 + .../Chapter6/Flow/SwitchCiudat/manifest.mf | 3 + .../SwitchCiudat/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../SwitchCiudat/nbproject/project.properties | 74 + .../Flow/SwitchCiudat/nbproject/project.xml | 15 + .../src/switchciudat/SwitchCiudat.java | 39 + .../Chapter6/Flow/SwitchCorrect/build.xml | 73 + .../Chapter6/Flow/SwitchCorrect/manifest.mf | 3 + .../SwitchCorrect/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../Flow/SwitchCorrect/nbproject/project.xml | 15 + .../src/switchcorrect/SwitchCorrect.java | 32 + .../OCA7/Chapter6/Flow/SwitchLong/build.xml | 73 + .../OCA7/Chapter6/Flow/SwitchLong/manifest.mf | 3 + .../Flow/SwitchLong/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../SwitchLong/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../SwitchLong/nbproject/private/private.xml | 4 + .../SwitchLong/nbproject/project.properties | 74 + .../Flow/SwitchLong/nbproject/project.xml | 15 + .../SwitchLong/src/switchlong/SwitchLong.java | 36 + .../Chapter6/Flow/Switchdefault/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/switchdefault/Switchdefault.class | Bin 0 -> 665 bytes .../Chapter6/Flow/Switchdefault/manifest.mf | 3 + .../Switchdefault/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../Flow/Switchdefault/nbproject/project.xml | 15 + .../src/switchdefault/Switchdefault.java | 37 + PrjJava/OCA7/Chapter6/Flow/W@hile3/build.xml | 73 + .../OCA7/Chapter6/Flow/W@hile3/manifest.mf | 3 + .../Flow/W@hile3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../W@hile3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../W@hile3/nbproject/private/private.xml | 4 + .../Flow/W@hile3/nbproject/project.properties | 74 + .../Flow/W@hile3/nbproject/project.xml | 15 + .../Flow/W@hile3/src/w/hile3/WHile3.java | 30 + PrjJava/OCA7/Chapter6/Flow/While1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../While1/build/classes/while1/While1.class | Bin 0 -> 572 bytes PrjJava/OCA7/Chapter6/Flow/While1/manifest.mf | 3 + .../Flow/While1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/While1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/While1/nbproject/private/private.xml | 4 + .../Flow/While1/nbproject/project.properties | 74 + .../Flow/While1/nbproject/project.xml | 15 + .../Flow/While1/src/while1/While1.java | 27 + PrjJava/OCA7/Chapter6/Flow/While2/build.xml | 73 + .../Flow/While2/build/built-jar.properties | 4 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../While2/build/classes/while2/While2.class | Bin 0 -> 852 bytes .../OCA7/Chapter6/Flow/While2/dist/README.TXT | 32 + .../OCA7/Chapter6/Flow/While2/dist/While2.jar | Bin 0 -> 1466 bytes PrjJava/OCA7/Chapter6/Flow/While2/manifest.mf | 3 + .../Flow/While2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/While2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/While2/nbproject/private/private.xml | 7 + .../Flow/While2/nbproject/project.properties | 74 + .../Flow/While2/nbproject/project.xml | 15 + .../Flow/While2/src/while2/While2.java | 40 + PrjJava/OCA7/Chapter6/Flow/While3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../While3/build/classes/while3/While3.class | Bin 0 -> 939 bytes PrjJava/OCA7/Chapter6/Flow/While3/manifest.mf | 3 + .../Flow/While3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/While3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/While3/nbproject/private/private.xml | 4 + .../Flow/While3/nbproject/project.properties | 74 + .../Flow/While3/nbproject/project.xml | 15 + .../Flow/While3/src/while3/While3.java | 36 + PrjJava/OCA7/Chapter6/Flow/While4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../While4/build/classes/while4/While4.class | Bin 0 -> 1041 bytes PrjJava/OCA7/Chapter6/Flow/While4/manifest.mf | 3 + .../Flow/While4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/While4/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/While4/nbproject/private/private.xml | 4 + .../Flow/While4/nbproject/project.properties | 74 + .../Flow/While4/nbproject/project.xml | 15 + .../Flow/While4/src/while4/While4.java | 44 + PrjJava/OCA7/Chapter6/Flow/While5/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../While5/build/classes/while5/While5.class | Bin 0 -> 569 bytes PrjJava/OCA7/Chapter6/Flow/While5/manifest.mf | 3 + .../Flow/While5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/While5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/While5/nbproject/private/private.xml | 4 + .../Flow/While5/nbproject/project.properties | 74 + .../Flow/While5/nbproject/project.xml | 15 + .../Flow/While5/src/while5/While5.java | 25 + PrjJava/OCA7/Chapter6/Flow/While6/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../While6/build/classes/while6/While6.class | Bin 0 -> 829 bytes PrjJava/OCA7/Chapter6/Flow/While6/manifest.mf | 3 + .../Flow/While6/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/While6/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/While6/nbproject/private/private.xml | 7 + .../Flow/While6/nbproject/project.properties | 74 + .../Flow/While6/nbproject/project.xml | 15 + .../Flow/While6/src/while6/While6.java | 26 + PrjJava/OCA7/Chapter6/Flow/While7/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../While7/build/classes/while7/While7.class | Bin 0 -> 605 bytes PrjJava/OCA7/Chapter6/Flow/While7/manifest.mf | 3 + .../Flow/While7/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Flow/While7/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Flow/While7/nbproject/private/private.xml | 4 + .../Flow/While7/nbproject/project.properties | 74 + .../Flow/While7/nbproject/project.xml | 15 + .../Flow/While7/src/while7/While7.java | 28 + PrjJava/OCA7/Clase si Interfete.xlsx | Bin 0 -> 9191 bytes PrjJava/OCA7/CompilError1/build.xml | 73 + PrjJava/OCA7/CompilError1/manifest.mf | 3 + .../CompilError1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../CompilError1/nbproject/project.properties | 74 + .../OCA7/CompilError1/nbproject/project.xml | 15 + .../src/compilerror1/CompilError1.java | 25 + PrjJava/OCA7/Constant1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/constant1/Constant1.class | Bin 0 -> 653 bytes .../Constant1/build/classes/stuff/Stuff.class | Bin 0 -> 425 bytes PrjJava/OCA7/Constant1/manifest.mf | 3 + .../OCA7/Constant1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Constant1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Constant1/nbproject/private/private.xml | 7 + .../Constant1/nbproject/project.properties | 74 + PrjJava/OCA7/Constant1/nbproject/project.xml | 15 + .../Constant1/src/constant1/Constant1.java | 25 + PrjJava/OCA7/Constant1/src/stuff/Stuff.java | 19 + PrjJava/OCA7/EnumTest/build.xml | 73 + .../classes/question33/Question33$Month.class | Bin 0 -> 1080 bytes .../build/classes/question33/Question33.class | Bin 0 -> 936 bytes PrjJava/OCA7/EnumTest/manifest.mf | 3 + .../OCA7/EnumTest/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../EnumTest/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../EnumTest/nbproject/private/private.xml | 9 + .../EnumTest/nbproject/project.properties | 74 + PrjJava/OCA7/EnumTest/nbproject/project.xml | 15 + .../EnumTest/src/question33/Question33.java | 30 + PrjJava/OCA7/Exam Question1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../exam/question1/ExamQuestion1.class | Bin 0 -> 890 bytes PrjJava/OCA7/Exam Question1/manifest.mf | 3 + .../Exam Question1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 76 + .../OCA7/Exam Question1/nbproject/project.xml | 15 + .../src/exam/question1/ExamQuestion1.java | 27 + PrjJava/OCA7/GetClass/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/getclass/GetClass.class | Bin 0 -> 1036 bytes PrjJava/OCA7/GetClass/manifest.mf | 3 + .../OCA7/GetClass/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../GetClass/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../GetClass/nbproject/private/private.xml | 4 + .../GetClass/nbproject/project.properties | 74 + PrjJava/OCA7/GetClass/nbproject/project.xml | 15 + .../OCA7/GetClass/src/getclass/GetClass.java | 30 + PrjJava/OCA7/GetClassSample/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../getclasssample/GetClassSample.class | Bin 0 -> 691 bytes PrjJava/OCA7/GetClassSample/manifest.mf | 3 + .../GetClassSample/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/project.properties | 74 + .../OCA7/GetClassSample/nbproject/project.xml | 15 + .../src/getclasssample/GetClassSample.java | 22 + PrjJava/OCA7/JavaApplication2/build.xml | 73 + PrjJava/OCA7/JavaApplication2/manifest.mf | 3 + .../JavaApplication2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../nbproject/project.properties | 74 + .../JavaApplication2/nbproject/project.xml | 15 + .../javaapplication2/JavaApplication2.java | 19 + PrjJava/OCA7/Math1/build.xml | 73 + PrjJava/OCA7/Math1/manifest.mf | 3 + PrjJava/OCA7/Math1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../OCA7/Math1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../OCA7/Math1/nbproject/private/private.xml | 7 + .../OCA7/Math1/nbproject/project.properties | 74 + PrjJava/OCA7/Math1/nbproject/project.xml | 15 + .../javaapplication69/JavaApplication69.java | 21 + PrjJava/OCA7/OracleSite1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/oraclesite1/OracleSite1.class | Bin 0 -> 944 bytes PrjJava/OCA7/OracleSite1/manifest.mf | 3 + .../OCA7/OracleSite1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../OracleSite1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../OracleSite1/nbproject/private/private.xml | 7 + .../OracleSite1/nbproject/project.properties | 74 + .../OCA7/OracleSite1/nbproject/project.xml | 15 + .../src/oraclesite1/OracleSite1.java | 27 + PrjJava/OCA7/OracleStudy1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/oraclestudy1/OracleStudy1.class | Bin 0 -> 668 bytes PrjJava/OCA7/OracleStudy1/manifest.mf | 3 + .../OracleStudy1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../OracleStudy1/nbproject/project.properties | 74 + .../OCA7/OracleStudy1/nbproject/project.xml | 15 + .../src/oraclestudy1/OracleStudy1.java | 29 + .../PairswithSpecificDifference/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../PairswithSpecificDifference.class | Bin 0 -> 1098 bytes .../PairswithSpecificDifference/manifest.mf | 3 + .../nbproject/build-impl.xml | 1450 +++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../nbproject/project.properties | 74 + .../nbproject/project.xml | 16 + .../PairswithSpecificDifference.java | 34 + PrjJava/OCA7/Poli1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Poli1/build/classes/poli1/Poli1.class | Bin 0 -> 563 bytes .../OCA7/Poli1/build/classes/poli1/X.class | Bin 0 -> 453 bytes .../OCA7/Poli1/build/classes/poli1/Y.class | Bin 0 -> 444 bytes .../OCA7/Poli1/build/classes/poli1/Z.class | Bin 0 -> 444 bytes PrjJava/OCA7/Poli1/manifest.mf | 3 + PrjJava/OCA7/Poli1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../OCA7/Poli1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../OCA7/Poli1/nbproject/private/private.xml | 7 + .../OCA7/Poli1/nbproject/project.properties | 74 + PrjJava/OCA7/Poli1/nbproject/project.xml | 15 + PrjJava/OCA7/Poli1/src/poli1/Poli1.java | 27 + PrjJava/OCA7/Poli1/src/poli1/X.java | 18 + PrjJava/OCA7/Poli1/src/poli1/Y.java | 17 + PrjJava/OCA7/Poli1/src/poli1/Z.java | 17 + PrjJava/OCA7/Poli2/build.xml | 73 + PrjJava/OCA7/Poli2/manifest.mf | 3 + PrjJava/OCA7/Poli2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../OCA7/Poli2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../OCA7/Poli2/nbproject/private/private.xml | 4 + .../OCA7/Poli2/nbproject/project.properties | 74 + PrjJava/OCA7/Poli2/nbproject/project.xml | 15 + PrjJava/OCA7/Poli2/src/poli2/A.java | 15 + PrjJava/OCA7/Poli2/src/poli2/Poli2.java | 21 + PrjJava/OCA7/Question12/build.xml | 73 + PrjJava/OCA7/Question12/manifest.mf | 3 + .../OCA7/Question12/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Question12/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Question12/nbproject/private/private.xml | 7 + .../Question12/nbproject/project.properties | 74 + PrjJava/OCA7/Question12/nbproject/project.xml | 15 + .../Question12/src/question12/Question12.java | 37 + PrjJava/OCA7/Question27/build.xml | 73 + .../build/classes/question27/A.class | Bin 0 -> 533 bytes .../build/classes/question27/B.class | Bin 0 -> 531 bytes .../build/classes/question27/Question27.class | Bin 0 -> 557 bytes PrjJava/OCA7/Question27/manifest.mf | 3 + .../OCA7/Question27/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Question27/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Question27/nbproject/private/private.xml | 7 + .../Question27/nbproject/project.properties | 74 + PrjJava/OCA7/Question27/nbproject/project.xml | 15 + PrjJava/OCA7/Question27/src/question27/A.java | 20 + PrjJava/OCA7/Question27/src/question27/B.java | 19 + .../Question27/src/question27/Question27.java | 21 + PrjJava/OCA7/Tricky/Args1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Args1/build/classes/args1/Args1.class | Bin 0 -> 842 bytes PrjJava/OCA7/Tricky/Args1/manifest.mf | 3 + .../Tricky/Args1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Args1/nbproject/genfiles.properties | 8 + .../Args1/nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 6 + .../Args1/nbproject/private/private.xml | 4 + .../Tricky/Args1/nbproject/project.properties | 76 + .../OCA7/Tricky/Args1/nbproject/project.xml | 15 + .../OCA7/Tricky/Args1/src/args1/Args1.java | 28 + PrjJava/OCA7/Tricky/Args2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Args2/build/classes/args2/Args2.class | Bin 0 -> 815 bytes PrjJava/OCA7/Tricky/Args2/manifest.mf | 3 + .../Tricky/Args2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Args2/nbproject/genfiles.properties | 8 + .../Args2/nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 6 + .../Args2/nbproject/private/private.xml | 7 + .../Tricky/Args2/nbproject/project.properties | 76 + .../OCA7/Tricky/Args2/nbproject/project.xml | 15 + .../OCA7/Tricky/Args2/src/args2/Args2.java | 30 + PrjJava/OCA7/Tricky/Args3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Args3/build/classes/args3/Args3.class | Bin 0 -> 680 bytes PrjJava/OCA7/Tricky/Args3/manifest.mf | 3 + .../Tricky/Args3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Args3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Args3/nbproject/private/private.xml | 4 + .../Tricky/Args3/nbproject/project.properties | 74 + .../OCA7/Tricky/Args3/nbproject/project.xml | 15 + .../OCA7/Tricky/Args3/src/args3/Args3.java | 29 + PrjJava/OCA7/Tricky/Args4/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Args4/build/classes/args4/Args4.class | Bin 0 -> 926 bytes PrjJava/OCA7/Tricky/Args4/manifest.mf | 3 + .../Tricky/Args4/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Args4/nbproject/genfiles.properties | 8 + .../Args4/nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../Args4/nbproject/private/private.xml | 7 + .../Tricky/Args4/nbproject/project.properties | 76 + .../OCA7/Tricky/Args4/nbproject/project.xml | 15 + .../OCA7/Tricky/Args4/src/args4/Args4.java | 31 + PrjJava/OCA7/Tricky/Args5/build.xml | 73 + PrjJava/OCA7/Tricky/Args5/manifest.mf | 3 + .../Tricky/Args5/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Args5/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Args5/nbproject/private/private.xml | 4 + .../Tricky/Args5/nbproject/project.properties | 74 + .../OCA7/Tricky/Args5/nbproject/project.xml | 15 + .../OCA7/Tricky/Args5/src/args5/Args5.java | 23 + PrjJava/OCA7/Tricky/FunWithArgs/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/funwithargs/FunWithArgs.class | Bin 0 -> 741 bytes PrjJava/OCA7/Tricky/FunWithArgs/manifest.mf | 3 + .../FunWithArgs/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../FunWithArgs/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../FunWithArgs/nbproject/private/private.xml | 7 + .../FunWithArgs/nbproject/project.properties | 74 + .../Tricky/FunWithArgs/nbproject/project.xml | 15 + .../src/funwithargs/FunWithArgs.java | 29 + PrjJava/OCA7/Tricky/Null1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Null1/build/classes/null1/Null1.class | Bin 0 -> 1056 bytes PrjJava/OCA7/Tricky/Null1/manifest.mf | 3 + .../Tricky/Null1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Null1/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Null1/nbproject/private/private.xml | 7 + .../Tricky/Null1/nbproject/project.properties | 74 + .../OCA7/Tricky/Null1/nbproject/project.xml | 15 + .../OCA7/Tricky/Null1/src/null1/Null1.java | 32 + PrjJava/OCA7/Tricky/Null2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Null2/build/classes/null2/Null2.class | Bin 0 -> 1061 bytes PrjJava/OCA7/Tricky/Null2/manifest.mf | 3 + .../Tricky/Null2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Null2/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Null2/nbproject/private/private.xml | 7 + .../Tricky/Null2/nbproject/project.properties | 74 + .../OCA7/Tricky/Null2/nbproject/project.xml | 15 + .../OCA7/Tricky/Null2/src/null2/Null2.java | 32 + PrjJava/OCA7/Tricky/Null3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../Null3/build/classes/null3/Null3.class | Bin 0 -> 691 bytes PrjJava/OCA7/Tricky/Null3/manifest.mf | 3 + .../Tricky/Null3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../Null3/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../Null3/nbproject/private/private.xml | 7 + .../Tricky/Null3/nbproject/project.properties | 74 + .../OCA7/Tricky/Null3/nbproject/project.xml | 15 + .../OCA7/Tricky/Null3/src/null3/Null3.java | 27 + PrjJava/OCA7/Tricky/PrintNull/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/printnull/PrintNull.class | Bin 0 -> 799 bytes PrjJava/OCA7/Tricky/PrintNull/manifest.mf | 3 + .../Tricky/PrintNull/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../PrintNull/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../PrintNull/nbproject/private/private.xml | 7 + .../PrintNull/nbproject/project.properties | 74 + .../Tricky/PrintNull/nbproject/project.xml | 15 + .../PrintNull/src/printnull/PrintNull.java | 28 + PrjJava/OCA7/Tricky/RealBrainer/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/realbrainer/RealBrainer.class | Bin 0 -> 818 bytes PrjJava/OCA7/Tricky/RealBrainer/manifest.mf | 3 + .../RealBrainer/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../RealBrainer/nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../RealBrainer/nbproject/private/private.xml | 7 + .../RealBrainer/nbproject/project.properties | 74 + .../Tricky/RealBrainer/nbproject/project.xml | 15 + .../src/realbrainer/RealBrainer.java | 40 + PrjJava/OCA7/Tricky/RealBrainer1/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../build/classes/realbrainer1/A.class | Bin 0 -> 502 bytes .../classes/realbrainer1/RealBrainer1.class | Bin 0 -> 514 bytes PrjJava/OCA7/Tricky/RealBrainer1/manifest.mf | 3 + .../RealBrainer1/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 7 + .../RealBrainer1/nbproject/project.properties | 74 + .../Tricky/RealBrainer1/nbproject/project.xml | 15 + .../src/realbrainer1/RealBrainer1.java | 41 + PrjJava/OCA7/Tricky/RealBrainer2/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/realbrainer2/RealBrainer2.class | Bin 0 -> 925 bytes PrjJava/OCA7/Tricky/RealBrainer2/manifest.mf | 3 + .../RealBrainer2/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../RealBrainer2/nbproject/project.properties | 74 + .../Tricky/RealBrainer2/nbproject/project.xml | 15 + .../src/realbrainer2/RealBrainer2.java | 28 + PrjJava/OCA7/Tricky/RealBrainer3/build.xml | 73 + .../build/classes/.netbeans_automatic_build | 0 .../build/classes/.netbeans_update_resources | 0 .../classes/realbrainer3/RealBrainer3.class | Bin 0 -> 1240 bytes PrjJava/OCA7/Tricky/RealBrainer3/manifest.mf | 3 + .../RealBrainer3/nbproject/build-impl.xml | 1419 ++++++++++++++++ .../nbproject/genfiles.properties | 8 + .../nbproject/private/private.properties | 2 + .../nbproject/private/private.xml | 4 + .../RealBrainer3/nbproject/project.properties | 74 + .../Tricky/RealBrainer3/nbproject/project.xml | 15 + .../src/realbrainer3/RealBrainer3.java | 32 + PrjJava/OCA7/Tricky/TestArgs/build.xml | 73 + .../build/classes/testargs/TestArgs.class | Bin 0 -> 848 bytes PrjJava/OCA7/Tricky/TestArgs/manifest.mf | 3 + .../Tricky/TestArgs/nbproject/build-impl.xml | 1421 ++++++++++++++++ .../TestArgs/nbproject/genfiles.properties | 8 + .../nbproject/private/config.properties | 0 .../nbproject/private/private.properties | 7 + .../TestArgs/nbproject/private/private.xml | 7 + .../TestArgs/nbproject/project.properties | 76 + .../Tricky/TestArgs/nbproject/project.xml | 15 + .../TestArgs/src/testargs/TestArgs.java | 24 + .../src/jdbc_book14/JDBC_Book14.java | 44 + PrjJava/README.md | 3 + PrjJava/REST/RestDb_/build.xml | 71 + PrjJava/REST/RestDb_/nbproject/ant-deploy.xml | 150 ++ PrjJava/REST/RestDb_/nbproject/build-impl.xml | 1442 ++++++++++++++++ .../RestDb_/nbproject/genfiles.properties | 11 + .../REST/RestDb_/nbproject/project.properties | 92 ++ PrjJava/REST/RestDb_/nbproject/project.xml | 21 + PrjJava/REST/RestDb_/nbproject/rest-build.xml | 35 + PrjJava/REST/RestDb_/src/conf/MANIFEST.MF | 2 + PrjJava/REST/RestDb_/src/conf/persistence.xml | 8 + .../REST/RestDb_/src/java/com/rest/Users.java | 212 +++ .../java/com/rest/service/AbstractFacade.java | 62 + .../com/rest/service/ApplicationConfig.java | 33 + .../com/rest/service/UsersFacadeREST.java | 89 + PrjJava/REST/RestDb_/web/WEB-INF/web_.xml | 26 + 5431 files changed, 745359 insertions(+) create mode 100644 HeeeyWebSite/Chrome/AddProductChrome.java create mode 100644 HeeeyWebSite/Chrome/ContactPageChrome.java create mode 100644 HeeeyWebSite/Edge/AddProductEdge.java create mode 100644 HeeeyWebSite/Edge/ContactPageEdge.java create mode 100644 HeeeyWebSite/Firefox/AddProductFirefox.java create mode 100644 HeeeyWebSite/Firefox/ContactPageFirefox.java create mode 100644 HeeeyWebSite/IE11/AddProductIE11.java create mode 100644 HeeeyWebSite/Sources/AbstractPage.java create mode 100644 HeeeyWebSite/Sources/Constants.java create mode 100644 HeeeyWebSite/Sources/ContactPage.java create mode 100644 HeeeyWebSite/Sources/CosCumparaturi.java create mode 100644 HeeeyWebSite/Sources/ProdusCeai.java create mode 100644 HeeeyWebSite/Sources/ProdusCeaiIE11.java create mode 100644 HeeeyWebSite/Sources/RunSiteTest.java create mode 100644 PrjJava/JavaApplication653/build.xml create mode 100644 PrjJava/JavaApplication653/manifest.mf create mode 100644 PrjJava/JavaApplication653/nbproject/build-impl.xml create mode 100644 PrjJava/JavaApplication653/nbproject/genfiles.properties create mode 100644 PrjJava/JavaApplication653/nbproject/project.properties create mode 100644 PrjJava/JavaApplication653/nbproject/project.xml create mode 100644 PrjJava/JavaApplication653/src/javaapplication653/Print.java create mode 100644 PrjJava/JavaApplication653/src/javaapplication653/StaticBlock1.java create mode 100644 PrjJava/OCA7/ChainedDeclaration/build.xml create mode 100644 PrjJava/OCA7/ChainedDeclaration/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/ChainedDeclaration/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/ChainedDeclaration/build/classes/chaineddeclaration/ChainedDeclaration.class create mode 100644 PrjJava/OCA7/ChainedDeclaration/manifest.mf create mode 100644 PrjJava/OCA7/ChainedDeclaration/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/ChainedDeclaration/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/ChainedDeclaration/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/ChainedDeclaration/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/ChainedDeclaration/nbproject/project.properties create mode 100644 PrjJava/OCA7/ChainedDeclaration/nbproject/project.xml create mode 100644 PrjJava/OCA7/ChainedDeclaration/src/chaineddeclaration/ChainedDeclaration.java create mode 100644 PrjJava/OCA7/Chapter1/Abstract1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Abstract1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract1/src/abstract1/Abstract1.java create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/build/classes/abstract2/Abstract2.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract2/src/abstract2/Abstract2.java create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/Abstract3.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/I.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/J.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/K.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/MyIJ.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract3/src/abstract3/Abstract3.java create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/build/classes/abstract4/Abstract4.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract4/src/abstract4/Abstract4.java create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/build/classes/abstract5/Abstract5$1.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/build/classes/abstract5/Abstract5.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/build/classes/abstract5/abstract6.class create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/src/abstract5/Abstract5.java create mode 100644 PrjJava/OCA7/Chapter1/Abstract5/src/abstract5/abstract6.java create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/build/classes/assigments1/Assigments1.class create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Assigments1/src/assigments1/Assigments1.java create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/build/classes/chapter10_1/Chapter10_1.class create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Chapter10_1/src/chapter10_1/Chapter10_1.java create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/src/chapter1_5/Chapter1_5.java create mode 100644 PrjJava/OCA7/Chapter1/Chapter1_5/src/com/foo/Bleh.java create mode 100644 PrjJava/OCA7/Chapter1/Declarations1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Declarations1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Declarations1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Declarations1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Declarations1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Declarations1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Declarations1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Declarations1/src/declarations1/Dec.java create mode 100644 PrjJava/OCA7/Chapter1/Declarations1/src/declarations1/Declarations1.java create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/build/classes/encapsul1/Encapsul1.class create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/build/classes/encapsul1/Parrot.class create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/build/classes/encapsul1/Parrotet.class create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Encapsul1.java create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Parrot.java create mode 100644 PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Parrotet.java create mode 100644 PrjJava/OCA7/Chapter1/FinalVariable/build.xml create mode 100644 PrjJava/OCA7/Chapter1/FinalVariable/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/FinalVariable/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/FinalVariable/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/FinalVariable/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/FinalVariable/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/FinalVariable/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/FinalVariable/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/FinalVariable/src/finalvariable/FinalVariable.java create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/build.xml create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/src/com/bar/ImportStatic.java create mode 100644 PrjJava/OCA7/Chapter1/ImportStatic/src/com/foo/X.java create mode 100644 PrjJava/OCA7/Chapter1/Main1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Main1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Main1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Main1/build/classes/main1/Main1.class create mode 100644 PrjJava/OCA7/Chapter1/Main1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Main1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Main1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Main1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Main1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Main1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Main1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Main1/src/main1/Main1.java create mode 100644 PrjJava/OCA7/Chapter1/Main2/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Main2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Main2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Main2/build/classes/main2/Main2.class create mode 100644 PrjJava/OCA7/Chapter1/Main2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Main2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Main2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Main2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Main2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Main2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Main2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Main2/src/main2/Main2.java create mode 100644 PrjJava/OCA7/Chapter1/Main3/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Main3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Main3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Main3/build/classes/main3/Main3.class create mode 100644 PrjJava/OCA7/Chapter1/Main3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Main3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Main3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Main3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Main3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Main3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Main3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Main3/src/main3/Main3.java create mode 100644 PrjJava/OCA7/Chapter1/Main4/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Main4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Main4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Main4/build/classes/main4/Main4.class create mode 100644 PrjJava/OCA7/Chapter1/Main4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Main4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Main4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Main4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Main4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Main4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Main4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Main4/src/main4/Main4.java create mode 100644 PrjJava/OCA7/Chapter1/Main5/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Main5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Main5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Main5/build/classes/main5/Main5.class create mode 100644 PrjJava/OCA7/Chapter1/Main5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Main5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Main5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Main5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Main5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Main5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Main5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Main5/src/main5/Main5.java create mode 100644 PrjJava/OCA7/Chapter1/Main6/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Main6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Main6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Main6/build/classes/main6/Main6.class create mode 100644 PrjJava/OCA7/Chapter1/Main6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Main6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Main6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Main6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Main6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Main6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Main6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Main6/src/main6/Main6.class create mode 100644 PrjJava/OCA7/Chapter1/Main6/src/main6/Main6.java create mode 100644 PrjJava/OCA7/Chapter1/Main7/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Main7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Main7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Main7/build/classes/main7/Main7.class create mode 100644 PrjJava/OCA7/Chapter1/Main7/build/classes/main7/anothermain.class create mode 100644 PrjJava/OCA7/Chapter1/Main7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Main7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Main7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Main7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Main7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Main7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Main7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Main7/src/main7/Main7.java create mode 100644 PrjJava/OCA7/Chapter1/Main8/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Main8/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Main8/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Main8/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Main8/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Main8/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Main8/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Main8/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Main8/src/main8/Main8.class create mode 100644 PrjJava/OCA7/Chapter1/Main8/src/main8/Main8.java create mode 100644 PrjJava/OCA7/Chapter1/ManyMain/build.xml create mode 100644 PrjJava/OCA7/Chapter1/ManyMain/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/ManyMain/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/ManyMain/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/ManyMain/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/ManyMain/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/ManyMain/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/ManyMain/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/ManyMain/src/manymain/ManyMain.java create mode 100644 PrjJava/OCA7/Chapter1/Nameofvariables/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Nameofvariables/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Nameofvariables/src/nameofvariables/Nameofvariables.java create mode 100644 PrjJava/OCA7/Chapter1/Numedevariabile/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Numedevariabile/build/classes/numedevariabile/Numedevariabile.class create mode 100644 PrjJava/OCA7/Chapter1/Numedevariabile/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Numedevariabile/src/numedevariabile/Numedevariabile.java create mode 100644 PrjJava/OCA7/Chapter1/Question1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Question1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Question1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Question1/build/classes/question1/A.class create mode 100644 PrjJava/OCA7/Chapter1/Question1/build/classes/question1/Question1.class create mode 100644 PrjJava/OCA7/Chapter1/Question1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Question1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Question1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Question1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Question1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Question1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Question1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Question1/src/question1/A.java create mode 100644 PrjJava/OCA7/Chapter1/Question1/src/question1/Question1.java create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/build.xml create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/build/classes/scopetest/ScopeTest.class create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/ScopeTest/src/scopetest/ScopeTest.java create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/build.xml create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/build/classes/scopevariable/ScopeVariable.class create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/ScopeVariable/src/scopevariable/ScopeVariable.java create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/build.xml create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/build/classes/shortmaxvalue/ShortMaxValue.class create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/ShortMaxValue/src/shortmaxvalue/ShortMaxValue.java create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/build/classes/undefined1/Undefined1.class create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Undefined1/src/undefined1/Undefined1.java create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/build/classes/vararg1/VarArg1.class create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/VarArg1/src/vararg1/VarArg1.java create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/build/classes/variabileneintializate/Variabileneintializate.class create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Variabileneintializate/src/variabileneintializate/Variabileneintializate.java create mode 100644 PrjJava/OCA7/Chapter1/Variables/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/Variables/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/Variables/build/classes/variables/Variables.class create mode 100644 PrjJava/OCA7/Chapter1/Variables/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Variables/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Variables/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Variables/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Variables/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables/src/variables/Variables.java create mode 100644 PrjJava/OCA7/Chapter1/Variables1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Variables1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Variables1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Variables1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Variables1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables1/src/variables1/Variables1.java create mode 100644 PrjJava/OCA7/Chapter1/Variables2/build.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/Variables2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/Variables2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/Variables2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/Variables2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/Variables2/src/variables2/Variables2.java create mode 100644 PrjJava/OCA7/Chapter1/VariablesNames/build.xml create mode 100644 PrjJava/OCA7/Chapter1/VariablesNames/build/classes/variablesnames/VariablesNames.class create mode 100644 PrjJava/OCA7/Chapter1/VariablesNames/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/VariablesNames/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/VariablesNames/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/VariablesNames/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/VariablesNames/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/VariablesNames/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/VariablesNames/src/variablesnames/VariablesNames.java create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/build.xml create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/build/classes/namevariables1/Namevariables1.class create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/namevariables1/src/namevariables1/Namevariables1.java create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/build.xml create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/build/classes/variabilelocale/Variabilelocale.class create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/manifest.mf create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter1/variabilelocale/src/variabilelocale/Variabilelocale.java create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/build/classes/callbyvalue/CallByValue.class create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/build/classes/callbyvalue/Wrapper.class create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CallByValue/src/callbyvalue/CallByValue.java create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/build/classes/callbyvalueref/CallByValueRef.class create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CallByValueRef/src/callbyvalueref/CallByValueRef.java create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/build/classes/callconstructor/CallConstructor.class create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/build/classes/callconstructor/Uber.class create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/src/callconstructor/CallConstructor.java create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor/src/callconstructor/Uber.java create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/callconstructor1/Building.class create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/callconstructor1/CallConstructor1.class create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/src/callconstructor1/Building.java create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor1/src/callconstructor1/CallConstructor1.java create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/callconstructor2/CallConstructor2.class create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/callconstructor2/TC.class create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CallConstructor2/src/callconstructor2/CallConstructor2.java create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/build/classes/callpolimorfic/CallPolimorfic.class create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CallPolimorfic/src/callpolimorfic/CallPolimorfic.java create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/build/classes/callvalueprimitive/CallValuePrimitive.class create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CallValuePrimitive/src/callvalueprimitive/CallValuePrimitive.java create mode 100644 PrjJava/OCA7/Chapter2/CastReference/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CastReference/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CastReference/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CastReference/build/classes/castreference/CastReference.class create mode 100644 PrjJava/OCA7/Chapter2/CastReference/build/classes/castreference/GoodSpeak.class create mode 100644 PrjJava/OCA7/Chapter2/CastReference/build/classes/castreference/Tone.class create mode 100644 PrjJava/OCA7/Chapter2/CastReference/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CastReference/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CastReference/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CastReference/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CastReference/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CastReference/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CastReference/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CastReference/src/castreference/CastReference.java create mode 100644 PrjJava/OCA7/Chapter2/Casting2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Casting2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Casting2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Casting2/build/classes/casting2/A.class create mode 100644 PrjJava/OCA7/Chapter2/Casting2/build/classes/casting2/B.class create mode 100644 PrjJava/OCA7/Chapter2/Casting2/build/classes/casting2/Casting2.class create mode 100644 PrjJava/OCA7/Chapter2/Casting2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Casting2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Casting2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Casting2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Casting2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Casting2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Casting2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Casting2/src/casting2/Casting2.java create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/build/classes/castingshort/CastingShort.class create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CastingShort/src/castingshort/CastingShort.java create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/build.xml create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/B.class create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/B1.class create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/B2.class create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/CastingSubclasa.class create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/CastingSubclasa/src/castingsubclasa/CastingSubclasa.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/src/chainingconstructor/ChainingConstructor.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/src/chainingconstructor/Feline.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/chainingconstructor1/A.class create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/chainingconstructor1/ChainingConstructor1.class create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/src/chainingconstructor1/A.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/src/chainingconstructor1/ChainingConstructor1.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/build/classes/constructor1/Animal.class create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/build/classes/constructor1/Constructor1.class create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/src/constructor1/Animal.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor1/src/constructor1/Constructor1.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/src/constructor2/Constructor2.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/Constructor2/src/constructor2/Horeos.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/constructorchaining/A.class create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/constructorchaining/ConstructorChaining.class create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/src/constructorchaining/ConstructorChaining.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build/classes/constructorthrowscheckexception/ConstructorThrowsCheckException.class create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/src/constructorthrowscheckexception/ConstructorThrowsCheckException.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/src/constructorthrowscheckexception1/ConstructorThrowsCheckException1.java create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/src/constructorthrowsexception/ConstructorThrowsException.java create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/build/classes/encapsu2/Dog.class create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/build/classes/encapsu2/Dog1.class create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/build/classes/encapsu2/Encapsu2.class create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Dog.java create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Dog1.java create mode 100644 PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Encapsu2.java create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/A.java create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/B.java create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/C.java create mode 100644 PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/Encapsulation.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/src/implement2interfaces/Implement2Interfaces.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Bird.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Flyer.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Interface2.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Bird.class create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Flyer.class create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Flyer.rs create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Interface2.class create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Interface3.class create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Bird.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Flyer.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Interface2.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Interface3.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/src/interfaceextend/InterfaceExtend.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/interfacevariable/IInt.class create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/interfacevariable/InterfaceVariable.class create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/src/interfacevariable/IInt.java create mode 100644 PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/src/interfacevariable/InterfaceVariable.java create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/build.xml create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/build/classes/intergerparseint/IntergerParseInt.class create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/IntergerParseInt/src/intergerparseint/IntergerParseInt.java create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/build.xml create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/build/classes/javaapplication67/Bottom2.class create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/build/classes/javaapplication67/Top.class create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/src/javaapplication67/Bottom2.java create mode 100644 PrjJava/OCA7/Chapter2/JavaApplication67/src/javaapplication67/Top.java create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Animal.java create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Horse.java create mode 100644 PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Meltdown.java create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build.xml create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build/classes/methodwiththesamewithconstructor/MethodWithTheSameWithConstructor.class create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/src/methodwiththesamewithconstructor/MethodWithTheSameWithConstructor.java create mode 100644 PrjJava/OCA7/Chapter2/MethodsamenameConstructor/build.xml create mode 100644 PrjJava/OCA7/Chapter2/MethodsamenameConstructor/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/MethodsamenameConstructor/src/methodsamenameconstructor/MethodsamenameConstructor.java create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/build/classes/overiding2/A.class create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/build/classes/overiding2/Overiding2.class create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Overiding2/src/overiding2/Overiding2.java create mode 100644 PrjJava/OCA7/Chapter2/OveridingIncorect/build.xml create mode 100644 PrjJava/OCA7/Chapter2/OveridingIncorect/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/OveridingIncorect/src/overidingincorect/OveridingIncorect.java create mode 100644 PrjJava/OCA7/Chapter2/OveridingRules/build.xml create mode 100644 PrjJava/OCA7/Chapter2/OveridingRules/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/OveridingRules/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/OveridingRules/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/OveridingRules/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/OveridingRules/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/OveridingRules/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/OveridingRules/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/OveridingRules/src/overidingrules/OveridingRules.java create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/overloaded1/Overloaded1.class create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/overloaded1/Super.class create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/src/overloaded1/Overloaded1.java create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build/classes/overloaded/Overloaded.class create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/src/overloaded/Overloaded.java create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build/classes/overloaded3/Overloaded3.class create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/src/overloaded3/Overloaded3.java create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build/classes/overloading1/Overloading1.class create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading1/src/overloading1/Overloading1.java create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build/classes/overloading5/Overloading5.class create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloaded/Overloading5/src/overloading5/Overloading5.java create mode 100644 PrjJava/OCA7/Chapter2/Overloading/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloading/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Overloading/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Overloading/build/classes/overloading/Overloading.class create mode 100644 PrjJava/OCA7/Chapter2/Overloading/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Overloading/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloading/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloading/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloading/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloading/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Overloading/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Overloading/src/overloading/Overloading.java create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/build/classes/overridding2/Felix.class create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/build/classes/overridding2/Overridding2.class create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/src/overridding2/Felix.java create mode 100644 PrjJava/OCA7/Chapter2/Overridding2/src/overridding2/Overridding2.java create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build.xml create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build/classes/overriddingcovariantparameter/OverriddingCovariantParameter.class create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/src/overriddingcovariantparameter/OverriddingCovariantParameter.java create mode 100644 PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/build.xml create mode 100644 PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/src/overriddingerrorcompiler/OverriddingErrorCompiler.java create mode 100644 PrjJava/OCA7/Chapter2/Override10/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Override10/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Override10/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Override10/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Override10/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Override10/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Override10/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Override10/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Override10/src/override/Foo.java create mode 100644 PrjJava/OCA7/Chapter2/Override10/src/override/Override.java create mode 100644 PrjJava/OCA7/Chapter2/Override3/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Override3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Override3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Override3/build/classes/override3/Game.class create mode 100644 PrjJava/OCA7/Chapter2/Override3/build/classes/override3/Override3.class create mode 100644 PrjJava/OCA7/Chapter2/Override3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Override3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Override3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Override3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Override3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Override3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Override3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Override3/src/override3/Override3.java create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/build/classes/overriding4/Overriding4.class create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/build/classes/overriding4/Utils.class create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Overriding4/src/overriding4/Overriding4.java create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/build.xml create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/build/classes/paabyvalue3/PaaByValue3.class create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/PaaByValue3/src/paabyvalue3/PaaByValue3.java create mode 100644 PrjJava/OCA7/Chapter2/Private1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Private1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Private1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Private1/build/classes/private1/Private1.class create mode 100644 PrjJava/OCA7/Chapter2/Private1/build/classes/private1/Rocket.class create mode 100644 PrjJava/OCA7/Chapter2/Private1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Private1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Private1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Private1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Private1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Private1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Private1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Private1/src/private1/Private1.java create mode 100644 PrjJava/OCA7/Chapter2/Private1/src/private1/Rocket.java create mode 100644 PrjJava/OCA7/Chapter2/Private2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Private2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Private2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Private2/build/classes/private2/A.class create mode 100644 PrjJava/OCA7/Chapter2/Private2/build/classes/private2/B.class create mode 100644 PrjJava/OCA7/Chapter2/Private2/build/classes/private2/C.class create mode 100644 PrjJava/OCA7/Chapter2/Private2/build/classes/private2/Private2.class create mode 100644 PrjJava/OCA7/Chapter2/Private2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Private2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Private2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Private2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Private2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Private2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Private2/src/private2/Private2.java create mode 100644 PrjJava/OCA7/Chapter2/PrivateClass1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/PrivateClass1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/PrivateClass1/src/privateclass1/PrivateClass1.java create mode 100644 PrjJava/OCA7/Chapter2/Protected1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Protected1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Protected1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Protected1/build/classes/protected1/Felix.class create mode 100644 PrjJava/OCA7/Chapter2/Protected1/build/classes/protected1/Protected1.class create mode 100644 PrjJava/OCA7/Chapter2/Protected1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Protected1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Protected1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Protected1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Protected1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Protected1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Protected1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Protected1/src/protected1/Felix.java create mode 100644 PrjJava/OCA7/Chapter2/Protected1/src/protected1/Protected1.java create mode 100644 PrjJava/OCA7/Chapter2/Protected2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Protected2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Protected2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Protected2/build/classes/newpackage/NewClass.class create mode 100644 PrjJava/OCA7/Chapter2/Protected2/build/classes/protected2/NewClass.class create mode 100644 PrjJava/OCA7/Chapter2/Protected2/build/classes/protected2/Protected2.class create mode 100644 PrjJava/OCA7/Chapter2/Protected2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Protected2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Protected2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Protected2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Protected2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Protected2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Protected2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Protected2/src/newpackage/NewClass.java create mode 100644 PrjJava/OCA7/Chapter2/Protected2/src/protected2/NewClass.java create mode 100644 PrjJava/OCA7/Chapter2/Protected2/src/protected2/Protected2.java create mode 100644 PrjJava/OCA7/Chapter2/Question4/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Question4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Question4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Question4/build/classes/com/Cat.class create mode 100644 PrjJava/OCA7/Chapter2/Question4/build/classes/question4/Animal.class create mode 100644 PrjJava/OCA7/Chapter2/Question4/build/classes/question4/Question4.class create mode 100644 PrjJava/OCA7/Chapter2/Question4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Question4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Question4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Question4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Question4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Question4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Question4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Question4/src/com/Cat.java create mode 100644 PrjJava/OCA7/Chapter2/Question4/src/question4/Animal.java create mode 100644 PrjJava/OCA7/Chapter2/Question4/src/question4/Question4.java create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/Return1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/Return1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/Return1/src/return1/Return1.java create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/build.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/build/classes/returnvalue/ReturnValue.class create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/src/returnvalue/ReturnValue.java create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/build.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/build/classes/returntype/ReturnType.class create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/build.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/build/classes/returndata/ReturnData.class create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/returnData/src/returndata/ReturnData.java create mode 100644 PrjJava/OCA7/Chapter2/ReturnType/src/returntype/ReturnType.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/build/classes/static1/Static1.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static1/src/static1/Static1.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/build/classes/static2/Animal.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/build/classes/static2/Dog.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/build/classes/static2/Static2.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Animal.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Dog.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Static2.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/build/classes/static3/Frog.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/build/classes/static3/Static3.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/src/static3/Frog.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static3/src/static3/Static3.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/build/classes/static4/Static4.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static4/src/static4/Static4.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/build/classes/static5/Static5.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static5/src/static5/Static5.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/src/static6/A.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/src/static6/B.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static6/src/static6/Static6.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/build/classes/static7/Static7.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Static7/src/static7/Static7.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/build/classes/staticblock1/StaticBlock1.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock1/src/staticblock1/StaticBlock1.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/staticblock2/Init.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/staticblock2/StaticBlock2.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/src/staticblock2/Init.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock2/src/staticblock2/StaticBlock2.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/build/classes/staticblock3/StaticBlock3.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock3/src/staticblock3/StaticBlock3.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/build/classes/staticblock4/StaticBlock4.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock4/src/staticblock4/StaticBlock4.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/build/classes/staticblock5/StaticBlock5.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock5/src/staticblock5/StaticBlock5.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/build/classes/staticblock6/StaticBlock6.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock6/src/staticblock6/StaticBlock6.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/build/classes/staticblock9/StaticBlock9.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticBlock9/src/staticblock9/StaticBlock9.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticCall/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticCall/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticCall/src/staticcall/StaticCall.java create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/staticfield/StaticField.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/staticfield/Sub.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/staticfield/Super.class create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/StaticField/src/staticfield/StaticField.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/build/classes/staticblock7/Staticblock7.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock7/src/staticblock7/Staticblock7.java create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/build/classes/staticblock8/Staticblock8.class create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Static/Staticblock8/src/staticblock8/Staticblock8.java create mode 100644 PrjJava/OCA7/Chapter2/Super1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Super1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Super1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Super1/build/classes/super1/AlternateFuel.class create mode 100644 PrjJava/OCA7/Chapter2/Super1/build/classes/super1/Fuel.class create mode 100644 PrjJava/OCA7/Chapter2/Super1/build/classes/super1/Super1.class create mode 100644 PrjJava/OCA7/Chapter2/Super1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Super1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Super1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Super1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Super1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Super1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Super1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Super1/src/super1/AlternateFuel.java create mode 100644 PrjJava/OCA7/Chapter2/Super1/src/super1/Fuel.java create mode 100644 PrjJava/OCA7/Chapter2/Super1/src/super1/Super1.java create mode 100644 PrjJava/OCA7/Chapter2/Super2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Super2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Super2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Super2/build/classes/super2/Super2.class create mode 100644 PrjJava/OCA7/Chapter2/Super2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Super2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Super2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Super2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Super2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Super2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Super2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Super2/src/super2/Super2.java create mode 100644 PrjJava/OCA7/Chapter2/Super3/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Super3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Super3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Super3/build/classes/super3/A.class create mode 100644 PrjJava/OCA7/Chapter2/Super3/build/classes/super3/B.class create mode 100644 PrjJava/OCA7/Chapter2/Super3/build/classes/super3/C.class create mode 100644 PrjJava/OCA7/Chapter2/Super3/build/classes/super3/Super3.class create mode 100644 PrjJava/OCA7/Chapter2/Super3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Super3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Super3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Super3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Super3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Super3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Super3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Super3/src/super3/Super3.java create mode 100644 PrjJava/OCA7/Chapter2/Super4/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Super4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Super4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Super4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Super4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Super4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Super4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Super4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Super4/src/super4/Super4.java create mode 100644 PrjJava/OCA7/Chapter2/Super5/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Super5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Super5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Super5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Super5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Super5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Super5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Super5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Super5/src/super5/Super5.java create mode 100644 PrjJava/OCA7/Chapter2/This1/build.xml create mode 100644 PrjJava/OCA7/Chapter2/This1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/This1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/This1/build/classes/this1/Test.class create mode 100644 PrjJava/OCA7/Chapter2/This1/build/classes/this1/This1.class create mode 100644 PrjJava/OCA7/Chapter2/This1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/This1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/This1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/This1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/This1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/This1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/This1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/This1/src/this1/Test.java create mode 100644 PrjJava/OCA7/Chapter2/This1/src/this1/This1.java create mode 100644 PrjJava/OCA7/Chapter2/This2/build.xml create mode 100644 PrjJava/OCA7/Chapter2/This2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/This2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/This2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/This2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/This2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/This2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/This2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/This2/src/this2/This2.java create mode 100644 PrjJava/OCA7/Chapter2/Types/build.xml create mode 100644 PrjJava/OCA7/Chapter2/Types/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/Types/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/Types/build/classes/types/Types.class create mode 100644 PrjJava/OCA7/Chapter2/Types/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/Types/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/Types/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/Types/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/Types/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/Types/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/Types/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/Types/src/types/Types.java create mode 100644 PrjJava/OCA7/Chapter2/this3/build.xml create mode 100644 PrjJava/OCA7/Chapter2/this3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter2/this3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter2/this3/build/classes/this3/This3.class create mode 100644 PrjJava/OCA7/Chapter2/this3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter2/this3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter2/this3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter2/this3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter2/this3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter2/this3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter2/this3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter2/this3/src/this3/This3.java create mode 100644 PrjJava/OCA7/Chapter3/Final1/build.xml create mode 100644 PrjJava/OCA7/Chapter3/Final1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter3/Final1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter3/Final1/build/classes/final1/Final1.class create mode 100644 PrjJava/OCA7/Chapter3/Final1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/Final1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/Final1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/Final1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/Final1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/Final1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/Final1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/Final1/src/final1/Final1.java create mode 100644 PrjJava/OCA7/Chapter3/Final2/build.xml create mode 100644 PrjJava/OCA7/Chapter3/Final2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter3/Final2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter3/Final2/build/classes/final2/Final2.class create mode 100644 PrjJava/OCA7/Chapter3/Final2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/Final2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/Final2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/Final2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/Final2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/Final2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/Final2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/Final2/src/final2/Final2.java create mode 100644 PrjJava/OCA7/Chapter3/Final3/build.xml create mode 100644 PrjJava/OCA7/Chapter3/Final3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/Final3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/Final3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/Final3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/Final3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/Final3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/Final3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/Final3/src/final3/Final3.java create mode 100644 PrjJava/OCA7/Chapter3/Final4/build.xml create mode 100644 PrjJava/OCA7/Chapter3/Final4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter3/Final4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter3/Final4/build/classes/final4/Final4.class create mode 100644 PrjJava/OCA7/Chapter3/Final4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/Final4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/Final4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/Final4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/Final4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/Final4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/Final4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/Final4/src/final4/Final4.java create mode 100644 PrjJava/OCA7/Chapter3/Final5/build.xml create mode 100644 PrjJava/OCA7/Chapter3/Final5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/Final5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/Final5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/Final5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/Final5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/Final5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/Final5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/Final5/src/final5/Final5.java create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/build.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/build/classes/finaldeclaring/FinalDeclaring.class create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring/src/finaldeclaring/FinalDeclaring.java create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/build.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/build/classes/finaldeclaring1/FinalDeclaring1.class create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalDeclaring1/src/finaldeclaring1/FinalDeclaring1.java create mode 100644 PrjJava/OCA7/Chapter3/FinalInitialization/build.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalInitialization/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/FinalInitialization/src/finalinitialization/FinalInitialization.java create mode 100644 PrjJava/OCA7/Chapter3/Question16/build.xml create mode 100644 PrjJava/OCA7/Chapter3/Question16/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter3/Question16/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter3/Question16/build/classes/question16/Question16.class create mode 100644 PrjJava/OCA7/Chapter3/Question16/build/classes/question16/SubClass.class create mode 100644 PrjJava/OCA7/Chapter3/Question16/build/classes/question16/SuperClass.class create mode 100644 PrjJava/OCA7/Chapter3/Question16/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/Question16/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/Question16/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/Question16/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/Question16/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/Question16/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/Question16/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/Question16/src/question16/Question16.java create mode 100644 PrjJava/OCA7/Chapter3/Question16/src/question16/SubClass.java create mode 100644 PrjJava/OCA7/Chapter3/Question16/src/question16/SuperClass.java create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/build.xml create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/build/classes/shadowing/Shadowing.class create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/manifest.mf create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter3/Shadowing/src/shadowing/Shadowing.java create mode 100644 PrjJava/OCA7/Chapter4/Addboolean/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Addboolean/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Addboolean/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Addboolean/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Addboolean/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Addboolean/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Addboolean/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Addboolean/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Addboolean/src/addboolean/Addboolean.java create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/build/classes/asigment1/Asigment1.class create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Asigment1/src/asigment1/Asigment1.java create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/build.xml create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/build/classes/asigmenttrick/AsigmentTrick.class create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/AsigmentTrick/src/asigmenttrick/AsigmentTrick.java create mode 100644 PrjJava/OCA7/Chapter4/Byte1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Byte1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Byte1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Byte1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Byte1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Byte1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Byte1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Byte1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Byte1/src/byte1/Byte1.java create mode 100644 PrjJava/OCA7/Chapter4/Byte2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Byte2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Byte2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Byte2/build/classes/byte2/Byte2.class create mode 100644 PrjJava/OCA7/Chapter4/Byte2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Byte2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Byte2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Byte2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Byte2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Byte2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Byte2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Byte2/src/byte2/Byte2.java create mode 100644 PrjJava/OCA7/Chapter4/ByteType/build.xml create mode 100644 PrjJava/OCA7/Chapter4/ByteType/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/ByteType/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/ByteType/build/classes/bytetype/ByteType.class create mode 100644 PrjJava/OCA7/Chapter4/ByteType/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/ByteType/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/ByteType/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/ByteType/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/ByteType/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/ByteType/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/ByteType/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/ByteType/src/bytetype/ByteType.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Boat.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Chapter4_10.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/SpeedBoat.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Toy.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Vessel.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Boat.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Chapter4_10.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/SpeedBoat.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Toy.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Vessel.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/build/classes/chapter4_2/Chapter4_2.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_2/src/chapter4_2/Chapter4_2.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/build/classes/chapter4_3/Chapter4_3.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_3/src/chapter4_3/Chapter4_3.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/build/classes/chapter4_4/Chapter4_4.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_4/src/chapter4_4/Chapter4_4.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/build/classes/chapter4_5/Chapter4_5.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_5/src/chapter4_5/Chapter4_5.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/build/classes/chapter4_6/Chapter4_6.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_6/src/chapter4_6/Chapter4_6.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/chapter4_7/Chapter4_7$Days.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/chapter4_7/Chapter4_7.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_7/src/chapter4_7/Chapter4_7.java create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/build/classes/chapter4_8/Chapter4_8.class create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Chapter4_8/src/chapter4_8/Chapter4_8.java create mode 100644 PrjJava/OCA7/Chapter4/Char1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Char1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Char1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Char1/build/classes/char1/Char1.class create mode 100644 PrjJava/OCA7/Chapter4/Char1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Char1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Char1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Char1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Char1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Char1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Char1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Char1/src/char1/Char1.java create mode 100644 PrjJava/OCA7/Chapter4/Char2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Char2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Char2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Char2/build/classes/char2/TestChar.class create mode 100644 PrjJava/OCA7/Chapter4/Char2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Char2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Char2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Char2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Char2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Char2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Char2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Char2/src/char2/TestChar.java create mode 100644 PrjJava/OCA7/Chapter4/Char3/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Char3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Char3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Char3/build/classes/char3/Char3.class create mode 100644 PrjJava/OCA7/Chapter4/Char3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Char3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Char3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Char3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Char3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Char3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Char3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Char3/src/char3/Char3.java create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/build.xml create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/build/classes/charadd/CharAdd.class create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/CharAdd/src/charadd/CharAdd.java create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/build.xml create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/build/classes/comparedouble/CompareDouble.class create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/CompareDouble/src/comparedouble/CompareDouble.java create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/build.xml create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/build/classes/compareprimitives/ComparePrimitives.class create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/ComparePrimitives/src/compareprimitives/ComparePrimitives.java create mode 100644 PrjJava/OCA7/Chapter4/Converion/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Converion/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Converion/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Converion/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Converion/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter4/Converion/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Converion/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Converion/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Converion/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Converion/src/converion/Converion.class create mode 100644 PrjJava/OCA7/Chapter4/Converion/src/converion/Converion.java create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/build.xml create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/build/classes/convertchar/ConvertChar.class create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/ConvertChar/src/convertchar/ConvertChar.java create mode 100644 PrjJava/OCA7/Chapter4/Decrement/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Decrement/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Decrement/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Decrement/build/classes/decrement/Decrement.class create mode 100644 PrjJava/OCA7/Chapter4/Decrement/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Decrement/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Decrement/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Decrement/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Decrement/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Decrement/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Decrement/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Decrement/src/decrement/Decrement.java create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/build.xml create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/build/classes/decrementchar/DecrementChar.class create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/DecrementChar/src/decrementchar/DecrementChar.java create mode 100644 PrjJava/OCA7/Chapter4/Division/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Division/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Division/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Division/build/classes/division/Division.class create mode 100644 PrjJava/OCA7/Chapter4/Division/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Division/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Division/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Division/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Division/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Division/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Division/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Division/src/division/Division.java create mode 100644 PrjJava/OCA7/Chapter4/Equals1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Equals1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Equals1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Equals1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Equals1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Equals1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Equals1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Equals1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Equals1/src/equals1/Equals1.java create mode 100644 PrjJava/OCA7/Chapter4/Equals2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Equals2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Equals2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Equals2/build/classes/equals2/Equals2.class create mode 100644 PrjJava/OCA7/Chapter4/Equals2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Equals2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Equals2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Equals2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Equals2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Equals2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Equals2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Equals2/src/equals2/Equals2.java create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/build.xml create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/build/classes/evaluateoperands/EvaluateOperands.class create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/EvaluateOperands/src/evaluateoperands/EvaluateOperands.java create mode 100644 PrjJava/OCA7/Chapter4/Float1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Float1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Float1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Float1/build/classes/float1/Float1.class create mode 100644 PrjJava/OCA7/Chapter4/Float1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Float1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Float1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Float1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Float1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Float1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Float1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Float1/src/float1/Float1.java create mode 100644 PrjJava/OCA7/Chapter4/Hex1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Hex1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Hex1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Hex1/build/classes/hex1/Hex1.class create mode 100644 PrjJava/OCA7/Chapter4/Hex1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Hex1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Hex1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Hex1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Hex1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Hex1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Hex1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Hex1/src/hex1/Hex1.java create mode 100644 PrjJava/OCA7/Chapter4/HexTest/build.xml create mode 100644 PrjJava/OCA7/Chapter4/HexTest/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/HexTest/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/HexTest/build/classes/hextest/HexTest.class create mode 100644 PrjJava/OCA7/Chapter4/HexTest/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/HexTest/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/HexTest/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/HexTest/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/HexTest/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/HexTest/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/HexTest/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/HexTest/src/hextest/HexTest.java create mode 100644 PrjJava/OCA7/Chapter4/Infinity/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Infinity/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Infinity/build/classes/infinity/Infinity.class create mode 100644 PrjJava/OCA7/Chapter4/Infinity/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Infinity/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity/src/infinity/Infinity.java create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/build/classes/infinity1/Infinity1.class create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity1/src/infinity1/Infinity1.java create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/build/classes/infinity2/Infinity2.class create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity2/src/infinity2/Infinity2.java create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/build/classes/infinity3/Infinity3.class create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity3/src/infinity3/Infinity3.java create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/build/classes/infinity4/Infinity4.class create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Infinity4/src/infinity4/Infinity4.java create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/build/classes/infnity1/Infnity1.class create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Infnity1/src/infnity1/Infnity1.java create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/build/classes/inheritance/A.class create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/build/classes/inheritance/Inheritance.class create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance/src/inheritance/Inheritance.java create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/build/classes/inheritance1/Inheritance1.class create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/build/classes/inheritance1/Sub.class create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/build/classes/inheritance1/Super.class create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance1/src/inheritance1/Inheritance1.java create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/build/classes/inheritance2/Inheritance2.class create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/build/classes/inheritance2/X.class create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/build/classes/inheritance2/Y.class create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/build/classes/inheritance2/Z.class create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Inheritance2/src/inheritance2/Inheritance2.java create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/Bat.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/Bird.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/Eagle.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/Flyer.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/InstanceOf2.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf2/src/instanceof2/InstanceOf2.java create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/build.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/instanceof3/A.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/instanceof3/B.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/instanceof3/InstanceOf3.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/instanceof3/T1.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/instanceof3/T2.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf3/src/instanceof3/InstanceOf3.java create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/build.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/A.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/B.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/C.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/InstanceOf4.class create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOf4/src/instanceof4/InstanceOf4.java create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/build.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/src/instanceofoperator/Cat.java create mode 100644 PrjJava/OCA7/Chapter4/InstanceOfOperator/src/instanceofoperator/InstanceOfOperator.java create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/build/classes/instanceof1/Instanceof1.class create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Instanceof1/src/instanceof1/Instanceof1.java create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/A.class create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/B.class create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/C.class create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/D.class create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/Instanceof5.class create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Instanceof5/src/instanceof5/Instanceof5.java create mode 100644 PrjJava/OCA7/Chapter4/Int1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Int1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Int1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Int1/build/classes/int1/Int1.class create mode 100644 PrjJava/OCA7/Chapter4/Int1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Int1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Int1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Int1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Int1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Int1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Int1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Int1/src/int1/Int1.java create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/build.xml create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/build/classes/intoperation/IntOperation.class create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/IntOperation/src/intoperation/IntOperation.java create mode 100644 PrjJava/OCA7/Chapter4/Interface/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Interface/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface/src/pkginterface/Interface.java create mode 100644 PrjJava/OCA7/Chapter4/Interface1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Interface1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Interface1/build/classes/interface1/Foo.class create mode 100644 PrjJava/OCA7/Chapter4/Interface1/build/classes/interface1/Interface1.class create mode 100644 PrjJava/OCA7/Chapter4/Interface1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Interface1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface1/src/interface1/Foo.java create mode 100644 PrjJava/OCA7/Chapter4/Interface1/src/interface1/Interface1.java create mode 100644 PrjJava/OCA7/Chapter4/Interface4/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface4/build/built-jar.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/Bird.class create mode 100644 PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/CallAplet.html create mode 100644 PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/Flyer.class create mode 100644 PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/Interface4.class create mode 100644 PrjJava/OCA7/Chapter4/Interface4/build/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Interface4/dist/Interface4.jar create mode 100644 PrjJava/OCA7/Chapter4/Interface4/dist/README.TXT create mode 100644 PrjJava/OCA7/Chapter4/Interface4/dist/launch.html create mode 100644 PrjJava/OCA7/Chapter4/Interface4/dist/launch.jnlp create mode 100644 PrjJava/OCA7/Chapter4/Interface4/dist/launch.jnlp_ create mode 100644 PrjJava/OCA7/Chapter4/Interface4/dist/lib/game.jar create mode 100644 PrjJava/OCA7/Chapter4/Interface4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Interface4/master-applet.jnlp create mode 100644 PrjJava/OCA7/Chapter4/Interface4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface4/nbproject/configs/JWS_generated.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface4/nbproject/jnlp-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface4/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface4/preview-applet.html create mode 100644 PrjJava/OCA7/Chapter4/Interface4/src/interface4/Bird.java create mode 100644 PrjJava/OCA7/Chapter4/Interface4/src/interface4/CallAplet.html create mode 100644 PrjJava/OCA7/Chapter4/Interface4/src/interface4/Flyer.java create mode 100644 PrjJava/OCA7/Chapter4/Interface4/src/interface4/Interface4.java create mode 100644 PrjJava/OCA7/Chapter4/Interface5/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Interface5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/Breakable.class create mode 100644 PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/Car.class create mode 100644 PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/FancyCar.class create mode 100644 PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/Interface5.class create mode 100644 PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/SuperFancyCar.class create mode 100644 PrjJava/OCA7/Chapter4/Interface5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Interface5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface5/src/interface5/Breakable.java create mode 100644 PrjJava/OCA7/Chapter4/Interface5/src/interface5/Car.java create mode 100644 PrjJava/OCA7/Chapter4/Interface5/src/interface5/FancyCar.java create mode 100644 PrjJava/OCA7/Chapter4/Interface5/src/interface5/Interface5.java create mode 100644 PrjJava/OCA7/Chapter4/Interface5/src/interface5/SuperFancyCar.java create mode 100644 PrjJava/OCA7/Chapter4/Interface6/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Interface6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface6/src/interface6/Interface6.java create mode 100644 PrjJava/OCA7/Chapter4/Interface7/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Interface7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Interface7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Interface7/src/interface7/Interface7.java create mode 100644 PrjJava/OCA7/Chapter4/Intsum/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Intsum/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Intsum/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Intsum/build/classes/intsum/Intsum.class create mode 100644 PrjJava/OCA7/Chapter4/Intsum/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Intsum/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Intsum/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Intsum/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Intsum/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Intsum/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Intsum/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Intsum/src/intsum/Intsum.java create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/build.xml create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/build/classes/javaapplication32/JavaApplication32.class create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/JavaApplication32/src/javaapplication32/JavaApplication32.java create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/build/classes/left/hand/operand1/LeftHandOperand1.class create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Left-Hand Operand1/src/left/hand/operand1/LeftHandOperand1.java create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/build/classes/left/handoperand/LeftHandOperand.class create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Left-HandOperand/src/left/handoperand/LeftHandOperand.java create mode 100644 PrjJava/OCA7/Chapter4/Method1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Method1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Method1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Method1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Method1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Method1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Method1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Method1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Method1/src/method1/Method1.java create mode 100644 PrjJava/OCA7/Chapter4/Method2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Method2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Method2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Method2/build/classes/method2/Method2.class create mode 100644 PrjJava/OCA7/Chapter4/Method2/build/classes/method22/A.class create mode 100644 PrjJava/OCA7/Chapter4/Method2/build/classes/method22/B.class create mode 100644 PrjJava/OCA7/Chapter4/Method2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Method2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Method2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Method2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Method2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Method2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Method2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Method2/src/method2/Method2.java create mode 100644 PrjJava/OCA7/Chapter4/Method2/src/method22/A.java create mode 100644 PrjJava/OCA7/Chapter4/Method2/src/method22/B.java create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/build.xml create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/build/classes/nullinstanceof/NullInstanceOf.class create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/NullInstanceOf/src/nullinstanceof/NullInstanceOf.java create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/build.xml create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/build/classes/ornonshortcircuit/ORNonShortCircuit.class create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/ORNonShortCircuit/src/ornonshortcircuit/ORNonShortCircuit.java create mode 100644 PrjJava/OCA7/Chapter4/Octal1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Octal1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Octal1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Octal1/build/classes/octal1/Octal1.class create mode 100644 PrjJava/OCA7/Chapter4/Octal1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Octal1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Octal1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Octal1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Octal1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Octal1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Octal1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Octal1/src/octal1/Octal1.java create mode 100644 PrjJava/OCA7/Chapter4/Operator1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator1/build/classes/operator1/Operator1.class create mode 100644 PrjJava/OCA7/Chapter4/Operator1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator1/src/operator1/Operator1.java create mode 100644 PrjJava/OCA7/Chapter4/Operator10/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator10/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Operator10/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Operator10/build/classes/operator10/Operator10.class create mode 100644 PrjJava/OCA7/Chapter4/Operator10/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator10/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator10/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator10/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator10/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator10/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator10/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator10/src/operator10/Operator10.java create mode 100644 PrjJava/OCA7/Chapter4/Operator11/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator11/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator11/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator11/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator11/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator11/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator11/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator11/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator11/src/operator11/Operator11.java create mode 100644 PrjJava/OCA7/Chapter4/Operator2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Operator2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Operator2/build/classes/operator2/Operator2.class create mode 100644 PrjJava/OCA7/Chapter4/Operator2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator2/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator2/src/operator2/Operator2.java create mode 100644 PrjJava/OCA7/Chapter4/Operator3/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Operator3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Operator3/build/classes/operator3/Operator3.class create mode 100644 PrjJava/OCA7/Chapter4/Operator3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator3/src/operator3/Operator3.java create mode 100644 PrjJava/OCA7/Chapter4/Operator4/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator4/build/classes/operator4/Operator4.class create mode 100644 PrjJava/OCA7/Chapter4/Operator4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator4/src/operator4/Operator4.java create mode 100644 PrjJava/OCA7/Chapter4/Operator5/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator5/build/classes/operator5/Operator5.class create mode 100644 PrjJava/OCA7/Chapter4/Operator5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator5/src/operator5/Operator5.java create mode 100644 PrjJava/OCA7/Chapter4/Operator6/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Operator6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Operator6/build/classes/operator6/Operator6.class create mode 100644 PrjJava/OCA7/Chapter4/Operator6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator6/src/operator6/Operator6.java create mode 100644 PrjJava/OCA7/Chapter4/Operator7/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator7/src/operator7/Operator7.java create mode 100644 PrjJava/OCA7/Chapter4/Operator8/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator8/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Operator8/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Operator8/build/classes/operator8/Operator8.class create mode 100644 PrjJava/OCA7/Chapter4/Operator8/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator8/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator8/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator8/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator8/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator8/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator8/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator8/src/operator8/Operator8.java create mode 100644 PrjJava/OCA7/Chapter4/Operator9/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator9/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Operator9/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Operator9/build/classes/operator9/Operator9.class create mode 100644 PrjJava/OCA7/Chapter4/Operator9/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Operator9/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator9/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator9/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator9/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator9/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Operator9/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Operator9/src/operator9/Operator9.java create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/build.xml create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/build/classes/parsefloat/ParseFloat.class create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/ParseFloat/src/parsefloat/ParseFloat.java create mode 100644 PrjJava/OCA7/Chapter4/PassByValue3/build.xml create mode 100644 PrjJava/OCA7/Chapter4/PassByValue3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/PassByValue3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/PassByValue3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/PassByValue3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/PassByValue3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/PassByValue3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/PassByValue3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/PassByValue3/src/passbyvalue3/PassByValue3.java create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/build/classes/passbyvalue2/PassbyValue2.class create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/PassbyValue2/src/passbyvalue2/PassbyValue2.java create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/build/classes/preincrement1/PreIncrement1.class create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/PreIncrement1/src/preincrement1/PreIncrement1.java create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/build.xml create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/build/classes/primitiveconversion/PrimitiveConversion.class create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/PrimitiveConversion/src/primitiveconversion/PrimitiveConversion.java create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/build.xml create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/build/classes/promoteplusint/PromotePlusInt.class create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/PromotePlusInt/src/promoteplusint/PromotePlusInt.java create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/build/classes/promotion1/Promotion1.class create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Promotion1/src/promotion1/Promotion1.java create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/build/classes/shadowing3/ABCD.class create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/build/classes/shadowing3/MNOP.class create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/build/classes/shadowing3/Shadowing3.class create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Shadowing3/src/shadowing3/Shadowing3.java create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/build.xml create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/build/classes/unreacheablecode3/UnreacheableCode3.class create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/UnreacheableCode3/src/unreacheablecode3/UnreacheableCode3.java create mode 100644 PrjJava/OCA7/Chapter4/Unreacheablecode2/build.xml create mode 100644 PrjJava/OCA7/Chapter4/Unreacheablecode2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/Unreacheablecode2/src/unreacheablecode2/Unreacheablecode2.java create mode 100644 PrjJava/OCA7/Chapter4/UnreachebleCode1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/UnreachebleCode1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/UnreachebleCode1/src/unreacheblecode1/UnreachebleCode1.java create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/build/classes/unrecheablecode1/UnrecheableCode1.class create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/UnrecheableCode1/src/unrecheablecode1/UnrecheableCode1.java create mode 100644 PrjJava/OCA7/Chapter4/UnrereableCode4/build.xml create mode 100644 PrjJava/OCA7/Chapter4/UnrereableCode4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/UnrereableCode4/src/unrereablecode4/UnrereableCode4.java create mode 100644 PrjJava/OCA7/Chapter4/XOR1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/XOR1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/XOR1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/XOR1/build/classes/xor1/XOR1.class create mode 100644 PrjJava/OCA7/Chapter4/XOR1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/XOR1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/XOR1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/XOR1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/XOR1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/XOR1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/XOR1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/XOR1/src/xor1/XOR1.java create mode 100644 PrjJava/OCA7/Chapter4/boolean1/build.xml create mode 100644 PrjJava/OCA7/Chapter4/boolean1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter4/boolean1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter4/boolean1/build/classes/boolean1/Boolean1.class create mode 100644 PrjJava/OCA7/Chapter4/boolean1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter4/boolean1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter4/boolean1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter4/boolean1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter4/boolean1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter4/boolean1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter4/boolean1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter4/boolean1/src/boolean1/Boolean1.java create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build/classes/arraylist2/ArrayList2.class create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/src/arraylist2/ArrayList2.java create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build/classes/arraylist3/ArrayList3.class create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/src/arraylist3/ArrayList3.java create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build/classes/arraylistsublist/ArrayListSublist.class create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/src/arraylistsublist/ArrayListSublist.java create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build/classes/arraylist4/Arraylist4.class create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/src/arraylist4/Arraylist4.java create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/list1/Apple.class create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/list1/List1.class create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/ArrayList/List1/src/list1/List1.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Aray17/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Aray17/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Aray17/src/aray17/Aray17.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/build/classes/array1/Array1.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array1/src/array1/Array1.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array10/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array10/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array10/src/array10/Array10.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/build/classes/array11/Array11.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array11/src/array11/Array11.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/build/classes/array12/Array12.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array12/src/array12/Array12.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/build/classes/array13/Array13.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array13/src/array13/Array13.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/build/classes/array14/Array14.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array14/src/array14/Array14.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/build/classes/array15/Array15.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array15/src/array15/Array15.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/build/classes/array16/Array16.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array16/src/array16/Array16.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/build/classes/array2/Array2.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array2/src/array2/Array2.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/build/classes/array20/Array20.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array20/src/array20/Array20.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/build/classes/array3/Array3.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array3/src/array3/Array3.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/build/classes/array4/Array4.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array4/src/array4/Array4.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/build/classes/array5/Array5.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array5/src/array5/Array5.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6/src/array6/Array6.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array6_1/src/array6_1/Array6_1.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/build/classes/array7/Array7.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array7/src/array7/Array7.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/build/classes/array8/Array8.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array8/src/array8/Array8.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/build/classes/array9/Array9.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Array9/src/array9/Array9.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/build/classes/StartTest.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/build/classes/arraycompare/ArrayCompare.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/src/StartTest.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/src/arraycompare/ArrayCompare.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build/classes/arraycopy1/ArrayCopy1.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/src/arraycopy1/ArrayCopy1.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build/classes/arraycopy2/ArrayCopy2.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/src/arraycopy2/ArrayCopy2.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/arrayindexoutofboundsexception/ArrayIndexOutOfBoundsException.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/arrayindexoutofboundsexception/MySpecialException.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/src/arrayindexoutofboundsexception/ArrayIndexOutOfBoundsException.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build/classes/arraynull/ArrayNull.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayNull/src/arraynull/ArrayNull.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build/classes/arrayofsizezero/ArrayOfSizeZEro.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/src/arrayofsizezero/ArrayOfSizeZEro.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/src/arraytriple/ArrayTriple.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build/classes/arrayindexoutvoundsexception1/ArrayindexoutvoundsException1.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/src/arrayindexoutvoundsexception1/ArrayindexoutvoundsException1.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build/classes/declare2array/Declare2Array.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/Declare2Array/src/declare2array/Declare2Array.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build/classes/doublearray1/DoubleArray1.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/src/doublearray1/DoubleArray1.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build/classes/initialisearray/InitialiseArray.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/src/initialisearray/InitialiseArray.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/build/classes/largearray/LargeArray.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LargeArray/src/largearray/LargeArray.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build/classes/lastelementarray/LastElementArray.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/LastElementArray/src/lastelementarray/LastElementArray.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/build/classes/sizearray/SizeArray.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/SizeArray/src/sizearray/SizeArray.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build/classes/triplearray1/TripleArray1.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/TripleArray1/src/triplearray1/TripleArray1.java create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/build/classes/arrayadi/Arrayadi.class create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Arrays/arrayadi/src/arrayadi/Arrayadi.java create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/build/classes/chpater5_2/Chpater5_2.class create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Chpater5_2/src/chpater5_2/Chpater5_2.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/build/classes/reversestring/ReverseString.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/ReverseString/src/reversestring/ReverseString.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/build/classes/strequal/StrEqual.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StrEqual/src/strequal/StrEqual.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/build/classes/string1/String1.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String1/src/string1/String1.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/build/classes/string10/String10.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String10/src/string10/String10.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/build/classes/string11/String11.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String11/src/string11/String11.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/build/classes/string12/String12.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String12/src/string12/String12.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/build/classes/string13/String13.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String13/src/string13/String13.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/build/classes/string2/String2.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String2/src/string2/String2.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/build/classes/string3/String3.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String3/src/string3/String3.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/build/classes/string4/String4.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String4/src/string4/String4.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String5/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String5/src/string5/String5.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/build/classes/string6/String6.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String6/src/string6/String6.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/build/classes/string8/String8.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/String8/src/string8/String8.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/build/classes/stringaddobject/StringAddObject.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringAddObject/src/stringaddobject/StringAddObject.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build/classes/stringbuilder1/StringBuilder1.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder1/src/stringbuilder1/StringBuilder1.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build/classes/stringbuilder5/StringBuilder5.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilder5/src/stringbuilder5/StringBuilder5.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build/classes/stringbuilderdelete/StringBuilderDelete.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/src/stringbuilderdelete/StringBuilderDelete.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/build/classes/stringequals/StringEquals.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringEquals/src/stringequals/StringEquals.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/build/classes/stringmethods/StringMethods.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringMethods/src/stringmethods/StringMethods.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/build/classes/stringoperations/StringOperations.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringOperations/src/stringoperations/StringOperations.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/build/classes/stringpool1/StringPool1.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool1/src/stringpool1/StringPool1.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/build/classes/stringpool2/StringPool2.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool2/src/stringpool2/StringPool2.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/build/classes/stringpool3/StringPool3.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool3/src/stringpool3/StringPool3.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/build/classes/stringpool4/StringPool4.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringPool4/src/stringpool4/StringPool4.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/build/classes/stringproc2/StringProc2.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProc2/src/stringproc2/StringProc2.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/build/classes/stringproces1/StringProces1.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/StringProces1/src/stringproces1/StringProces1.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/build/classes/stringliteral/Stringliteral.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/Stringliteral/src/stringliteral/Stringliteral.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/build/classes/sublist1/SubList1.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/SubList1/src/sublist1/SubList1.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/tostring1/Super.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/tostring1/ToString1.class create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/ToString1/src/tostring1/ToString1.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString2/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString2/src/tostring2/ToString2.java create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString3/build.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter5/Strings/toString3/src/tostring3/ToString3.java create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/build/classes/chapter6_4/Chapter6_4.class create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_4/src/chapter6_4/Chapter6_4.java create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/CC2.class create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/CC4.class create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/CC5.class create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/Chapter6_7.class create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/SubException.class create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/SubSubException.class create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC2.java create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC4.java create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC5.java create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/Chapter6_7.java create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/SubException.java create mode 100644 PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/SubSubException.java create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/build/built-jar.properties create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/build/classes/excecise64/BadFoodException.class create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/build/classes/excecise64/Excecise64.class create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/dist/Excecise64.jar create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/dist/README.TXT create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/src/excecise64/BadFoodException.class create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/src/excecise64/BadFoodException.java create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/src/excecise64/Excecise64.class create mode 100644 PrjJava/OCA7/Chapter6/Excecise64/src/excecise64/Excecise64.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/src/aritmeticexception1/AritmeticException1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build/classes/aritmeticexception2/AritmeticException2.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/src/aritmeticexception2/AritmeticException2.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build/classes/aritmeticexception3/AritmeticException3.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/src/aritmeticexception3/AritmeticException3.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build/classes/blockstaticexception/BlockstaticException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/src/blockstaticexception/BlockstaticException.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build/classes/classcastexception1/ClassCastException1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/src/classcastexception1/ClassCastException1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/classcastexception2/Child.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/classcastexception2/ClassCastException2.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/classcastexception2/Parent.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/src/classcastexception2/ClassCastException2.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/customexception1/CatEx.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/customexception1/CustomException1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/customexception1/DogEx.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/CatEx.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/CustomException1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/DogEx.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/customexception2/CustomException2.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/customexception2/E1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/customexception2/E2.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException2/src/customexception2/CustomException2.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException3/src/customexception3/CustomException3.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/customexception4/CustomException4.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/customexception4/CustomException5.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/CustomException4/src/customexception4/CustomException4.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/OutFile.txt create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/built-jar.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/classes/exception1/Exception1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/dist/Exception1.jar create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/dist/README.TXT create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception1/src/exception1/Exception1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/exception10/Master.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/exception10/Slave.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/src/exception10/Master.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception10/src/exception10/Slave.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/build/classes/exception11/Exception11.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception11/src/exception11/Exception11.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/exception12/Exception12.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/exception12/Utils.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/src/exception12/Exception12.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception12/src/exception12/Utils.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/build/classes/exception13/Exception13.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception13/src/exception13/Exception13.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/build/classes/exception14/Exception14.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception14/src/exception14/Exception14.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/exception15/Exception15.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/exsception15/Exsception15.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/src/exception15/Exception15.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception15/src/exsception15/Exsception15.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/exception16/Exception16.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/exception16/MyException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/exception16/Tire.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/Exception16.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/MyException.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/Tire.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/exception17/Exception17.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/exception17/MyException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/exception17/Tire.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/Exception17.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/MyException.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/Tire.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/Exception18.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/MyException.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/Tire.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/exception19/Exception19.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/exception19/MyException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/exception19/Tire.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/Exception19.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/MyException.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/Tire.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/build/classes/exception6/Exception6.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception6/src/exception6/Exception6.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/exception7/Exception7.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/exception7/Percentage.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/src/exception7/Exception7.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception7/src/exception7/Percentage.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/build/classes/exception8/Exception8.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception8/src/exception8/Exception8.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/build/classes/exception9/Exception9.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exception9/src/exception9/Exception9.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/src/javaapplication237/JavaApplication237.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/excercise63_1/Excercise63_1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/excercise63_1/Excercise63_1.rs create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/src/excercise63_1/Excercise63_1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build/classes/excersise6/pkg2/Excersise62.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/src/excersise6/pkg2/Excersise62.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build/classes/exercise6/pkg3/Exercise63.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/src/exercise6/pkg3/Exercise63.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/build/classes/finally1/Finally1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Finally1/src/finally1/Finally1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build/classes/exception4/Exception4.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/src/exception4/Exception4.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/build/classes/npe1/NPE1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE1/src/npe1/NPE1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/build/classes/npe2/NPE2.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE2/src/npe2/NPE2.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NPE3/src/npe3/NPE3.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build/classes/nullpointerexception/NullPointerException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/src/nullpointerexception/NullPointerException.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build/classes/nullpointerexception1/NullPointerException1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/src/nullpointerexception1/NullPointerException1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build/classes/numberformat1/NumberFormat1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/src/numberformat1/NumberFormat1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build/classes/outofmemoryerror1/OutOfMemoryError1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/src/outofmemoryerror1/OutOfMemoryError1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/build/classes/runtime1/Runtime1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Runtime1/src/runtime1/Runtime1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build/classes/runtimeexception/RuntimeException1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/src/runtimeexception/RuntimeException1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/runtimeexception1/Lake.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/runtimeexception1/RuntimeException1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/src/runtimeexception1/Lake.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/src/runtimeexception1/RuntimeException1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build/classes/runtimeexception2/RuntimeException2.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/src/runtimeexception2/RuntimeException2.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/runtimeexception3/MyException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/runtimeexception3/RuntimeException3.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/src/runtimeexception3/RuntimeException3.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException2.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException3.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/TheMostSpecificException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/src/themostspecificexception/TheMostSpecificException.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/src/thorwnpe/ThorwNPE.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/build/classes/throw1/Throw1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throw1/src/throw1/Throw1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/build/classes/exception5/Exception5.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throwable/src/exception5/Exception5.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build/classes/thrownable1/Thrownable1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/src/thrownable1/Thrownable1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/thrownable2/MyThrowable.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/thrownable2/SomeThwonable.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/thrownable2/Thrownable2.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/MyThrowable.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/SomeThwonable.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/Thrownable2.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/build/classes/throws1/Throws1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws1/src/throws1/Throws1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/throws2/AnotherException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/throws2/NewException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/throws2/Throws2.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws2/src/throws2/Throws2.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/throws3/Throws3.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/throws3/XXX.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/throws3/YYY.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws3/src/throws3/Throws3.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws4/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws4/src/throws4/Throws4.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/build/classes/throws5/Throws5.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/Throws5/src/throws5/Throws5.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/transferexception/TransferException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/transferexception/Utils.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/src/transferexception/TransferException.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException/src/transferexception/Utils.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build/classes/transferexception1/TransferException1.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferException1/src/transferexception1/TransferException1.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/transferexceptionout/MyException.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/transferexceptionout/TransferExceptionOut.class create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/src/transferexceptionout/MyException.java create mode 100644 PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/src/transferexceptionout/TransferExceptionOut.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build/classes/blocklabeled/Blocklabeled.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Blocklabeled/src/blocklabeled/Blocklabeled.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/build/classes/continue1/Continue1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue1/src/continue1/Continue1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/build/classes/continue2/Continue2.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Continue2/src/continue2/Continue2.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/build/classes/crazyloop/Crazyloop.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Crazyloop/src/crazyloop/Crazyloop.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/build/classes/do1/Do1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do1/src/do1/Do1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/build/classes/do2/Do2.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do2/src/do2/Do2.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/build/classes/do8/Do8.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Do8/src/do8/Do8.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/build/classes/exit1/Exit1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit1/src/exit1/Exit1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/build/classes/exit2/Exit2.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Exit2/src/exit2/Exit2.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build/classes/exitfromfor1/ExitFromFor1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/src/exitfromfor1/ExitFromFor1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/build/classes/for1/For1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For1/src/for1/For1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/build/classes/for10/For10.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For10/src/for10/For10.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/build/classes/for11/For11.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For11/src/for11/For11.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/build/classes/for12/For12.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For12/src/for12/For12.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/build/classes/for13/For13.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For13/src/for13/For13.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/build/classes/for14/For14.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For14/src/for14/For14.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For2/src/for2/For2.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For3/src/for3/For3.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For4/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For4/src/for4/For4.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/build/classes/for5/For5.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For5/src/for5/For5.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/build/classes/for6/For6.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For6/src/for6/For6.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/build/classes/for7/For7.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For7/src/for7/For7.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/build/classes/for8/For8.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/For8/src/for8/For8.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build/classes/forcarenuseexecuta/ForCareNuSeExecuta.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/src/forcarenuseexecuta/ForCareNuSeExecuta.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/build/classes/forchar/ForChar.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForChar/src/forchar/ForChar.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/build/classes/forciudat/ForCiudat.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat/src/forciudat/ForCiudat.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build/classes/forciudat1/ForCiudat1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForCiudat1/src/forciudat1/ForCiudat1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/build/classes/forfor1/ForFor1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForFor1/src/forfor1/ForFor1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/build/classes/forinfor/ForInFor.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInFor/src/forinfor/ForInFor.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build/classes/forinforinfor/ForInForinFor.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForInForinFor/src/forinforinfor/ForInForinFor.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/build/classes/forincorect/ForIncorect.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorect/src/forincorect/ForIncorect.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorrect/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorrect/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/ForIncorrect/src/forincorrect/ForIncorrect.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/build/classes/forformascurta/Forformascurta.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forformascurta/src/forformascurta/Forformascurta.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/build/classes/forlabeled/Forlabeled.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Forlabeled/src/forlabeled/Forlabeled.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/build/classes/if1/If1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If1/src/if1/If1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/build/classes/if5/If5.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If5/src/if5/If5.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/build/classes/if6/If6.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If6/src/if6/If6.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/If7/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/If7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/If7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/If7/src/if7/If7.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/IllegalFor/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/IllegalFor/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/IllegalFor/src/illegalfor/IllegalFor.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/build/classes/loop1/Loop1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop1/src/loop1/Loop1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/build/classes/loop3/Loop3.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Loop3/src/loop3/Loop3.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Receablecode/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Receablecode/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Receablecode/src/receablecode/ReachableCode.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/build/classes/samplebreakcontinue/SampleBreakContinue.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/src/samplebreakcontinue/SampleBreakContinue.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/build/classes/samplebreaklabeled/SampleBreaklabeled.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/src/samplebreaklabeled/SampleBreaklabeled.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build/classes/sampletrycatch/SampleTryCatch.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/src/sampletrycatch/SampleTryCatch.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/build/classes/statementlabled/StatementLabled.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/StatementLabled/src/statementlabled/StatementLabled.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/build/classes/staticfor/StaticFor.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/StaticFor/src/staticfor/StaticFor.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwichIncorect/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwichIncorect/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwichIncorect/src/swichincorect/SwichIncorect.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build/classes/switcfloat/SwitcFloat.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitcFloat/src/switcfloat/SwitcFloat.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/switch1/Beyond.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/switch1/Infinity.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/switch1/Switch1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Beyond.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Infinity.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Switch1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch2/src/switch2/Switch2.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/build/classes/switch3/Switch3.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch3/src/switch3/Switch3.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch4/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch4/src/switch4/Switch4.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/switch5/NewEnum.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/switch5/Switch5$1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/switch5/Switch5.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/src/switch5/NewEnum.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch5/src/switch5/Switch5.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/build/classes/switch6/Switch6.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch6/src/switch6/Switch6.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/build/classes/switch7/Switch7.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switch7/src/switch7/Switch7.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/build/classes/switchchar/SwitchChar.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar/src/switchchar/SwitchChar.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build/classes/switchchar1/SwitchChar1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchChar1/src/switchchar1/SwitchChar1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/src/switchciudat/SwitchCiudat.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/src/switchcorrect/SwitchCorrect.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchLong/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchLong/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/SwitchLong/src/switchlong/SwitchLong.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/build/classes/switchdefault/Switchdefault.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/Switchdefault/src/switchdefault/Switchdefault.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/W@hile3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/W@hile3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/W@hile3/src/w/hile3/WHile3.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/build/classes/while1/While1.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While1/src/while1/While1.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/build/built-jar.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/build/classes/while2/While2.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/dist/README.TXT create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/dist/While2.jar create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While2/src/while2/While2.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/build/classes/while3/While3.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While3/src/while3/While3.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/build/classes/while4/While4.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While4/src/while4/While4.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/build/classes/while5/While5.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While5/src/while5/While5.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/build/classes/while6/While6.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While6/src/while6/While6.java create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/build.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/build/classes/while7/While7.class create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/manifest.mf create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/nbproject/project.properties create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/nbproject/project.xml create mode 100644 PrjJava/OCA7/Chapter6/Flow/While7/src/while7/While7.java create mode 100644 PrjJava/OCA7/Clase si Interfete.xlsx create mode 100644 PrjJava/OCA7/CompilError1/build.xml create mode 100644 PrjJava/OCA7/CompilError1/manifest.mf create mode 100644 PrjJava/OCA7/CompilError1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/CompilError1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/CompilError1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/CompilError1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/CompilError1/nbproject/project.properties create mode 100644 PrjJava/OCA7/CompilError1/nbproject/project.xml create mode 100644 PrjJava/OCA7/CompilError1/src/compilerror1/CompilError1.java create mode 100644 PrjJava/OCA7/Constant1/build.xml create mode 100644 PrjJava/OCA7/Constant1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Constant1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Constant1/build/classes/constant1/Constant1.class create mode 100644 PrjJava/OCA7/Constant1/build/classes/stuff/Stuff.class create mode 100644 PrjJava/OCA7/Constant1/manifest.mf create mode 100644 PrjJava/OCA7/Constant1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Constant1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Constant1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Constant1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Constant1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Constant1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Constant1/src/constant1/Constant1.java create mode 100644 PrjJava/OCA7/Constant1/src/stuff/Stuff.java create mode 100644 PrjJava/OCA7/EnumTest/build.xml create mode 100644 PrjJava/OCA7/EnumTest/build/classes/question33/Question33$Month.class create mode 100644 PrjJava/OCA7/EnumTest/build/classes/question33/Question33.class create mode 100644 PrjJava/OCA7/EnumTest/manifest.mf create mode 100644 PrjJava/OCA7/EnumTest/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/EnumTest/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/EnumTest/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/EnumTest/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/EnumTest/nbproject/project.properties create mode 100644 PrjJava/OCA7/EnumTest/nbproject/project.xml create mode 100644 PrjJava/OCA7/EnumTest/src/question33/Question33.java create mode 100644 PrjJava/OCA7/Exam Question1/build.xml create mode 100644 PrjJava/OCA7/Exam Question1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Exam Question1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Exam Question1/build/classes/exam/question1/ExamQuestion1.class create mode 100644 PrjJava/OCA7/Exam Question1/manifest.mf create mode 100644 PrjJava/OCA7/Exam Question1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Exam Question1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Exam Question1/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Exam Question1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Exam Question1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Exam Question1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Exam Question1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Exam Question1/src/exam/question1/ExamQuestion1.java create mode 100644 PrjJava/OCA7/GetClass/build.xml create mode 100644 PrjJava/OCA7/GetClass/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/GetClass/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/GetClass/build/classes/getclass/GetClass.class create mode 100644 PrjJava/OCA7/GetClass/manifest.mf create mode 100644 PrjJava/OCA7/GetClass/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/GetClass/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/GetClass/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/GetClass/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/GetClass/nbproject/project.properties create mode 100644 PrjJava/OCA7/GetClass/nbproject/project.xml create mode 100644 PrjJava/OCA7/GetClass/src/getclass/GetClass.java create mode 100644 PrjJava/OCA7/GetClassSample/build.xml create mode 100644 PrjJava/OCA7/GetClassSample/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/GetClassSample/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/GetClassSample/build/classes/getclasssample/GetClassSample.class create mode 100644 PrjJava/OCA7/GetClassSample/manifest.mf create mode 100644 PrjJava/OCA7/GetClassSample/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/GetClassSample/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/GetClassSample/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/GetClassSample/nbproject/project.properties create mode 100644 PrjJava/OCA7/GetClassSample/nbproject/project.xml create mode 100644 PrjJava/OCA7/GetClassSample/src/getclasssample/GetClassSample.java create mode 100644 PrjJava/OCA7/JavaApplication2/build.xml create mode 100644 PrjJava/OCA7/JavaApplication2/manifest.mf create mode 100644 PrjJava/OCA7/JavaApplication2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/JavaApplication2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/JavaApplication2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/JavaApplication2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/JavaApplication2/nbproject/project.properties create mode 100644 PrjJava/OCA7/JavaApplication2/nbproject/project.xml create mode 100644 PrjJava/OCA7/JavaApplication2/src/javaapplication2/JavaApplication2.java create mode 100644 PrjJava/OCA7/Math1/build.xml create mode 100644 PrjJava/OCA7/Math1/manifest.mf create mode 100644 PrjJava/OCA7/Math1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Math1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Math1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Math1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Math1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Math1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Math1/src/javaapplication69/JavaApplication69.java create mode 100644 PrjJava/OCA7/OracleSite1/build.xml create mode 100644 PrjJava/OCA7/OracleSite1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/OracleSite1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/OracleSite1/build/classes/oraclesite1/OracleSite1.class create mode 100644 PrjJava/OCA7/OracleSite1/manifest.mf create mode 100644 PrjJava/OCA7/OracleSite1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/OracleSite1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/OracleSite1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/OracleSite1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/OracleSite1/nbproject/project.properties create mode 100644 PrjJava/OCA7/OracleSite1/nbproject/project.xml create mode 100644 PrjJava/OCA7/OracleSite1/src/oraclesite1/OracleSite1.java create mode 100644 PrjJava/OCA7/OracleStudy1/build.xml create mode 100644 PrjJava/OCA7/OracleStudy1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/OracleStudy1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/OracleStudy1/build/classes/oraclestudy1/OracleStudy1.class create mode 100644 PrjJava/OCA7/OracleStudy1/manifest.mf create mode 100644 PrjJava/OCA7/OracleStudy1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/OracleStudy1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/OracleStudy1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/OracleStudy1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/OracleStudy1/nbproject/project.properties create mode 100644 PrjJava/OCA7/OracleStudy1/nbproject/project.xml create mode 100644 PrjJava/OCA7/OracleStudy1/src/oraclestudy1/OracleStudy1.java create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/build.xml create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/build/classes/pairswithspecificdifference/PairswithSpecificDifference.class create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/manifest.mf create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/nbproject/project.properties create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/nbproject/project.xml create mode 100644 PrjJava/OCA7/PairswithSpecificDifference/src/pairswithspecificdifference/PairswithSpecificDifference.java create mode 100644 PrjJava/OCA7/Poli1/build.xml create mode 100644 PrjJava/OCA7/Poli1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Poli1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Poli1/build/classes/poli1/Poli1.class create mode 100644 PrjJava/OCA7/Poli1/build/classes/poli1/X.class create mode 100644 PrjJava/OCA7/Poli1/build/classes/poli1/Y.class create mode 100644 PrjJava/OCA7/Poli1/build/classes/poli1/Z.class create mode 100644 PrjJava/OCA7/Poli1/manifest.mf create mode 100644 PrjJava/OCA7/Poli1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Poli1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Poli1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Poli1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Poli1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Poli1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Poli1/src/poli1/Poli1.java create mode 100644 PrjJava/OCA7/Poli1/src/poli1/X.java create mode 100644 PrjJava/OCA7/Poli1/src/poli1/Y.java create mode 100644 PrjJava/OCA7/Poli1/src/poli1/Z.java create mode 100644 PrjJava/OCA7/Poli2/build.xml create mode 100644 PrjJava/OCA7/Poli2/manifest.mf create mode 100644 PrjJava/OCA7/Poli2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Poli2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Poli2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Poli2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Poli2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Poli2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Poli2/src/poli2/A.java create mode 100644 PrjJava/OCA7/Poli2/src/poli2/Poli2.java create mode 100644 PrjJava/OCA7/Question12/build.xml create mode 100644 PrjJava/OCA7/Question12/manifest.mf create mode 100644 PrjJava/OCA7/Question12/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Question12/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Question12/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Question12/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Question12/nbproject/project.properties create mode 100644 PrjJava/OCA7/Question12/nbproject/project.xml create mode 100644 PrjJava/OCA7/Question12/src/question12/Question12.java create mode 100644 PrjJava/OCA7/Question27/build.xml create mode 100644 PrjJava/OCA7/Question27/build/classes/question27/A.class create mode 100644 PrjJava/OCA7/Question27/build/classes/question27/B.class create mode 100644 PrjJava/OCA7/Question27/build/classes/question27/Question27.class create mode 100644 PrjJava/OCA7/Question27/manifest.mf create mode 100644 PrjJava/OCA7/Question27/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Question27/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Question27/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Question27/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Question27/nbproject/project.properties create mode 100644 PrjJava/OCA7/Question27/nbproject/project.xml create mode 100644 PrjJava/OCA7/Question27/src/question27/A.java create mode 100644 PrjJava/OCA7/Question27/src/question27/B.java create mode 100644 PrjJava/OCA7/Question27/src/question27/Question27.java create mode 100644 PrjJava/OCA7/Tricky/Args1/build.xml create mode 100644 PrjJava/OCA7/Tricky/Args1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/Args1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/Args1/build/classes/args1/Args1.class create mode 100644 PrjJava/OCA7/Tricky/Args1/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/Args1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/Args1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/Args1/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Tricky/Args1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/Args1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/Args1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/Args1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/Args1/src/args1/Args1.java create mode 100644 PrjJava/OCA7/Tricky/Args2/build.xml create mode 100644 PrjJava/OCA7/Tricky/Args2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/Args2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/Args2/build/classes/args2/Args2.class create mode 100644 PrjJava/OCA7/Tricky/Args2/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/Args2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/Args2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/Args2/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Tricky/Args2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/Args2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/Args2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/Args2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/Args2/src/args2/Args2.java create mode 100644 PrjJava/OCA7/Tricky/Args3/build.xml create mode 100644 PrjJava/OCA7/Tricky/Args3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/Args3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/Args3/build/classes/args3/Args3.class create mode 100644 PrjJava/OCA7/Tricky/Args3/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/Args3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/Args3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/Args3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/Args3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/Args3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/Args3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/Args3/src/args3/Args3.java create mode 100644 PrjJava/OCA7/Tricky/Args4/build.xml create mode 100644 PrjJava/OCA7/Tricky/Args4/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/Args4/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/Args4/build/classes/args4/Args4.class create mode 100644 PrjJava/OCA7/Tricky/Args4/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/Args4/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/Args4/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/Args4/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Tricky/Args4/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/Args4/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/Args4/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/Args4/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/Args4/src/args4/Args4.java create mode 100644 PrjJava/OCA7/Tricky/Args5/build.xml create mode 100644 PrjJava/OCA7/Tricky/Args5/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/Args5/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/Args5/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/Args5/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/Args5/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/Args5/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/Args5/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/Args5/src/args5/Args5.java create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/build.xml create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/build/classes/funwithargs/FunWithArgs.class create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/FunWithArgs/src/funwithargs/FunWithArgs.java create mode 100644 PrjJava/OCA7/Tricky/Null1/build.xml create mode 100644 PrjJava/OCA7/Tricky/Null1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/Null1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/Null1/build/classes/null1/Null1.class create mode 100644 PrjJava/OCA7/Tricky/Null1/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/Null1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/Null1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/Null1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/Null1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/Null1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/Null1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/Null1/src/null1/Null1.java create mode 100644 PrjJava/OCA7/Tricky/Null2/build.xml create mode 100644 PrjJava/OCA7/Tricky/Null2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/Null2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/Null2/build/classes/null2/Null2.class create mode 100644 PrjJava/OCA7/Tricky/Null2/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/Null2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/Null2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/Null2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/Null2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/Null2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/Null2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/Null2/src/null2/Null2.java create mode 100644 PrjJava/OCA7/Tricky/Null3/build.xml create mode 100644 PrjJava/OCA7/Tricky/Null3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/Null3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/Null3/build/classes/null3/Null3.class create mode 100644 PrjJava/OCA7/Tricky/Null3/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/Null3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/Null3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/Null3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/Null3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/Null3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/Null3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/Null3/src/null3/Null3.java create mode 100644 PrjJava/OCA7/Tricky/PrintNull/build.xml create mode 100644 PrjJava/OCA7/Tricky/PrintNull/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/PrintNull/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/PrintNull/build/classes/printnull/PrintNull.class create mode 100644 PrjJava/OCA7/Tricky/PrintNull/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/PrintNull/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/PrintNull/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/PrintNull/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/PrintNull/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/PrintNull/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/PrintNull/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/PrintNull/src/printnull/PrintNull.java create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/build.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/build/classes/realbrainer/RealBrainer.class create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer/src/realbrainer/RealBrainer.java create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/build.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/build/classes/realbrainer1/A.class create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/build/classes/realbrainer1/RealBrainer1.class create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer1/src/realbrainer1/RealBrainer1.java create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/build.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/build/classes/realbrainer2/RealBrainer2.class create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer2/src/realbrainer2/RealBrainer2.java create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/build.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/build/classes/.netbeans_automatic_build create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/build/classes/.netbeans_update_resources create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/build/classes/realbrainer3/RealBrainer3.class create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/RealBrainer3/src/realbrainer3/RealBrainer3.java create mode 100644 PrjJava/OCA7/Tricky/TestArgs/build.xml create mode 100644 PrjJava/OCA7/Tricky/TestArgs/build/classes/testargs/TestArgs.class create mode 100644 PrjJava/OCA7/Tricky/TestArgs/manifest.mf create mode 100644 PrjJava/OCA7/Tricky/TestArgs/nbproject/build-impl.xml create mode 100644 PrjJava/OCA7/Tricky/TestArgs/nbproject/genfiles.properties create mode 100644 PrjJava/OCA7/Tricky/TestArgs/nbproject/private/config.properties create mode 100644 PrjJava/OCA7/Tricky/TestArgs/nbproject/private/private.properties create mode 100644 PrjJava/OCA7/Tricky/TestArgs/nbproject/private/private.xml create mode 100644 PrjJava/OCA7/Tricky/TestArgs/nbproject/project.properties create mode 100644 PrjJava/OCA7/Tricky/TestArgs/nbproject/project.xml create mode 100644 PrjJava/OCA7/Tricky/TestArgs/src/testargs/TestArgs.java create mode 100644 PrjJava/OCP7/JDBC_Book14/src/jdbc_book14/JDBC_Book14.java create mode 100644 PrjJava/README.md create mode 100644 PrjJava/REST/RestDb_/build.xml create mode 100644 PrjJava/REST/RestDb_/nbproject/ant-deploy.xml create mode 100644 PrjJava/REST/RestDb_/nbproject/build-impl.xml create mode 100644 PrjJava/REST/RestDb_/nbproject/genfiles.properties create mode 100644 PrjJava/REST/RestDb_/nbproject/project.properties create mode 100644 PrjJava/REST/RestDb_/nbproject/project.xml create mode 100644 PrjJava/REST/RestDb_/nbproject/rest-build.xml create mode 100644 PrjJava/REST/RestDb_/src/conf/MANIFEST.MF create mode 100644 PrjJava/REST/RestDb_/src/conf/persistence.xml create mode 100644 PrjJava/REST/RestDb_/src/java/com/rest/Users.java create mode 100644 PrjJava/REST/RestDb_/src/java/com/rest/service/AbstractFacade.java create mode 100644 PrjJava/REST/RestDb_/src/java/com/rest/service/ApplicationConfig.java create mode 100644 PrjJava/REST/RestDb_/src/java/com/rest/service/UsersFacadeREST.java create mode 100644 PrjJava/REST/RestDb_/web/WEB-INF/web_.xml diff --git a/HeeeyWebSite/Chrome/AddProductChrome.java b/HeeeyWebSite/Chrome/AddProductChrome.java new file mode 100644 index 0000000..c1449c6 --- /dev/null +++ b/HeeeyWebSite/Chrome/AddProductChrome.java @@ -0,0 +1,84 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package Chrome; + +import contentspeed.Constants; +import contentspeed.CosCumparaturi; +import contentspeed.ProdusCeai; +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.chrome.ChromeDriver; +import org.openqa.selenium.chrome.ChromeOptions; +import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.Test; + +public class AddProductChrome { + + static ProdusCeai objProdus; + + static CosCumparaturi objCos; + + static WebDriver driver; + + + + @Test + public void AdaugProdusLaCos() { + + try { + + objProdus = new ProdusCeai(driver); + + objProdus.Actions("Anda", "Cristea", "andadeacu10@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9"); + + + + //objCos = new CosCumparaturi(driver); + + //objCos.Completeaza("Anda", "Cristea", "andadeacu10@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9"); + + + } catch (WebDriverException ex) { + + ex.printStackTrace(); + //driver.quit(); + } + } + + @BeforeClass + public static void setUpClass() throws Exception { + + System.setProperty("webdriver.chrome.driver", "D:\\Proiecte\\selenium-java-2.47.1\\selenium-2.47.1\\chromedriver_win32\\chromedriver.exe"); + + ChromeOptions options = new ChromeOptions(); + + options.addArguments("--start-maximized"); + + driver = new ChromeDriver(options); + + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + driver.get(Constants.URLRoot); + } + + @AfterClass + public static void tearDownClass() throws Exception { + + driver.quit(); + } + + @BeforeMethod + public void setUpMethod() throws Exception { + } + + @AfterMethod + public void tearDownMethod() throws Exception { + } +} diff --git a/HeeeyWebSite/Chrome/ContactPageChrome.java b/HeeeyWebSite/Chrome/ContactPageChrome.java new file mode 100644 index 0000000..a3e5f0e --- /dev/null +++ b/HeeeyWebSite/Chrome/ContactPageChrome.java @@ -0,0 +1,70 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package Chrome; + +import contentspeed.Constants; +import contentspeed.ContactPage; +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.chrome.ChromeDriver; +import org.openqa.selenium.chrome.ChromeOptions; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +/** + * + * @author andad + */ +public class ContactPageChrome { + + public ContactPageChrome() { + } + + static ContactPage objContactPage; + + static WebDriver driver; + + @Test + public void verifyContactPage() { + + try { + + objContactPage = new ContactPage(driver); + objContactPage.run("SC HEEEY INTERNATIONAL SRL", "36991028"); + + } catch (WebDriverException ex) { + + ex.printStackTrace(); + //driver.quit(); + } + + } + + @BeforeClass + public static void setUpClass() throws Exception { + + System.setProperty("webdriver.chrome.driver", "D:\\Proiecte\\selenium-java-2.47.1\\selenium-2.47.1\\chromedriver_win32\\chromedriver.exe"); + + ChromeOptions options = new ChromeOptions(); + + options.addArguments("--start-maximized"); + + driver = new ChromeDriver(options); + + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + driver.get(Constants.URLRoot); + } + + @AfterClass + public static void tearDownClass() throws Exception { + + driver.quit(); + } + +} diff --git a/HeeeyWebSite/Edge/AddProductEdge.java b/HeeeyWebSite/Edge/AddProductEdge.java new file mode 100644 index 0000000..0099506 --- /dev/null +++ b/HeeeyWebSite/Edge/AddProductEdge.java @@ -0,0 +1,65 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package Edge; + +import contentspeed.Constants; +import contentspeed.CosCumparaturi; +import contentspeed.ProdusCeaiIE11; +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.edge.EdgeDriver; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +public class AddProductEdge { + + static ProdusCeaiIE11 objProdus; + + static CosCumparaturi objCos; + + static WebDriver driver; + + @Test + public void AdaugProdusLaCos() { + + try { + + objProdus = new ProdusCeaiIE11(driver); + + objProdus.Actions("Anda", "Cristea", "andadeacu11@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9"); + + // objCos = new CosCumparaturi(driver); + // objCos.Completeaza("Anda", "Cristea", "andadeacu11@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9"); + } catch (WebDriverException ex) { + + ex.printStackTrace(); + //driver.quit(); + } + } + + @BeforeClass + public static void setUpClass() throws Exception { + + System.setProperty("webdriver.edge.driver", "D:\\Documentatie\\Selenium\\MicrosoftWebDriver16299.exe"); + driver = new EdgeDriver(); + + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + driver.manage().window().maximize(); + + driver.get(Constants.URLProdus); + } + + @AfterClass + public static void tearDownClass() throws Exception { + + driver.quit(); + } + + +} diff --git a/HeeeyWebSite/Edge/ContactPageEdge.java b/HeeeyWebSite/Edge/ContactPageEdge.java new file mode 100644 index 0000000..be278c0 --- /dev/null +++ b/HeeeyWebSite/Edge/ContactPageEdge.java @@ -0,0 +1,66 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package Edge; + +import contentspeed.Constants; +import contentspeed.ContactPage; +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.edge.EdgeDriver; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +/** + * + * @author andad + */ +public class ContactPageEdge { + + public ContactPageEdge() { + } + + static ContactPage objContactPage; + + static WebDriver driver; + + @Test + public void verifyContactPage() { + + try { + + objContactPage = new ContactPage(driver); + objContactPage.run("SC HEEEY INTERNATIONAL SRL", "36991028"); + + } catch (WebDriverException ex) { + + ex.printStackTrace(); + //driver.quit(); + } + + } + + @BeforeClass + public static void setUpClass() throws Exception { + + System.setProperty("webdriver.edge.driver", "D:\\Documentatie\\Selenium\\MicrosoftWebDriver16299.exe"); + driver = new EdgeDriver(); + + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + driver.manage().window().maximize(); + + driver.get(Constants.URLRoot); + } + + @AfterClass + public static void tearDownClass() throws Exception { + + driver.quit(); + } + +} diff --git a/HeeeyWebSite/Firefox/AddProductFirefox.java b/HeeeyWebSite/Firefox/AddProductFirefox.java new file mode 100644 index 0000000..c6517a8 --- /dev/null +++ b/HeeeyWebSite/Firefox/AddProductFirefox.java @@ -0,0 +1,73 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package Firefox; + +import contentspeed.Constants; +import contentspeed.CosCumparaturi; +import contentspeed.ProdusCeai; +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.Test; + +public class AddProductFirefox { + + static ProdusCeai objProdus; + + static CosCumparaturi objCos; + + static WebDriver driver; + + @Test + public void AdaugProdusLaCos() { + + try { + + objProdus = new ProdusCeai(driver); + + objProdus.Actions("Anda", "Cristea", "andadeacu11@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9"); + + //objCos = new CosCumparaturi(driver); + //objCos.Completeaza(); + } catch (WebDriverException ex) { + + ex.printStackTrace(); + //driver.quit(); + } + } + + @BeforeClass + public static void setUpClass() throws Exception { + + System.setProperty("webdriver.gecko.driver", "D:\\Documentatie\\Selenium\\geckodriver\\geckodriver.exe"); + driver = new FirefoxDriver(); + + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + driver.manage().window().maximize(); + + driver.get(Constants.URLProdus); + } + + @AfterClass + public static void tearDownClass() throws Exception { + + driver.quit(); + } + + @BeforeMethod + public void setUpMethod() throws Exception { + } + + @AfterMethod + public void tearDownMethod() throws Exception { + } +} diff --git a/HeeeyWebSite/Firefox/ContactPageFirefox.java b/HeeeyWebSite/Firefox/ContactPageFirefox.java new file mode 100644 index 0000000..b41642a --- /dev/null +++ b/HeeeyWebSite/Firefox/ContactPageFirefox.java @@ -0,0 +1,66 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package Firefox; + +import contentspeed.Constants; +import contentspeed.ContactPage; +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +/** + * + * @author andad + */ +public class ContactPageFirefox { + + public ContactPageFirefox() { + } + + static ContactPage objContactPage; + + static WebDriver driver; + + @Test + public void verifyContactPage() { + + try { + + objContactPage = new ContactPage(driver); + objContactPage.run("SC HEEEY INTERNATIONAL SRL", "36991028"); + + } catch (WebDriverException ex) { + + ex.printStackTrace(); + //driver.quit(); + } + + } + + @BeforeClass + public static void setUpClass() throws Exception { + + System.setProperty("webdriver.gecko.driver", "D:\\Documentatie\\Selenium\\geckodriver\\geckodriver.exe"); + driver = new FirefoxDriver(); + + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + driver.manage().window().maximize(); + + driver.get(Constants.URLRoot); + } + + @AfterClass + public static void tearDownClass() throws Exception { + + driver.quit(); + } + +} diff --git a/HeeeyWebSite/IE11/AddProductIE11.java b/HeeeyWebSite/IE11/AddProductIE11.java new file mode 100644 index 0000000..effbbbf --- /dev/null +++ b/HeeeyWebSite/IE11/AddProductIE11.java @@ -0,0 +1,73 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package IE11; + +import contentspeed.Constants; +import contentspeed.CosCumparaturi; +import contentspeed.ProdusCeaiIE11; +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.ie.InternetExplorerDriver; +import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.BeforeMethod; +import org.testng.annotations.Test; + +public class AddProductIE11 { + + static ProdusCeaiIE11 objProdus; + + static CosCumparaturi objCos; + + static WebDriver driver; + + @Test + public void AdaugProdusLaCos() { + + try { + + objProdus = new ProdusCeaiIE11(driver); + + objProdus.Actions("Anda", "Cristea", "andadeacu11@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9"); + + //objCos = new CosCumparaturi(driver); + //objCos.Completeaza(); + } catch (WebDriverException ex) { + + ex.printStackTrace(); + //driver.quit(); + } + } + + @BeforeClass + public static void setUpClass() throws Exception { + + System.setProperty("webdriver.ie.driver", "D:\\Documentatie\\Selenium\\IE11\\IEDriverServer.exe"); + driver = new InternetExplorerDriver(); + + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + driver.manage().window().maximize(); + + driver.get(Constants.URLProdus); + } + + @AfterClass + public static void tearDownClass() throws Exception { + + driver.quit(); + } + + @BeforeMethod + public void setUpMethod() throws Exception { + } + + @AfterMethod + public void tearDownMethod() throws Exception { + } +} diff --git a/HeeeyWebSite/Sources/AbstractPage.java b/HeeeyWebSite/Sources/AbstractPage.java new file mode 100644 index 0000000..a05341d --- /dev/null +++ b/HeeeyWebSite/Sources/AbstractPage.java @@ -0,0 +1,24 @@ +package contentspeed; + +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + + +import org.openqa.selenium.WebDriver; + +public class AbstractPage { + + public static WebDriver driver; + + public AbstractPage(WebDriver driver) { + this.driver = driver; + } + + public WebDriver getDriver() { + return driver; + } + +} diff --git a/HeeeyWebSite/Sources/Constants.java b/HeeeyWebSite/Sources/Constants.java new file mode 100644 index 0000000..688bb90 --- /dev/null +++ b/HeeeyWebSite/Sources/Constants.java @@ -0,0 +1,14 @@ +package contentspeed; + +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +public class Constants { + + public static final String URLProdus = "https://www.heeey.ro/decoratiuni/vaze-si-boluri/bol-decorativ-aluminiu-auriu-dimensiuni-25-x-25-x-12-cm-h388.html"; + + public static final String URLRoot = "https://www.heeey.ro/"; + +} diff --git a/HeeeyWebSite/Sources/ContactPage.java b/HeeeyWebSite/Sources/ContactPage.java new file mode 100644 index 0000000..085a4bb --- /dev/null +++ b/HeeeyWebSite/Sources/ContactPage.java @@ -0,0 +1,44 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package contentspeed; + +import junit.framework.Assert; +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; + +public class ContactPage extends AbstractPage { + + By linkContactPage = By.xpath("//*[@id=\"header\"]/div[3]/div/div/div[2]/ul/li[5]/a"); + By contactTitlu = By.xpath("//*[@id=\"content\"]/div/div/div[1]/h2"); + By denumireSocietate = By.xpath("//*[@id=\"middle-column\"]/section/p[17]/span/span[2]"); + //*[@id="middle-column"]/section/p[17]/span/span[2] + By CUI = By.xpath("//*[@id=\"middle-column\"]/section/p[17]/span/span[3]/span[3]"); + + public ContactPage(WebDriver driver) { + super(driver); + } + + // as avrea nevoie de un parametru + public void VerificaDetaliiComerciale(String denumireSocietateparam, String CUIparam) { + System.out.println(driver.findElement(denumireSocietate).getText().trim().length()); + Assert.assertEquals(driver.findElement(denumireSocietate).getText().trim(), denumireSocietateparam); + Assert.assertEquals(driver.findElement(CUI).getText().trim(), CUIparam); + } + + public void VerificaLink() { + + driver.findElement(linkContactPage).click(); + Assert.assertEquals(driver.findElement(linkContactPage).getText().trim(), "Contact"); + + } + + public void run(String denumireSocietateparam, String CUIparam) { + VerificaLink(); + VerificaDetaliiComerciale(denumireSocietateparam, CUIparam); + + } + +} diff --git a/HeeeyWebSite/Sources/CosCumparaturi.java b/HeeeyWebSite/Sources/CosCumparaturi.java new file mode 100644 index 0000000..3667b4b --- /dev/null +++ b/HeeeyWebSite/Sources/CosCumparaturi.java @@ -0,0 +1,174 @@ +package contentspeed; + +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + + +import junit.framework.Assert; +import org.openqa.selenium.By; +import org.openqa.selenium.JavascriptExecutor; +import org.openqa.selenium.Keys; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.WebElement; + +public class CosCumparaturi extends AbstractPage { + + By prenume = By.xpath("//*[@id=\"firstname\"]"); + By telefon = By.xpath("//*[@id=\"phone\"]"); + By nume = By.xpath("//*[@id=\"lastname\"]"); + + By email = By.xpath("//*[@id=\"customer\"]/div[2]/div[1]/input"); + + By persoanaFizica = By.xpath("//*[@id='customer-type']/div/label[1]/span"); + + By delivery = By.xpath("//*[@id='delivery']/label/span"); + + By termeni = By.xpath("//*[@id=\"terms\"]"); + + By btnFinalizeaza = By.xpath("//*[@id='finish-order']"); + + By observatii = By.xpath("//*[@id='cartForm']/div/div[6]/div[3]/div/textarea"); + + By modPlata = By.xpath("//*[@id=\"ui-id-3-button\"]/span[2]"); + + By judet = By.xpath("//*[@id='county']"); + + By oras = By.xpath("//*[@id='city']"); + + By adresa = By.xpath("//*[@id=\"streetaddress\"]"); + + By comandaFinalizata = By.xpath("//*[@id=\"middle-column\"]/h1"); + + //*[@id="middle-column"]/h1 + By errorDuplicateEmail = By.xpath("//*[@id='customer']/div[3]"); + + public CosCumparaturi(WebDriver driver) { + super(driver); + } + + void CompleteazaPrenume(String param) { + + driver.findElement(prenume).sendKeys(param); + + } + + void CompleteazaObservatii(String param) { + + driver.findElement(observatii).sendKeys(param); + + } + + void selectPlata(String param) { + driver.findElement(modPlata).sendKeys(param); + } + + void CompleteazaTelefon(String param) { + + driver.findElement(telefon).sendKeys(param); + + } + + void CompleteazaEmail(String param) { + + driver.findElement(email).sendKeys(param); + + } + + void CompleteazaNume(String param) { + + driver.findElement(nume).sendKeys(param); + + } + + void findPF() { + + driver.findElement(persoanaFizica).click(); + + } + + void findDelivery() { + + driver.findElement(delivery).click(); + + } + + void findClickTermeni() { + + driver.findElement(termeni).sendKeys(Keys.SPACE); + + } + + public void CompleteazaAdresa(String judet1, String oras1, String adresa1) { + driver.findElement(judet).sendKeys(judet1); + //driver.findElement(oras).isEnabled(); sometimes don't work + driver.findElement(oras).sendKeys(Keys.ENTER); + driver.findElement(oras).sendKeys(oras1); + driver.findElement(adresa).sendKeys(adresa1); + } + + public void findclikFinalizeaza() { + + WebElement elementtobeClicked = driver.findElement(btnFinalizeaza); + + JavascriptExecutor jsDriver = (JavascriptExecutor) driver; + jsDriver.executeScript("arguments[0].scrollIntoView(false);", elementtobeClicked); + + jsDriver.executeScript("arguments[0].click();", elementtobeClicked); + + } + + boolean ExistsErrorEmail() { + boolean result = false; + try { + + WebElement divExistsEmail = driver.findElement(errorDuplicateEmail); + System.out.println(divExistsEmail.getText()); + result = divExistsEmail.isDisplayed(); + + } catch (Exception ex) { + + ex.getMessage(); + return false; + + } + return result; + } + + public void Completeaza(String prenume, String nume, String email, String telefon, String observatii, String judet, String oras, String adresa) { + + try { + + CompleteazaPrenume(prenume); + CompleteazaNume(nume); + CompleteazaEmail(email); + CompleteazaTelefon(telefon); + CompleteazaObservatii(observatii); + CompleteazaAdresa(judet, oras, adresa); + //selectPlata(plata); + //findPF(); + //findDelivery(); + findClickTermeni(); + findclikFinalizeaza(); + + if (!ExistsErrorEmail()) { + + System.out.println(driver.findElement(comandaFinalizata).getText()); + + Assert.assertEquals("Comanda finalizata", driver.findElement(comandaFinalizata).getText()); + + //System.out.println("check if message is displayed: " + driver.findElement(comandaFinalizata).isDisplayed()); + } + + } catch (WebDriverException ex) { + ex.getMessage(); + driver.quit(); + + } + + } + +} diff --git a/HeeeyWebSite/Sources/ProdusCeai.java b/HeeeyWebSite/Sources/ProdusCeai.java new file mode 100644 index 0000000..040e7b7 --- /dev/null +++ b/HeeeyWebSite/Sources/ProdusCeai.java @@ -0,0 +1,261 @@ +package contentspeed; + +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +import static contentspeed.AbstractPage.driver; +import junit.framework.Assert; +import org.openqa.selenium.By; +import org.openqa.selenium.JavascriptExecutor; +import org.openqa.selenium.Keys; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.interactions.Actions; + +public class ProdusCeai extends AbstractPage { + + By produsArmonia = By.xpath("//*[@id=\"product_addToCart\"]"); + By finalizeazaComanda = By.xpath("//*[@id='popup-root']/div[2]/div/a[3]"); + By cosComanda = By.xpath("//*[@id=\"header\"]/div[2]/div/div[1]/div[4]/a/span[2]"); + + By cookieDIV = By.xpath("//*[@id='cookie-bar']"); + + By acordCookie = By.xpath("//*[@id='cookie-bar']"); + + By prenume = By.xpath("//*[@id=\"cart-element-4\"]"); + By telefon = By.xpath("//*[@id=\"phone\"]"); + + + By nume = By.xpath("//*[@id='cart-element-5']"); + + By email = By.xpath("//*[@id=\"customer\"]/div[2]/div[1]/input"); + + By persoanaFizica = By.xpath("//*[@id='customer-type']/div/label[1]/span"); + + By delivery = By.xpath("//*[@id='delivery']/label/span"); + + By termeni = By.xpath("//*[@id=\"terms\"]"); + + By btnFinalizeaza = By.xpath("//*[@id='finish-order']"); + + By observatii = By.xpath("//*[@id='cartForm']/div/div[6]/div[3]/div/textarea"); + + By modPlata = By.xpath("//*[@id=\"ui-id-3-button\"]/span[2]"); + + By judet = By.xpath("//*[@id='county']"); + + By oras = By.xpath("//*[@id='city']"); + + By adresa = By.xpath("//*[@id=\"streetaddress\"]"); + + By comandaFinalizata = By.xpath("//*[@id=\"middle-column\"]/h1"); + + By errorDuplicateEmail = By.xpath("//*[@id='customer']/div[3]"); + + public ProdusCeai(WebDriver driver) { + super(driver); + } + + void CompleteazaPrenume(String param) { + + driver.findElement(prenume).sendKeys(param); + + } + + void CompleteazaObservatii(String param) { + + driver.findElement(observatii).sendKeys(param); + + } + + void selectPlata(String param) { + driver.findElement(modPlata).sendKeys(param); + } + + void CompleteazaTelefon(String param) { + + driver.findElement(telefon).sendKeys(param); + + } + + void CompleteazaEmail(String param) { + + driver.findElement(email).sendKeys(param); + + } + + void CompleteazaNume(String param) { + + driver.findElement(nume).sendKeys(param); + + } + + void findPF() { + + driver.findElement(persoanaFizica).click(); + + } + + void findDelivery() { + + driver.findElement(delivery).click(); + + } + + void findClickTermeni() { + + driver.findElement(termeni).sendKeys(Keys.SPACE); + + } + + public void CompleteazaAdresa(String judet1, String oras1, String adresa1) { + driver.findElement(judet).sendKeys(judet1); + //driver.findElement(oras).isEnabled(); sometimes don't work + driver.findElement(oras).sendKeys(Keys.ENTER); + driver.findElement(oras).sendKeys(oras1); + driver.findElement(adresa).sendKeys(adresa1); + } + + public void findclikFinalizeaza() { + + WebElement elementtobeClicked = driver.findElement(btnFinalizeaza); + + JavascriptExecutor jsDriver = (JavascriptExecutor) driver; + jsDriver.executeScript("arguments[0].scrollIntoView(false);", elementtobeClicked); + + jsDriver.executeScript("arguments[0].click();", elementtobeClicked); + + } + + boolean ExistsErrorEmail() { + boolean result = false; + try { + + WebElement divExistsEmail = driver.findElement(errorDuplicateEmail); + System.out.println(divExistsEmail.getText()); + result = divExistsEmail.isDisplayed(); + + } catch (Exception ex) { + + ex.getMessage(); + return false; + + } + return result; + } + + public void Completeaza(String prenume, String nume, String email, String telefon, String observatii, String judet, String oras, String adresa) { + + try { + + JavascriptExecutor js = ((JavascriptExecutor) driver); + js.executeScript("window.scrollTo(0, document.body.scrollHeight)"); + CompleteazaPrenume(prenume); + CompleteazaNume(nume); + CompleteazaEmail(email); + CompleteazaTelefon(telefon); + CompleteazaObservatii(observatii); + CompleteazaAdresa(judet, oras, adresa); + //selectPlata(plata); + //findPF(); + //findDelivery(); + findClickTermeni(); + findclikFinalizeaza(); + + if (!ExistsErrorEmail()) { + + System.out.println(driver.findElement(comandaFinalizata).getText()); + + Assert.assertEquals("Comanda finalizata", driver.findElement(comandaFinalizata).getText()); + + //System.out.println("check if message is displayed: " + driver.findElement(comandaFinalizata).isDisplayed()); + } + + } catch (WebDriverException ex) { + ex.getMessage(); + driver.quit(); + + } + } + + public void clickAdaugaCos() { + + WebElement elementtobeClicked = driver.findElement(produsArmonia); + + JavascriptExecutor jsDriver = (JavascriptExecutor) driver; + jsDriver.executeScript("arguments[0].scrollIntoView(false);", elementtobeClicked); + + jsDriver.executeScript("arguments[0].click();", elementtobeClicked); + + } + + public void clickFinalizeaza() { + try { + + String MainWindow = driver.getWindowHandle(); + + System.out.println(MainWindow); + + driver.switchTo().window(MainWindow); + + driver.findElement(By.partialLinkText("Finalizeaza comanda")).click(); + driver.switchTo().defaultContent(); + } catch (WebDriverException ex) { + System.out.println("Exceptie"); + //ex.printStackTrace(); + //driver.quit(); + } + + } + + void closeCookie() { + String textDIV = driver.findElement(cookieDIV).getText(); + String cookie = driver.getWindowHandle(); + + driver.switchTo().window(cookie); + + driver.findElement(By.partialLinkText("Sunt de acord")).click(); + + /*System.out.println(textDIV); */ + driver.switchTo().defaultContent(); + } + + void CosClick() { + + Actions actions = new Actions(driver); + actions.click(driver.findElement(cosComanda)).perform(); + + } + + public void Actions(String prenume, String nume, String email, String telefon, String observatii, String judet, String oras, String adresa) { + closeCookie(); + clickAdaugaCos(); + clickFinalizeaza(); + + CompleteazaPrenume(prenume); + CompleteazaNume(nume); + CompleteazaEmail(email); + CompleteazaTelefon(telefon); + CompleteazaObservatii(observatii); + CompleteazaAdresa(judet, oras, adresa); + //selectPlata(plata); + //findPF(); + //findDelivery(); + findClickTermeni(); + findclikFinalizeaza(); + + if (!ExistsErrorEmail()) { + + System.out.println(driver.findElement(comandaFinalizata).getText()); + + Assert.assertEquals("Comanda finalizata", driver.findElement(comandaFinalizata).getText()); + + //System.out.println("check if message is displayed: " + driver.findElement(comandaFinalizata).isDisplayed()); + } + //CosClick(); + } + +} diff --git a/HeeeyWebSite/Sources/ProdusCeaiIE11.java b/HeeeyWebSite/Sources/ProdusCeaiIE11.java new file mode 100644 index 0000000..42c9c31 --- /dev/null +++ b/HeeeyWebSite/Sources/ProdusCeaiIE11.java @@ -0,0 +1,261 @@ +package contentspeed; + +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +import static contentspeed.AbstractPage.driver; +import junit.framework.Assert; +import org.openqa.selenium.By; +import org.openqa.selenium.JavascriptExecutor; +import org.openqa.selenium.Keys; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.interactions.Actions; + +public class ProdusCeaiIE11 extends AbstractPage { + + By produsArmonia = By.xpath("//*[@id=\"product_addToCart\"]"); + By finalizeazaComanda = By.xpath("//*[@id='popup-root']/div[2]/div/a[3]"); + By cosComanda = By.xpath("//*[@id=\"header\"]/div[2]/div/div[1]/div[4]/a/span[2]"); + + By cookieDIV = By.xpath("//*[@id='cookie-bar']"); + + By acordCookie = By.xpath("//*[@id='cookie-bar']"); + + By prenume = By.xpath("//*[@id=\"cart-element-4\"]"); + By telefon = By.xpath("//*[@id=\"phone\"]"); + + + By nume = By.xpath("//*[@id='cart-element-5']"); + + By email = By.xpath("//*[@id=\"customer\"]/div[2]/div[1]/input"); + + By persoanaFizica = By.xpath("//*[@id='customer-type']/div/label[1]/span"); + + By delivery = By.xpath("//*[@id='delivery']/label/span"); + + By termeni = By.xpath("//*[@id=\"terms\"]"); + + By btnFinalizeaza = By.xpath("//*[@id='finish-order']"); + + By observatii = By.xpath("//*[@id='cartForm']/div/div[6]/div[3]/div/textarea"); + + By modPlata = By.xpath("//*[@id=\"ui-id-3-button\"]/span[2]"); + + By judet = By.xpath("//*[@id='county']"); + + By oras = By.xpath("//*[@id='city']"); + + By adresa = By.xpath("//*[@id=\"streetaddress\"]"); + + By comandaFinalizata = By.xpath("//*[@id=\"middle-column\"]/h1"); + + By errorDuplicateEmail = By.xpath("//*[@id='customer']/div[3]"); + + public ProdusCeaiIE11(WebDriver driver) { + super(driver); + } + + void CompleteazaPrenume(String param) { + + driver.findElement(prenume).sendKeys(param); + + } + + void CompleteazaObservatii(String param) { + + driver.findElement(observatii).sendKeys(param); + + } + + void selectPlata(String param) { + driver.findElement(modPlata).sendKeys(param); + } + + void CompleteazaTelefon(String param) { + + driver.findElement(telefon).sendKeys(param); + + } + + void CompleteazaEmail(String param) { + + driver.findElement(email).sendKeys(param); + + } + + void CompleteazaNume(String param) { + + driver.findElement(nume).sendKeys(param); + + } + + void findPF() { + + driver.findElement(persoanaFizica).click(); + + } + + void findDelivery() { + + driver.findElement(delivery).click(); + + } + + void findClickTermeni() { + + driver.findElement(termeni).sendKeys(Keys.SPACE); + + } + + public void CompleteazaAdresa(String judet1, String oras1, String adresa1) { + driver.findElement(judet).sendKeys(judet1); + //driver.findElement(oras).isEnabled(); sometimes don't work + driver.findElement(oras).sendKeys(Keys.ENTER); + driver.findElement(oras).sendKeys(oras1); + driver.findElement(adresa).sendKeys(adresa1); + } + + public void findclikFinalizeaza() { + + WebElement elementtobeClicked = driver.findElement(btnFinalizeaza); + + JavascriptExecutor jsDriver = (JavascriptExecutor) driver; + jsDriver.executeScript("arguments[0].scrollIntoView(false);", elementtobeClicked); + + jsDriver.executeScript("arguments[0].click();", elementtobeClicked); + + } + + boolean ExistsErrorEmail() { + boolean result = false; + try { + + WebElement divExistsEmail = driver.findElement(errorDuplicateEmail); + System.out.println(divExistsEmail.getText()); + result = divExistsEmail.isDisplayed(); + + } catch (Exception ex) { + + ex.getMessage(); + return false; + + } + return result; + } + + public void Completeaza(String prenume, String nume, String email, String telefon, String observatii, String judet, String oras, String adresa) { + + try { + + JavascriptExecutor js = ((JavascriptExecutor) driver); + js.executeScript("window.scrollTo(0, document.body.scrollHeight)"); + CompleteazaPrenume(prenume); + CompleteazaNume(nume); + CompleteazaEmail(email); + CompleteazaTelefon(telefon); + CompleteazaObservatii(observatii); + CompleteazaAdresa(judet, oras, adresa); + //selectPlata(plata); + //findPF(); + //findDelivery(); + findClickTermeni(); + findclikFinalizeaza(); + + if (!ExistsErrorEmail()) { + + System.out.println(driver.findElement(comandaFinalizata).getText()); + + Assert.assertEquals("Comanda finalizata", driver.findElement(comandaFinalizata).getText()); + + //System.out.println("check if message is displayed: " + driver.findElement(comandaFinalizata).isDisplayed()); + } + + } catch (WebDriverException ex) { + ex.getMessage(); + driver.quit(); + + } + } + + public void clickAdaugaCos() { + + WebElement elementtobeClicked = driver.findElement(produsArmonia); + + JavascriptExecutor jsDriver = (JavascriptExecutor) driver; + jsDriver.executeScript("arguments[0].scrollIntoView(false);", elementtobeClicked); + + jsDriver.executeScript("arguments[0].click();", elementtobeClicked); + + } + + public void clickFinalizeaza() { + try { + + String MainWindow = driver.getWindowHandle(); + + System.out.println(MainWindow); + + driver.switchTo().window(MainWindow); + + driver.findElement(By.partialLinkText("Finalizeaza comanda")).click(); + driver.switchTo().defaultContent(); + } catch (WebDriverException ex) { + System.out.println("Exceptie"); + //ex.printStackTrace(); + //driver.quit(); + } + + } + + void closeCookie() { + String textDIV = driver.findElement(cookieDIV).getText(); + String cookie = driver.getWindowHandle(); + + driver.switchTo().window(cookie); + + driver.findElement(By.partialLinkText("Sunt de acord")).click(); + + /*System.out.println(textDIV); */ + driver.switchTo().defaultContent(); + } + + void CosClick() { + + Actions actions = new Actions(driver); + actions.click(driver.findElement(cosComanda)).perform(); + + } + + public void Actions(String prenume, String nume, String email, String telefon, String observatii, String judet, String oras, String adresa) { + //closeCookie(); + clickAdaugaCos(); + clickFinalizeaza(); + + CompleteazaPrenume(prenume); + CompleteazaNume(nume); + CompleteazaEmail(email); + CompleteazaTelefon(telefon); + CompleteazaObservatii(observatii); + CompleteazaAdresa(judet, oras, adresa); + //selectPlata(plata); + //findPF(); + //findDelivery(); + findClickTermeni(); + findclikFinalizeaza(); + + if (!ExistsErrorEmail()) { + + System.out.println(driver.findElement(comandaFinalizata).getText()); + + Assert.assertEquals("Comanda finalizata", driver.findElement(comandaFinalizata).getText()); + + //System.out.println("check if message is displayed: " + driver.findElement(comandaFinalizata).isDisplayed()); + } + //CosClick(); + } + +} diff --git a/HeeeyWebSite/Sources/RunSiteTest.java b/HeeeyWebSite/Sources/RunSiteTest.java new file mode 100644 index 0000000..325f871 --- /dev/null +++ b/HeeeyWebSite/Sources/RunSiteTest.java @@ -0,0 +1,54 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package contentspeed; + +import java.util.concurrent.TimeUnit; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebDriverException; +import org.openqa.selenium.chrome.ChromeDriver; +import org.openqa.selenium.chrome.ChromeOptions; + +public class RunSiteTest { + + static WebDriver driver; + + static ProdusCeai objProdus; + + static CosCumparaturi objCos; + + public static void main(String[] args) { + + try { + + System.setProperty("webdriver.chrome.driver", "D:\\Proiecte\\selenium-java-2.47.1\\selenium-2.47.1\\chromedriver_win32\\chromedriver.exe"); + + ChromeOptions options = new ChromeOptions(); + + options.addArguments("--start-maximized"); + + driver = new ChromeDriver(options); + + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + + driver.get(Constants.URLRoot); + + objProdus = new ProdusCeai(driver); + + objProdus.Actions("Anda", "Cristea", "andadeacu2@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9"); + + + + driver.quit(); + + } catch (WebDriverException ex) { + + ex.printStackTrace(); + + driver.quit(); + + } + } +} diff --git a/PrjJava/JavaApplication653/build.xml b/PrjJava/JavaApplication653/build.xml new file mode 100644 index 0000000..77ae185 --- /dev/null +++ b/PrjJava/JavaApplication653/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project JavaApplication653. + + + diff --git a/PrjJava/JavaApplication653/manifest.mf b/PrjJava/JavaApplication653/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/JavaApplication653/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/JavaApplication653/nbproject/build-impl.xml b/PrjJava/JavaApplication653/nbproject/build-impl.xml new file mode 100644 index 0000000..f05e8d9 --- /dev/null +++ b/PrjJava/JavaApplication653/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/PrjJava/JavaApplication653/nbproject/genfiles.properties b/PrjJava/JavaApplication653/nbproject/genfiles.properties new file mode 100644 index 0000000..467b82e --- /dev/null +++ b/PrjJava/JavaApplication653/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=18408100 +build.xml.script.CRC32=20a3ff3d +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=18408100 +nbproject/build-impl.xml.script.CRC32=deaea8dd +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/PrjJava/JavaApplication653/nbproject/project.properties b/PrjJava/JavaApplication653/nbproject/project.properties new file mode 100644 index 0000000..95d0fa2 --- /dev/null +++ b/PrjJava/JavaApplication653/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}/JavaApplication653.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=javaapplication653.JavaApplication653 +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/PrjJava/JavaApplication653/nbproject/project.xml b/PrjJava/JavaApplication653/nbproject/project.xml new file mode 100644 index 0000000..46adfac --- /dev/null +++ b/PrjJava/JavaApplication653/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + JavaApplication653 + + + + + + + + + diff --git a/PrjJava/JavaApplication653/src/javaapplication653/Print.java b/PrjJava/JavaApplication653/src/javaapplication653/Print.java new file mode 100644 index 0000000..660c47c --- /dev/null +++ b/PrjJava/JavaApplication653/src/javaapplication653/Print.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package javaapplication653; + + +import java.util.*; +import java.io.*; + + +public class Print { + + private final int num; + private final String name; + public Print(int num, String name) { + + this.num = num; + this.name = name; + } + + + public int getNum() { + return num; + } + public String getName() { + return name; + } + + + +} diff --git a/PrjJava/JavaApplication653/src/javaapplication653/StaticBlock1.java b/PrjJava/JavaApplication653/src/javaapplication653/StaticBlock1.java new file mode 100644 index 0000000..66fdfd2 --- /dev/null +++ b/PrjJava/JavaApplication653/src/javaapplication653/StaticBlock1.java @@ -0,0 +1,59 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package javaapplication653; + +import java.io.BufferedInputStream; +import java.io.DataInputStream; +import java.io.FileInputStream; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + + + + + + +public class StaticBlock1 { + + + public static Map map = new HashMap<>(); + + static{ + + DataInputStream i = null; + boolean eof = false; + + try{ + + i = new DataInputStream(new BufferedInputStream(new FileInputStream("file.dat"))); + + while(!eof){ + + int data1 = i.readInt(); + String data2 = i.readUTF(); + + map.put(data1, new Print(data1,data2)); + + } + + }catch(IOException e){ + + eof = true; + try{ + i.close(); + }catch(IOException p){ + + } + } + } + + public static void main(String[] args) { + + } + +} diff --git a/PrjJava/OCA7/ChainedDeclaration/build.xml b/PrjJava/OCA7/ChainedDeclaration/build.xml new file mode 100644 index 0000000..61f9891 --- /dev/null +++ b/PrjJava/OCA7/ChainedDeclaration/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ChainedDeclaration. + + + diff --git a/PrjJava/OCA7/ChainedDeclaration/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/ChainedDeclaration/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/ChainedDeclaration/build/classes/.netbeans_update_resources b/PrjJava/OCA7/ChainedDeclaration/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/ChainedDeclaration/build/classes/chaineddeclaration/ChainedDeclaration.class b/PrjJava/OCA7/ChainedDeclaration/build/classes/chaineddeclaration/ChainedDeclaration.class new file mode 100644 index 0000000000000000000000000000000000000000..fc2782c88982024b9c4ffd7fa2615ba668105c0d GIT binary patch literal 617 zcma)3O;5r=5Pb`k3RXc-Q1J^tB5<$=k0KY0i3w2?42khzmeSy2X-zFA{wzIc;=v!_ zk21a%6GHUhCbKj9X5O2f-OsQ04*&<)Nnr|wB$lw8!U~EyR&}fiBx=f4L0uqTuCxWT zhS#+P(oN;sXTw3q_Ah0}A(Cx+mUP z$Iv0=2dopwm#>?B`6x|Cx;?WM_{!}aM(w5FqhRijw17~wQ(B*PCy;7+L*KGbRCvF_ z?|%DX3j+!0I@S$rU{goQz!tUzcK>x_fz0@t=bgT71rt!~=^?NOd^>N*#Nucs<(U^8 zDBxJO9B}Adq%jE#==Wif!`INtr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/ChainedDeclaration/nbproject/genfiles.properties b/PrjJava/OCA7/ChainedDeclaration/nbproject/genfiles.properties new file mode 100644 index 0000000..7b10de3 --- /dev/null +++ b/PrjJava/OCA7/ChainedDeclaration/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=84cdf14a +build.xml.script.CRC32=d1aabbe4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=84cdf14a +nbproject/build-impl.xml.script.CRC32=b5b0e94e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/ChainedDeclaration/nbproject/private/private.properties b/PrjJava/OCA7/ChainedDeclaration/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/ChainedDeclaration/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/ChainedDeclaration/nbproject/private/private.xml b/PrjJava/OCA7/ChainedDeclaration/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/ChainedDeclaration/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/ChainedDeclaration/nbproject/project.properties b/PrjJava/OCA7/ChainedDeclaration/nbproject/project.properties new file mode 100644 index 0000000..ca9e65d --- /dev/null +++ b/PrjJava/OCA7/ChainedDeclaration/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}/ChainedDeclaration.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.7 +javac.target=1.7 +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=chaineddeclaration.ChainedDeclaration +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/PrjJava/OCA7/ChainedDeclaration/nbproject/project.xml b/PrjJava/OCA7/ChainedDeclaration/nbproject/project.xml new file mode 100644 index 0000000..b55b20b --- /dev/null +++ b/PrjJava/OCA7/ChainedDeclaration/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ChainedDeclaration + + + + + + + + + diff --git a/PrjJava/OCA7/ChainedDeclaration/src/chaineddeclaration/ChainedDeclaration.java b/PrjJava/OCA7/ChainedDeclaration/src/chaineddeclaration/ChainedDeclaration.java new file mode 100644 index 0000000..7d45fd0 --- /dev/null +++ b/PrjJava/OCA7/ChainedDeclaration/src/chaineddeclaration/ChainedDeclaration.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chaineddeclaration; + +/** + * + * @author andad + */ +public class ChainedDeclaration { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i, j, k; + i = j = k = 9; + System.out.println(i); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Abstract1/build.xml b/PrjJava/OCA7/Chapter1/Abstract1/build.xml new file mode 100644 index 0000000..d530548 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Abstract1. + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract1/manifest.mf b/PrjJava/OCA7/Chapter1/Abstract1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Abstract1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/build-impl.xml new file mode 100644 index 0000000..725aefb --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Abstract1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/genfiles.properties new file mode 100644 index 0000000..56f1c5d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0f3db8e9 +build.xml.script.CRC32=91597bc9 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0f3db8e9 +nbproject/build-impl.xml.script.CRC32=e76d9539 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Abstract1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Abstract1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/project.properties new file mode 100644 index 0000000..29521e0 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract1/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}/Abstract1.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.7 +javac.target=1.7 +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=abstract1.Abstract1 +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/PrjJava/OCA7/Chapter1/Abstract1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/project.xml new file mode 100644 index 0000000..b1280b4 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Abstract1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract1/src/abstract1/Abstract1.java b/PrjJava/OCA7/Chapter1/Abstract1/src/abstract1/Abstract1.java new file mode 100644 index 0000000..8e9884c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract1/src/abstract1/Abstract1.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package abstract1; + +/** + * + * @author andad + */ +abstract class A1{ + protected int m1(){ return 0; } +} +abstract class B extends A1{ + protected int m1(){ return 1; } +} + + diff --git a/PrjJava/OCA7/Chapter1/Abstract2/build.xml b/PrjJava/OCA7/Chapter1/Abstract2/build.xml new file mode 100644 index 0000000..a5516b5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Abstract2. + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Abstract2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Abstract2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Abstract2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Abstract2/build/classes/abstract2/Abstract2.class b/PrjJava/OCA7/Chapter1/Abstract2/build/classes/abstract2/Abstract2.class new file mode 100644 index 0000000000000000000000000000000000000000..7e65d75503003a1f300d1f5e53c1125eba7431b6 GIT binary patch literal 608 zcmZuuO>f#j5Pbs%$HoN$1=8=NO)8Q~v6LLCDpiqsvPvbYTzXnui!3sBWR@!VS;--l zddLsRkBagPp%D_7otZcL-pt#*yZ?6!;20lW*yuRe!ix>ObnyzWU6k?0##oV&J95TXLtPJ_qMCnA(?*0nK>W}hcm5ls>$#gR6%?GP&M5*SQwm>cf?jW6IVf0Ps z+f@ILIn32OY{0Rx?O_M+1(oGoire_$VHbNIYH+B(W>Z1^X{G*f9ED~D8eC3IG~o-S zGd5a_{dMa9;PQqRA~m7e=3HYH7TD+crI^lJ-F3#T9e#$*p8|@I+y+mVmCq=QrGvka zD<%b0c$Vj&2amb8xPWJ<0v2+EL><(z$xbfPC#%3%yGEf=yn!XbryG=>GnHjC*MS literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Abstract2/manifest.mf b/PrjJava/OCA7/Chapter1/Abstract2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Abstract2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/build-impl.xml new file mode 100644 index 0000000..877fa71 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Abstract2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/genfiles.properties new file mode 100644 index 0000000..223a976 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=17092c83 +build.xml.script.CRC32=2a678a5d +build.xml.stylesheet.CRC32=8064a381@1.79.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=17092c83 +nbproject/build-impl.xml.script.CRC32=ce741d63 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Abstract2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Abstract2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract2/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/project.properties new file mode 100644 index 0000000..bd4e80f --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract2/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}/Abstract2.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.7 +javac.target=1.7 +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=abstract2.Abstract2 +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/PrjJava/OCA7/Chapter1/Abstract2/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/project.xml new file mode 100644 index 0000000..dda55ab --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Abstract2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract2/src/abstract2/Abstract2.java b/PrjJava/OCA7/Chapter1/Abstract2/src/abstract2/Abstract2.java new file mode 100644 index 0000000..92e1e5a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract2/src/abstract2/Abstract2.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package abstract2; + +/** + * + * @author andad + */ +public abstract class Abstract2 { + + /** + * @param args the command line arguments + */ + abstract void calculate(); + public static void main(String[] args){ + System.out.println("calculating"); + Abstract2 x = null; + x.calculate(); + +} +} diff --git a/PrjJava/OCA7/Chapter1/Abstract3/build.xml b/PrjJava/OCA7/Chapter1/Abstract3/build.xml new file mode 100644 index 0000000..d3b31d5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Abstract3. + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Abstract3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Abstract3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Abstract3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/Abstract3.class b/PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/Abstract3.class new file mode 100644 index 0000000000000000000000000000000000000000..e0363fc408af72019b12212637263489486cc775 GIT binary patch literal 379 zcmZusu};G<6ug%@4TRE`mcjr-$CiN%9YIKdgcK=)0n`~MSjAOHq|`<5Pb{4(G4KI= z6yn*GvS8`??w#MA^*+DeKLCu-3sFNSKsUfHp?<0hZO#a_!Ej6vm*s;Zv=UvY>-kfv zsymtHtaOqxllfRy+V(3^m`6P$^b(oQOeHfjiq3!835QLTi3$E7j)#o&!e#N55Z;#a zDpOb5W;fTS4G8#z?mwY~ww;J_SxlmvbgD9gK0IE?9*>Ky;H{WNjKt_4EkO(S z9PnLt;vP1bH+}}NiI6*B%PH1;u?iIjhxc#Xd-(J2J8$28D%M_sZ8Tk;K#Q5jyzQJj E-!4l&3IG5A literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/I.class b/PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/I.class new file mode 100644 index 0000000000000000000000000000000000000000..9ed35db252f3c81c79ff76ca4a66f172f469f558 GIT binary patch literal 172 zcmXwzu?oUK5JYF=C8vpqy+5E$uE-bI2x(OC3--bi3^9Sr>Bm|40e+OY78b*s8J1z+ zpXUoeg{4JqQ4mZku_mP3y51=_V`$4kq8A>f^2~v65+xiJ6Mg(J7GK|`C1(Ht literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/J.class b/PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/J.class new file mode 100644 index 0000000000000000000000000000000000000000..1e7e6d46d2e6c14a84e120dad4308e58c1c7c8a3 GIT binary patch literal 179 zcmXwzF$%&^5JYEVOf*qR?*+6;ik!ek_!cU7g8iQ*7-9lHUk_*D0X&qr7BURO8n5`YltE1EH3f>?Q~l&Dh7l;%nivMFoG4%gy_`W zoaODMVZwZ4dhfLLd0OkcG-Le>vK=A$hFPQADm$2(t^X^OBY+SH0~tx7Ov6x2VvM1L L2_o@WJizn=B*-fp literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/MyIJ.class b/PrjJava/OCA7/Chapter1/Abstract3/build/classes/abstract3/MyIJ.class new file mode 100644 index 0000000000000000000000000000000000000000..45c2cedf8086ec9dd74bbcb4041d0f62c0234a6a GIT binary patch literal 300 zcmY*UO>4qH5PcJ)Yoqo12Y75fGzX6sK?;RP)Pu$QCNAwtnm}9&{aKy_5B`AuC~?** z;$ddqd-LAF{2liP0DW{k6i^pv2s8y+0&PO+Rj1kv35BQU1;KsGmWoghb*iSD??~kz zGD=u!g;^| + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Abstract3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Abstract3/nbproject/genfiles.properties new file mode 100644 index 0000000..c7d90b2 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1f1aa0a5 +build.xml.script.CRC32=f5a2d8ee +build.xml.stylesheet.CRC32=8064a381@1.79.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=1f1aa0a5 +nbproject/build-impl.xml.script.CRC32=d6836555 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Abstract3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Abstract3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Abstract3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Abstract3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract3/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Abstract3/nbproject/project.properties new file mode 100644 index 0000000..bad6051 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract3/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}/Abstract3.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.7 +javac.target=1.7 +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=abstract3.Abstract3 +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/PrjJava/OCA7/Chapter1/Abstract3/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Abstract3/nbproject/project.xml new file mode 100644 index 0000000..8edc295 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Abstract3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract3/src/abstract3/Abstract3.java b/PrjJava/OCA7/Chapter1/Abstract3/src/abstract3/Abstract3.java new file mode 100644 index 0000000..fa04105 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract3/src/abstract3/Abstract3.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package abstract3; + +/** + * + * @author andad + */ +interface I { + int getI(int a, int b); +} + +interface J{ + int getJ(int a, int b, int c); +} + +abstract class MyIJ implements J , I { } + +class Abstract3{ + int getI(int x, int y){ return x+y; } +} + +interface K extends J{ + int getJ(int a, int b, int c, int d); +} \ No newline at end of file diff --git a/PrjJava/OCA7/Chapter1/Abstract4/build.xml b/PrjJava/OCA7/Chapter1/Abstract4/build.xml new file mode 100644 index 0000000..9b7dd5c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Abstract4. + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Abstract4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Abstract4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Abstract4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Abstract4/build/classes/abstract4/Abstract4.class b/PrjJava/OCA7/Chapter1/Abstract4/build/classes/abstract4/Abstract4.class new file mode 100644 index 0000000000000000000000000000000000000000..3c01868e7d56df556b157e6c0e4dc7fae06603fc GIT binary patch literal 891 zcmZuv&2G~`7@SR=IB`uA~X6Bpye*gLT3&1{}Td;7mhE3e6;Je zLclmm-Z9$nqDgQ(8;^qYtsKRSI9|f86PZTY|9Q|*@1v6tYI=s{oqxUiK+i%>1AWuXrOLl z&&C5h6j)x2M;;SB8!jH%xPm&V3WS4QOhN%V7cYLsk^inO3LRn8pS7Q7otQ$P5E@EXSOE zwbT8-NnlO46udW|o4xtl3-pQ@bG(AyzOluSYw-lyFmMeHZ+2dUCRX`ZLyNf_V8F_(w(%7uXK4;Yczbh{FQ6QPfGVn3 zC+r59H#KBCZzI7P^A^guPH^rHYZvNvG%e|!${gkoRKKB?Aqy?CqO)1gI%6el`~}#i Bz6}5X literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Abstract4/manifest.mf b/PrjJava/OCA7/Chapter1/Abstract4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Abstract4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/build-impl.xml new file mode 100644 index 0000000..dcbb690 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract4/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/PrjJava/OCA7/Chapter1/Abstract4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/genfiles.properties new file mode 100644 index 0000000..cf939fe --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=27600457 +build.xml.script.CRC32=876b6f34 +build.xml.stylesheet.CRC32=8064a381@1.79.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=27600457 +nbproject/build-impl.xml.script.CRC32=e434d515 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/PrjJava/OCA7/Chapter1/Abstract4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/private/private.properties new file mode 100644 index 0000000..79325cb --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Abstract4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract4/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/project.properties new file mode 100644 index 0000000..bf3fcd1 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract4/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}/Abstract4.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.7 +javac.target=1.7 +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=abstract4.Abstract4 +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/PrjJava/OCA7/Chapter1/Abstract4/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/project.xml new file mode 100644 index 0000000..480362f --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Abstract4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract4/src/abstract4/Abstract4.java b/PrjJava/OCA7/Chapter1/Abstract4/src/abstract4/Abstract4.java new file mode 100644 index 0000000..036615c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract4/src/abstract4/Abstract4.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package abstract4; + +import java.util.logging.Logger; + +/** + * + * @author andad + */ +public abstract class Abstract4 { + + /** + * @param args the command line arguments + */ + abstract void calculate(); + private static final Logger LOG = Logger.getLogger(Abstract4.class.getName()); + + public Abstract4() { + } + + public static void main(String[] args) { + System.out.println("calculating"); + Abstract4 x = null; + x.calculate(); + + } +} diff --git a/PrjJava/OCA7/Chapter1/Abstract5/build.xml b/PrjJava/OCA7/Chapter1/Abstract5/build.xml new file mode 100644 index 0000000..a73beb5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Abstract5. + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Abstract5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Abstract5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Abstract5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Abstract5/build/classes/abstract5/Abstract5$1.class b/PrjJava/OCA7/Chapter1/Abstract5/build/classes/abstract5/Abstract5$1.class new file mode 100644 index 0000000000000000000000000000000000000000..d447737c197547bf696f3b6d6fa4a95c3b991d54 GIT binary patch literal 400 zcmZutPfNov9DQlKcGkM->b5W7Ve?=eqL+yvLqVusCcSt{yRb#N6w=J^spZPr#!EX=7l*;F4yc}G-e2=)k+uQTH1-N z&E3%>f8tbnrHZnurJCOgv#4eP_9JxBi{PQb(EWERL;UNn+1Vd=(?ic&a;X@4gNM|1 zCM8$%WNI{Zj)xhJ;n3gM#b{G2p-(I!v`*vj1?-uKgMd!|%Z$+^9(@O}g>6zUX`9+X Ri_k+Gy9kMelyV4x<|kWkRp0;s literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Abstract5/build/classes/abstract5/Abstract5.class b/PrjJava/OCA7/Chapter1/Abstract5/build/classes/abstract5/Abstract5.class new file mode 100644 index 0000000000000000000000000000000000000000..53396dd033b3750fd6e572f6f7314a080c761b5d GIT binary patch literal 558 zcmZut$x6de6g@8;lE!qfv8}TRE~e;n{an*Rq2LZaIWhO@F|hJ`Y6P|AN_QEJ&kfax07iK8P-j zo3v_^n9GI7P;Wk&6aLH%hkGNV7X`u_wUc8!7}2`Ef@Y9-YgswH(IREF=TC!yeJf&X zrN5hJ@fi&Y3bdNe|MPToE@Mx_e$4ADc!tWt=)E2ZdPdHROz pLZpNYkvd)5Ady-kR-Z3m9aZ8Ka-|bXA4z=dtqz&8njlm_`2qC2Z}|WK literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Abstract5/build/classes/abstract5/abstract6.class b/PrjJava/OCA7/Chapter1/Abstract5/build/classes/abstract5/abstract6.class new file mode 100644 index 0000000000000000000000000000000000000000..6e47db61f78745a2c5e3afbac02c5200294d1ba8 GIT binary patch literal 497 zcmZut%TB^T6g>llKCBi&d@FGWF6_dn3yg^|an+~^hW)fmU`QXP3?_V*E;MoB2l!FO z+wu?-XK^3ro^xjAetmy@0yss(LK*8Os;C**uu#XQjx8PA4CPB1OLfIiY__@#+D+0E z42~ybaW{^9kv?)iB&6yk0S~)8m03RnH8qeUhPuc7kxF@>&fIx*-exeONhH)D=`mQH zWSj=#R%Tvn3)0DuKXV&83>`Z*cCkmQ>zSF3eH#ZjWT?#rOa2U%Ozeg{?z{K?Pz34^ z)R~Nwi0EI*m^#J-Rf#bDA7i< zQvlInP&BD?DKpBY<9D!^d~8uH=b()hs_iL(@+x(-jD`3jHv`O96spBHXuk#)jR1$J Ol_e8%VdBuVfXWX#p=7B5 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Abstract5/manifest.mf b/PrjJava/OCA7/Chapter1/Abstract5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Abstract5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/build-impl.xml new file mode 100644 index 0000000..5090be4 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Abstract5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/genfiles.properties new file mode 100644 index 0000000..1cdd17b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2f738871 +build.xml.script.CRC32=58ae3d87 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2f738871 +nbproject/build-impl.xml.script.CRC32=84b075e1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Abstract5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Abstract5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract5/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/project.properties new file mode 100644 index 0000000..42864b2 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/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}/Abstract5.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.7 +javac.target=1.7 +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=abstract5.Abstract5 +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/PrjJava/OCA7/Chapter1/Abstract5/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/project.xml new file mode 100644 index 0000000..d16f9c3 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Abstract5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Abstract5/src/abstract5/Abstract5.java b/PrjJava/OCA7/Chapter1/Abstract5/src/abstract5/Abstract5.java new file mode 100644 index 0000000..a5d8cf3 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/src/abstract5/Abstract5.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package abstract5; + +/** + * + * @author andad + */ +public class Abstract5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + abstract6 a6 = new abstract6() {}; + a6.mymethod(); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Abstract5/src/abstract5/abstract6.java b/PrjJava/OCA7/Chapter1/Abstract5/src/abstract5/abstract6.java new file mode 100644 index 0000000..19a1a7a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Abstract5/src/abstract5/abstract6.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package abstract5; + +/** + * + * @author andad + */ +public abstract class abstract6 { + + public void mymethod() { + System.out.println("Abstract"); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Assigments1/build.xml b/PrjJava/OCA7/Chapter1/Assigments1/build.xml new file mode 100644 index 0000000..5f73f8a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Assigments1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Assigments1. + + + diff --git a/PrjJava/OCA7/Chapter1/Assigments1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Assigments1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Assigments1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Assigments1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Assigments1/build/classes/assigments1/Assigments1.class b/PrjJava/OCA7/Chapter1/Assigments1/build/classes/assigments1/Assigments1.class new file mode 100644 index 0000000000000000000000000000000000000000..8a8d3ec54541be77965f8afe3525c886f5e0354c GIT binary patch literal 909 zcmZ`&?P?Q26g`t{n(Vr!ZDNxqwoQ}Pny)t2Rs<`82>q2-AyN>3P2#ehlHHZ;M(|C1 z4MiJJ@Bw@%@ysTe7Ft5i%-%Wo+;i{j{`vd!H-G~?vS6WNB8km3sutIZhMI;g6We%@ z!H$K8sHf2oNXl?upwyLNs9ewSqj10Ta=t$jSa_~{6}=#}-Z&F5UIiZVTuzJCGG;ofUcDHn;sXbl9#$9A>+<`4nyrp~1$=g^% zHjSo@7TTP`x#D1VZS0{#*}31>{R?LhT?_R-hmqqkCm8c!W!jtyI&aun#Qq%ValrXl z<9b*i^-+_URljK_sPZ~3Ubx_&JrE7<*%EOvei1}`mTFEQzA})&64BxcER&okf{9un zg;4eZ1| z4yP69u1J1{jMdo3GD`f}bXn#k%G~h_q09T+8D#R3XD*+Tqo-niLpqnaggG}c9bb#G Q?JMIm|Br8-X$frn1K*IDNB{r; literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Assigments1/manifest.mf b/PrjJava/OCA7/Chapter1/Assigments1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Assigments1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Assigments1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/build-impl.xml new file mode 100644 index 0000000..900c72f --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Assigments1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/genfiles.properties new file mode 100644 index 0000000..9286188 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b8248839 +build.xml.script.CRC32=2ee34c8a +build.xml.stylesheet.CRC32=8064a381@1.79.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=b8248839 +nbproject/build-impl.xml.script.CRC32=787c99f1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Assigments1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Assigments1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Assigments1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/project.properties new file mode 100644 index 0000000..679595d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Assigments1/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}/Assigments1.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.7 +javac.target=1.7 +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=assigments1.Assigments1 +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/PrjJava/OCA7/Chapter1/Assigments1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/project.xml new file mode 100644 index 0000000..c3a60cd --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Assigments1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Assigments1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Assigments1/src/assigments1/Assigments1.java b/PrjJava/OCA7/Chapter1/Assigments1/src/assigments1/Assigments1.java new file mode 100644 index 0000000..f19a4b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Assigments1/src/assigments1/Assigments1.java @@ -0,0 +1,46 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package assigments1; + +/** + * + * @author anda + */ +public class Assigments1 { + + /** + * @param args the command line arguments + */ + public Assigments1() { + + } + Assigments1 as1; + + public Assigments1(Assigments1 as1) { + this.as1 = as1; + } + + + public static void main(String[] args) { + // TODO code application logic here + Assigments1 m2 = new Assigments1(); + Assigments1 m3 = new Assigments1(m2); + m3.go(); + + Assigments1 m4 = m3.as1; + Assigments1 m5 = m2.as1; + m4.go(); + m5.go(); + + } + + + + void go() { + System.out.print("hi "); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Chapter10_1/build.xml b/PrjJava/OCA7/Chapter1/Chapter10_1/build.xml new file mode 100644 index 0000000..0039548 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter10_1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter10_1. + + + diff --git a/PrjJava/OCA7/Chapter1/Chapter10_1/build/classes/chapter10_1/Chapter10_1.class b/PrjJava/OCA7/Chapter1/Chapter10_1/build/classes/chapter10_1/Chapter10_1.class new file mode 100644 index 0000000000000000000000000000000000000000..d5ce6acce7c1f698da0d506a0922410be9ac1c1e GIT binary patch literal 554 zcmZ{h%TB^T6o&tSLT#;b6An7HzpbfJk0 zAHataPm4(*(OI0C^Pib-{xkFS{qYIl6o)!g6g8AkR4D(-63Hox(P_gVj9|gj%pWN5Y zX1s0?(BaZ$C{^#Q0e|G?kh?vz9r)7iHKGf--y=lfk1~Va_9nh9E@kK-I|n`vSq7G% zsn|BKgI$JP%x}4Y=m}rNo`HQFFqHo>NYwb$b$1}_U_oj>jRWD(<9HJ)6lX0+&%7c3 z0d*m`Lp>HE#-hxij>1htYF??fY8^6?rmqM`0xYynQK!tLnbDj&dIx)n%F7hfk+=$j w*2ZiDRpF literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Chapter10_1/manifest.mf b/PrjJava/OCA7/Chapter1/Chapter10_1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter10_1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/build-impl.xml new file mode 100644 index 0000000..dda192a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/genfiles.properties new file mode 100644 index 0000000..4ad1b2a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ff96d58c +build.xml.script.CRC32=47f1177e +build.xml.stylesheet.CRC32=8064a381@1.79.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=ff96d58c +nbproject/build-impl.xml.script.CRC32=1fb6a8fa +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/project.properties new file mode 100644 index 0000000..740184c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter10_1/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}/Chapter10_1.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=chapter10_1.Chapter10_1 +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/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/project.xml new file mode 100644 index 0000000..ceea367 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter10_1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter10_1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Chapter10_1/src/chapter10_1/Chapter10_1.java b/PrjJava/OCA7/Chapter1/Chapter10_1/src/chapter10_1/Chapter10_1.java new file mode 100644 index 0000000..b4570bd --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter10_1/src/chapter10_1/Chapter10_1.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter10_1; + +/** + * + * @author anda + */ +import static java.lang.Integer.MAX_VALUE; + +public class Chapter10_1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + System.out.println(Integer.MAX_VALUE); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Chapter1_5/build.xml b/PrjJava/OCA7/Chapter1/Chapter1_5/build.xml new file mode 100644 index 0000000..20e5885 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter1_5. + + + diff --git a/PrjJava/OCA7/Chapter1/Chapter1_5/manifest.mf b/PrjJava/OCA7/Chapter1/Chapter1_5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/build-impl.xml new file mode 100644 index 0000000..d898a63 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/genfiles.properties new file mode 100644 index 0000000..54dc618 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=fd0e082f +build.xml.script.CRC32=0aa93bcc +build.xml.stylesheet.CRC32=8064a381@1.79.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=fd0e082f +nbproject/build-impl.xml.script.CRC32=e620f1dd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/project.properties new file mode 100644 index 0000000..588fe49 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_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}/Chapter1_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.7 +javac.target=1.7 +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=chapter1_5.Chapter1_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/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/project.xml new file mode 100644 index 0000000..0fcadf7 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter1_5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Chapter1_5/src/chapter1_5/Chapter1_5.java b/PrjJava/OCA7/Chapter1/Chapter1_5/src/chapter1_5/Chapter1_5.java new file mode 100644 index 0000000..9a37ace --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_5/src/chapter1_5/Chapter1_5.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter1_5; + +/** + * + * @author anda + */ +import com.foo.*; +public class Chapter1_5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + //Bleh x = new Bleh(); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Chapter1_5/src/com/foo/Bleh.java b/PrjJava/OCA7/Chapter1/Chapter1_5/src/com/foo/Bleh.java new file mode 100644 index 0000000..cdf30eb --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Chapter1_5/src/com/foo/Bleh.java @@ -0,0 +1,20 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package com.foo; + +/** + * + * @author anda + */ +class Bleh { + public int a =2 ; + public void say(int x) + { + System.out.println(x); + } + + +} diff --git a/PrjJava/OCA7/Chapter1/Declarations1/build.xml b/PrjJava/OCA7/Chapter1/Declarations1/build.xml new file mode 100644 index 0000000..bbd45e8 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Declarations1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Declarations1. + + + diff --git a/PrjJava/OCA7/Chapter1/Declarations1/manifest.mf b/PrjJava/OCA7/Chapter1/Declarations1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Declarations1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Declarations1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Declarations1/nbproject/build-impl.xml new file mode 100644 index 0000000..6e35f18 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Declarations1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Declarations1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Declarations1/nbproject/genfiles.properties new file mode 100644 index 0000000..0c03773 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Declarations1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5d1a4708 +build.xml.script.CRC32=e930d353 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5d1a4708 +nbproject/build-impl.xml.script.CRC32=7efebdeb +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Declarations1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Declarations1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Declarations1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Declarations1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Declarations1/nbproject/project.properties new file mode 100644 index 0000000..7124bbd --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Declarations1/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}/Declarations1.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.7 +javac.target=1.7 +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=declarations1.Declarations1 +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/PrjJava/OCA7/Chapter1/Declarations1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Declarations1/nbproject/project.xml new file mode 100644 index 0000000..af96f2d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Declarations1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Declarations1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Declarations1/src/declarations1/Dec.java b/PrjJava/OCA7/Chapter1/Declarations1/src/declarations1/Dec.java new file mode 100644 index 0000000..d8ea697 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Declarations1/src/declarations1/Dec.java @@ -0,0 +1,15 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package declarations1; + +/** + * + * @author anda + */ +public abstract class Dec { + //abstract static void doStuff(); + +} diff --git a/PrjJava/OCA7/Chapter1/Declarations1/src/declarations1/Declarations1.java b/PrjJava/OCA7/Chapter1/Declarations1/src/declarations1/Declarations1.java new file mode 100644 index 0000000..051067f --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Declarations1/src/declarations1/Declarations1.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package declarations1; + +/** + * + * @author anda + */ +public class Declarations1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/build.xml b/PrjJava/OCA7/Chapter1/Encapsul1/build.xml new file mode 100644 index 0000000..94db26a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Encapsul1. + + + diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/build/classes/encapsul1/Encapsul1.class b/PrjJava/OCA7/Chapter1/Encapsul1/build/classes/encapsul1/Encapsul1.class new file mode 100644 index 0000000000000000000000000000000000000000..80c22513ae6b44bad3eff0758553b472af422834 GIT binary patch literal 540 zcmZut%TB^T6g^W4DMTig>8&zq{>6(fecX*(7lj>i3? z`uXD2AhQ7%4nv{xX!iIsulKprsW*L3IGsi?jC&oD=l-D?*pR{aV|>d!&-HDeeB(`b z>{<4OkinA6iHCBCjyMt&ca>-%)Uk^_S;{nWMK9$H=~c>`cF(qadVVCVBsOeFJcU0~>j)TBu>IfOQ)i*fgem5qNyQi2Y-?&y@1cNy$K7%NX)NS#?s#Ya%Ub|mT literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/build/classes/encapsul1/Parrotet.class b/PrjJava/OCA7/Chapter1/Encapsul1/build/classes/encapsul1/Parrotet.class new file mode 100644 index 0000000000000000000000000000000000000000..f443a2a51c7df90d0c93e00e781b0597c3e788dd GIT binary patch literal 512 zcmZvY%SyvQ6o&ulEf-T;d-JZXtJZ}i72>A=aWEQ^GQff&5L~=j=2;%{xl0}CK85*7eqc^Bx!i;4!M-E3RIt1{!A=L zx&uvSg4Te+9>uBjgG-^Q<*)LiTYkqK7%&a&IM~G=gQ5Fn(l)T~pp6a<@%J8v>Ti=Q zO>;vYP2JIbqJla7UYsh1rk7<*=f)JVyI&uP^9KQ=>gp^K=iyKGwm6`9k1Z;TF# z^sM^Jfu@B?yG4;p%1Dcc&tMN(+NQmfnGROy>?{jN%M<~tsF0(Z&k2?%wH}eH<)2Xa c0oat%r6v_?NGpr2Z-|8|)(AuIMA;nbAA1gCE&u=k literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/manifest.mf b/PrjJava/OCA7/Chapter1/Encapsul1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/build-impl.xml new file mode 100644 index 0000000..de9c02d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/genfiles.properties new file mode 100644 index 0000000..d3be72e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7e496a87 +build.xml.script.CRC32=0fa1ba0f +build.xml.stylesheet.CRC32=8064a381@1.79.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=7e496a87 +nbproject/build-impl.xml.script.CRC32=2a84de2e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/project.properties new file mode 100644 index 0000000..5c99a0c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/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}/Encapsul1.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.7 +javac.target=1.7 +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=encapsul1.Encapsul1 +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/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/project.xml new file mode 100644 index 0000000..e5f2e73 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Encapsul1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Encapsul1.java b/PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Encapsul1.java new file mode 100644 index 0000000..2c38c76 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Encapsul1.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsul1; + +/** + * + * @author anda + */ +public class Encapsul1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Parrotet p = new Parrotet(); + p.chip(420); + p.chip(123_98_789_999L); + + } + +} diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Parrot.java b/PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Parrot.java new file mode 100644 index 0000000..863b419 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Parrot.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsul1; + +/** + * + * @author anda + */ +public class Parrot { + + void chip(int i) { + System.out.print("CHIPR "); + } +} diff --git a/PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Parrotet.java b/PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Parrotet.java new file mode 100644 index 0000000..e2f536c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Encapsul1/src/encapsul1/Parrotet.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsul1; + +/** + * + * @author anda + */ +public class Parrotet extends Parrot{ + void chip(long i) { + System.out.print("chiprs "); + } + +} diff --git a/PrjJava/OCA7/Chapter1/FinalVariable/build.xml b/PrjJava/OCA7/Chapter1/FinalVariable/build.xml new file mode 100644 index 0000000..955a26e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/FinalVariable/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project FinalVariable. + + + diff --git a/PrjJava/OCA7/Chapter1/FinalVariable/manifest.mf b/PrjJava/OCA7/Chapter1/FinalVariable/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/FinalVariable/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/build-impl.xml new file mode 100644 index 0000000..2f4ad81 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/genfiles.properties new file mode 100644 index 0000000..07dc743 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2bfddec7 +build.xml.script.CRC32=30ea69ce +build.xml.stylesheet.CRC32=8064a381@1.79.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=2bfddec7 +nbproject/build-impl.xml.script.CRC32=cc1fc814 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/project.properties b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/project.properties new file mode 100644 index 0000000..a5169a5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/FinalVariable/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}/FinalVariable.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.7 +javac.target=1.7 +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=finalvariable.FinalVariable +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/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/project.xml b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/project.xml new file mode 100644 index 0000000..df26a78 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/FinalVariable/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + FinalVariable + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/FinalVariable/src/finalvariable/FinalVariable.java b/PrjJava/OCA7/Chapter1/FinalVariable/src/finalvariable/FinalVariable.java new file mode 100644 index 0000000..0ca7c4a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/FinalVariable/src/finalvariable/FinalVariable.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package finalvariable; + +/** + * + * @author anda + */ +public class FinalVariable { + + /** + * @param args the command line arguments + */ + final static int x = 5; + public static void main(String[] args) { + // TODO code application logic here + //int y = x++; // compiler error + } + +} diff --git a/PrjJava/OCA7/Chapter1/ImportStatic/build.xml b/PrjJava/OCA7/Chapter1/ImportStatic/build.xml new file mode 100644 index 0000000..02453b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ImportStatic. + + + diff --git a/PrjJava/OCA7/Chapter1/ImportStatic/manifest.mf b/PrjJava/OCA7/Chapter1/ImportStatic/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/build-impl.xml new file mode 100644 index 0000000..c69036f --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/genfiles.properties new file mode 100644 index 0000000..d1b929e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8291eb00 +build.xml.script.CRC32=30d447c1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=8291eb00 +nbproject/build-impl.xml.script.CRC32=84eec56d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/project.properties b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/project.properties new file mode 100644 index 0000000..a00e183 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/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}/ImportStatic.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.7 +javac.target=1.7 +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=com.bar.ImportStatic +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/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/project.xml b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/project.xml new file mode 100644 index 0000000..578db07 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ImportStatic + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/ImportStatic/src/com/bar/ImportStatic.java b/PrjJava/OCA7/Chapter1/ImportStatic/src/com/bar/ImportStatic.java new file mode 100644 index 0000000..836c297 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/src/com/bar/ImportStatic.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + package com.bar; + +/** + * + * @author andad + */ +public class ImportStatic { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter1/ImportStatic/src/com/foo/X.java b/PrjJava/OCA7/Chapter1/ImportStatic/src/com/foo/X.java new file mode 100644 index 0000000..ce60d3c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ImportStatic/src/com/foo/X.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package com.foo; + +/** + * + * @author andad + */ +public class X { + + public static int LOGICID = 10; + + public void apply(int i) { + System.out.println("applied"); + } +} diff --git a/PrjJava/OCA7/Chapter1/Main1/build.xml b/PrjJava/OCA7/Chapter1/Main1/build.xml new file mode 100644 index 0000000..f05fa9c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Main1. + + + diff --git a/PrjJava/OCA7/Chapter1/Main1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Main1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Main1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main1/build/classes/main1/Main1.class b/PrjJava/OCA7/Chapter1/Main1/build/classes/main1/Main1.class new file mode 100644 index 0000000000000000000000000000000000000000..9ada0ceced6afe7abc36ef00c1cb206ce0ff4dd0 GIT binary patch literal 623 zcmZuv%TB^T6g@+MLKzsrMYk*JiR z+I;AY#gnic;SQ~C;7fPd3PprJq_NV9GK10e=KjFGl1kMGDNhv(M;e9>lVcD23^`M{ zUNEwKQ;C^64mb|c;3&XgD40`H8_20}7IlV<>Wg-yhQGyb`(t|$EJ5ApSzu4-op^I9 zR2D9zXWbELKt^maA)BR;V;N@9m2%*a|4MU}eOh0quc96eOqrsXq0FL_(U~}T2YaDQ z44h&z1Ua&F=Zgm9kPkERN{AY6P`7&0uZR`3H^dbI3ki&{R3gnXsTHsmjkF0@di( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Main1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Main1/nbproject/genfiles.properties new file mode 100644 index 0000000..d37c4fb --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5d75201c +build.xml.script.CRC32=812c6e5e +build.xml.stylesheet.CRC32=8064a381@1.79.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=5d75201c +nbproject/build-impl.xml.script.CRC32=c2632b0f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Main1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Main1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Main1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Main1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Main1/nbproject/project.properties new file mode 100644 index 0000000..494aeff --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main1/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}/Main1.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.7 +javac.target=1.7 +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=main1.Main1 +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/PrjJava/OCA7/Chapter1/Main1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Main1/nbproject/project.xml new file mode 100644 index 0000000..fcc566b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Main1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main1/src/main1/Main1.java b/PrjJava/OCA7/Chapter1/Main1/src/main1/Main1.java new file mode 100644 index 0000000..afafe0c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main1/src/main1/Main1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main1; + +/** + * + * @author andad + */ +public class Main1 { + + /** + * @param args the command line arguments + */ + protected static void main() + { + System.out.println(" another main "); + } + public static void main(String[] args) { + // TODO code application logic here + main(); + System.out.println(" principal main "); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Main2/build.xml b/PrjJava/OCA7/Chapter1/Main2/build.xml new file mode 100644 index 0000000..9943375 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Main2. + + + diff --git a/PrjJava/OCA7/Chapter1/Main2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Main2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Main2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main2/build/classes/main2/Main2.class b/PrjJava/OCA7/Chapter1/Main2/build/classes/main2/Main2.class new file mode 100644 index 0000000000000000000000000000000000000000..21ea8d35e8b32715a04a6799ef566a5826821242 GIT binary patch literal 523 zcmZuu$xZ@65Pi)y3xgmdD7fMYJvfOTJYc+-cp8@k!^KmB9cVI(85$EmOAnfO@B{oP zWA$JHB=n)G>(#4QRoy?oU*7=EaA>1|4GT5YO>ElOLc>7Qz&1nSLPk z{3IC4zKq1}H0+Dyf%gMKs(w7+L60X=$NykXjpT%(b4m>`@OTCd$CRg9Ee} ziVG7kROW5(`eQLrOHlW9qC`j=$5TqwW;4pzyQcvajVX9YOSq}VGR$B+Yf?bl)!M6; zLkoF&Yke{xI!v+_MIL!ZK7afP_Lin?vV|0MP^7yvBakmq)W90bgy`b)R1C1*k*Q`s ZkedtGl+t7q%>@w)6|56Z|3)?g_YdESX + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Main2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Main2/nbproject/genfiles.properties new file mode 100644 index 0000000..7dc3e50 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4541b476 +build.xml.script.CRC32=f0e99740 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4541b476 +nbproject/build-impl.xml.script.CRC32=53de0b82 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Main2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Main2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Main2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Main2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Main2/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Main2/nbproject/project.properties new file mode 100644 index 0000000..cfc7f3e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main2/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}/Main2.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.7 +javac.target=1.7 +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=main2.Main2 +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/PrjJava/OCA7/Chapter1/Main2/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Main2/nbproject/project.xml new file mode 100644 index 0000000..7b6d544 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Main2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main2/src/main2/Main2.java b/PrjJava/OCA7/Chapter1/Main2/src/main2/Main2.java new file mode 100644 index 0000000..5667ebe --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main2/src/main2/Main2.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main2; + +/** + * + * @author andad + */ +public class Main2 { + + /** + * @param args the command line arguments + + public static long main(String[] args){ + System.out.println("Hello"); + return 10L; + + } + **/ + final public static void main(String[] args) { + // TODO code application logic here + System.out.println("test"); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Main3/build.xml b/PrjJava/OCA7/Chapter1/Main3/build.xml new file mode 100644 index 0000000..db6acb5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Main3. + + + diff --git a/PrjJava/OCA7/Chapter1/Main3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Main3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Main3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main3/build/classes/main3/Main3.class b/PrjJava/OCA7/Chapter1/Main3/build/classes/main3/Main3.class new file mode 100644 index 0000000000000000000000000000000000000000..8076ed6c4fd56df05d6caaa441a7d8c607a72952 GIT binary patch literal 927 zcmZvb+iuf95QhJa-8gn#T9PJBA#GibPC{!$FF-2d0wk`&K?+ntTsg@q-O8~e$L8<| zJPur>5=cA%4~3X`xb8D zb_I6~+%<4dp!`&YDtRWLx$P4H{Y5mA0_!~$%Gc>+AmexbAfQaO7Y+U3#E%v4^Q4}f zs+quAZ{n-)$a}@{m>|3raNXXS|H=0PKOB4gBv#@0_+v4}vYH={S)))-FghZQ+LBIz z`VtA|HQXiTd|>sXG#<*Aitl7)h7VcP#wu(B_iean3vB&wGdPpO>`$jMB=o_un-}Jn+or}!5-mP~z^2$N6a~Ky;D=V&{h0P4ySTxhFP7uPNfh|ItB+<+z9#aj=n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Main3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Main3/nbproject/genfiles.properties new file mode 100644 index 0000000..5b79c44 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4d523850 +build.xml.script.CRC32=dfaac04a +build.xml.stylesheet.CRC32=8064a381@1.79.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=4d523850 +nbproject/build-impl.xml.script.CRC32=234aebf9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Main3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Main3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Main3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Main3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Main3/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Main3/nbproject/project.properties new file mode 100644 index 0000000..f7520f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main3/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}/Main3.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.7 +javac.target=1.7 +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=main3.Main3 +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/PrjJava/OCA7/Chapter1/Main3/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Main3/nbproject/project.xml new file mode 100644 index 0000000..095eef7 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Main3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main3/src/main3/Main3.java b/PrjJava/OCA7/Chapter1/Main3/src/main3/Main3.java new file mode 100644 index 0000000..aed8f27 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main3/src/main3/Main3.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main3; + +/** + * + * @author andad + */ +public class Main3 { + + /** + * @param args the command line arguments + */ + public static void main(String arg, String... args) + { + System.out.println(args[0] + args[1]); + } + + public static void main(String args) { + // TODO code application logic here + System.out.println("main who is not executed"); + } + + public static void main(String... args) { + // TODO code application logic here + //System.out.println("main who is executed"); + System.out.println(args[0]); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Main4/build.xml b/PrjJava/OCA7/Chapter1/Main4/build.xml new file mode 100644 index 0000000..da4dc60 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Main4. + + + diff --git a/PrjJava/OCA7/Chapter1/Main4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Main4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Main4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main4/build/classes/main4/Main4.class b/PrjJava/OCA7/Chapter1/Main4/build/classes/main4/Main4.class new file mode 100644 index 0000000000000000000000000000000000000000..6516567de4e4c046564c6bb4b7ccb33cf6580efd GIT binary patch literal 689 zcmZuu%TC)s6g`tTu`>*i2chL%+Cmem;zhft1nQg0f*XajkTaVL>Jb z2vRGt-~;%ms%IQT396;Jk8|%m_ssb2&&@4>_joJeVWomqtX1G*U19?-Y_w_3OBb(P zycQ4v&jC-LM+=nqO>DAH0>xIlC*XWezJ>zx9TSH~qhUWxPjx>cQtu>zj(R#ZHopg* z?3=k1nC%R;i9h&<*6xwSrUHwtv(CBxuKh^I1HYT4CLZkNOLRKmSmQrs0dGHu?j^}? zGD?H+i?IS^&c1626=pH#VoPBgZxm)AU9=S1*ilfB3Kd9!nMa}os{fQ6_s_#1n}WJO zF0*jRM@U92G$*o6;-64+M&+R%@?MRcV;UB4FKko93p=fYb`P6;ZjZmDNJ}A%JS#Ex zR7dZCZ-zPAd1gMnpfBzGhPYx-K$W(fg9 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Main4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Main4/nbproject/genfiles.properties new file mode 100644 index 0000000..1b446fa --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=75289ca2 +build.xml.script.CRC32=1362657c +build.xml.stylesheet.CRC32=8064a381@1.79.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=75289ca2 +nbproject/build-impl.xml.script.CRC32=abd54cd9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Main4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Main4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Main4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Main4/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Main4/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Main4/nbproject/project.properties new file mode 100644 index 0000000..2c25a96 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main4/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}/Main4.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.7 +javac.target=1.7 +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=main4.Main4 +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/PrjJava/OCA7/Chapter1/Main4/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Main4/nbproject/project.xml new file mode 100644 index 0000000..bc48f6c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Main4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main4/src/main4/Main4.java b/PrjJava/OCA7/Chapter1/Main4/src/main4/Main4.java new file mode 100644 index 0000000..13f4c9c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main4/src/main4/Main4.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main4; + +/** + * + * @author andad + */ +public class Main4 { + + /** + * @param args the command line arguments + */ + static int c, b=21/2, a = 10; + static {c = a;} + private static void main() + { + System.out.println(b); + } + public static void main(String... args) { + // TODO code application logic here + System.out.println(b); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Main5/build.xml b/PrjJava/OCA7/Chapter1/Main5/build.xml new file mode 100644 index 0000000..be4a56e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Main5. + + + diff --git a/PrjJava/OCA7/Chapter1/Main5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Main5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Main5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main5/build/classes/main5/Main5.class b/PrjJava/OCA7/Chapter1/Main5/build/classes/main5/Main5.class new file mode 100644 index 0000000000000000000000000000000000000000..7281430f397d2ae04dd1f63761c00b2008a67fcc GIT binary patch literal 613 zcmZuu$w~u35PhA*Os3PCn9aDak?6rWhs8fzuVy|z-`)XiW1S<1nu#gYbC~9s!E6q590ukMEErg1$nGgmMf(it z=0=wxbLijL428Dx?DN>|*};|UIfRtjeqTCW87Q59gPG`7g$(0uS1NDEI@7U5BsyiN zHLu%4c`q$TdIPHy1=natG9DYMKOQe#r}zP)^t@6jP{v0ceABssI20 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Main5/manifest.mf b/PrjJava/OCA7/Chapter1/Main5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Main5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Main5/nbproject/build-impl.xml new file mode 100644 index 0000000..8b84ac8 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Main5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Main5/nbproject/genfiles.properties new file mode 100644 index 0000000..8bdcf48 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7d3b1084 +build.xml.script.CRC32=3c213276 +build.xml.stylesheet.CRC32=8064a381@1.79.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=7d3b1084 +nbproject/build-impl.xml.script.CRC32=db41aca2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Main5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Main5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Main5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Main5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Main5/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Main5/nbproject/project.properties new file mode 100644 index 0000000..0de1aff --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main5/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}/Main5.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.7 +javac.target=1.7 +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=main5.Main5 +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/PrjJava/OCA7/Chapter1/Main5/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Main5/nbproject/project.xml new file mode 100644 index 0000000..b4ec554 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Main5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main5/src/main5/Main5.java b/PrjJava/OCA7/Chapter1/Main5/src/main5/Main5.java new file mode 100644 index 0000000..911e8d8 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main5/src/main5/Main5.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main5; + +/** + * + * @author andad + */ +public class Main5 { + + /** + * @param args the command line arguments + */ + protected static void main() + { + System.out.println("EJavaGuru"); + } + public static void main(String[] args) { + // TODO code application logic here + + System.out.println("MissionOCA7"); + main(); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Main6/build.xml b/PrjJava/OCA7/Chapter1/Main6/build.xml new file mode 100644 index 0000000..578e7f7 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Main6. + + + diff --git a/PrjJava/OCA7/Chapter1/Main6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Main6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Main6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main6/build/classes/main6/Main6.class b/PrjJava/OCA7/Chapter1/Main6/build/classes/main6/Main6.class new file mode 100644 index 0000000000000000000000000000000000000000..2cb52e64ff47cbb2ba0214ca7e9f4564950aa6d7 GIT binary patch literal 765 zcmZuvO>fgc5Ph43Y`k%rk~9WFzxXJm1!^QDE=62WK|(GdrK*HDZOkfcN$kk6QTauj z%b~46;s@}f5Hs6|rV@J?@4T5e^Jdn+|NQs`;0Ycp)Uo1W6>BxDE8N0u1%*3o?n-PZ zNUX5ACvjh*Cs2K66PrI5DEBrG1S&7mk4B&w*~Gjl#sib>>%oYSR+Pqibf7cK{tT?- zpX^ki5skG?o`!pDcc=)v0zvOXbf~}RaHNxA*v~VY40pIm$s7rE=3=`?v64_6S0|}^pT4b?#X<4Om61KUk4<8MQO&?o$AmHsX_^QYXiHANO zVcSO=4K_>E?Ly~2Ej~gt1nP6M2`pYDz8xHzIKKq-zfN;Ard_551!fc4G<-*+=d=K$ z$28%2v&*o6oN&^J_SWgmt!8d*O_$*|u%GGJ(ChMZ^C?5{xMUZ|3+XH9du8hs;+QTa zG|5&S=wp%Y{&@nfqD7wKRS?4D4a(-@eMhNPK0$>G&>uloxlkK5EWzW&%_vjCnG~E+ z%QIBJVIlen`Ti8O6L`n2l_a(#om{6&Qh*!ebqQOe$TH2biVoJDxPYqF3GE literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Main6/manifest.mf b/PrjJava/OCA7/Chapter1/Main6/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main6/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Main6/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Main6/nbproject/build-impl.xml new file mode 100644 index 0000000..03da28d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main6/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Main6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Main6/nbproject/genfiles.properties new file mode 100644 index 0000000..b2f4bce --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=650f84ee +build.xml.script.CRC32=4de4cb68 +build.xml.stylesheet.CRC32=8064a381@1.79.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=650f84ee +nbproject/build-impl.xml.script.CRC32=4afc8c2f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Main6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Main6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Main6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Main6/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main6/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main6/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Main6/nbproject/project.properties new file mode 100644 index 0000000..189be22 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main6/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}/Main6.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.7 +javac.target=1.7 +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=main6.Main6 +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/PrjJava/OCA7/Chapter1/Main6/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Main6/nbproject/project.xml new file mode 100644 index 0000000..74b00aa --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Main6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main6/src/main6/Main6.class b/PrjJava/OCA7/Chapter1/Main6/src/main6/Main6.class new file mode 100644 index 0000000000000000000000000000000000000000..68ba07f402ffe774cc501ef92ac55914e68106c0 GIT binary patch literal 493 zcmZutO;5s55S#}{+eZcDOF&UMm{bq;V8R9C#i$qjNHAVJ6>LZeZB1=W{8@TX;=v!_ zk221yCWOSx?Av*>yR-ZC{qYIl5M2o!YX&N)>ZnQ7(U8!vuAr%*rJ*g5Kk@=EJ{HJY zd$$6)lknaZC=I;8y-fU(8{Igg8JV2#c!5B}x*JTLC&!*S!NeZMkrzz*s!$HYBpSPC zo)XIoihBo2Xu^Qhuwh~o9RcH1k>^R2XxK8bjU5xKkP3O-nJ2xsKl#sHQ!ZX#wp)iDulVZvD3ox;&B2BLZ2_G$gUW ztivc6SN7i_Uic6&iTRW?DdR4DE9ovWM8J4OrjmU_ZXuWHSCtcL?9I*pN-RdzU7vHn W9Qj2>kv@PXu|;QXs!Gf=DE|N_saRP6 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Main6/src/main6/Main6.java b/PrjJava/OCA7/Chapter1/Main6/src/main6/Main6.java new file mode 100644 index 0000000..c3acbf0 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main6/src/main6/Main6.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main6; + +/** + * + * @author andad + */ +public class Main6 { + + /** + * @param args the command line arguments + */ + private static void main() + { + System.out.println("EjavaGuru"); + } + + public static void main(String[] args) { + // TODO code application logic here + try{ + main(); + main(args); + } + catch(Exception ex) + { + new Exception().printStackTrace(); + } + } + +} diff --git a/PrjJava/OCA7/Chapter1/Main7/build.xml b/PrjJava/OCA7/Chapter1/Main7/build.xml new file mode 100644 index 0000000..2f7e871 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Main7. + + + diff --git a/PrjJava/OCA7/Chapter1/Main7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Main7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Main7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Main7/build/classes/main7/Main7.class b/PrjJava/OCA7/Chapter1/Main7/build/classes/main7/Main7.class new file mode 100644 index 0000000000000000000000000000000000000000..0f40b52700ad84c9024bd083411d495fb5643ff4 GIT binary patch literal 524 zcmZuuJ5K^Z5dMbOamOJDf`U)1(84P$C@?lAR_7zZ&{!?FfhG4a$6?~n(n1ppe}F&A zID41?30utUeBaDBGrK>(U*7=Eacm)nEfY1=^VqhqgNA{ofn7rGLIoP z+o6RlKej$8a60mAO^zJ)#6Ela33^Lti)}6eD=6^Yo+q#`a%5ryB}Q~{ClO=p9jQwC a1DS<@#T3xsKFuW&6J=~N&L77%h3X%fO=-da literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Main7/build/classes/main7/anothermain.class b/PrjJava/OCA7/Chapter1/Main7/build/classes/main7/anothermain.class new file mode 100644 index 0000000000000000000000000000000000000000..6b9343bbc64985dca86e40508a604f228db49c03 GIT binary patch literal 537 zcmZuu$xg#C5Pj~JCWNL7E&F;Z9Eb#m9*VdiaSDr6)C(uKSgorhMyZR$XTbp^4txL~ zg&3zurJ|PN@x1Z8_s049{`drNiUS7)tk|fdQN*f)HLP3Mu&~KcIFqr|=M35AVV5Cy zp&kT-7syy#Pokbk?szXGq#CF`54${(CjSL@!sUIbkTz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Main7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Main7/nbproject/genfiles.properties new file mode 100644 index 0000000..7b9dcd2 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6d1c08c8 +build.xml.script.CRC32=62a79c62 +build.xml.stylesheet.CRC32=8064a381@1.79.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=6d1c08c8 +nbproject/build-impl.xml.script.CRC32=3a686c54 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Main7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Main7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Main7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Main7/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main7/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Main7/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Main7/nbproject/project.properties new file mode 100644 index 0000000..f1b86e7 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main7/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}/Main7.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.7 +javac.target=1.7 +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=main7.Main7 +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/PrjJava/OCA7/Chapter1/Main7/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Main7/nbproject/project.xml new file mode 100644 index 0000000..dac473f --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Main7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main7/src/main7/Main7.java b/PrjJava/OCA7/Chapter1/Main7/src/main7/Main7.java new file mode 100644 index 0000000..9ca2473 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main7/src/main7/Main7.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main7; + +/** + * + * @author andad + */ +class anothermain{ + public static void main(String[] args) { + System.out.println("hello2"); + } +} + +public class Main7 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.println("hello"); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Main8/build.xml b/PrjJava/OCA7/Chapter1/Main8/build.xml new file mode 100644 index 0000000..acd7701 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Main8. + + + diff --git a/PrjJava/OCA7/Chapter1/Main8/manifest.mf b/PrjJava/OCA7/Chapter1/Main8/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main8/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Main8/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Main8/nbproject/build-impl.xml new file mode 100644 index 0000000..112ca20 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main8/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Main8/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Main8/nbproject/genfiles.properties new file mode 100644 index 0000000..1ffd12e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=15facd0a +build.xml.script.CRC32=0f048745 +build.xml.stylesheet.CRC32=8064a381@1.79.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=15facd0a +nbproject/build-impl.xml.script.CRC32=80b2c42e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Main8/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Main8/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main8/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Main8/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Main8/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main8/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main8/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Main8/nbproject/project.properties new file mode 100644 index 0000000..2396be3 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main8/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}/Main8.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.7 +javac.target=1.7 +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=main8.Main8 +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/PrjJava/OCA7/Chapter1/Main8/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Main8/nbproject/project.xml new file mode 100644 index 0000000..6514b8d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Main8 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Main8/src/main8/Main8.class b/PrjJava/OCA7/Chapter1/Main8/src/main8/Main8.class new file mode 100644 index 0000000000000000000000000000000000000000..9b026310929d1843c487606774535bfcbf544605 GIT binary patch literal 427 zcmZut%Syvg5IvJ7O`Aqro3uWwxJzA_g_}afjUXcR0g-N8CG}En$wO))_)#u&q2R&~ z@T0`J5tM?nn3;R#%*>hl`Stz*-~c-oYFMeG4W|azLI+)g3(71Lt0vY6)kB%e{D@HT z`eTBAoZSjSb0kx7Q6!O=Ux!i5h@ONpC3L-;(JXuj{Wwggevr>)Ivw`U2v(34^NBc- zifo-Td9bgDHtK5Gx{VEN5{y$3$C-&O8$E0j8fxsoFZqPl-{{L|CMNj;6g=MNB4MRj z!G+F`4w?B^EFxzqB20z^r<}0}6U;kBiur<$_s;=i?84;FQl^2FX7&w!^*9noWA6?0 t%n89}UoAm(+!B^KS5&WT1?(4S?aC{37sk_Xhs9OE;UzBfo1ANCeFI0JQw{(C literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Main8/src/main8/Main8.java b/PrjJava/OCA7/Chapter1/Main8/src/main8/Main8.java new file mode 100644 index 0000000..d988fd9 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Main8/src/main8/Main8.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package main8; + +/** + * + * @author andad + */ +public class Main8 { + + /** + * @param args the command line arguments + * Error: Could not find or load main class Main8.class + */ + public static long main(String[] args) { + // TODO code application logic here + System.out.println("Hello"); + return 10L; + } + +} diff --git a/PrjJava/OCA7/Chapter1/ManyMain/build.xml b/PrjJava/OCA7/Chapter1/ManyMain/build.xml new file mode 100644 index 0000000..a77877a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ManyMain/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ManyMain. + + + diff --git a/PrjJava/OCA7/Chapter1/ManyMain/manifest.mf b/PrjJava/OCA7/Chapter1/ManyMain/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ManyMain/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/ManyMain/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/build-impl.xml new file mode 100644 index 0000000..8a6a441 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/ManyMain/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/genfiles.properties new file mode 100644 index 0000000..6a87d09 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=047fea43 +build.xml.script.CRC32=8b74476c +build.xml.stylesheet.CRC32=8064a381@1.79.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=047fea43 +nbproject/build-impl.xml.script.CRC32=e5bc8a46 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/ManyMain/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/ManyMain/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/ManyMain/nbproject/project.properties b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/project.properties new file mode 100644 index 0000000..2f3111d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ManyMain/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}/ManyMain.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.7 +javac.target=1.7 +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=manymain.ManyMain +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/PrjJava/OCA7/Chapter1/ManyMain/nbproject/project.xml b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/project.xml new file mode 100644 index 0000000..5736b90 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ManyMain/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ManyMain + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/ManyMain/src/manymain/ManyMain.java b/PrjJava/OCA7/Chapter1/ManyMain/src/manymain/ManyMain.java new file mode 100644 index 0000000..035613d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ManyMain/src/manymain/ManyMain.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package manymain; + +/** + * + * @author andad + */ +public class ManyMain { + + /** + * @param args the command line arguments + */ + public static void main(String[] args){ new ManyMain().sayHello(); } //1 + public static void sayHello(){ System.out.println("Static Hello World"); } //2 + //public void sayHello() { System.out.println("Hello World "); } //3 + +} diff --git a/PrjJava/OCA7/Chapter1/Nameofvariables/build.xml b/PrjJava/OCA7/Chapter1/Nameofvariables/build.xml new file mode 100644 index 0000000..248e59d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Nameofvariables/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Nameofvariables. + + + diff --git a/PrjJava/OCA7/Chapter1/Nameofvariables/manifest.mf b/PrjJava/OCA7/Chapter1/Nameofvariables/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Nameofvariables/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/build-impl.xml new file mode 100644 index 0000000..da13b8c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/genfiles.properties new file mode 100644 index 0000000..ac6571d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=815cb716 +build.xml.script.CRC32=d68cb9e8 +build.xml.stylesheet.CRC32=8064a381@1.79.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=815cb716 +nbproject/build-impl.xml.script.CRC32=6ddbff37 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/project.properties new file mode 100644 index 0000000..6bcd69f --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Nameofvariables/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}/Nameofvariables.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.7 +javac.target=1.7 +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=nameofvariables.Nameofvariables +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/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/project.xml new file mode 100644 index 0000000..418e0d4 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Nameofvariables/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Nameofvariables + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Nameofvariables/src/nameofvariables/Nameofvariables.java b/PrjJava/OCA7/Chapter1/Nameofvariables/src/nameofvariables/Nameofvariables.java new file mode 100644 index 0000000..7e9fc88 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Nameofvariables/src/nameofvariables/Nameofvariables.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package nameofvariables; + +/** + * + * @author andad + */ +public class Nameofvariables { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + //Integer int = 5; + int Integer = 5; + } + +} diff --git a/PrjJava/OCA7/Chapter1/Numedevariabile/build.xml b/PrjJava/OCA7/Chapter1/Numedevariabile/build.xml new file mode 100644 index 0000000..eb5baf6 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Numedevariabile/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Numedevariabile. + + + diff --git a/PrjJava/OCA7/Chapter1/Numedevariabile/build/classes/numedevariabile/Numedevariabile.class b/PrjJava/OCA7/Chapter1/Numedevariabile/build/classes/numedevariabile/Numedevariabile.class new file mode 100644 index 0000000000000000000000000000000000000000..79145f82a3af11766f510d6cafeea536296f4369 GIT binary patch literal 420 zcmah_O-sW-5Pg&8qm9wlws=%}s|x1evEoJW6zZYUi>FPx#4X7N)};T-litmE zR>7izdzjhxX5O1&w(qZR04^~O(ZOMWVSo|AzfxM&*M!dWbV+b;s+A=46Q$+6DN||g zMOrX3OsY&2OJP)tzeu-!R8NFSqMK5#Q8X#FC%@CYaWEJ7H3PrpmoGOICx!v|@f1KtxJ zN1sv5nK*lAFQ8{z4mkRjjL_wO^x1$OLPkC8S*8`A+fMuz9`6VV`#9i6zBfk)gAW^3 BSd9Px literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Numedevariabile/manifest.mf b/PrjJava/OCA7/Chapter1/Numedevariabile/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Numedevariabile/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/build-impl.xml new file mode 100644 index 0000000..a6667f3 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/genfiles.properties new file mode 100644 index 0000000..15eb189 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0ecd4bc3 +build.xml.script.CRC32=cd3b9432 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0ecd4bc3 +nbproject/build-impl.xml.script.CRC32=b959de06 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/project.properties new file mode 100644 index 0000000..a3de6ac --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Numedevariabile/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}/Numedevariabile.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.7 +javac.target=1.7 +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=numedevariabile.Numedevariabile +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/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/project.xml new file mode 100644 index 0000000..edb3bb7 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Numedevariabile/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Numedevariabile + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Numedevariabile/src/numedevariabile/Numedevariabile.java b/PrjJava/OCA7/Chapter1/Numedevariabile/src/numedevariabile/Numedevariabile.java new file mode 100644 index 0000000..d3cf2a0 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Numedevariabile/src/numedevariabile/Numedevariabile.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package numedevariabile; + +/** + * + * @author anda + */ +public class Numedevariabile { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + //int e#; + int _a; + int _$; + int $c; + int this_is_a_very; + int ____________2_w; + + + + + + } + +} diff --git a/PrjJava/OCA7/Chapter1/Question1/build.xml b/PrjJava/OCA7/Chapter1/Question1/build.xml new file mode 100644 index 0000000..de439b8 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Question1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Question1. + + + diff --git a/PrjJava/OCA7/Chapter1/Question1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Question1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Question1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Question1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Question1/build/classes/question1/A.class b/PrjJava/OCA7/Chapter1/Question1/build/classes/question1/A.class new file mode 100644 index 0000000000000000000000000000000000000000..eba93b9fc702be64e249dd5d0cabc1f80b4a05b5 GIT binary patch literal 344 zcmYjLO-sW-5Pg&8qo%2;_2Zx?Z>5>$)X!#f@$Kf^5RM8!5`p{ z5@)x9F3h}{_h#PC*Z2Apz!~;^^f30Y>tT=JUZ_g7mxSJAx+K_FbuI~EqAGdQJ*Tp{ z7ir1NIH@yHE=8ks|4Z8KlUfmm$xA0!t*Wb8w3xG%$a8`-iQ{QZAjP4vAozE6*JScq zX-ju;T8LK>z=lH@{PQ4;v=Wt~dW>$QY2aCW(i7>Ut2`2f8e+2iaQ zGC-f}U^9R%_}uj|FpOS4XETe@K0JDOW3=$M8=BpNjgBFr zWxOpaE||r=bMLw5%(?UV_5K0i2zwe7n0YK8kSL4v7%y?L1~FV#K#Ph)#x(F zr{Tb5C^;f<&&PhxjjnjlqfXfg``qjDNF?=7Q;u)Mh@s}(kKIu$!r;)p{Jk|v%;zFt zFs*CnmOpUYI_c|g=zPM!T4wEaTL2geM2~olZ{eDg!TowjmfjiecDLkg8@U< zYPTD0dSb>9gL;=xJX&0~+Kn!`%F_QQCj&x}qnM}4rpzd3_g}%DQdpy?q)i + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Question1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Question1/nbproject/genfiles.properties new file mode 100644 index 0000000..e3995bf --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Question1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2c86f4be +build.xml.script.CRC32=827e7219 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2c86f4be +nbproject/build-impl.xml.script.CRC32=44b9c9bd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Question1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Question1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Question1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Question1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Question1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Question1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Question1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Question1/nbproject/project.properties new file mode 100644 index 0000000..82c84fb --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Question1/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}/Question1.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.7 +javac.target=1.7 +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=question1.Question1 +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/PrjJava/OCA7/Chapter1/Question1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Question1/nbproject/project.xml new file mode 100644 index 0000000..0c31719 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Question1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Question1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Question1/src/question1/A.java b/PrjJava/OCA7/Chapter1/Question1/src/question1/A.java new file mode 100644 index 0000000..2a1cf33 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Question1/src/question1/A.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question1; + +/** + * + * @author anda + */ +public class A { + + static int add(int i, int j) { + return i + j; + } + +} diff --git a/PrjJava/OCA7/Chapter1/Question1/src/question1/Question1.java b/PrjJava/OCA7/Chapter1/Question1/src/question1/Question1.java new file mode 100644 index 0000000..9b0b14e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Question1/src/question1/Question1.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question1; + +/** + * + * @author anda + */ +public class Question1 extends A{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + short s = 9; + System.out.println(add(s,6)); + + } + +} diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/build.xml b/PrjJava/OCA7/Chapter1/ScopeTest/build.xml new file mode 100644 index 0000000..4f889d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeTest/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ScopeTest. + + + diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/ScopeTest/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/ScopeTest/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/build/classes/scopetest/ScopeTest.class b/PrjJava/OCA7/Chapter1/ScopeTest/build/classes/scopetest/ScopeTest.class new file mode 100644 index 0000000000000000000000000000000000000000..d06e08f920cbacffcec186619d792a56334a3f30 GIT binary patch literal 615 zcmZvZOH0E*6ot?9k+e0|YHjQLEmRj~;nLzp5R{@qr68`Rai}9{QqolPXQ`mz!XMy| z63?XK16*Y8oilgN{qE%bOh?gdmR;>%Z^WFsu_CHZ_7xV{g;@Duk}En(j0hUU&U$=yDgKQ zGuxwCPwGIRTEA@G$Xn_9GU&RkIMP9PFKH&DF0YsWITpw@JpT)=&$_QMC?is0L zvMbr+WaY%;uPk8qO_9%$GxejbHdguI7JmhYF+j}H%*o4jj60W6FlM)3ARd^c;Bd7P z(ZM)#XH03e`{MTXNR` literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/manifest.mf b/PrjJava/OCA7/Chapter1/ScopeTest/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeTest/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/build-impl.xml new file mode 100644 index 0000000..d355f16 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/genfiles.properties new file mode 100644 index 0000000..a5dda3e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=18efde0f +build.xml.script.CRC32=597bc8f7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=18efde0f +nbproject/build-impl.xml.script.CRC32=b7f1d9ab +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/project.properties b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/project.properties new file mode 100644 index 0000000..3c09c26 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeTest/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}/ScopeTest.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.7 +javac.target=1.7 +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=scopetest.ScopeTest +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/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/project.xml b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/project.xml new file mode 100644 index 0000000..5ae24e9 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeTest/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ScopeTest + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/ScopeTest/src/scopetest/ScopeTest.java b/PrjJava/OCA7/Chapter1/ScopeTest/src/scopetest/ScopeTest.java new file mode 100644 index 0000000..b612e5a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeTest/src/scopetest/ScopeTest.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package scopetest; + +/** + * + * @author andad + */ +public class ScopeTest { + + /** + * @param args the command line arguments + */ + static int x = 5; + + public static void main(String[] args) { + // TODO code application logic here + int x = ( x = 3 ) * 4; + System.out.println(x); + } + +} diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/build.xml b/PrjJava/OCA7/Chapter1/ScopeVariable/build.xml new file mode 100644 index 0000000..432904f --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeVariable/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ScopeVariable. + + + diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/ScopeVariable/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/ScopeVariable/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/build/classes/scopevariable/ScopeVariable.class b/PrjJava/OCA7/Chapter1/ScopeVariable/build/classes/scopevariable/ScopeVariable.class new file mode 100644 index 0000000000000000000000000000000000000000..73a5358ac3955fe56dc7c136bd40f7e30d2a822e GIT binary patch literal 1028 zcmaJ=?QRl56g{(iEYQUkXp4nnp<273E!z4G+C*a$5~@uwB*tF@OmHgfZkDCdH}MVp zU4Kxci4WjIsdp9{+LRQ+oxNY@oO_4;^Y`a(0K3?WA&&JJZsL}XjVNwoQ->Kt2oPfE@q>S(j z=Tc+hecSDG@Ac=la6D;S3WvL0qD#$yArMKw8biF{@%E~)08Fn8$Mw5onyT6qJH z@kE)Y2A-j!qiWzeXzST4Hpj3q1%KN*5^awmF%8u$PjnSi#NqBhkjt=Sp4;QuifJq7 zkQ!eGp6Jts+e6hbu9tTCknY2y7Qy?p>o9j5VRaa`W+7f8nM_TMt7ffuMLOcyV_6J~ z=H)^HNcj_96vUuAN?wotMl(ljq5y;50rkbHy_sa_Z0b=6rbpQYW literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/manifest.mf b/PrjJava/OCA7/Chapter1/ScopeVariable/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeVariable/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/build-impl.xml new file mode 100644 index 0000000..a0d8b1c --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/genfiles.properties new file mode 100644 index 0000000..7701eb1 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=153b491a +build.xml.script.CRC32=f24bf9e2 +build.xml.stylesheet.CRC32=8064a381@1.79.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=153b491a +nbproject/build-impl.xml.script.CRC32=eb2bc515 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/config.properties b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/private.properties new file mode 100644 index 0000000..d4d3563 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=one +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/project.properties b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/project.properties new file mode 100644 index 0000000..d5122b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=ScopeVariable +application.vendor=andad +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}/ScopeVariable.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=scopevariable.ScopeVariable +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/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/project.xml b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/project.xml new file mode 100644 index 0000000..ea5c512 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeVariable/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ScopeVariable + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/ScopeVariable/src/scopevariable/ScopeVariable.java b/PrjJava/OCA7/Chapter1/ScopeVariable/src/scopevariable/ScopeVariable.java new file mode 100644 index 0000000..667bfe5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ScopeVariable/src/scopevariable/ScopeVariable.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package scopevariable; + +/** + * + * @author andad + */ +public class ScopeVariable { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 0; + try{ + i = Integer.parseInt( args[0] ); + } + catch(NumberFormatException e){ + System.out.println("Problem in " + i ); + } + } + +} diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/build.xml b/PrjJava/OCA7/Chapter1/ShortMaxValue/build.xml new file mode 100644 index 0000000..92fa7aa --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ShortMaxValue/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ShortMaxValue. + + + diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/ShortMaxValue/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/ShortMaxValue/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/build/classes/shortmaxvalue/ShortMaxValue.class b/PrjJava/OCA7/Chapter1/ShortMaxValue/build/classes/shortmaxvalue/ShortMaxValue.class new file mode 100644 index 0000000000000000000000000000000000000000..4733cb3f7e4c3505ad68c2d6e42b91fa654266bb GIT binary patch literal 635 zcmaJ;%TC)+5IsYjm<01oaVg;yTEJmZFS>-XiBzdlXpxMvVRaL%a3epE;~=`~KlD$^ zf=XTV1Nu>I&vlS!B!s0qb7$uG%$&Ku|NQ&~;2l~u*mz}Qy^01lYS_es&2a`IwEPTbRuxQi_TEpC_hrkzz_0FCxfG+smcbVsXtK`2rCls^m*EX zT9A&je)vHbQ%$vcYuFvkqDlq-bu#1F*mdw4Z*1&2*vEk}o}lr}#xU=FL~acS2I_MHg>ma#&NMO!CIh?ynEEyjJx$_&>20fp~^0{{R3 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/manifest.mf b/PrjJava/OCA7/Chapter1/ShortMaxValue/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ShortMaxValue/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/build-impl.xml new file mode 100644 index 0000000..3b808ce --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/genfiles.properties new file mode 100644 index 0000000..897fa0e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2f1d0126 +build.xml.script.CRC32=d946f2ea +build.xml.stylesheet.CRC32=8064a381@1.79.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=2f1d0126 +nbproject/build-impl.xml.script.CRC32=1a311946 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/project.properties b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/project.properties new file mode 100644 index 0000000..9bbe272 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ShortMaxValue/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}/ShortMaxValue.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.7 +javac.target=1.7 +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=shortmaxvalue.ShortMaxValue +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/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/project.xml b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/project.xml new file mode 100644 index 0000000..0f7e56d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ShortMaxValue/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ShortMaxValue + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/ShortMaxValue/src/shortmaxvalue/ShortMaxValue.java b/PrjJava/OCA7/Chapter1/ShortMaxValue/src/shortmaxvalue/ShortMaxValue.java new file mode 100644 index 0000000..4e251f3 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/ShortMaxValue/src/shortmaxvalue/ShortMaxValue.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package shortmaxvalue; + +/** + * + * @author andad + */ +public class ShortMaxValue { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + short s = Short.MAX_VALUE; + System.out.println(s); + char c = (char)s; + System.out.println(c); + //System.out.println( c == Short.MAX_VALUE); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Undefined1/build.xml b/PrjJava/OCA7/Chapter1/Undefined1/build.xml new file mode 100644 index 0000000..e16477a --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Undefined1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Undefined1. + + + diff --git a/PrjJava/OCA7/Chapter1/Undefined1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Undefined1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Undefined1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Undefined1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Undefined1/build/classes/undefined1/Undefined1.class b/PrjJava/OCA7/Chapter1/Undefined1/build/classes/undefined1/Undefined1.class new file mode 100644 index 0000000000000000000000000000000000000000..4d30ed886e92de20778a6444d79194a92d22967e GIT binary patch literal 629 zcmZuv%TB^j5Iq+vl~P4{h);YQaA9L~VWM%PvLb4NvT=0_1+RhDlw#t}rN5&KOZ=K@fQ}*Z^NVxch^dla-HLh@Djo=21YSTnWSe?3+j>0SBR%5Y)~d5&_s&1 zIY^)$qnE@u(nP}IN5n}B6jR5klT56V+S8s9UoU9x3qoskEi{I#MK%Vq93ck{d3sYY uP@p%B1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Undefined1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Undefined1/nbproject/genfiles.properties new file mode 100644 index 0000000..debef42 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Undefined1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4f21978c +build.xml.script.CRC32=889332bb +build.xml.stylesheet.CRC32=8064a381@1.79.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=4f21978c +nbproject/build-impl.xml.script.CRC32=ab34e56f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Undefined1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Undefined1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Undefined1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Undefined1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Undefined1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Undefined1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Undefined1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Undefined1/nbproject/project.properties new file mode 100644 index 0000000..e0c66b6 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Undefined1/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}/Undefined1.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.7 +javac.target=1.7 +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=undefined1.Undefined1 +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/PrjJava/OCA7/Chapter1/Undefined1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Undefined1/nbproject/project.xml new file mode 100644 index 0000000..de32833 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Undefined1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Undefined1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Undefined1/src/undefined1/Undefined1.java b/PrjJava/OCA7/Chapter1/Undefined1/src/undefined1/Undefined1.java new file mode 100644 index 0000000..ec6c21d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Undefined1/src/undefined1/Undefined1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package undefined1; + +/** + * + * @author andad + */ +public class Undefined1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + float f= 0; + float b = 0; + float f1 = -1; + float b1 = 0; + System.out.println(f1/b1); + System.out.println(f/b); + } + +} diff --git a/PrjJava/OCA7/Chapter1/VarArg1/build.xml b/PrjJava/OCA7/Chapter1/VarArg1/build.xml new file mode 100644 index 0000000..2a84a73 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VarArg1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project VarArg1. + + + diff --git a/PrjJava/OCA7/Chapter1/VarArg1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/VarArg1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/VarArg1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/VarArg1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/VarArg1/build/classes/vararg1/VarArg1.class b/PrjJava/OCA7/Chapter1/VarArg1/build/classes/vararg1/VarArg1.class new file mode 100644 index 0000000000000000000000000000000000000000..4ed8f16403244f38e462282605e6d6fc02528fd5 GIT binary patch literal 1029 zcmZuw%Wl(95Ir|>VkfvSr|Am<1qvj6g}wr`rBXmbEK;ZxR4HP0n^>)jV@Hlti6s(W zz$dU_4U1Hwq94Ey@GGne=cYlWNjEcdXYR~7bA0{t?E5Kz6>KFjjF|-P;l7RsNklPY zAgg>%nb{=fFt1}Fi3DbJEE>ogc&JWG29|ZK2*fuX&k45#qS@T8fcD(4*#bi)$FpCx z>U(zZM((-HSS7zI-CY?t>fB9g;epc>7%3geKnD9udDe^c8=TM#1IOFn3H++vZ2Ez~ zSoUq{P#(#=E4}@Exl`Uyn8H)z`$_^aPu6YDPhHU{Fi;L<_1(5?bjaw)kbPY`9Hx;A z+mdC!6;$mPj^b~2sVyoT6C<#6teRLuL14TW`&r9zYc@H@U)rwgPn&pz$0nX&UB`xr zO+4j-Jv$2w_l_ZxqF0j~Q>;-p&%^{KxmMA2JZAs9|9bDxu7;OV<@e3duJgP2Ef&(} z`Z#`mhq8uL&z5z{9G8uT?bQSpvi%C?`cmD+*l2|Q`6mz<&Guj9jZ|ly%ZLJcL*ctr zIeiu4E^hO64fAz^50Fm-7Hx{BJiVZg%^pL1We~wAZM>5-k!Eb3U%(i~dHSH#Vn#K8 z;;=aV+T8a1=~lF$rM1jw + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/VarArg1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/VarArg1/nbproject/genfiles.properties new file mode 100644 index 0000000..f98eb18 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VarArg1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5ce1c8e0 +build.xml.script.CRC32=99633a03 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5ce1c8e0 +nbproject/build-impl.xml.script.CRC32=3a6069b4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/VarArg1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/VarArg1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VarArg1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/VarArg1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/VarArg1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VarArg1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/VarArg1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/VarArg1/nbproject/project.properties new file mode 100644 index 0000000..91a52fa --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VarArg1/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}/VarArg1.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.7 +javac.target=1.7 +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=vararg1.VarArg1 +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/PrjJava/OCA7/Chapter1/VarArg1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/VarArg1/nbproject/project.xml new file mode 100644 index 0000000..352fcc6 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VarArg1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + VarArg1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/VarArg1/src/vararg1/VarArg1.java b/PrjJava/OCA7/Chapter1/VarArg1/src/vararg1/VarArg1.java new file mode 100644 index 0000000..4faf649 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VarArg1/src/vararg1/VarArg1.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package vararg1; + +/** + * + * @author andad + */ +public class VarArg1 { + + /** + * @param args the command line arguments + */ + + public void stringProcessor(String... names) + { for (String n : names) + { + System.out.println("Hello " + n); + } + } + + + public static void main(String[] args) { + // TODO code application logic here + new VarArg1().stringProcessor("Anda", "Adrian"); + new VarArg1().stringProcessor("Anda", "Adrian", "Alina"); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/build.xml b/PrjJava/OCA7/Chapter1/Variabileneintializate/build.xml new file mode 100644 index 0000000..c3783f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variabileneintializate/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Variabileneintializate. + + + diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Variabileneintializate/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Variabileneintializate/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/build/classes/variabileneintializate/Variabileneintializate.class b/PrjJava/OCA7/Chapter1/Variabileneintializate/build/classes/variabileneintializate/Variabileneintializate.class new file mode 100644 index 0000000000000000000000000000000000000000..42bdd3349918fb063544cab46a010fc3de523b4d GIT binary patch literal 572 zcmb7BO-sW-5Ph4ZUum?p)wVVY_Erm;g9i^SUIal1dZ<*22fK+&-IAsd(;oa+eo;{H z2l%7J$yO*xFS5++?wgtS9=l)P@1FpUuxlcXS`G%blT^>ZHfgVAu*1MO#W{t?knYG( z#wQGVbHB%6oKEfpL&24yxR{PT5nXXFAf)6@d>-_8B$N9uXvFvOfx&TS3YUQhg$!fK z1Nq2f;Vjz!!fjIaNovex$WUqCxFbH}PQb&V(~Tn;4%^BKkA_5EUQuQ+yOU|;i!Qc4jyww literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/manifest.mf b/PrjJava/OCA7/Chapter1/Variabileneintializate/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variabileneintializate/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/build-impl.xml new file mode 100644 index 0000000..a952f6b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/genfiles.properties new file mode 100644 index 0000000..8262b40 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0005ff90 +build.xml.script.CRC32=d9182aae +build.xml.stylesheet.CRC32=8064a381@1.79.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=0005ff90 +nbproject/build-impl.xml.script.CRC32=fc1725a4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/project.properties new file mode 100644 index 0000000..7057de5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variabileneintializate/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}/Variabileneintializate.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.7 +javac.target=1.7 +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=variabileneintializate.Variabileneintializate +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/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/project.xml new file mode 100644 index 0000000..740f841 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variabileneintializate/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Variabileneintializate + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Variabileneintializate/src/variabileneintializate/Variabileneintializate.java b/PrjJava/OCA7/Chapter1/Variabileneintializate/src/variabileneintializate/Variabileneintializate.java new file mode 100644 index 0000000..90a64e6 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variabileneintializate/src/variabileneintializate/Variabileneintializate.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package variabileneintializate; + +/** + * + * @author andad + */ +public class Variabileneintializate { + + /** + * @param args the command line arguments + */ + static int a; + int b; + + public Variabileneintializate() { + int c; + c = a; + a++; + b += c; + + } + + + + public static void main(String[] args) { + // TODO code application logic here + new Variabileneintializate(); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Variables/build.xml b/PrjJava/OCA7/Chapter1/Variables/build.xml new file mode 100644 index 0000000..032ff51 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Variables. + + + diff --git a/PrjJava/OCA7/Chapter1/Variables/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/Variables/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Variables/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/Variables/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/Variables/build/classes/variables/Variables.class b/PrjJava/OCA7/Chapter1/Variables/build/classes/variables/Variables.class new file mode 100644 index 0000000000000000000000000000000000000000..61838fdf0157ec9ea107dd2aecf5f3687a55c7d4 GIT binary patch literal 595 zcmZuvT}uK%6g{Kns%>e0^v*-SH4rE?MiYEseOC;QN!FLj6)2W( z8eKV(R!_Pes~Pyp?Hq^Aq~GE7+&^gnVRP50>-O-7r@BC@=?#6`IagZG>`$Wu&27R! z!oa$T4Qv|NGO>*vZFb53k2-VN-kuy&_-{60}K17QLXK+JA+33ezdtcnF%9=Ghz< z(9bYRVisv4`m#;3D19MwR?TdlJR?$iL6mO!1+ibUB6|b#EL|Y+B59V8=Wn3N*T)3N XV2)7~S$;Xv$Jr#0La4ULOa${^Jr8l> literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/Variables/manifest.mf b/PrjJava/OCA7/Chapter1/Variables/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Variables/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Variables/nbproject/build-impl.xml new file mode 100644 index 0000000..62b74dd --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Variables/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Variables/nbproject/genfiles.properties new file mode 100644 index 0000000..5561a4e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=597fb5b2 +build.xml.script.CRC32=1f97e945 +build.xml.stylesheet.CRC32=8064a381@1.79.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=597fb5b2 +nbproject/build-impl.xml.script.CRC32=5628d6dc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Variables/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Variables/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Variables/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Variables/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Variables/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Variables/nbproject/project.properties new file mode 100644 index 0000000..912e790 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables/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}/Variables.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.7 +javac.target=1.7 +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=variables.Variables +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/PrjJava/OCA7/Chapter1/Variables/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Variables/nbproject/project.xml new file mode 100644 index 0000000..20eab61 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Variables + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Variables/src/variables/Variables.java b/PrjJava/OCA7/Chapter1/Variables/src/variables/Variables.java new file mode 100644 index 0000000..85e45d8 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables/src/variables/Variables.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package variables; + +/** + * + * @author andad + */ +public class Variables { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + //float f = 1.3; + //char ch = "a"; + //boolean b = 0; + //int y = 2.3; + char c = 65; + int _34=34; + System.out.println(c); + System.out.println(_34); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Variables1/build.xml b/PrjJava/OCA7/Chapter1/Variables1/build.xml new file mode 100644 index 0000000..dbb1d29 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Variables1. + + + diff --git a/PrjJava/OCA7/Chapter1/Variables1/manifest.mf b/PrjJava/OCA7/Chapter1/Variables1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Variables1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Variables1/nbproject/build-impl.xml new file mode 100644 index 0000000..16bb7d3 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Variables1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Variables1/nbproject/genfiles.properties new file mode 100644 index 0000000..18c6704 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2c0453a4 +build.xml.script.CRC32=d95fea71 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2c0453a4 +nbproject/build-impl.xml.script.CRC32=b9bbb2ee +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Variables1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Variables1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Variables1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Variables1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Variables1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Variables1/nbproject/project.properties new file mode 100644 index 0000000..b1a241d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables1/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}/Variables1.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.7 +javac.target=1.7 +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=variables1.Variables1 +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/PrjJava/OCA7/Chapter1/Variables1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Variables1/nbproject/project.xml new file mode 100644 index 0000000..6d6a953 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Variables1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Variables1/src/variables1/Variables1.java b/PrjJava/OCA7/Chapter1/Variables1/src/variables1/Variables1.java new file mode 100644 index 0000000..572ee85 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables1/src/variables1/Variables1.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package variables1; + +/** + * + * @author anda + */ +public class Variables1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Variables1 v = new Variables1(); + v.go3(); + + + } + void go3() + { + for(int z= 0; z<5; z++) + { + boolean test = true; + if (z ==1 ) + { + test = true; + break; + } + } + //System.out.print(test); + } + +} diff --git a/PrjJava/OCA7/Chapter1/Variables2/build.xml b/PrjJava/OCA7/Chapter1/Variables2/build.xml new file mode 100644 index 0000000..c1ac35d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Variables2. + + + diff --git a/PrjJava/OCA7/Chapter1/Variables2/manifest.mf b/PrjJava/OCA7/Chapter1/Variables2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/Variables2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/Variables2/nbproject/build-impl.xml new file mode 100644 index 0000000..3e78de9 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/Variables2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/Variables2/nbproject/genfiles.properties new file mode 100644 index 0000000..b99c2c6 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3430c7ce +build.xml.script.CRC32=ab126908 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3430c7ce +nbproject/build-impl.xml.script.CRC32=a8ed306e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/Variables2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/Variables2/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/Variables2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/Variables2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/Variables2/nbproject/project.properties b/PrjJava/OCA7/Chapter1/Variables2/nbproject/project.properties new file mode 100644 index 0000000..9e99d2e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables2/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}/Variables2.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.7 +javac.target=1.7 +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=variables2.Variables2 +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/PrjJava/OCA7/Chapter1/Variables2/nbproject/project.xml b/PrjJava/OCA7/Chapter1/Variables2/nbproject/project.xml new file mode 100644 index 0000000..c3e3863 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Variables2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/Variables2/src/variables2/Variables2.java b/PrjJava/OCA7/Chapter1/Variables2/src/variables2/Variables2.java new file mode 100644 index 0000000..ad8c031 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/Variables2/src/variables2/Variables2.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package variables2; + +/** + * + * @author anda + */ +public class Variables2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i1 = 1_000; + int i2 = 10_000; + //int i3 = _10_000; // cannot find sysmbol + int i6 = 0X2_a; + } + +} diff --git a/PrjJava/OCA7/Chapter1/VariablesNames/build.xml b/PrjJava/OCA7/Chapter1/VariablesNames/build.xml new file mode 100644 index 0000000..911d44b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VariablesNames/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project VariablesNames. + + + diff --git a/PrjJava/OCA7/Chapter1/VariablesNames/build/classes/variablesnames/VariablesNames.class b/PrjJava/OCA7/Chapter1/VariablesNames/build/classes/variablesnames/VariablesNames.class new file mode 100644 index 0000000000000000000000000000000000000000..476d0a6eaab03ca211c5459919cc83ea4d5c4746 GIT binary patch literal 631 zcmaJ;O-sW-5PjREO&g=uR$ISn{ib>_7Y{;<7eNq06)L@WDBBq7mV8K(3jQn=6g>C? z{6pTv*|cg4;$?T{&6_uGcHci=-vAt9SBHkh9G0-0Lk254R#8#XA2+IoH4Rk;wZl7{ zft@jA8p0RxF@sXuYg6SUxONz3E#W)Of!B4yOWt(}DOiEc-8K(}%txRa--w8zYTb?S z$mgCDncuXiDbqU1dR+JnrP`I%=Xcz6x!*HeaVY#=JsHcx9tjoyC^KXmwmUMZw}L@v zJEuZgDo&0$kje&hOlep*uz^hjS>!Zq8Q8`SL*-wW4EbMc=iRFJzzoI4kbqg_Da&CF1wv%=5wT^n{)p5glxL{F3Odz*67kDpDmsdo dCp?RV9}8=V2F)y_pP)zuHs(RjDiM}K`3tYZeo+7b literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter1/VariablesNames/manifest.mf b/PrjJava/OCA7/Chapter1/VariablesNames/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VariablesNames/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/build-impl.xml new file mode 100644 index 0000000..e6ec804 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/genfiles.properties new file mode 100644 index 0000000..c6b5788 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1216ba7e +build.xml.script.CRC32=f83cc4f3 +build.xml.stylesheet.CRC32=8064a381@1.79.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=1216ba7e +nbproject/build-impl.xml.script.CRC32=bd3191c4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/project.properties b/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/project.properties new file mode 100644 index 0000000..ba224e9 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VariablesNames/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}/VariablesNames.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=variablesnames.VariablesNames +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/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/project.xml b/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/project.xml new file mode 100644 index 0000000..9cd155e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VariablesNames/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + VariablesNames + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/VariablesNames/src/variablesnames/VariablesNames.java b/PrjJava/OCA7/Chapter1/VariablesNames/src/variablesnames/VariablesNames.java new file mode 100644 index 0000000..b4f18e3 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/VariablesNames/src/variablesnames/VariablesNames.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package variablesnames; + +/** + * + * @author anda + */ +public class VariablesNames { + + /** + * @param args the command line arguments + */ + + static int _a_a = 100_100_100; + + public static void main(String[] args) { + // TODO code application logic here + System.out.println(_a_a); + } + +} diff --git a/PrjJava/OCA7/Chapter1/namevariables1/build.xml b/PrjJava/OCA7/Chapter1/namevariables1/build.xml new file mode 100644 index 0000000..e774853 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/namevariables1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project namevariables1. + + + diff --git a/PrjJava/OCA7/Chapter1/namevariables1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/namevariables1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/namevariables1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/namevariables1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/namevariables1/build/classes/namevariables1/Namevariables1.class b/PrjJava/OCA7/Chapter1/namevariables1/build/classes/namevariables1/Namevariables1.class new file mode 100644 index 0000000000000000000000000000000000000000..3de747a6c8ca893ef0833cdac4b5fbea68ddc831 GIT binary patch literal 955 zcmaJ=dvDTE6#rc)6iRVOd8lI!_t1jdx`&S`_)bW+kj(@`V*Kj@4R)a|DP?hf1wW1c z(IuMr0sK(La|_9WEZpS0PtWh1b9?{%{rMZf0bVJ{U?WDlIBDtiX>>D*P2899KtUWE zg6RoVgsckoP_Qk*wiWEakg+Rck0D;S9Ls;n5Y;Pf2I-yKGZ~hemSdib?T+bv;GF?^ zvQ4+k2W{?I!k#)M|Fbn>SZzAoHqWQA(VlTKW7epw%`Jzapnqzf@pEnrxYIXUzGpf8 zS_sR%J{8ig2{W)SL`OsyM8`y5i5d(_%N=`Nvtfz;v{}p@0i)t3vNHBn+Snt8;{VWZ z$JU@{dMX~{36(4h<*8tYf<06595oqr6)!*wT3I+GL*}adY3I!B`ZKQ9#mF~pTC+Q* zKz_0Y%QfE94t&~#$!*$GoDYYl(_<*M=;p%`vJ7oWeb-!|@HiT-18B4FaOh-+jSBpJzA^%CrR7|s!ohfWoF z($z@<3Mi75#4X$=kNEf-B#4)BkV)5bh`h;4htdzkej)zx67q6@L^c^fDF;Y}N>K`+ z21p0EaRpTfOK6B92blm<1hh|30=h~7;t}4#GRY`*QNjv=%h + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/namevariables1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/namevariables1/nbproject/genfiles.properties new file mode 100644 index 0000000..f6807ce --- /dev/null +++ b/PrjJava/OCA7/Chapter1/namevariables1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6f720de6 +build.xml.script.CRC32=4cbadb4b +build.xml.stylesheet.CRC32=8064a381@1.79.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=6f720de6 +nbproject/build-impl.xml.script.CRC32=ec7332a4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/namevariables1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/namevariables1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/namevariables1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/namevariables1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/namevariables1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter1/namevariables1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/namevariables1/nbproject/project.properties b/PrjJava/OCA7/Chapter1/namevariables1/nbproject/project.properties new file mode 100644 index 0000000..ab2caa2 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/namevariables1/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}/namevariables1.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.7 +javac.target=1.7 +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=namevariables1.Namevariables1 +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/PrjJava/OCA7/Chapter1/namevariables1/nbproject/project.xml b/PrjJava/OCA7/Chapter1/namevariables1/nbproject/project.xml new file mode 100644 index 0000000..04ffb7f --- /dev/null +++ b/PrjJava/OCA7/Chapter1/namevariables1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + namevariables1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/namevariables1/src/namevariables1/Namevariables1.java b/PrjJava/OCA7/Chapter1/namevariables1/src/namevariables1/Namevariables1.java new file mode 100644 index 0000000..50a8741 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/namevariables1/src/namevariables1/Namevariables1.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package namevariables1; + +/** + * + * @author andad + */ +public class Namevariables1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int x = 1_______________________________________________________3;//1    + long y = 1_3;//2   + float z = 3.234_567f; //3      + System.out.println(x + " " + y + " " + z); + } + +} diff --git a/PrjJava/OCA7/Chapter1/variabilelocale/build.xml b/PrjJava/OCA7/Chapter1/variabilelocale/build.xml new file mode 100644 index 0000000..18ed761 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/variabilelocale/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project variabilelocale. + + + diff --git a/PrjJava/OCA7/Chapter1/variabilelocale/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter1/variabilelocale/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/variabilelocale/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter1/variabilelocale/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter1/variabilelocale/build/classes/variabilelocale/Variabilelocale.class b/PrjJava/OCA7/Chapter1/variabilelocale/build/classes/variabilelocale/Variabilelocale.class new file mode 100644 index 0000000000000000000000000000000000000000..4250a5c5cb9ef3091871c4d51eeec01a4b69b5b0 GIT binary patch literal 727 zcmah`O>fgc6r8o)Y!X}=@5gtdGp?W`|N7& z>As0g_CUbx_C^BUqvWL)SPM<8pDbo$ojzCNh)6w5CMp`K)Y$wN=w+|WTwpsq&v6s! z$g*@$@P6k<6rL#)3$(i@;i)=TL8RhoFw9aDPml7(DxFfQ@sDeIn`f!DaG_Gb89!t= zc_FYm%+%!du{z7mN!*rb3si^6BAw{R^divw%hx?C=%b7Zd-VH##=&49amUA9bR~K| z_OLIo`Jed&YJaRf9iQq+wgeS(E<vLLrrjAoMH88?!VuhooOYvi)auz) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/genfiles.properties new file mode 100644 index 0000000..fbf7c7d --- /dev/null +++ b/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=302684d8 +build.xml.script.CRC32=c9c44c60 +build.xml.stylesheet.CRC32=8064a381@1.79.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=302684d8 +nbproject/build-impl.xml.script.CRC32=f88180bc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/private/private.properties b/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/private/private.xml b/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/project.properties b/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/project.properties new file mode 100644 index 0000000..516ee95 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/variabilelocale/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}/variabilelocale.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.7 +javac.target=1.7 +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=variabilelocale.Variabilelocale +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/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/project.xml b/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/project.xml new file mode 100644 index 0000000..35a5742 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/variabilelocale/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + variabilelocale + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter1/variabilelocale/src/variabilelocale/Variabilelocale.java b/PrjJava/OCA7/Chapter1/variabilelocale/src/variabilelocale/Variabilelocale.java new file mode 100644 index 0000000..ece4814 --- /dev/null +++ b/PrjJava/OCA7/Chapter1/variabilelocale/src/variabilelocale/Variabilelocale.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package variabilelocale; + +/** + * + * @author andad + */ +public class Variabilelocale { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String str = "111"; + boolean[] bA = new boolean[1]; + + if (bA[0]) { + str = "222"; + } + + System.out.println(str); + } + +} diff --git a/PrjJava/OCA7/Chapter2/CallByValue/build.xml b/PrjJava/OCA7/Chapter2/CallByValue/build.xml new file mode 100644 index 0000000..44fb08d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValue/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CallByValue. + + + diff --git a/PrjJava/OCA7/Chapter2/CallByValue/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CallByValue/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallByValue/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CallByValue/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallByValue/build/classes/callbyvalue/CallByValue.class b/PrjJava/OCA7/Chapter2/CallByValue/build/classes/callbyvalue/CallByValue.class new file mode 100644 index 0000000000000000000000000000000000000000..6ec788c8fbabd18304c49a97c52493cef5aa1f10 GIT binary patch literal 837 zcmZ`$VQ|*3SGCcG1zd*HnwS@Q%wAz3C0gD(JVG8*#dph<7GLOB17d;V3TeY@;b`-pK1y&qy;JzI7J8t+!c6=ghPSBNpTZW#h6HtrJ zybFP{!$wALO3FUC;h60Dy967<8wQErU@j;;YpPts2 z-aw#ay>-szrEK^d)M!PaH|RBEFEZ?LyTUbX0izX+!mj(wQ|9tBJKs}UCJZd{=&Y|~ zRTBjqm{`S{j@u^gz|v7OQHL$CG0UIP&luR7;$H=?!UIk+{xh}=HkAsDe)oLKUL z#%ubC=*pFSUS}cJnTG}Rp(6Rb49z;OwfVkTzQ6j?pj9j~nyec93;q}CR}i0>q_D)8 ziNRGYGdCv$tRT-St9%ksho8q{K=Bt+r&mb7sGoj?me0NW2Ce>ygo)TPX}|`LZt|we zGonS->+I!FL@5#dNOp?YqeRrP^Xt^Je_-Lnj`b@_{|hoUhkb{xI?lA5ny7LjP+{EW n%pK0!WmScRJ>11U9^xS0r8Jqx4L8Zp;(ol9x|cHR6mI+jz<{gg literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CallByValue/build/classes/callbyvalue/Wrapper.class b/PrjJava/OCA7/Chapter2/CallByValue/build/classes/callbyvalue/Wrapper.class new file mode 100644 index 0000000000000000000000000000000000000000..950c7176cabe0ecc8920481431387fb72aa9654d GIT binary patch literal 310 zcmZvXKTE?<6vfX?V`GzOW2?KPb})mJSR5<}LeN2p^Gkf_E6=3Fq|%S&AcBJ*zz-#! zS2{Y}f4_U~f&26O^$p+@`yqTJ1N5*LU=(01kT=G)pg%R0X)gr5qvKrQ&+11l7-pu@ zH{DC2n|oDQl2KNd%I2yuZr(t@eKxOxgN!R%td`1lI(=x=VxgOJL3mepO{uSpGe~CC zT&{AbIhm`aiVM6Y~=DKWg$QOLRBn%#II{J_dIGw>;@1n^k gWRip*@ZO0%gv=o;5Yu26(YkXs5y=j#kUHh?50x=H#sB~S literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CallByValue/manifest.mf b/PrjJava/OCA7/Chapter2/CallByValue/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValue/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/CallByValue/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/build-impl.xml new file mode 100644 index 0000000..5cfbc17 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CallByValue/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/genfiles.properties new file mode 100644 index 0000000..a90706e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9d7ef552 +build.xml.script.CRC32=35ff9560 +build.xml.stylesheet.CRC32=8064a381@1.79.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=9d7ef552 +nbproject/build-impl.xml.script.CRC32=9f894dc9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CallByValue/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CallByValue/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/CallByValue/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/project.properties new file mode 100644 index 0000000..4e2469b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValue/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}/CallByValue.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.7 +javac.target=1.7 +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=callbyvalue.CallByValue +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/PrjJava/OCA7/Chapter2/CallByValue/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/project.xml new file mode 100644 index 0000000..d81b9f4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValue/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CallByValue + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallByValue/src/callbyvalue/CallByValue.java b/PrjJava/OCA7/Chapter2/CallByValue/src/callbyvalue/CallByValue.java new file mode 100644 index 0000000..7067cc2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValue/src/callbyvalue/CallByValue.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package callbyvalue; + +/** + * + * @author andad + */ +class Wrapper { + + int w = 10; +} + +public class CallByValue { + + /** + * @param args the command line arguments + */ + static Wrapper changeWrapper(Wrapper w) { + w = new Wrapper(); + w.w += 9; + return w; + } + + public static void main(String[] args) { + // TODO code application logic here + Wrapper w = new Wrapper(); + w.w = 20; + changeWrapper(w); + w.w += 30; + System.out.println(w.w); + w = changeWrapper(w); + System.out.println(w.w); + } + +} diff --git a/PrjJava/OCA7/Chapter2/CallByValueRef/build.xml b/PrjJava/OCA7/Chapter2/CallByValueRef/build.xml new file mode 100644 index 0000000..2c63fbe --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValueRef/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CallByValueRef. + + + diff --git a/PrjJava/OCA7/Chapter2/CallByValueRef/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CallByValueRef/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallByValueRef/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CallByValueRef/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallByValueRef/build/classes/callbyvalueref/CallByValueRef.class b/PrjJava/OCA7/Chapter2/CallByValueRef/build/classes/callbyvalueref/CallByValueRef.class new file mode 100644 index 0000000000000000000000000000000000000000..cf9298b24b37961987b8c823801452109418b5f6 GIT binary patch literal 1157 zcmaKrYflqF6o%iSmu=S-u(cFa?ovxBR0TyXf`P;@)=R`-jGw0MP#3q`X1gV6;*U~4 z0MW!B;EyuC(_%{9hHSF4=RIehIdjh0-+zAm0+2sR)@Lr>;1jb6Xt6sJ1W#zq-Wrs?l z)Tl`3Kzg>e&&9C+$!-bEmgsWIonz^=m8T91do*`D2iknA4vPYjR#VB(0-0>-NFK|A zBi&kI-}h{{R$LBB%)^!S?x}%r`h3;$1vY}L-L~yil{WU>(X`w zCbAy`LB(#Bq*o&%Im9hs?l;nWg@;I6*u*1tU|-fP zOdxIGv4tln8rZV%6l_lV|1zBCs!`h(Zs4X4+!2_*v=aj3ebDRjk*ctc7o=WCI24tJ zTaoldWwWW=s=#Wn*q2uMBDB-;Rh`#sv`I|$Drz?hZ`ggGCn{Ozge1F(4ax#WQwKTh zMQT_A9M}Q9cO|w6^BnY1{vSXX9A}L4eT`OutKb^RokD!$#|RR9N4uhhB)_d*0InlN zE3O+tMQ`3@wB8)gB}PsVdXf7|qX#g#f+&NCJ|vDwOz91}Lqj3qAS6x5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/genfiles.properties new file mode 100644 index 0000000..fff943e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2482c66f +build.xml.script.CRC32=1a1b0050 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2482c66f +nbproject/build-impl.xml.script.CRC32=126fdaf5 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/project.properties new file mode 100644 index 0000000..057e970 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValueRef/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}/CallByValueRef.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.7 +javac.target=1.7 +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=callbyvalueref.CallByValueRef +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/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/project.xml new file mode 100644 index 0000000..332b4f7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValueRef/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CallByValueRef + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallByValueRef/src/callbyvalueref/CallByValueRef.java b/PrjJava/OCA7/Chapter2/CallByValueRef/src/callbyvalueref/CallByValueRef.java new file mode 100644 index 0000000..deb8788 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallByValueRef/src/callbyvalueref/CallByValueRef.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package callbyvalueref; + +/** + * + * @author andad + */ +public class CallByValueRef { + + /** + * @param args the command line arguments + */ + public static String speak(String name) { + name = name.concat("4"); + return name; + } + + public static StringBuilder test(StringBuilder names) { + names = names.append("4"); + return names; + } + + public static void main(String[] args) { + // TODO code application logic here + String name = "Sam"; + name = speak(name); + System.out.println(name); //Sam + StringBuilder names = new StringBuilder("Sam"); + test(names); + System.out.println(names); //Sam4 + } + +} diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/build.xml b/PrjJava/OCA7/Chapter2/CallConstructor/build.xml new file mode 100644 index 0000000..b5225ae --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CallConstructor. + + + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CallConstructor/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CallConstructor/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/build/classes/callconstructor/CallConstructor.class b/PrjJava/OCA7/Chapter2/CallConstructor/build/classes/callconstructor/CallConstructor.class new file mode 100644 index 0000000000000000000000000000000000000000..eb51c9cbb3f2634e710c9f5a9985e628f7e18ae3 GIT binary patch literal 436 zcmah_%SyvQ6g|_XiNM5bXRc`5QN~SnvJVz3~?k)V4C<}t^^l;fFC8E z83aoa9GJ_T$31grKEK{S0Gwmwqm2U(eGdZx_fnOrz7l8$lSIIYs>e*A7ppS6ZI+8n z-^oQmrXN?SEE1`e!9S!^KdF_#IHpvjRk^Bllh&0EBjV^6<RvsuVa39^z;DBEv$K zc{s1ND)X7WSn8ZngFj>ee_k~@&90T1WVjJNHF;e)7z&*HGYGpk9rt`A#|v&I3C3vg zZ_H|e96GEn(S^l;d)j$}c(uC6>XQdX^c`V~r!M_;VVeqAcPwKP&bW=X*6dp1c&$-j M7kk#&V{Kvo8xh($ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/build/classes/callconstructor/Uber.class b/PrjJava/OCA7/Chapter2/CallConstructor/build/classes/callconstructor/Uber.class new file mode 100644 index 0000000000000000000000000000000000000000..6ccbf0861fa3fe4160ad9d4219d52754c9e2bd06 GIT binary patch literal 388 zcmZusyH3L}6g^J!pdpYDN|+ef3IiD!saTMZDk2zw&NwClS0Rzo1i@zk0}=xtz(*mD z+l*NDy*~DN=>GhEeFHegt`8gALkuwTu;U>S5U)H_0e7M+-JS~A-h78daQYV>>j=qq%&R0X#$j9Jm6b|NI0Z!%It9J)~FpyihInIg`y98Do^ZS-g8h zv?jVBw%EhNPl$I|+;<?G2?A^oQOqBA84;4TGTvi1%W--; P&P8ZwpiE$k-9r2a-JL>% literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/manifest.mf b/PrjJava/OCA7/Chapter2/CallConstructor/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/build-impl.xml new file mode 100644 index 0000000..2c16a7e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/genfiles.properties new file mode 100644 index 0000000..937d352 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b712ebcf +build.xml.script.CRC32=bbcc1ec1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=b712ebcf +nbproject/build-impl.xml.script.CRC32=95fae16d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/project.properties new file mode 100644 index 0000000..d26dc47 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/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}/CallConstructor.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.7 +javac.target=1.7 +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=callconstructor.CallConstructor +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/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/project.xml new file mode 100644 index 0000000..6f1515f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CallConstructor + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/src/callconstructor/CallConstructor.java b/PrjJava/OCA7/Chapter2/CallConstructor/src/callconstructor/CallConstructor.java new file mode 100644 index 0000000..8f02b91 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/src/callconstructor/CallConstructor.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package callconstructor; + +/** + * + * @author anda + */ +public class CallConstructor extends Uber{ + + /** + * @param args the command line arguments + * how to call order of constructor + */ + + + public CallConstructor() { + super(2); + + } + + public static void main(String[] args) { + // TODO code application logic here + + } + +} diff --git a/PrjJava/OCA7/Chapter2/CallConstructor/src/callconstructor/Uber.java b/PrjJava/OCA7/Chapter2/CallConstructor/src/callconstructor/Uber.java new file mode 100644 index 0000000..de58ad5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor/src/callconstructor/Uber.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package callconstructor; + +/** + * + * @author anda + */ +public class Uber { + static int y = 2; + public Uber(int x) { + //this(); + y +=y; + + } + + +} diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/build.xml b/PrjJava/OCA7/Chapter2/CallConstructor1/build.xml new file mode 100644 index 0000000..8f7866f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CallConstructor1. + + + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/callconstructor1/Building.class b/PrjJava/OCA7/Chapter2/CallConstructor1/build/classes/callconstructor1/Building.class new file mode 100644 index 0000000000000000000000000000000000000000..f541f4d81a3bdb4d4d4bfb5864ca3f4d12e9e56c GIT binary patch literal 722 zcmZ{h-%8^^6vn^Prl!`^YHR(wy4Bs)R#%I7sVFFTRosOx!g@DJ2X`b*N;(mItlf(W zEBF9Dlz1kMh*lGF4)dKeznSmk;qm`HfIVy%FoF4TEMPH@r2;--*~Ur%In3wr+2ooD zt2Wkbd?Ab-s6gpMLbl#GCs-$8M-oac709!=>&obtaD7(Ft%r;DBAey;2YKn8MkI*!$BPt!rWU_vQtLv&JAh~8rXEOh3|xg4{uDEdZGMq zucW76N$s1ymR%->F&C;sZz^p5WMi7`NzrA~m4xwHCgggiiH9zFJsETe+waY0WL&8W z#^!Z6oFHMQ-WX}z$12SKH%|s+CdF}*S4YVjC~n?@{vlJ&4q*LF+DaTJkxin75^tK~ z7o3S>5z{DhHn2(xyWs8&Ybz=24!PgA7%STYKg9F^Zj@*RkSqh#_M}39tdQfJH8XW5J;J=6M=Lm=-UE?uH)NpCf=DHzLRGzJ*95Y zlkSNOo!DMD)6viw3+!~c=rRW6Ab_f(N<@`F1 zY>&x;NksYc`klaf%f>})pDjH$wVZ7D+bys*ii3E#ax}92zQF#f-Y>OuQ6RBe6wFUZ zV8d)J1-8-T1v1+4GRAihH>rKU)KqeDT7W1it)V49YJG9PeG zHedr4S~0A;fPG-JLfhEg3VczrT>ICxAM1{$CezbHv|DA)FR>ODz literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/manifest.mf b/PrjJava/OCA7/Chapter2/CallConstructor1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/build-impl.xml new file mode 100644 index 0000000..d292e9e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/genfiles.properties new file mode 100644 index 0000000..b595fcb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=025e337b +build.xml.script.CRC32=e365a81b +build.xml.stylesheet.CRC32=8064a381@1.79.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=025e337b +nbproject/build-impl.xml.script.CRC32=bb14d374 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/project.properties new file mode 100644 index 0000000..f6d4177 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/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}/CallConstructor1.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.7 +javac.target=1.7 +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=callconstructor1.CallConstructor1 +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/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/project.xml new file mode 100644 index 0000000..973d140 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CallConstructor1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/src/callconstructor1/Building.java b/PrjJava/OCA7/Chapter2/CallConstructor1/src/callconstructor1/Building.java new file mode 100644 index 0000000..49c4ac1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/src/callconstructor1/Building.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package callconstructor1; + +/** + * + * @author andad + */ +public class Building { + + public Building() { + System.out.print("b "); + } + public Building(String name) { + System.out.print("bn " + name); + } + +} diff --git a/PrjJava/OCA7/Chapter2/CallConstructor1/src/callconstructor1/CallConstructor1.java b/PrjJava/OCA7/Chapter2/CallConstructor1/src/callconstructor1/CallConstructor1.java new file mode 100644 index 0000000..7c1fd5c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor1/src/callconstructor1/CallConstructor1.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package callconstructor1; + +/** + * + * @author andad + */ +public class CallConstructor1 extends Building{ + + + + + public CallConstructor1() { + System.out.print("h "); + } + + /** + * @param args the command line arguments + */ + public CallConstructor1(String name) { + this(); + System.out.print("hn " + name); + } + + public static void main(String[] args) { + // TODO code application logic here + new CallConstructor1("x "); + } + +} diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/build.xml b/PrjJava/OCA7/Chapter2/CallConstructor2/build.xml new file mode 100644 index 0000000..97dbdbf --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CallConstructor2. + + + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/callconstructor2/CallConstructor2.class b/PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/callconstructor2/CallConstructor2.class new file mode 100644 index 0000000000000000000000000000000000000000..782c3e3c4895bc4358efbca267be3865cdb0131c GIT binary patch literal 615 zcmah`O;5r=5Pi#6X$AQb6i@-Vpa+}i!2?DQO*|1}0>KzhOWEL>(wcTL@n`8l5>5O8 z{wU)VNkk=aH#^O|nZA8*_Wk4K4ZtCq1~e3Pl(3$}hJi9F8mb23C~DYbNE}O7suPB2 zYq!r3v%H~T$aJJD&L`u6@OymV5R&hBHh22mmtj5!W9mi*49yOe9NTjP>7f5vE MkSCmMQH)^i6MsXB5&!@I literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/callconstructor2/TC.class b/PrjJava/OCA7/Chapter2/CallConstructor2/build/classes/callconstructor2/TC.class new file mode 100644 index 0000000000000000000000000000000000000000..045f4451057af06d00abba811148c05c24cc8c52 GIT binary patch literal 486 zcmZuuO-}+b5Pbz?aYaE8zfO%OG*J?bCy0sJXkxPQAV}hISt`^lEh$~ppXG@}6TSPR zj8j6?gFSTSz0P|xnSOq~z5_VHj*mRnJyZ&)`p96zL(Rh`L%t=Iv}X+2`hJ%o7wEoV zD1}mq>vYr;rW5rNVk)7Iqof-d>F|Qg*`b^;)IxenVy!0Dq_NfJxX}rk424#lEZqIJ zPE9N>rSqxme_gQ)XJoBZcOwX%88|Q z)UVuDYW47UsKcn9VF4D4lI;M46k50u(N@oyuuT6f-D)0~HNzDF6Tf literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/manifest.mf b/PrjJava/OCA7/Chapter2/CallConstructor2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/build-impl.xml new file mode 100644 index 0000000..2722707 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/genfiles.properties new file mode 100644 index 0000000..1527a5b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1a6aa711 +build.xml.script.CRC32=c0c3445a +build.xml.stylesheet.CRC32=8064a381@1.79.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=1a6aa711 +nbproject/build-impl.xml.script.CRC32=5c9cf06b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/project.properties new file mode 100644 index 0000000..5d518aa --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor2/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}/CallConstructor2.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.7 +javac.target=1.7 +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=callconstructor2.CallConstructor2 +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/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/project.xml new file mode 100644 index 0000000..f90c663 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CallConstructor2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallConstructor2/src/callconstructor2/CallConstructor2.java b/PrjJava/OCA7/Chapter2/CallConstructor2/src/callconstructor2/CallConstructor2.java new file mode 100644 index 0000000..9344a1a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallConstructor2/src/callconstructor2/CallConstructor2.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package callconstructor2; + +/** + * + * @author andad + */ +private class TC extends java.util.ArrayList { + + public TC() { + super(100); + System.out.println("TC created"); + } +} + +public class CallConstructor2 extends TC { + + /** + * @param args the command line arguments + */ + public CallConstructor2() { + System.out.println("TestClass created"); + } + + public static void main(String[] args) { + // TODO code application logic here + new CallConstructor2(); + } + +} diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/build.xml b/PrjJava/OCA7/Chapter2/CallPolimorfic/build.xml new file mode 100644 index 0000000..7cd96a1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallPolimorfic/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CallPolimorfic. + + + diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CallPolimorfic/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CallPolimorfic/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/build/classes/callpolimorfic/CallPolimorfic.class b/PrjJava/OCA7/Chapter2/CallPolimorfic/build/classes/callpolimorfic/CallPolimorfic.class new file mode 100644 index 0000000000000000000000000000000000000000..ab721554a01274fa5343add9418eab7621b1d54b GIT binary patch literal 1211 zcmaKqYfsZq7{~u-7rNCVu(_e!hKjI(ZYti#MMI()X@CSnV)m+=WtMd9QaYmVeB%ew z7sF`c2k=7~|EH_0B%5h^dY;?wJkS61_n#lX0IcJsig6UvC}A~)H5GSpFNJanl@#u) zcz}lr)>WiYl*=QzJXY{TU~I#3EPqQNUMw96BzD~Qroe=5Ip$us-7vkkM#H8jqq|MR zJ~BK@+MzSyf3Qvk3OYk}$F;4t>m6Io$_~wg3$rSa?09a2lw`49lgEgU0osx!mxn)}C6?^-D$c$iVe zP5yf0{AGbL2q_rXNm>5;gZ5H}ma#s76THUu|A-0Vo) zT!@>G;4X$$hTs;6D~!Y~5R+znF~qeI=K~a!??~xCk$!g$b*+ah%4TTHed$3PD4Iu- s>9@Hq@#gOEpk*vzB{*=gkK!%gVonk>%#(6tc;`#Zjd8!sNDM1~0WO5pYybcN literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/manifest.mf b/PrjJava/OCA7/Chapter2/CallPolimorfic/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallPolimorfic/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/build-impl.xml new file mode 100644 index 0000000..16df343 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/genfiles.properties new file mode 100644 index 0000000..105abea --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=30b09ce7 +build.xml.script.CRC32=2c7c9e9e +build.xml.stylesheet.CRC32=8064a381@1.79.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=30b09ce7 +nbproject/build-impl.xml.script.CRC32=411d4dbb +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/project.properties new file mode 100644 index 0000000..4e64680 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallPolimorfic/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}/CallPolimorfic.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.7 +javac.target=1.7 +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=callpolimorfic.CallPolimorfic +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/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/project.xml new file mode 100644 index 0000000..92ff270 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallPolimorfic/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CallPolimorfic + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallPolimorfic/src/callpolimorfic/CallPolimorfic.java b/PrjJava/OCA7/Chapter2/CallPolimorfic/src/callpolimorfic/CallPolimorfic.java new file mode 100644 index 0000000..1058e4e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallPolimorfic/src/callpolimorfic/CallPolimorfic.java @@ -0,0 +1,41 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package callpolimorfic; + +/** + * + * @author andad + */ +public class CallPolimorfic { + + /** + * @param args the command line arguments + */ + void probe(int... x) { + System.out.println("In ..."); + } //1 + + void probe(Integer x) { + System.out.println("In Integer"); + } //2 + + void probe(long x) { + System.out.println("In long"); + } //3 + + void probe(Long x) { + System.out.println("In LONG"); + } + + public static void main(String[] args) { + // TODO code application logic here + Integer a = 4; + new CallPolimorfic().probe(a); //5 + int b = 4; + new CallPolimorfic().probe(b); //6 + } + +} diff --git a/PrjJava/OCA7/Chapter2/CallValuePrimitive/build.xml b/PrjJava/OCA7/Chapter2/CallValuePrimitive/build.xml new file mode 100644 index 0000000..0a14a18 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallValuePrimitive/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CallValuePrimitive. + + + diff --git a/PrjJava/OCA7/Chapter2/CallValuePrimitive/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CallValuePrimitive/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallValuePrimitive/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CallValuePrimitive/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CallValuePrimitive/build/classes/callvalueprimitive/CallValuePrimitive.class b/PrjJava/OCA7/Chapter2/CallValuePrimitive/build/classes/callvalueprimitive/CallValuePrimitive.class new file mode 100644 index 0000000000000000000000000000000000000000..0f9c582df31a1c69a59be5313dfc4d17050c02ce GIT binary patch literal 748 zcma)3(M}UV6g|@}-R`==(ozsm6cs5xun9hv_#lZ%lSWNy`r^}cos=QFvu3+(!e@br z5+3*fKgw`sskTNRe3`lT+_~qTbLYp;>l*;CaNxtmwuc%X`aB+a*ui5TPq6Fasf%X< z?l?aoCnkELWPlZpD0>r@wds-hD@0}Fll1$6}K@u@T;)#Y%f-L(USWSB~A1lHT1dS`Mf zql9mwevxZ4>Xf2nKH`|>Kgy&$j+2=Mzn@L=SiRL&@W$T)4lR2CANK;(;RRSl!^QIe zdwAhuKR_D|fxZ7SBM{EDz8{{cn4T7({`t62Dc71!SZLiD(^ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/genfiles.properties new file mode 100644 index 0000000..58716b5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=273f5447 +build.xml.script.CRC32=8eb5f778 +build.xml.stylesheet.CRC32=8064a381@1.79.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=273f5447 +nbproject/build-impl.xml.script.CRC32=f60b2fe7 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/project.properties new file mode 100644 index 0000000..6697cd1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallValuePrimitive/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}/CallValuePrimitive.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.7 +javac.target=1.7 +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=callvalueprimitive.CallValuePrimitive +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/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/project.xml new file mode 100644 index 0000000..ff895e3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallValuePrimitive/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CallValuePrimitive + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CallValuePrimitive/src/callvalueprimitive/CallValuePrimitive.java b/PrjJava/OCA7/Chapter2/CallValuePrimitive/src/callvalueprimitive/CallValuePrimitive.java new file mode 100644 index 0000000..14ed6e6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CallValuePrimitive/src/callvalueprimitive/CallValuePrimitive.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package callvalueprimitive; + +/** + * + * @author andad + */ +public class CallValuePrimitive { + + /** + * @param args the command line arguments + */ + static int someInt = 10; + + public static void changeIt(int a) { + a = 20; + } + + public static void main(String[] args) { + // TODO code application logic here + changeIt(someInt); + System.out.println(someInt); + } + +} diff --git a/PrjJava/OCA7/Chapter2/CastReference/build.xml b/PrjJava/OCA7/Chapter2/CastReference/build.xml new file mode 100644 index 0000000..54d1bdb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastReference/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CastReference. + + + diff --git a/PrjJava/OCA7/Chapter2/CastReference/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CastReference/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CastReference/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CastReference/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CastReference/build/classes/castreference/CastReference.class b/PrjJava/OCA7/Chapter2/CastReference/build/classes/castreference/CastReference.class new file mode 100644 index 0000000000000000000000000000000000000000..c8968e508716dc68953a54612c9543bb5ee348e9 GIT binary patch literal 915 zcmZuwTTc@~7(KIH7+Mx6AQY*HT-3H)3Mk&FzK~!@3K&b8s87=})P;7p*=|YvH@^9- z58x#+#z%jYcxJ)SCTy}Z^PTTg@NnUHX>3L z)L3Tp8n=MeS``r6d>JBKhIJI#_Cj6L0XYUrp{gG5sAklfL@F9^RbovbQS#eCRd2b` zAYI)pn}!?=U{D~{J;h7kKPWY|I_B`*o_*ib4kaIySat9a>k^L~JjN3TPw|YD4mMB_ zNOz}o5ep=*wAia0>1rr2d<9)j#&ILe_4BW&S4h>gYEYGSQ$U`mdRy-u8fmw)*UHjC zQu@#eHB)1Ln^a>L;oWtqV;@P%rfhU0D7$PL-a5aZoq3xrV+Q@aXy&m%*)hmabZeWavN&bx(Z!55#j2C{udUJ-@&f+iF-_Rq# zgLR7DWc(}S?ici>mrfD?2x)(U9XmzBki}rgCP@cO)4IbhXGk!MH0Jn;=A#C37bF-* zD#}^I1a7j0e*PPiY|4sq(zwM6Q;b-Eb&eI-61RoKv}9TCGv{=5Viqwo{48+`bN>LI C8@!tU literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CastReference/build/classes/castreference/GoodSpeak.class b/PrjJava/OCA7/Chapter2/CastReference/build/classes/castreference/GoodSpeak.class new file mode 100644 index 0000000000000000000000000000000000000000..b2e846410326b7530759edf33d10e5c5e95ada28 GIT binary patch literal 540 zcmZ`$%TB^T6g^WOrL_uzh=>o|feX8E;R55vL^q8g7TFJF#L?0rr8V)hbfJk0KfsSN z-WEkkG}C$9d(J&~PUrpO^$oxw_DtkaHc-J@0aX+0sOi|yQP;7_kUy4zj7}Ibt#+Rw zd#Z+lq3Fm!T*Tvn2zz|sQ>N@FkNbTd$|U|uW}_Q9WvDwIpGKj$7NH0{VV^5CbSHw} zbr`gG!eF{84n1)uQ>9ZPUw)GhZuvd8P=KMMVPOl~427$1GyQbzSlC6Aq4rM)hQ=bY zAWqj_M0+YAFQufX?ekz{yARVyjLE%42KAOnUuO}kCgGQ4~Qe@J}rk&BA+kXLjOyMP36Ea}YNY<2qWvoy{Pckn) gBC!NBo}iU8&&d7=m}#FPbt?T5G3FvAD$}s~2|o~WasU7T literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CastReference/build/classes/castreference/Tone.class b/PrjJava/OCA7/Chapter2/CastReference/build/classes/castreference/Tone.class new file mode 100644 index 0000000000000000000000000000000000000000..b3e5ef80e02a6ba1b433fbef63397b17bf0be69d GIT binary patch literal 131 zcmX^0Z`VEs1_omWPId-%b_Nbc2By*iMh0dL%`ip=uHgLAqU2P!%$!t41|jFf;*y}$ zwA7;1yyR59ti-ZJpkOjkum~ooACjL3R4D+G)6YrFOV{^L%1TWxVPjwbnhUfBNV5P9 PXJ7%b7+8TM69XFny9phJ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CastReference/manifest.mf b/PrjJava/OCA7/Chapter2/CastReference/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastReference/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/CastReference/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/CastReference/nbproject/build-impl.xml new file mode 100644 index 0000000..817ca7e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastReference/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CastReference/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CastReference/nbproject/genfiles.properties new file mode 100644 index 0000000..63767d9 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastReference/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=75c1fcca +build.xml.script.CRC32=373e8fd5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=75c1fcca +nbproject/build-impl.xml.script.CRC32=75375c3d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CastReference/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CastReference/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastReference/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CastReference/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CastReference/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastReference/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/CastReference/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CastReference/nbproject/project.properties new file mode 100644 index 0000000..980a509 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastReference/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}/CastReference.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.7 +javac.target=1.7 +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=castreference.CastReference +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/PrjJava/OCA7/Chapter2/CastReference/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CastReference/nbproject/project.xml new file mode 100644 index 0000000..e589c08 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastReference/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CastReference + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CastReference/src/castreference/CastReference.java b/PrjJava/OCA7/Chapter2/CastReference/src/castreference/CastReference.java new file mode 100644 index 0000000..6bf158e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastReference/src/castreference/CastReference.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package castreference; + +/** + * + * @author andad + */ +class GoodSpeak extends CastReference implements Tone { + + public void up() { + System.out.println("UP UP UP"); + } +} + +interface Tone { + + void up(); +} + +public class CastReference { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int s1 = 9; + CastReference s = new GoodSpeak(); + ((Tone) s).up(); + ((GoodSpeak) s).up(); + Integer i = 9; System.out.println( s1 == i ); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Casting2/build.xml b/PrjJava/OCA7/Chapter2/Casting2/build.xml new file mode 100644 index 0000000..25d016b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Casting2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Casting2. + + + diff --git a/PrjJava/OCA7/Chapter2/Casting2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Casting2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Casting2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Casting2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Casting2/build/classes/casting2/A.class b/PrjJava/OCA7/Chapter2/Casting2/build/classes/casting2/A.class new file mode 100644 index 0000000000000000000000000000000000000000..d9e763d89e532009bf6fafc3bb61da3ec224fa54 GIT binary patch literal 253 zcmYLDO%K6P5S*o2>iLLY;E01J9En6EP7Md*{#q~fnrf3O|I10@;0O3oVjmKl?C#9$ zOtR0{{Q+Q%wu>?v4w?>H1beDeUCapOUVlfh7TI1ATE0%z>U<1TzLi13O2^Mane1e) z4gZN&anL7%@I!ejbQ+Dk`GnwZvU47)r8c?7;&&Rx@*)K+RM_$N6WZqBB{Ge?br7qt rKo=!`(G+oWg161c<8746;0C%fD8b=re?);QWAQbh2A3J3{&9&nbTu#L literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Casting2/build/classes/casting2/B.class b/PrjJava/OCA7/Chapter2/Casting2/build/classes/casting2/B.class new file mode 100644 index 0000000000000000000000000000000000000000..e3d2c7c731d3aa5c74e29855b025cf9639987290 GIT binary patch literal 247 zcmYk0%MQUn6o&spFVs-+1eREkup|4kJ|;M;I7@E9zXy~63Y?^iP->>Sn=Z_QrcP# zU=3-BM-uA-zMS2*ogD#BB3TtM3!S%?z<9}STYLRh&Fa2ZwI(BxQm3w(Rn@h%KM0!6 zd%GtvS*oj^W49X{>B7LslB%Wbw!n1apmeB?Rl2F#jdaE7GB4{&scu6TUjqvWBBIE@ z5(piP_;*QcDE2LCSAjeMVe4K-V#T&&HLNa?P{mR84`p@aHZBpBh)HZnYzhP_oqo4& zy|ne1q2T~)nkI-F2r}bhyxq%Ao(w@e#uJIBL2O|=h-b) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Casting2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Casting2/nbproject/genfiles.properties new file mode 100644 index 0000000..894221f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Casting2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ea6b9acc +build.xml.script.CRC32=2dbdead0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=ea6b9acc +nbproject/build-impl.xml.script.CRC32=298d5153 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Casting2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Casting2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Casting2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Casting2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Casting2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Casting2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Casting2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Casting2/nbproject/project.properties new file mode 100644 index 0000000..1e942aa --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Casting2/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}/Casting2.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.7 +javac.target=1.7 +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=casting2.Casting2 +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/PrjJava/OCA7/Chapter2/Casting2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Casting2/nbproject/project.xml new file mode 100644 index 0000000..ca8949c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Casting2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Casting2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Casting2/src/casting2/Casting2.java b/PrjJava/OCA7/Chapter2/Casting2/src/casting2/Casting2.java new file mode 100644 index 0000000..ba06c3c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Casting2/src/casting2/Casting2.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package casting2; + +/** + * + * @author andad + */ +class A { +} + +class B extends A { +} + +public class Casting2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int s = 9; + A[] a, a1; + B[] b; + a = new A[10]; + a1 = a; + b = new B[20]; + a = b;// 1     + b = (B[]) a;// 2    + b = (B[]) a1; // 3 + Integer i = 9; System.out.println( s == i ); + + } + +} diff --git a/PrjJava/OCA7/Chapter2/CastingShort/build.xml b/PrjJava/OCA7/Chapter2/CastingShort/build.xml new file mode 100644 index 0000000..8905ab4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingShort/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CastingShort. + + + diff --git a/PrjJava/OCA7/Chapter2/CastingShort/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CastingShort/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CastingShort/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CastingShort/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CastingShort/build/classes/castingshort/CastingShort.class b/PrjJava/OCA7/Chapter2/CastingShort/build/classes/castingshort/CastingShort.class new file mode 100644 index 0000000000000000000000000000000000000000..9b397619a7952ad52ed8558d105ae2700f8fd0d9 GIT binary patch literal 637 zcmZ`%%TC)+5Iqx{n51qo2?0U~kG7!D1r}=64HT)0)K%10a+OV2H^vGVC3a;yNQe*U zowyT&yvw{`0s#rza!J310LHR(( zIzJRxot?hG?j}c(V6La*=<8%Wh|(WwFd|axC7~MiRjN(=2-^9v&IGMqsIpwg!|XUo zbH6(c0u$_$a;$VLSnT}lov2ggk5oMLgFI#Zej%ySAxY~0NDG7+2?V8Vk0zv%F5gg4 z4U$P3Mqjj + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CastingShort/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CastingShort/nbproject/genfiles.properties new file mode 100644 index 0000000..c1eca0e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingShort/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3e33362a +build.xml.script.CRC32=c6f59d9b +build.xml.stylesheet.CRC32=8064a381@1.79.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=3e33362a +nbproject/build-impl.xml.script.CRC32=0a50ebae +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CastingShort/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CastingShort/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingShort/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CastingShort/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CastingShort/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingShort/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CastingShort/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CastingShort/nbproject/project.properties new file mode 100644 index 0000000..ccdb440 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingShort/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}/CastingShort.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.7 +javac.target=1.7 +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=castingshort.CastingShort +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/PrjJava/OCA7/Chapter2/CastingShort/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CastingShort/nbproject/project.xml new file mode 100644 index 0000000..f7d62d3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingShort/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CastingShort + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CastingShort/src/castingshort/CastingShort.java b/PrjJava/OCA7/Chapter2/CastingShort/src/castingshort/CastingShort.java new file mode 100644 index 0000000..4829138 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingShort/src/castingshort/CastingShort.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package castingshort; + +/** + * + * @author andad + */ +public class CastingShort { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + short s = 123; + short s1 = 65; + char c1 = (char)s1; + char c = (char)s; // error: would require cast + //s = c; + System.out.println(c1); + System.out.println(c); + } + +} diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/build.xml b/PrjJava/OCA7/Chapter2/CastingSubclasa/build.xml new file mode 100644 index 0000000..a1b3d4a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingSubclasa/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CastingSubclasa. + + + diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/B.class b/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/B.class new file mode 100644 index 0000000000000000000000000000000000000000..828d7461965f0f4e7255a16152b6f9159a6cae2a GIT binary patch literal 274 zcmZWjyKcfj5S+!v4#wdXK7bNZ;38!r3XrI*P=MU8j}sg+w&X|tD^;Wv`G9;>#2(OP zrQMmGosstU@B0V93kCrkJo@PQ=o7p*lbd=$aHg|_;I4|jCiG*I>-XlI>T<_vCdw!- z6lV#S#_o5~t&gT6JjIHu+T@3-Nma%bN6S}2uq~QW>9w)(@#^N--W~H3e{cvFZNl(h znlP~UDC7JPZPJrgH701u-?m6vf`Xo~NYEaqFT#UJ zWHFae$<8t*3|wENnT$?p?)jleg}t6F2*xhX6F=ChA!P@*A(1gJgq4jf_Uo9^>NB{r; literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/B2.class b/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/B2.class new file mode 100644 index 0000000000000000000000000000000000000000..fec5533286e0f9f1a0a74650131df7b2d3652035 GIT binary patch literal 277 zcmZXO%?`m(5QWdsAFBQu4`7J}2}@$3iB)4my1%W4E7d0b@m^LE3lHF-#8kU;leu%| z%Q=&If1WP@3-k=s(bmz?(Isdr8Odx-sE@`jL9ydwKL`3zCEILME0I`yzBj zB8$0#N_LhhVc_^8&17^+bI%V&DrTGcl3?uPJn@6AEb;@pwCpR(^dfG;gaVa!|Hlda tKZqe}e0uSSi=*5%Rx|DeQ6~@3oka~g|Jn~)Xs|X*1DY^+BD8)k^9wGOI!yoo literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/CastingSubclasa.class b/PrjJava/OCA7/Chapter2/CastingSubclasa/build/classes/castingsubclasa/CastingSubclasa.class new file mode 100644 index 0000000000000000000000000000000000000000..aa7f2cf7ff43ccba9c9577494cbe84534bfe3375 GIT binary patch literal 663 zcmZuuO-sW-6r4@dw8m<+t@XRLicl2{tw+T}3!b7LDuQ_0#84wKg(U6&@+4Rg&;BTJ zk`{!-!0zmuc{}gD&G*m8Cx9~?=vcsR0Sz5Wj7=SCjC(q?7+VGG3uqUv??#sbx%Sb$ zfZ88DIRa(V^_`pXtK|fD((=eu%#kgg`AKMNXvQNq=YzqJX!~lfp6>(yIE8EFdf@nIb*fDpp6JmX$h**8NxO zQqu>cabP=FZaiBp)$VEBVF@}G1y<9e_4pPUj!k4qR&S;=QUnpqXn#@LMFaEp_xi-OrboyBWF&b z67$znXvD(J$rse?Ki4|)%-&%uyYy;c15KU|lPbqECsa{mP7!siad8x?>&#TRG;CrE LIkMZ#QLyt1ahZ^S literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/manifest.mf b/PrjJava/OCA7/Chapter2/CastingSubclasa/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingSubclasa/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/build-impl.xml new file mode 100644 index 0000000..400baaf --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/genfiles.properties new file mode 100644 index 0000000..bb42867 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5194aee8 +build.xml.script.CRC32=4399eb30 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5194aee8 +nbproject/build-impl.xml.script.CRC32=94fb580c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/project.properties b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/project.properties new file mode 100644 index 0000000..25a1919 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingSubclasa/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}/CastingSubclasa.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.7 +javac.target=1.7 +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=castingsubclasa.CastingSubclasa +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/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/project.xml b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/project.xml new file mode 100644 index 0000000..dca92f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingSubclasa/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CastingSubclasa + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/CastingSubclasa/src/castingsubclasa/CastingSubclasa.java b/PrjJava/OCA7/Chapter2/CastingSubclasa/src/castingsubclasa/CastingSubclasa.java new file mode 100644 index 0000000..c581ef0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/CastingSubclasa/src/castingsubclasa/CastingSubclasa.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package castingsubclasa; + +/** + * + * @author andad + */ +class B { +} + +class B1 extends B { +} + +class B2 extends B { +} + +public class CastingSubclasa { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + B b = new B(); + B1 b1 = new B1(); + B2 b2 = new B2(); + b1 = (B1) b; + //b2 = (B2) b1; compile error + //b1 = (B) b1; compiler error + //b2 = (B2) b1; compier error + //b2 = b; + //b = b1; + } + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/build.xml b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/build.xml new file mode 100644 index 0000000..bc51a7c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ChainingConstructor. + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/manifest.mf b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/build-impl.xml new file mode 100644 index 0000000..0e84479 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/genfiles.properties new file mode 100644 index 0000000..f0522c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e1d7cfe6 +build.xml.script.CRC32=e29ffb0c +build.xml.stylesheet.CRC32=8064a381@1.79.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=e1d7cfe6 +nbproject/build-impl.xml.script.CRC32=2312384a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/project.properties new file mode 100644 index 0000000..898584e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/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}/ChainingConstructor.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.7 +javac.target=1.7 +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=chainingconstructor.ChainingConstructor +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/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/project.xml new file mode 100644 index 0000000..0fa5636 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ChainingConstructor + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/src/chainingconstructor/ChainingConstructor.java b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/src/chainingconstructor/ChainingConstructor.java new file mode 100644 index 0000000..c966b68 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/src/chainingconstructor/ChainingConstructor.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chainingconstructor; + +/** + * + * @author andad + */ +public class ChainingConstructor extends Feline{ + + /** + * @param args the command line arguments + */ + + String name= "Kitty"; + + public ChainingConstructor(String n) { + super(n); + // TODO code application logic here + } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/src/chainingconstructor/Feline.java b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/src/chainingconstructor/Feline.java new file mode 100644 index 0000000..8209856 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor/src/chainingconstructor/Feline.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chainingconstructor; + +/** + * + * @author andad + */ +public class Feline { + String name; + + public Feline(String n) { + name = "" + n + ""; + } + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build.xml b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build.xml new file mode 100644 index 0000000..8bcf3fb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ChainingConstructor1. + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/chainingconstructor1/A.class b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/chainingconstructor1/A.class new file mode 100644 index 0000000000000000000000000000000000000000..54d9b07cb2a84a5f0b7830519cee62ee9fceccb0 GIT binary patch literal 495 zcmZutO;5r=5Pe&qOKSlILHw2*aIi5PF($;sQ==vr?n`Z8N!c}}HSuTZ0TU1Y0DqKm z+IldC!|u+!nfG?ye0_g>0vMoUgQIT4M8m=^nq{k7D~3Y1H(@AV z>&Jkh=1CRYCd+9MJ&0*YNZr%E2qz+vY5ofq*mDl7h;jQVQ+#C zEt1n>0fP?B5AsIQfL=zg)qe-;uVK7qEn9S(S)l@lVkd7x1y#zBdM6|oF!I_P3iaX| QrT+re4FcqwL=5cw03Oj{HUIzs literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/chainingconstructor1/ChainingConstructor1.class b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/build/classes/chainingconstructor1/ChainingConstructor1.class new file mode 100644 index 0000000000000000000000000000000000000000..4b449daef72cae9523ed0552ca492f537ed755cb GIT binary patch literal 751 zcma)3ZA;rw7(F*ln>LMYXKn4~HoG~stzeNM3><`ev`l2NmO~2f4SX=Uuf@p69M(}c@d=*| zYzPRCvn!DK?)hGHD3EG2`vQ6=ICce!w&%M)r{jSe{+5Fgk!3q@#>;==%aesKR^tX$I?8db%UaOQf1|(0bbDl70YH1TsfwTvP$?L7BG~z5nHD>y3Ic7 z{MszPTyW9>*AyoW5n1Bt8#MK1w(cNW#tpPfq8bWZP43`HN09?6Cq_$n!&?r^C?_mk zM#iyA4@mvFgKqEKB0VE2sG?;GSs_V9kyT$3h*X%EMH*GCDk + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/genfiles.properties new file mode 100644 index 0000000..a329f0a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=40ba6e33 +build.xml.script.CRC32=dc5fc24b +build.xml.stylesheet.CRC32=8064a381@1.79.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=40ba6e33 +nbproject/build-impl.xml.script.CRC32=c5933f31 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/project.properties new file mode 100644 index 0000000..de803ff --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/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}/ChainingConstructor1.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.7 +javac.target=1.7 +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=chainingconstructor1.ChainingConstructor1 +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/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/project.xml new file mode 100644 index 0000000..c32f3d7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ChainingConstructor1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/src/chainingconstructor1/A.java b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/src/chainingconstructor1/A.java new file mode 100644 index 0000000..bbf532f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/src/chainingconstructor1/A.java @@ -0,0 +1,16 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chainingconstructor1; + +/** + * + * @author andad + */ +public class A { + A() { print(); } + void print() { System.out.println("A"); } + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/src/chainingconstructor1/ChainingConstructor1.java b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/src/chainingconstructor1/ChainingConstructor1.java new file mode 100644 index 0000000..0fded63 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ChainingConstructor1/src/chainingconstructor1/ChainingConstructor1.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chainingconstructor1; + +/** + * + * @author andad + */ + + +class ChainingConstructor1 extends A{ + int i = 4; + + public static void main(String[] args) + { + A a = new ChainingConstructor1(); + a.print(); + } + void print() { System.out.println(i); } +} + diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/build.xml b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/build.xml new file mode 100644 index 0000000..26b7829 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Constructor1. + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/build/classes/constructor1/Animal.class b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/build/classes/constructor1/Animal.class new file mode 100644 index 0000000000000000000000000000000000000000..d81403219f37c43285e8c62b413bb66c55622836 GIT binary patch literal 335 zcmZus%TB{E5S&eu2GTY2EPsBze*n0^G(!)0icyL&p?|53_Sb}?S-BQ3qG*I!6-)25SuN%jA-=Uw zijbGusQa$1m3tI*!^)(zQZ$utI`AJc_Ro65VWqTY<6S4cb?3#6(XD6}9A-qjwf=dE zkS%TJq`K1~e6X{eg}otSObF9|A_=44q=$N~q$l)d^9m=3_?w}KPmF}I&)pSc#F(7E jfnK?Zkn){v#he$%*kgXYTf#n1LM0er$X3Duvj~UZn|Mb| literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/build/classes/constructor1/Constructor1.class b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/build/classes/constructor1/Constructor1.class new file mode 100644 index 0000000000000000000000000000000000000000..8364933ad017553549e9deb20cf6bd7453d325f0 GIT binary patch literal 469 zcmZ`#O-sW-5Pcidjg8gXuZZ;Ity(aM$4Ws8o`RQ3FP^qB#Fbtr9@hsv(s63t5w z>LFujCsJj%b-B#+omdvcbdxF-#X@Ll@tX9_qg*izleAJRqwCaE`XZiffC)t^QM!OX z3rQ=5R1DGRe#<#R=d_^rkIWFxt6HbojkNc5Hn*PJRW0~vFdT2ajdFi!*GiV6zzID1 zGFu+#LNuszLQ}#XO@20h1$%LNKs|J9pL|EyB^-Ub&?Lnc#~xag(ZoIu)>&iXnSDPo T+z~?;VeQt?#-W=X>K?jZ{XAot literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/manifest.mf b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/build-impl.xml new file mode 100644 index 0000000..3833106 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/genfiles.properties new file mode 100644 index 0000000..4b4b45c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2477ba31 +build.xml.script.CRC32=211e6073 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2477ba31 +nbproject/build-impl.xml.script.CRC32=803c99ee +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/project.properties new file mode 100644 index 0000000..837342c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/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}/Constructor1.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.7 +javac.target=1.7 +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=constructor1.Constructor1 +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/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/project.xml new file mode 100644 index 0000000..1dcbdef --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Constructor1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/src/constructor1/Animal.java b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/src/constructor1/Animal.java new file mode 100644 index 0000000..106d0cd --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/src/constructor1/Animal.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package constructor1; + +/** + * + * @author anda + */ +public class Animal { + + Animal(String name) + { + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor1/src/constructor1/Constructor1.java b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/src/constructor1/Constructor1.java new file mode 100644 index 0000000..c2d1721 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor1/src/constructor1/Constructor1.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package constructor1; + +/** + * + * @author anda + */ +public class Constructor1 extends Animal{ + + /** + * @param args the command line arguments + */ + + + public Constructor1(String name) { + super(name); + //this(name); + // TODO code application logic here + } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor2/build.xml b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/build.xml new file mode 100644 index 0000000..6a9f56c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Constructor2. + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor2/manifest.mf b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/build-impl.xml new file mode 100644 index 0000000..1ebed1b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/genfiles.properties new file mode 100644 index 0000000..e50d182 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3c432e5b +build.xml.script.CRC32=d6323268 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3c432e5b +nbproject/build-impl.xml.script.CRC32=06ce18fa +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/project.properties new file mode 100644 index 0000000..586f8e4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/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}/Constructor2.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.7 +javac.target=1.7 +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=constructor2.Constructor2 +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/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/project.xml new file mode 100644 index 0000000..d3d2766 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Constructor2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor2/src/constructor2/Constructor2.java b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/src/constructor2/Constructor2.java new file mode 100644 index 0000000..49b41fe --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/src/constructor2/Constructor2.java @@ -0,0 +1,22 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package constructor2; + +/** + * + * @author anda + */ +public class Constructor2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/Constructor2/src/constructor2/Horeos.java b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/src/constructor2/Horeos.java new file mode 100644 index 0000000..62385d5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/Constructor2/src/constructor2/Horeos.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package constructor2; + +/** + * + * @author anda + */ +public class Horeos { + static String s = "-"; + + public Horeos() { + s +="hi"; + //this(1); // call to this must be first + } + + Horeos(int x) + { + s +="s2"; + } + + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build.xml new file mode 100644 index 0000000..a721b08 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ConstructorChaining. + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/constructorchaining/A.class b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/constructorchaining/A.class new file mode 100644 index 0000000000000000000000000000000000000000..85f748435223461e970d9f86476da94c61359ad4 GIT binary patch literal 498 zcmZvY%Sr<=6o&uw7CTPw_M%mBSzR~_mx>?-u`sAm={_BUO_@$)nh|^~T`0Kl0emR& zWI9lU268*+|G$%*pWm-<0B1OKP(-tg7Iqx8(c$QF^cYGPDpKZ>AwM{tFcgORQ8Ltg z70KIVF_rOyn1&Q-`Z^HdM8wM8vtYr@)RLj=2Rd4sI0=l7gP9;=^yFQg6K*iFRHkT- z7@VtYXmj(rygs4%oQ7GbDcj~5Cmc{iQQ!2Ao1 zUzbKM=zBV$MB7irN_+RQipF4O9e45*T+MrXiXiLgy4q<~5WxFMz0x)$(`T>k_4HK&R^6klDCzzIxBs~ Pvg|5VvCpWJHiyO^1b$#L literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/constructorchaining/ConstructorChaining.class b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/build/classes/constructorchaining/ConstructorChaining.class new file mode 100644 index 0000000000000000000000000000000000000000..679254f580b145ce700b619ba465183d6ed445f9 GIT binary patch literal 724 zcmZuu%TC)+5Iti%abnCXJVJRjDYQ*kfLfNIR#l`*NCp<5sHm$O*8-yuOODh3s;Vjy zNPIv)s_GdhZ8qM_ojEge&bjyg{`2?@;23W_RI%e?*Mo(ZRg}sWgS12f7ffx4s7V=DRuS8#=nmQW`tS z4Vd(nlq&^oy6y=or(u6;*}F(0{b5|_RED9m`n)>*rYCV!&JKeJKMab{2z#)@w8v?1z@af#JOILv_MgE8db z3D!+%4Eqm1xhjhR1LzzSAbRk6n2gzO8+ZDO@2ly1f-2g+9_-}#Jf zA)jc_PLu3=Ib&n8g*rC4t;S!FTiBP}yhUvDzvbh68mKF~L-wC=HFfi}qEfp0&-fN^ Ly-#F|h=uLHJNk>B literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/manifest.mf b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/build-impl.xml new file mode 100644 index 0000000..ddcd485 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/genfiles.properties new file mode 100644 index 0000000..a115787 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=12b5eabc +build.xml.script.CRC32=84c0ab08 +build.xml.stylesheet.CRC32=8064a381@1.79.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=12b5eabc +nbproject/build-impl.xml.script.CRC32=4e30be8f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/project.properties new file mode 100644 index 0000000..b4ea667 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/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}/ConstructorChaining.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.7 +javac.target=1.7 +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=constructorchaining.ConstructorChaining +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/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/project.xml new file mode 100644 index 0000000..c44d451 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ConstructorChaining + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/src/constructorchaining/ConstructorChaining.java b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/src/constructorchaining/ConstructorChaining.java new file mode 100644 index 0000000..3830b31 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorChaining/src/constructorchaining/ConstructorChaining.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package constructorchaining; + +/** + * + * @author andad + */ +class A { + + public A() { + } + + public A(int i) { + System.out.println(i); + } +} + +public class ConstructorChaining { + + /** + * @param args the command line arguments + */ + static A s1 = new A(1); + A a = new A(2); + + public static void main(String[] args) { + // TODO code application logic here + ConstructorChaining b = new ConstructorChaining(); + A a = new A(3); + + } + static A s2 = new A(4); + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build.xml new file mode 100644 index 0000000..f76223a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ConstructorThrowsCheckException. + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build/classes/constructorthrowscheckexception/ConstructorThrowsCheckException.class b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/build/classes/constructorthrowscheckexception/ConstructorThrowsCheckException.class new file mode 100644 index 0000000000000000000000000000000000000000..82ee4fe087f34f92ebc2b07c9d8a0c3b8436df0a GIT binary patch literal 899 zcmbtTL2nX47=5!WY`X=DrNvsSwOExFEhZjoYz%5bve=}MCXJ_IyMbw87neo-C*Hhz z_98|Sd-qrPOVl?jLSsxkxXJF!H}Cu2d-Kig*YBUd0C<4=Hqt2CxQVUQ{x>f1v2e>q z5=9HQZ3Z0g*qBF22iq2Q1X2%`ucAi+W~sJ)#Gx9Tcmj)#^1bK7Uds!cveo6vk`uVH zdn7}pz0`@eOa%N8|U!YKW;hf4>veK1)yV8h4<+u0r9*mHF*Dqj) zLqAeIZ_1(NWY{KE{x1}476lu@Fm%0VO7DH^ANF^(jWjYSTezFXJ?xS>wx)tg?O>`a zur@RNrzwH`|Lmf6kWHh4vOsPobkI8WT(&k*(#^@vfVzx2yaA!~Pl8^IKjF#u*~ch8 zfo3RO51YI&>G(Do;MpJx1B;Ab!sHCNzB7XO1Y;SAx9_kpM)G)s)cF_|$GLN6B#`5G ziTOaD-(_;Fpnz3e;!5Ec3-LT7@)2L5Qi1af#1EZd;j&=3%GV^6q@^oZn;7X*KpV-A zF@K!1N3fmum~+Y>vG9S(fK482;-bJ}tzmOt8EnwW4JsF>PO=oZiuJfIk88}-4)vd8 Q)Gch77d!}-g36me0T`gjRsaA1 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/manifest.mf b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/build-impl.xml new file mode 100644 index 0000000..cd5e0f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/genfiles.properties new file mode 100644 index 0000000..aec89b2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=49bd45dd +build.xml.script.CRC32=a4850365 +build.xml.stylesheet.CRC32=8064a381@1.79.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=49bd45dd +nbproject/build-impl.xml.script.CRC32=5951dc9f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/project.properties new file mode 100644 index 0000000..5c1155e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/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}/ConstructorThrowsCheckException.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.7 +javac.target=1.7 +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=constructorthrowscheckexception.ConstructorThrowsCheckException +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/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/project.xml new file mode 100644 index 0000000..a9fc647 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ConstructorThrowsCheckException + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/src/constructorthrowscheckexception/ConstructorThrowsCheckException.java b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/src/constructorthrowscheckexception/ConstructorThrowsCheckException.java new file mode 100644 index 0000000..8d3236b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException/src/constructorthrowscheckexception/ConstructorThrowsCheckException.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package constructorthrowscheckexception; + +import java.io.IOException; + +/** + * + * @author andad + */ +public class ConstructorThrowsCheckException { + + /** + * @param args the command line arguments + */ + public ConstructorThrowsCheckException(int port) throws IOException{ + if (Math.random() > 0.5) { + throw new IOException(); + } + + throw new RuntimeException(); + } + + public static void main(String[] args) throws IOException{ + // TODO code application logic here + try { + ConstructorThrowsCheckException pc = new ConstructorThrowsCheckException(10); + } catch (RuntimeException re) { + re.printStackTrace(); + } + } + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/build.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/build.xml new file mode 100644 index 0000000..9c4ed43 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ConstructorThrowsCheckException1. + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/manifest.mf b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/build-impl.xml new file mode 100644 index 0000000..5c98773 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/genfiles.properties new file mode 100644 index 0000000..c718463 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=f119ed9d +build.xml.script.CRC32=522b23df +build.xml.stylesheet.CRC32=8064a381@1.79.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=f119ed9d +nbproject/build-impl.xml.script.CRC32=96438b77 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/project.properties new file mode 100644 index 0000000..5fbae17 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/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}/ConstructorThrowsCheckException1.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.7 +javac.target=1.7 +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=constructorthrowscheckexception1.ConstructorThrowsCheckException1 +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/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/project.xml new file mode 100644 index 0000000..9e53e8e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ConstructorThrowsCheckException1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/src/constructorthrowscheckexception1/ConstructorThrowsCheckException1.java b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/src/constructorthrowscheckexception1/ConstructorThrowsCheckException1.java new file mode 100644 index 0000000..1ed2288 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsCheckException1/src/constructorthrowscheckexception1/ConstructorThrowsCheckException1.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package constructorthrowscheckexception1; + +import java.io.IOException; + +/** + * + * @author andad + */ +public class ConstructorThrowsCheckException1 { + + /** + * @param args the command line arguments + */ + public ConstructorThrowsCheckException1(int port) throws Exception{ + if (Math.random() > 0.5) { + throw new IOException(); + } + + throw new RuntimeException(); + } + + public static void main(String[] args) throws Exception{ + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/build.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/build.xml new file mode 100644 index 0000000..42db5b6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ConstructorThrowsException. + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/manifest.mf b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/build-impl.xml new file mode 100644 index 0000000..c4a71f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/genfiles.properties new file mode 100644 index 0000000..8e12150 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3dd0dbd8 +build.xml.script.CRC32=b9f1f7cb +build.xml.stylesheet.CRC32=8064a381@1.79.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=3dd0dbd8 +nbproject/build-impl.xml.script.CRC32=1c5e6e06 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/project.properties new file mode 100644 index 0000000..31383cd --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/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}/ConstructorThrowsException.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.7 +javac.target=1.7 +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=constructorthrowsexception.ConstructorThrowsException +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/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/project.xml new file mode 100644 index 0000000..39256b1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ConstructorThrowsException + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/src/constructorthrowsexception/ConstructorThrowsException.java b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/src/constructorthrowsexception/ConstructorThrowsException.java new file mode 100644 index 0000000..aee4b79 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Constructor/ConstructorThrowsException/src/constructorthrowsexception/ConstructorThrowsException.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package constructorthrowsexception; + +import java.io.IOException; + +/** + * + * @author andad + */ +class PortConnector { + + public PortConnector(int port) throws IOException { + } + void m() throws IOException{ } +} + +public class ConstructorThrowsException extends PortConnector { + + /** + * @param args the command line arguments + */ + public ConstructorThrowsException(int port) throws Exception { + super(port); + } + + void m() throws IOException{ } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/build.xml b/PrjJava/OCA7/Chapter2/Encapsu2/build.xml new file mode 100644 index 0000000..cbdf621 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Encapsu2. + + + diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Encapsu2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Encapsu2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/build/classes/encapsu2/Dog.class b/PrjJava/OCA7/Chapter2/Encapsu2/build/classes/encapsu2/Dog.class new file mode 100644 index 0000000000000000000000000000000000000000..7463950b4a7fad7037e4ecd418b7d9bd7b3c4b6f GIT binary patch literal 252 zcmYk0%?`m(5QWcFf2jJ2H?YG(6PCn=ST!t&{cYWFrCO=hds#^=Jb;H1a~lgY$(cFd z%p~*vJYN9DXuGJO;h^cDMX;wTQTdEe>GgL6bDr)cp%th^u8MOgv#khYCY>OSM7$H3 z(*6g{{HU&kW+0PDT&~5)U!;c#!QG@q7Rja3msMuNleh^FCM<&Yzf5TBkspiX;IG4z tjB<2g@P|5xlW$mUc7EvrYw!Tw85nR_ZN`9yYN@)nP=m{rP-ivZeE~l#FT?-< literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/build/classes/encapsu2/Dog1.class b/PrjJava/OCA7/Chapter2/Encapsu2/build/classes/encapsu2/Dog1.class new file mode 100644 index 0000000000000000000000000000000000000000..0d4cadee62460d5c1a0832663904a40e63b6904c GIT binary patch literal 251 zcmY+8%?`m(5QWe5mns!+V26bUOJYN;#D;W#)eTpwl~V6zC9&`T9!ks=3ucltbH1EO z=J~om01Qy~V4~`x<{}_CBbBQ2m|(Wr5y6^d8%YS}DwT`ku$K8stP>`Uc@~Q#61md; z3$61`opf5Ju{fTJemKpxy&=I{WG#jaCxBDzsZg+~U`vH0a9f2ea7V!|L*l~q-0+eiRy}Al$X9;H zX2=+>XE%p^(+(cE*&`-z_!jTAdEknCO3LB0J76dnwrBB|!LY91Ob-pR>T}m)C|941 zE`Q~Ek9&^Z3Io@38c{1AI70l-HG^c<#1wPiYu~8}&ki9&dg)@y*M*9L+VY2iW#77D z?9^J@kn68m!e9UPRI!3ha<4} z=z5i6A|f?tbk-&XNFhyG5*cKP5#l#8ixXDHkRC^f8Dq$V@w=nu@fW0Xd0|+N3JcV^ wNb(Z$C}SO!sKMF91UX_s6*&~BingF;C90E%SFlE>7-<;2MfxWgsl_%Mza5Ba{r~^~ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/manifest.mf b/PrjJava/OCA7/Chapter2/Encapsu2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/build-impl.xml new file mode 100644 index 0000000..0557231 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/genfiles.properties new file mode 100644 index 0000000..8df1951 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e41928c6 +build.xml.script.CRC32=dad906b6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e41928c6 +nbproject/build-impl.xml.script.CRC32=3203d41b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/project.properties new file mode 100644 index 0000000..abee2d3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/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}/Encapsu2.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.7 +javac.target=1.7 +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=encapsu2.Encapsu2 +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/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/project.xml new file mode 100644 index 0000000..466f313 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Encapsu2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Dog.java b/PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Dog.java new file mode 100644 index 0000000..3cc0de7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Dog.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsu2; + +/** + * + * @author anda + */ +public class Dog { + +} diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Dog1.java b/PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Dog1.java new file mode 100644 index 0000000..cc4c203 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Dog1.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsu2; + +/** + * + * @author anda + */ +public class Dog1 extends Dog { + +} diff --git a/PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Encapsu2.java b/PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Encapsu2.java new file mode 100644 index 0000000..cd85df0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsu2/src/encapsu2/Encapsu2.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsu2; + +/** + * + * @author anda + */ +public class Encapsu2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Dog1 b1 = new Dog1(); + Dog dog1 = new Dog(); + Dog dog2 = b1; + Dog1 b2 = (Dog1)dog1; + + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/build.xml b/PrjJava/OCA7/Chapter2/Encapsulation/build.xml new file mode 100644 index 0000000..49a1850 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Encapsulation. + + + diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/manifest.mf b/PrjJava/OCA7/Chapter2/Encapsulation/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/build-impl.xml new file mode 100644 index 0000000..cafd6d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/genfiles.properties new file mode 100644 index 0000000..a018560 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3a309eef +build.xml.script.CRC32=4af7b450 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3a309eef +nbproject/build-impl.xml.script.CRC32=6eea0e10 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/project.properties new file mode 100644 index 0000000..6c70332 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/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}/Encapsulation.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.7 +javac.target=1.7 +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=encapsulation.Encapsulation +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/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/project.xml new file mode 100644 index 0000000..4fdf325 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Encapsulation + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/A.java b/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/A.java new file mode 100644 index 0000000..cba3485 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/A.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsulation; + +/** + * + * @author anda + */ +public class A { + public void say(String name) + { + System.out.println("Hey..." + name); + } +} diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/B.java b/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/B.java new file mode 100644 index 0000000..aa4022b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/B.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsulation; + +/** + * + * @author anda + */ +public class B extends A{ + public void say() + { + System.out.println("B"); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/C.java b/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/C.java new file mode 100644 index 0000000..0a477cb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/C.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsulation; + +/** + * + * @author anda + */ +public class C extends A{ + +} diff --git a/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/Encapsulation.java b/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/Encapsulation.java new file mode 100644 index 0000000..77d9349 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Encapsulation/src/encapsulation/Encapsulation.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package encapsulation; + +/** + * + * @author anda + */ +public class Encapsulation { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + B b = new B(); + b.say(); + b.say("John Lenon"); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/build.xml b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/build.xml new file mode 100644 index 0000000..b441051 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Implement2Interfaces. + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/manifest.mf b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/build-impl.xml new file mode 100644 index 0000000..207c63f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/genfiles.properties new file mode 100644 index 0000000..90393c9 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e348c8a7 +build.xml.script.CRC32=7be3e757 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e348c8a7 +nbproject/build-impl.xml.script.CRC32=b9dcc2dc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/project.properties new file mode 100644 index 0000000..d6f3453 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/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}/Implement2Interfaces.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.7 +javac.target=1.7 +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=implement2interfaces.Implement2Interfaces +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/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/project.xml new file mode 100644 index 0000000..8904406 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Implement2Interfaces + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/src/implement2interfaces/Implement2Interfaces.java b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/src/implement2interfaces/Implement2Interfaces.java new file mode 100644 index 0000000..e6eb5c4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Implement2Interfaces/src/implement2interfaces/Implement2Interfaces.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package implement2interfaces; + +/** + * + * @author andad + */ +interface T1{ + int VALUE = 1; + void m1(); +} +interface T2{ + int VALUE = 2; + void m1(); +} + +public class Implement2Interfaces implements T1, T2{ + + /** + * @param args the command line arguments + */ + public void m1(){} + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface2/build.xml b/PrjJava/OCA7/Chapter2/Interface/Interface2/build.xml new file mode 100644 index 0000000..951952d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Interface2. + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface2/manifest.mf b/PrjJava/OCA7/Chapter2/Interface/Interface2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/build-impl.xml new file mode 100644 index 0000000..6189cba --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/genfiles.properties new file mode 100644 index 0000000..2dcd23d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5d555ac8 +build.xml.script.CRC32=d126c435 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5d555ac8 +nbproject/build-impl.xml.script.CRC32=1655d408 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/project.properties new file mode 100644 index 0000000..3b66073 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/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}/Interface2.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.7 +javac.target=1.7 +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=interface2.Interface2 +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/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/project.xml new file mode 100644 index 0000000..db29dde --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Interface2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Bird.java b/PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Bird.java new file mode 100644 index 0000000..a13f00c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Bird.java @@ -0,0 +1,22 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface2; + +/** + * + * @author anda + */ +public abstract class Bird implements Flyer{ + public void fly() + { + + } + public void waddle() + { + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Flyer.java b/PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Flyer.java new file mode 100644 index 0000000..5f68071 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Flyer.java @@ -0,0 +1,16 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface2; + +/** + * + * @author anda + */ +public interface Flyer { + void printWagen(); + void fly(); + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Interface2.java b/PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Interface2.java new file mode 100644 index 0000000..5950e0e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface2/src/interface2/Interface2.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface2; + +/** + * + * @author anda + */ +public class Interface2 extends Bird{ + + /** + * @param args the command line arguments + */ + public void printWagen() + { + + } + public static void main(String[] args) { + // TODO code application logic here + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/build.xml b/PrjJava/OCA7/Chapter2/Interface/Interface3/build.xml new file mode 100644 index 0000000..3520ecf --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Interface3. + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Bird.class b/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Bird.class new file mode 100644 index 0000000000000000000000000000000000000000..b5f28d110de09595b9d929c4b4eff2123107cf1a GIT binary patch literal 346 zcmZ8c%TB^T6g{^TDix*R7q}Bm?1H7n1tzSBEHLb+Wq=`Ln~cST&vIqr!Vlo1jAt55 z2%CFzo-=p<`~3r8h^rV4bR#4YdJ+19)}tv*^(1KA4CaFHxm;*LcVY_tvVF_6dsUew z)1Q>NvUBB(#|JX3*5+N%qr1{>sd7C`N5(B4Shuu0K|CwBF4tq@E81SV->47OK@%;$ zauO3HUQMkkR_Qd`=)59zWE$I@cHuPw9>KrzqJW!SoDosVE!@r9FUV&tpK*E_=%8KC d+JG46L_+pId{<*~r@`bX$deAi3)%x*{sFF{J9+>B literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Flyer.class b/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Flyer.class new file mode 100644 index 0000000000000000000000000000000000000000..1e686411f4bb2e8aa6ea07d3f8e817d50472124b GIT binary patch literal 143 zcmX^0Z`VEs1_omWE_MbEb_PyH2Cjml%)FBD#PrlWMh0dL%`hODmQx9o2+l7pN=|jl z%t-}u+;S>Yi}bP*%MuwG1b`Y+i_#L4Q;qe(;y@vgjDAjHUb?=2QdVkm2^%8=BLfrA aDh3877NC&~EDQ`lniWI?W!OOC4D0|V4ITgh literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Flyer.rs b/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Flyer.rs new file mode 100644 index 0000000..9dfdbf7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Flyer.rs @@ -0,0 +1 @@ +interface2.Flyer diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Interface2.class b/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Interface2.class new file mode 100644 index 0000000000000000000000000000000000000000..64b5c174033ed77250d7e6c41cf39518bbebbbdb GIT binary patch literal 464 zcmZ`#O-sW-6r4@c#>Qy0AL`XxRWM+W6%Pu65WH0C!P7Qf<4T&yHuZmb5GE(MB zj#47cD34`2lt!2R9CV61Jr&p{yHMs<#;O-ye3eIi0q?yLp-st;4;=L(8mgE|C4|QJaz)B-{OO+C-zs^UJ#18utB3W%FC_) R3U_`9*AY}3HW)2zegL*CQVRe8 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Interface3.class b/PrjJava/OCA7/Chapter2/Interface/Interface3/build/classes/interface3/Interface3.class new file mode 100644 index 0000000000000000000000000000000000000000..b684fd75f948a88a0848ee768b18123ea110ac6e GIT binary patch literal 395 zcmZus%SyvQ6g@Z1!^UW8<74fvDwsu=6*qz)1YK0RaW#o!oRTImPW>-ef(t*uj}q^U zVg)-e_i^q$=gfS3zP$q&V>d<*I}wHvGD3K!T4l}&z0uK(;9qq2l8_dvmDkHfDfO)= z8%BmjSBYjOw6gsV=$l9NL^$AWBlUx*d?*;S`bJxeFLoE4(uO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/genfiles.properties new file mode 100644 index 0000000..81a3a94 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5546d6ee +build.xml.script.CRC32=ff1dbae2 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5546d6ee +nbproject/build-impl.xml.script.CRC32=afb757b7 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/project.properties new file mode 100644 index 0000000..64dca80 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/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}/Interface3.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.7 +javac.target=1.7 +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=interface3.Interface3 +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/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/project.xml new file mode 100644 index 0000000..e6d3e83 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Interface3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Bird.java b/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Bird.java new file mode 100644 index 0000000..720a5e9 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Bird.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface3; + +/** + * + * @author anda + */ +public abstract class Bird implements Flyer{ + public void fly() + { + + } + + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Flyer.java b/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Flyer.java new file mode 100644 index 0000000..0956b0a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Flyer.java @@ -0,0 +1,16 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface3; + +/** + * + * @author anda + */ +public interface Flyer { + void printWagen(); + void fly(); + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Interface2.java b/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Interface2.java new file mode 100644 index 0000000..8493457 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Interface2.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface3; + +/** + * + * @author anda + */ +public class Interface2 extends Bird{ + + /** + * @param args the command line arguments + */ + public void printWagen() + { + + } + public static void main(String[] args) { + // TODO code application logic here + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Interface3.java b/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Interface3.java new file mode 100644 index 0000000..80a07c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/Interface3/src/interface3/Interface3.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface3; + +/** + * + * @author anda + */ +public class Interface3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/build.xml b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/build.xml new file mode 100644 index 0000000..2120425 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project InterfaceExtend. + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/manifest.mf b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/build-impl.xml new file mode 100644 index 0000000..c853aed --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/genfiles.properties new file mode 100644 index 0000000..0b40c09 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4694b6d5 +build.xml.script.CRC32=e86cf66a +build.xml.stylesheet.CRC32=8064a381@1.79.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=4694b6d5 +nbproject/build-impl.xml.script.CRC32=e230a358 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/project.properties new file mode 100644 index 0000000..302c03d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/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}/InterfaceExtend.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.7 +javac.target=1.7 +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=interfaceextend.InterfaceExtend +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/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/project.xml new file mode 100644 index 0000000..0ae37a1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + InterfaceExtend + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/src/interfaceextend/InterfaceExtend.java b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/src/interfaceextend/InterfaceExtend.java new file mode 100644 index 0000000..a398ff5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceExtend/src/interfaceextend/InterfaceExtend.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interfaceextend; + +/** + * + * @author andad + */ +public class InterfaceExtend { + + /** + * @param args the command line arguments + */ + interface T1 { + } + + interface T2 { + + int VALUE = 10; + + void m1(); + } + + interface T3 extends T1, T2 { + + public void m1(); + + public void m1(int x); + } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build.xml b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build.xml new file mode 100644 index 0000000..1a720a4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project InterfaceVariable. + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/interfacevariable/IInt.class b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/interfacevariable/IInt.class new file mode 100644 index 0000000000000000000000000000000000000000..b60536cd85ab7fa73bc3a8e2b57586cfe023d7cb GIT binary patch literal 159 zcmW-ZK?=e!6h!B@+O!qHmEa}J!XpSmRxSkhzaiR`kU~s*I2RtkLy1XuGxLV`{k=Z` zPS^-E0xhAAy_wlfhCqt2J&*ns*~fd{%Jc=Hy^T}Q=3-rXHA?w-9C&8J-uh_5gLP5_ m%bhbaQ^GED>DWKzwHu6%RnntaYzLHBrM6D3K(%aQ$@L%2+ame^ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/interfacevariable/InterfaceVariable.class b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/build/classes/interfacevariable/InterfaceVariable.class new file mode 100644 index 0000000000000000000000000000000000000000..62e9cebc2358f98c09b6e276d32ee0f7b55aa1dc GIT binary patch literal 558 zcma)2%SyvQ6g`uquUKuHXzFVtB2)#lP~23z5rjg}MWrIHrZLv3X$mpzf4M3s_yK;D zcoHpL*oBLkJNMr6xN|?h-aY^vW7|Xy>ji9>(9*bBz?MM%Ohqbb3FwXeu7GhddI$t6 zo{EC2@vs-fH?kM9VtFH9hFuw}H2*Cc$&-2!*dsa#;z#KRlV5<_o>gX)CdG$RMFLLa z-W$k?bVC{S-A)p#sNc-YW!$Hny`U{1*bxJsHqSFpC}4I* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/genfiles.properties new file mode 100644 index 0000000..8820ace --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d75f669a +build.xml.script.CRC32=aa18b3f6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=d75f669a +nbproject/build-impl.xml.script.CRC32=56b45ace +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/project.properties new file mode 100644 index 0000000..fbb8fd0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/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}/InterfaceVariable.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.7 +javac.target=1.7 +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=interfacevariable.InterfaceVariable +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/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/project.xml new file mode 100644 index 0000000..9941e0e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + InterfaceVariable + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/src/interfacevariable/IInt.java b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/src/interfacevariable/IInt.java new file mode 100644 index 0000000..0cb6b20 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/src/interfacevariable/IInt.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interfacevariable; + +/** + * + * @author andad + */ +public interface IInt { + int thevalue = 0; +} diff --git a/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/src/interfacevariable/InterfaceVariable.java b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/src/interfacevariable/InterfaceVariable.java new file mode 100644 index 0000000..087f15d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Interface/InterfaceVariable/src/interfacevariable/InterfaceVariable.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interfacevariable; + +/** + * + * @author andad + */ +public class InterfaceVariable implements IInt { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + InterfaceVariable s = new InterfaceVariable(); //1 + int j = s.thevalue; //2 + int k = IInt.thevalue; //3 + int l = thevalue; //4 + } + +} diff --git a/PrjJava/OCA7/Chapter2/IntergerParseInt/build.xml b/PrjJava/OCA7/Chapter2/IntergerParseInt/build.xml new file mode 100644 index 0000000..1390bc8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/IntergerParseInt/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project IntergerParseInt. + + + diff --git a/PrjJava/OCA7/Chapter2/IntergerParseInt/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/IntergerParseInt/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/IntergerParseInt/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/IntergerParseInt/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/IntergerParseInt/build/classes/intergerparseint/IntergerParseInt.class b/PrjJava/OCA7/Chapter2/IntergerParseInt/build/classes/intergerparseint/IntergerParseInt.class new file mode 100644 index 0000000000000000000000000000000000000000..bf026df39f162b06aec5841c375a3ebc0bb919db GIT binary patch literal 1313 zcmaJ>?NZZF5Iwh)ro2Kj$s;} zU{%8!o+?<^uz_a^o@+?sg@TtFGT0R8Kil?d)wFgEhgr<{a$Lg}vQp&OM-%$5OVV;3 zyUOXu7d`MRfg#TN|AQCkZsyAF>=^}@$J;b{vk*`YbgOD)IjE6D%cM?@r^R$Kyr65> zy#nFHXbYebbEl; z&35Ej@g52Uy{ky|k}%$$J$=Uuc7$YffZBzGJjy z#%u6zentC44S|VcC@b85NAT?tIznm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/genfiles.properties new file mode 100644 index 0000000..164009f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=abef42eb +build.xml.script.CRC32=0a4575dd +build.xml.stylesheet.CRC32=8064a381@1.79.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=abef42eb +nbproject/build-impl.xml.script.CRC32=8060184e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/project.properties b/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/project.properties new file mode 100644 index 0000000..714704b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/IntergerParseInt/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}/IntergerParseInt.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.7 +javac.target=1.7 +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=intergerparseint.IntergerParseInt +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/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/project.xml b/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/project.xml new file mode 100644 index 0000000..516e0be --- /dev/null +++ b/PrjJava/OCA7/Chapter2/IntergerParseInt/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + IntergerParseInt + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/IntergerParseInt/src/intergerparseint/IntergerParseInt.java b/PrjJava/OCA7/Chapter2/IntergerParseInt/src/intergerparseint/IntergerParseInt.java new file mode 100644 index 0000000..20f9ad6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/IntergerParseInt/src/intergerparseint/IntergerParseInt.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package intergerparseint; + +/** + * + * @author andad + */ +public class IntergerParseInt { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Float f = null; + try { + f = Float.valueOf("12.3"); + String s = f.toString(); + System.out.println(s); + int i = Integer.parseInt(s); + System.out.println("i = " + i); + } catch (Exception e) { + System.out.println("trouble : " + f); + } + } + +} diff --git a/PrjJava/OCA7/Chapter2/JavaApplication67/build.xml b/PrjJava/OCA7/Chapter2/JavaApplication67/build.xml new file mode 100644 index 0000000..11ad8dc --- /dev/null +++ b/PrjJava/OCA7/Chapter2/JavaApplication67/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Bottom2. + + + diff --git a/PrjJava/OCA7/Chapter2/JavaApplication67/build/classes/javaapplication67/Bottom2.class b/PrjJava/OCA7/Chapter2/JavaApplication67/build/classes/javaapplication67/Bottom2.class new file mode 100644 index 0000000000000000000000000000000000000000..f67aee66a0e9efb091743918ffb2de78952e8c21 GIT binary patch literal 572 zcmZ`$O;5r=5Pe%d3bhCnK@mStFX+K0n&<)JK@v~Im_RVb(}E4IX}e8XO#E4TkVF%I zfIrGOEhK8hJ2cvRR2nxi&33szv^y#k{;(O3AJ3fz@@?O>AMCq5PNMl>tK`!e`zdN6PW&kI1p2hN){I?Mt$($hgBj zTB{T{{Dv9yAR@W6Z@DpVT{5B3gG5IIi&mg$P-fH3=uYiTz@Fmr0>yL;=3vsdIVB*6 zMar_sqd-X1+=|73;v2N<2@+S&NLr~Eq`!q0ksxA`CR)^1`XN{()S?=#L{Y=i7nsa= Aqgbj*{Q6WaZ$corf}V-*RbbaHkc4t3ficmuu2 zB6+LqhzfHjR_Vh<#l^Od9qbb5+QpuaeH;*4|4t&*Eg!}rnS}S_sf^4DHF%jDIpa6z z1s}BXIHA(vL#7flFqsrH4%5tMtkQ&1YDMhoEN%H6>`}?2*B#*qCH_0RIH=9dwaVxU r1@3^_@dxM)g+}om&MOlIcwE;}%&UU{KI&Lw + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/genfiles.properties new file mode 100644 index 0000000..a3e74a6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=45df85fe +build.xml.script.CRC32=a1cfde10 +build.xml.stylesheet.CRC32=8064a381@1.79.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=45df85fe +nbproject/build-impl.xml.script.CRC32=9afadb34 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/project.properties b/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/project.properties new file mode 100644 index 0000000..0e2ff58 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/JavaApplication67/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}/Bottom2.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=javaapplication67.Bottom2 +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/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/project.xml b/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/project.xml new file mode 100644 index 0000000..06f2413 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/JavaApplication67/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Bottom2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/JavaApplication67/src/javaapplication67/Bottom2.java b/PrjJava/OCA7/Chapter2/JavaApplication67/src/javaapplication67/Bottom2.java new file mode 100644 index 0000000..4b8c25f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/JavaApplication67/src/javaapplication67/Bottom2.java @@ -0,0 +1,20 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javaapplication67; + +/** + * + * @author anda + */ + +public class Bottom2 extends Top { + + + public static void main(String[] args) { + new Bottom2(); + System.out.println(" "); + } +} diff --git a/PrjJava/OCA7/Chapter2/JavaApplication67/src/javaapplication67/Top.java b/PrjJava/OCA7/Chapter2/JavaApplication67/src/javaapplication67/Top.java new file mode 100644 index 0000000..e3968cb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/JavaApplication67/src/javaapplication67/Top.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javaapplication67; + +/** + * + * @author anda + */ +class Top { + + public Top() { + System.out.print("B"); + } +} diff --git a/PrjJava/OCA7/Chapter2/Meltdown/build.xml b/PrjJava/OCA7/Chapter2/Meltdown/build.xml new file mode 100644 index 0000000..49f2425 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Meltdown. + + + diff --git a/PrjJava/OCA7/Chapter2/Meltdown/manifest.mf b/PrjJava/OCA7/Chapter2/Meltdown/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Meltdown/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Meltdown/nbproject/build-impl.xml new file mode 100644 index 0000000..96fdf49 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Meltdown/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Meltdown/nbproject/genfiles.properties new file mode 100644 index 0000000..74f17b1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c9d43da1 +build.xml.script.CRC32=d9f71eb1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c9d43da1 +nbproject/build-impl.xml.script.CRC32=36dbd19b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Meltdown/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Meltdown/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Meltdown/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Meltdown/nbproject/project.properties new file mode 100644 index 0000000..3c8977d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/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}/Meltdown.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.7 +javac.target=1.7 +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=meltdown.Meltdown +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/PrjJava/OCA7/Chapter2/Meltdown/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Meltdown/nbproject/project.xml new file mode 100644 index 0000000..c9065ad --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Meltdown + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Animal.java b/PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Animal.java new file mode 100644 index 0000000..8db593f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Animal.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package meltdown; +import static java.lang.System.out; + +/** + * + * @author anda + */ +public class Animal { + public void eat() + { + out.println("Generic Animal eating... "); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Horse.java b/PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Horse.java new file mode 100644 index 0000000..bb2fea0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Horse.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package meltdown; +import static java.lang.System.out; + +/** + * + * @author anda + */ +public class Horse extends Animal{ + public void eat() + { + out.println("Hosre eating hay, oats and horse treats"); + } +} diff --git a/PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Meltdown.java b/PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Meltdown.java new file mode 100644 index 0000000..8b1318b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Meltdown/src/meltdown/Meltdown.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package meltdown; + +/** + * + * @author anda + */ +public class Meltdown { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + Animal h = new Horse(); + // we call the reference method, means eat Horse + h.eat(); + } + +} diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build.xml b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build.xml new file mode 100644 index 0000000..451add2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project MethodWithTheSameWithConstructor. + + + diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build/classes/methodwiththesamewithconstructor/MethodWithTheSameWithConstructor.class b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/build/classes/methodwiththesamewithconstructor/MethodWithTheSameWithConstructor.class new file mode 100644 index 0000000000000000000000000000000000000000..6743d652721e702b58a8306ee84b0efa78031dfb GIT binary patch literal 880 zcmbtS(P|Sx6g`tovdMO}wJ}knHmSCnCecNFtP~{RL)og3(jq=h(jl3W-7TAm;*0;J zXbTE{fFC8E*#tsC=z|M8d+)jDp1Egse*gLL3&3+c@!+9RhJ&VyO^@G3fd%_GHhWOU zLu`52#v>Px1#**T0%BjF_(I3p>HtD%n7>sd5V>7g7v;GS91B*rE$hQ}Ks_|lBMD~#!l>ngK=Ut24* zFCe}!$YG6ZF#~HcSVx7KuvWO*<~@ozmfdcAM{e2eQ3d1`$g~QzEH5q;ta>d| zE#nq$FSI@{w7Ngxyt_a??6ChF?pKsL-;g^;c~LkZ(w!sA9qZHt>L}qJC%cb3*r4?W hI%sASG_yIo#Ovghu!XyHBgk1{M}_kVc3Jlue*x;cyIlYP literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/manifest.mf b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/build-impl.xml new file mode 100644 index 0000000..9ba82a0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/genfiles.properties new file mode 100644 index 0000000..02ae913 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=fe924690 +build.xml.script.CRC32=6bd5922c +build.xml.stylesheet.CRC32=8064a381@1.79.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=fe924690 +nbproject/build-impl.xml.script.CRC32=03fe51a8 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/project.properties b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/project.properties new file mode 100644 index 0000000..cca06ca --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/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}/MethodWithTheSameWithConstructor.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.7 +javac.target=1.7 +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=methodwiththesamewithconstructor.MethodWithTheSameWithConstructor +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/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/project.xml b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/project.xml new file mode 100644 index 0000000..fad6288 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + MethodWithTheSameWithConstructor + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/src/methodwiththesamewithconstructor/MethodWithTheSameWithConstructor.java b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/src/methodwiththesamewithconstructor/MethodWithTheSameWithConstructor.java new file mode 100644 index 0000000..37c7e1d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodWithTheSameWithConstructor/src/methodwiththesamewithconstructor/MethodWithTheSameWithConstructor.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package methodwiththesamewithconstructor; + +/** + * + * @author andad + */ +public class MethodWithTheSameWithConstructor { + + /** + * @param args the command line arguments + */ + long l1; + + public void MethodWithTheSameWithConstructor(long pLong) { + l1 = pLong; + } //(1) + + public static void main(String[] args) { + // TODO code application logic here + MethodWithTheSameWithConstructor a, b; + a = new MethodWithTheSameWithConstructor(); //(2) + // b = new MethodWithTheSameWithConstructor(5); //(3) error compiler + a.MethodWithTheSameWithConstructor(3); + System.out.println(a.l1);// why result is 3??? + b = new MethodWithTheSameWithConstructor(); + System.out.println(b.l1); + } + +} diff --git a/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/build.xml b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/build.xml new file mode 100644 index 0000000..d64c8e3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project MethodsamenameConstructor. + + + diff --git a/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/manifest.mf b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/build-impl.xml new file mode 100644 index 0000000..d8a4f52 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/genfiles.properties new file mode 100644 index 0000000..886f53b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5751e245 +build.xml.script.CRC32=4495fca0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5751e245 +nbproject/build-impl.xml.script.CRC32=b51bb1dc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/project.properties b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/project.properties new file mode 100644 index 0000000..255d779 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/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}/MethodsamenameConstructor.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.7 +javac.target=1.7 +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=methodsamenameconstructor.MethodsamenameConstructor +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/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/project.xml b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/project.xml new file mode 100644 index 0000000..838a399 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + MethodsamenameConstructor + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/src/methodsamenameconstructor/MethodsamenameConstructor.java b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/src/methodsamenameconstructor/MethodsamenameConstructor.java new file mode 100644 index 0000000..d187ab9 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/MethodsamenameConstructor/src/methodsamenameconstructor/MethodsamenameConstructor.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package methodsamenameconstructor; + +/** + * + * @author andad + */ +public class MethodsamenameConstructor { + + /** + * @param args the command line arguments + */ + long l; + public void MethodsamenameConstructor(long l) + { + l = 6; + } + public static void main(String[] args) { + // TODO code application logic here + MethodsamenameConstructor a, b; + a = new MethodsamenameConstructor(); + //b = MethodsamenameConstructor((long)5); + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overiding2/build.xml b/PrjJava/OCA7/Chapter2/Overiding2/build.xml new file mode 100644 index 0000000..f21969e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overiding2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Overiding2. + + + diff --git a/PrjJava/OCA7/Chapter2/Overiding2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Overiding2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overiding2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Overiding2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overiding2/build/classes/overiding2/A.class b/PrjJava/OCA7/Chapter2/Overiding2/build/classes/overiding2/A.class new file mode 100644 index 0000000000000000000000000000000000000000..0a517e9dd15be24e8b180c54b547c880c24e739c GIT binary patch literal 622 zcmZuuT}$IY6g|^c)5O@+__6AKSifr@Eb7BPxCkOHER=PjOW&vIpd)D_$yD%XDX8Fs zKfoU)o}@us*ub33y?4&J_sqP!K0O0CK+}PZPd2JpbO=i}mhriYFAl!qTNNu78WvUs zgy#AsF!@7A+8ha#n>#&$%1Jy>0$xW)>i1~aSIJ-551H{haUjEN&@v$XHwqT`{~_Fc`aSIn0Db{%EcU}Ev&g% z$A-XSYNXLYW2nqUJZPk&E0qMHOr?cQ7hBk-g<}EtV|Rgirr8c7l_JxA_c$i*|@* zF1ll;#@#7OdChA*LbU4EJxZ+yly6xo!6W*p5bMMm1!jmoqf8=`^qBGauVVIHa+A#L zv+q#xCmt}FiSdq!PF|Yl@dZY_*g-S*I;v`wpk?d~S-4y&; zN=-$ar;sb%DM)O1<{X7`B0)?*f-Irsp=Z0@&Z$wY28}#Mq zM21TLXU=qdsv?24ZgB2~YM}gK$9eVlxi6483zZ+UOLFfL-;>H0s5ahrKgx6IjHEww zj$>vG_mloI91^j-AWXheU}e77AzPTo!8q)@FO+6kxaz*G@huckv~Ue82DU6b!nOg& z!VXB~Ac|$I`nKoBr@_FE#=ZVXMsmxRo-L#P*pGB57)X0c-sXJFI&;G$Pos1MDho%q zP}P0cP!zD{G7bfbb8~-+V%MYe!I&CVri!S*d96jGD6aH4U^yxH*DYWqq(;;--8j<9 zRT_&FMU4w!aa9BlWuQ&-O;u>G^Y;X)BxbfQAzH>)q(0M|LW$Po4cuYH2FiR{(@d8SgwJwmFApJi~op76TF!>owR;x6FsV5DA9AQeC36?bocaL_;rHL$B z$l(TV&PqP8M6+D~0pr~zvfcJ1DQ{oEB#ZXjZ^&O!sUpK%hbTLoW|tFma2t;kTGc5I UZqWl~tYV$BbL()I{}k^10a*p7TmS$7 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Overiding2/manifest.mf b/PrjJava/OCA7/Chapter2/Overiding2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overiding2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Overiding2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/build-impl.xml new file mode 100644 index 0000000..eb24f8f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Overiding2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/genfiles.properties new file mode 100644 index 0000000..94a0cb3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=744e1116 +build.xml.script.CRC32=96433852 +build.xml.stylesheet.CRC32=8064a381@1.79.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=744e1116 +nbproject/build-impl.xml.script.CRC32=a7cfd982 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Overiding2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Overiding2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Overiding2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/project.properties new file mode 100644 index 0000000..d392226 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overiding2/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}/Overiding2.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.7 +javac.target=1.7 +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=overiding2.Overiding2 +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/PrjJava/OCA7/Chapter2/Overiding2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/project.xml new file mode 100644 index 0000000..5d7e122 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overiding2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Overiding2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overiding2/src/overiding2/Overiding2.java b/PrjJava/OCA7/Chapter2/Overiding2/src/overiding2/Overiding2.java new file mode 100644 index 0000000..9b5c356 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overiding2/src/overiding2/Overiding2.java @@ -0,0 +1,54 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overiding2; + +/** + * + * @author andad + */ +class A { + + int i = 7; + + A() { + print(); + } + + static void print1() { + System.out.println("static method superclasa"); + } + + void print() { + System.out.println("A"); + } +} + +public class Overiding2 extends A { + + /** + * @param args the command line arguments + */ + int i = 4; + + void print() { + System.out.println(i); + } + + static void print1() { + System.out.println("static method subclasa, am ascuns metoda print1 din superclasa"); + } + + + public static void main(String[] args) { + // TODO code application logic here + A a = new Overiding2(); + a.print();// because is overiding se apeleaza metoda obiectului Overiding2 + System.out.println(a.i); // se apeleaza instanta asociata referentei , deci din clasa A + a.print1();// se apeleaza metoda asociata referentei , deci din clasa A + + } + +} diff --git a/PrjJava/OCA7/Chapter2/OveridingIncorect/build.xml b/PrjJava/OCA7/Chapter2/OveridingIncorect/build.xml new file mode 100644 index 0000000..ac0a65b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingIncorect/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project OveridingIncorect. + + + diff --git a/PrjJava/OCA7/Chapter2/OveridingIncorect/manifest.mf b/PrjJava/OCA7/Chapter2/OveridingIncorect/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingIncorect/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/build-impl.xml new file mode 100644 index 0000000..663d02f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/genfiles.properties new file mode 100644 index 0000000..82deac3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=cbe802d5 +build.xml.script.CRC32=cf5c5888 +build.xml.stylesheet.CRC32=8064a381@1.79.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=cbe802d5 +nbproject/build-impl.xml.script.CRC32=6c2e24a4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/project.properties b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/project.properties new file mode 100644 index 0000000..5a070c4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingIncorect/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}/OveridingIncorect.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.7 +javac.target=1.7 +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=overidingincorect.OveridingIncorect +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/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/project.xml b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/project.xml new file mode 100644 index 0000000..adc09fa --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingIncorect/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + OveridingIncorect + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/OveridingIncorect/src/overidingincorect/OveridingIncorect.java b/PrjJava/OCA7/Chapter2/OveridingIncorect/src/overidingincorect/OveridingIncorect.java new file mode 100644 index 0000000..c958bb4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingIncorect/src/overidingincorect/OveridingIncorect.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overidingincorect; + +/** + * + * @author andad + */ +public class OveridingIncorect { + + /** + * @param args the command line arguments + */ + public int getLoad() { + return 1; + } + + public double getLoad(int a){ + return 3.0; + } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/OveridingRules/build.xml b/PrjJava/OCA7/Chapter2/OveridingRules/build.xml new file mode 100644 index 0000000..b1ab2ce --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingRules/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project OveridingRules. + + + diff --git a/PrjJava/OCA7/Chapter2/OveridingRules/manifest.mf b/PrjJava/OCA7/Chapter2/OveridingRules/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingRules/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/build-impl.xml new file mode 100644 index 0000000..d6c30cd --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/genfiles.properties new file mode 100644 index 0000000..77b8c64 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=83494f69 +build.xml.script.CRC32=e684f24b +build.xml.stylesheet.CRC32=8064a381@1.79.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=83494f69 +nbproject/build-impl.xml.script.CRC32=1fe8285f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/project.properties b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/project.properties new file mode 100644 index 0000000..0e89582 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingRules/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}/OveridingRules.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.7 +javac.target=1.7 +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=overidingrules.OveridingRules +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/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/project.xml b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/project.xml new file mode 100644 index 0000000..4226dd3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingRules/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + OveridingRules + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/OveridingRules/src/overidingrules/OveridingRules.java b/PrjJava/OCA7/Chapter2/OveridingRules/src/overidingrules/OveridingRules.java new file mode 100644 index 0000000..bd905ae --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OveridingRules/src/overidingrules/OveridingRules.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overidingrules; + +/** + * + * @author andad + */ +class A{ + public static void sM1() + {System.out.println("In base static"); } +} + +public class OveridingRules extends A{ + + /** + * @param args the command line arguments + */ + public static void sM1(){ + System.out.println("In sub non-static"); } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build.xml new file mode 100644 index 0000000..9fb8183 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Overloaded1. + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/overloaded1/Overloaded1.class b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/build/classes/overloaded1/Overloaded1.class new file mode 100644 index 0000000000000000000000000000000000000000..453dcf0123fbb1dcff9b666d84001cd1e508e636 GIT binary patch literal 740 zcmZ`%T}$IY6g`u)iH&jXhi&buTkHCfR@kigsK_n_p-^<8OF?`Z+o8^qCK6M@|Ky84 zw6KCdV1LxIchaJf)rZ`#x#!Heck<`&?#7JGc>{ z7x2F5@42Th@c~0-AfhP|L)vLI>n#Sx=_9Z8E-7fztwSz-hLUsM{>5*&>v4bJcA`-F zgM(NV4+nHl;f-SgJ1s?Ob%IgY6US1i%_c;AQIs|^uuN>(*v1Y+`5nPFviNAiu~A2Z zA(w3HjIKmT)Cq;R*O3^~>Vi?kP@HO)f%}7mMIEdK!Q5&GE#DRYeU7{-e(i!h*nE{AGDTOP}( f0NL+qy)(A2)Tw%n#>xc$=}S&#JWsX~PqF$B#}fx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/genfiles.properties new file mode 100644 index 0000000..7eb98d9 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e05c927c +build.xml.script.CRC32=046adaaa +build.xml.stylesheet.CRC32=8064a381@1.79.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=e05c927c +nbproject/build-impl.xml.script.CRC32=4d866ba0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/project.properties new file mode 100644 index 0000000..e463c75 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/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}/Overloaded1.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.7 +javac.target=1.7 +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=overloaded1.Overloaded1 +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/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/project.xml new file mode 100644 index 0000000..604638a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Overloaded1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/src/overloaded1/Overloaded1.java b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/src/overloaded1/Overloaded1.java new file mode 100644 index 0000000..6aca717 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded1/src/overloaded1/Overloaded1.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overloaded1; + +/** + * + * @author andad + */ +class Super { + + public int getNumber(int a) { + return 2; + } +} + +public class Overloaded1 extends Super { + + /** + * @param args the command line arguments + */ + public int getNumber(int a, char ch) { + return 4; + } + + public static void main(String[] args) { + // TODO code application logic here + System.out.println( new Overloaded1().getNumber(4) ); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build.xml new file mode 100644 index 0000000..089fb83 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Overloaded. + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build/classes/overloaded/Overloaded.class b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/build/classes/overloaded/Overloaded.class new file mode 100644 index 0000000000000000000000000000000000000000..af401faf84a2c200086a4671cf56f5b4ca3966fa GIT binary patch literal 990 zcmZva&2G~`6ot>EN&JH$C20~!p_CSi9l!=kVNt{e2`N?7A{lj)m6HtaRE`HZP9+|J z$AJYP7CZnCg}CEdNg6qe@tyng`JNO1{rCG1fPK6&Vc~&+huG8c$b=0?M_0#V9ZxFM zp?;=`Yj~=`)!;Ey--uYGZyDBX=aixRPL4T4tuJDJJev%8@-Y}jl&SaSD2PsjM5ue7 zET?B;%Fyo13!X$W81u1rG7k?4`bkQLmfb%OE&?wK;?V2GDGzyasNTi|L!+QZd)R)~ z;H&T`3y&Bo_MoTY(x6BANg!ecA1o34G!b!_!OKAs(sGT0GK1;MSu*19h0<1A?Ch#V zEnLS94bLn*#|s9FMA-S-j)r{;FL6K!m7bo-By|`Jb%|sgQk?aRINf$#*RimH4nwoh zA%^vZF(<=wK1#2o{4dj#Psm0&qeAmir;y$U5}A@z9!$vOM#i|BX3##XridJBF55ph z2>0nTu(B_r3Z@j(S);p0Pe#v5_b1pl3QAa~Q#FAGZf0lJfI1p!hH1r_%MB9M=3+AdLdt_~Q387(|{u|Kn4xJ_J{s$S5 Br|JLz literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/manifest.mf b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/build-impl.xml new file mode 100644 index 0000000..7e6d9ba --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/genfiles.properties new file mode 100644 index 0000000..da73907 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0dc9f806 +build.xml.script.CRC32=1b58eb29 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0dc9f806 +nbproject/build-impl.xml.script.CRC32=035ab662 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/project.properties new file mode 100644 index 0000000..7fd0be8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/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}/Overloaded.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.7 +javac.target=1.7 +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=overloaded.Overloaded +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/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/project.xml new file mode 100644 index 0000000..c750ec7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Overloaded + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/src/overloaded/Overloaded.java b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/src/overloaded/Overloaded.java new file mode 100644 index 0000000..0457b77 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded10/src/overloaded/Overloaded.java @@ -0,0 +1,44 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overloaded; + +/** + * + * @author anda + */ +public class Overloaded { + + /** + * @param args the command line arguments + */ + public static void foo(Integer i) { + System.out.println("foo(Integer)"); + } + + public static void foo(short i) { + System.out.println("foo(short)"); + } + + public static void foo(long i) { + System.out.println("foo(long)"); + } + + public static void foo(int... i) { + System.out.println("foo(int ...)"); + } + + + + + public static void main(String[] args) { + // TODO code application logic here + foo((int)10); // call long + // why is called with parameter long??? + + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build.xml new file mode 100644 index 0000000..434013c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Overloaded3. + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build/classes/overloaded3/Overloaded3.class b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/build/classes/overloaded3/Overloaded3.class new file mode 100644 index 0000000000000000000000000000000000000000..ae13dc93a292939bc23b6195a78233d770e8a2ee GIT binary patch literal 847 zcmZ`$?`zsn6g^MVB*x4-t#)>Hb-z>Hnhig8?H6Gn$U3kT#y&k`uqiPaX%zNnZ67Rb zus>jb)Yy4Za2+;~d*40pzVptx@Asb{zW{Xc)`Epr0gv&-#8V5;@Z7`;11~M;XsO_+ zaA=?{puY>EAUzexJBJqnS}z{^0^5Ti@;}U`BR@HpqmW2t5PLGbkV&BG6{w|`!L>kR z5YPQ2jOExLcipq~`dC0rN$T_!w~+k%s_bQ@$Fj$ADuYO%?tC6x$+>hx8BN?_ngr40 zIFlrk2`{N`*rw`u-W9Nh@htKD_kmJc{zt%(Vzg0&ZJ=Z06FO2HM!>TD7tPW!z`x zgQCi)4xg|)$6WZ1TqVDN_CG--Bd9N%Rs?Lv4r-)ORP{|%TN|i$?x5Pm15y;wz}|{# z#_KeyYW#%$=?2E2EKkb%X{Wh>+1X#9uvWQ8qacCF<3$pb@Q~)3L=Lj++Djs$P4<}_ Yz&?L9zf$Hw4XX$xAy4!XdvZAV3n}1?^Z)<= literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/manifest.mf b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/build-impl.xml new file mode 100644 index 0000000..df9ae5c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/genfiles.properties new file mode 100644 index 0000000..52c4eb7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=f07b8a30 +build.xml.script.CRC32=1de0ca3f +build.xml.stylesheet.CRC32=8064a381@1.79.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=f07b8a30 +nbproject/build-impl.xml.script.CRC32=20963758 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/project.properties new file mode 100644 index 0000000..fa31edd --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/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}/Overloaded3.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.7 +javac.target=1.7 +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=overloaded3.Overloaded3 +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/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/project.xml new file mode 100644 index 0000000..92b2057 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Overloaded3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/src/overloaded3/Overloaded3.java b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/src/overloaded3/Overloaded3.java new file mode 100644 index 0000000..21b0819 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloaded3/src/overloaded3/Overloaded3.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overloaded3; + +/** + * + * @author andad + */ +public class Overloaded3 { + + /** + * @param args the command line arguments + */ + public void m(int a){ + System.out.println("In int ");} + public void m(char c){ + System.out.println("In char ");} + + public static void main(String[] args) { + // TODO code application logic here + Overloaded3 ov3 = new Overloaded3(); + int a = 'a'; + char c = 6; + ov3.m(a); + ov3.m(c); + + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build.xml new file mode 100644 index 0000000..4a2de3d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Overloading1. + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build/classes/overloading1/Overloading1.class b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/build/classes/overloading1/Overloading1.class new file mode 100644 index 0000000000000000000000000000000000000000..fcdfea66c4e660580eba7e9741d001620e36059e GIT binary patch literal 998 zcmZ`%Yj4s}7=8|ym3Gw)5Oi)jHg+kS4(Gh1CX0!Nr5Pp|662@BDt0OD>&z|2#}bHe8WNu$ydNWJinY=Jq`@$AEXuWbi!thP%}&h$H$+p+>j+GA%b z{NS7lESmnn4qV?la=h+twGlIF0_l^$ZxbP99LNsh6W4)2-Y}1?fmL-auUj>JuUnJR z`Tw1)>sgK`P&D4fV$CpMuc#zt1znQJPYJV=#Yn8K?uB;O4oFM1x#|L1)9(iz`=ukN z%*MIzNPaqWTvBjH$1d&)D0Q#olB|L~9rtj53U_VWEsM?WLETB>R90~n&rO(QV>!n?w4s*c?zECtuu(Pyd*Hk zeI|11nCD#|B_N9&El5e|k;VJWPV!X0A(2ZCk(vN#3<1}X!D0kbjBNEEh>8M=5pW(? zV{o!6f=f? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/genfiles.properties new file mode 100644 index 0000000..10768b8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c525a5ee +build.xml.script.CRC32=be6a0e78 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c525a5ee +nbproject/build-impl.xml.script.CRC32=5dc96b89 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/project.properties new file mode 100644 index 0000000..9a05f11 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/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}/Overloading1.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.7 +javac.target=1.7 +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=overloading1.Overloading1 +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/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/project.xml new file mode 100644 index 0000000..7df22fb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Overloading1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/src/overloading1/Overloading1.java b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/src/overloading1/Overloading1.java new file mode 100644 index 0000000..c954447 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading1/src/overloading1/Overloading1.java @@ -0,0 +1,42 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overloading1; + +/** + * + * @author andad + */ +public class Overloading1 { + + /** + * @param args the command line arguments + * + void probe(int... x) { + System.out.println("In ..."); + } //1 + + void probe(Integer x) { + System.out.println("In Integer"); + } //2 +**/ + void probe(long x) { + System.out.println("In long"); + } //3 + + + void probe(Long x) { + System.out.println("In LONG"); + } //4 + + public static void main(String[] args) { + // TODO code application logic here + Integer a = 4; + new Overloading1().probe(a); //5 + int b = 4; + new Overloading1().probe(b); //6 + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build.xml new file mode 100644 index 0000000..ee06cf5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Overloading5. + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build/classes/overloading5/Overloading5.class b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/build/classes/overloading5/Overloading5.class new file mode 100644 index 0000000000000000000000000000000000000000..ccd78f3030798797ab6154f10dee621d2c721462 GIT binary patch literal 918 zcmZ{hTWb?R9L3LU((J`GX*VXlsZClh+g7^<@u?z+MW_TTL<-{5CRyT?y~uV`^keBm z3krS!Ka_Z8Q=6404?8pe%l!8I&;0)L;}?LZ=vc7OHnE8<1NSW4#{&Zo4Y)eCE$C>g zWk<)ZK;^lNW%fd#mDk+_`>f{g$H?fAkc8TC;pl5g?>EpdRa=uzN$Ib z)4Uh?G8SmMAFo$)`F=X0p!$q5g(R7P)l0_dAb2g+P)kLrdrF3l8?bdevhf&ubSLVx zWSr^nY&^k=fXT!#8RwR$^F*+~>RbnGIA{tiPKP||p9BL+DWrN|PqQH6BP3%M8k6B< z;=Q9C8UGRZ5uL2(jQ`UD`e)S?#%S|VExtdn0HNmKdXtgIU8wBN1;jTVG*r1(@}!L# z&#F~jTf`D~P;#9ab@?T`HSXqjXin)I + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/genfiles.properties new file mode 100644 index 0000000..c5dedf2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e56b9576 +build.xml.script.CRC32=985b3222 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e56b9576 +nbproject/build-impl.xml.script.CRC32=700191f8 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/project.properties new file mode 100644 index 0000000..172899e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/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}/Overloading5.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.7 +javac.target=1.7 +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=overloading5.Overloading5 +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/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/project.xml new file mode 100644 index 0000000..b28eabb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Overloading5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/src/overloading5/Overloading5.java b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/src/overloading5/Overloading5.java new file mode 100644 index 0000000..6660888 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloaded/Overloading5/src/overloading5/Overloading5.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overloading5; + +/** + * + * @author andad + */ +public class Overloading5 { + + /** + * @param args the command line arguments + */ + void m1(int x){ + System.out.println("m1 int"); + } + + void m1(double x){ + System.out.println("m1 double"); + } + + void m1(String x){ + System.out.println("m1 String"); + } + + public static void main(String[] args) { + // TODO code application logic here + Overloading5 ot = new Overloading5(); + ot.m1(1.0); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overloading/build.xml b/PrjJava/OCA7/Chapter2/Overloading/build.xml new file mode 100644 index 0000000..66daf76 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloading/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Overloading. + + + diff --git a/PrjJava/OCA7/Chapter2/Overloading/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Overloading/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloading/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Overloading/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overloading/build/classes/overloading/Overloading.class b/PrjJava/OCA7/Chapter2/Overloading/build/classes/overloading/Overloading.class new file mode 100644 index 0000000000000000000000000000000000000000..3a465e65f9ca4f4c2ef0433ab93439108ec8eb31 GIT binary patch literal 1028 zcmZ`%+iuf96r9b?mzpMZNZOQJpr&w__m z0*MdcqY$%>Xw0-)U|XQ}(hvRQwLrPMu`f`06CEgly61=L{bW2)@kcobh`3%fl)=7?eSOZrN^mA8c*$X5oyJ4b6D&EmAiZ24qf;)j$zGQE3 zq=rda;pW&GOo=?%i^5S#ZRDsaNQYzThq|B7xx0Q6v-Py3BI6M~H4CoUtkg-&jAV5J zc0ZcLL-p3zSv7JIY-_Ru2UiUA96ZJol6S+kECK^h9nS2zfJJcXM!?`+x6AkrRS-l1 z%X1QT(8MxdoVD~%BM0@ro+N6_5l54Ru}=H(!DFI7xc>=9mC8CR8kzL}~ z`i_!YK11byfu&TSJtbWTSZJZ0iZYcVscL~#bFS1%Ce + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Overloading/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Overloading/nbproject/genfiles.properties new file mode 100644 index 0000000..91b2145 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloading/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1b2ccab4 +build.xml.script.CRC32=ec1f104d +build.xml.stylesheet.CRC32=8064a381@1.79.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=1b2ccab4 +nbproject/build-impl.xml.script.CRC32=c8705a87 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Overloading/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Overloading/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloading/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Overloading/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Overloading/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloading/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloading/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Overloading/nbproject/project.properties new file mode 100644 index 0000000..a4e9a02 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloading/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}/Overloading.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.7 +javac.target=1.7 +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=overloading.Overloading +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/PrjJava/OCA7/Chapter2/Overloading/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Overloading/nbproject/project.xml new file mode 100644 index 0000000..6a258af --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloading/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Overloading + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overloading/src/overloading/Overloading.java b/PrjJava/OCA7/Chapter2/Overloading/src/overloading/Overloading.java new file mode 100644 index 0000000..e7a2de1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overloading/src/overloading/Overloading.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overloading; + +/** + * + * @author andad + */ +public class Overloading { + + /** + * @param args the command line arguments + */ + void probe(Integer x) { System.out.println("In Integer"); } //2 + + void probe(Object x) { System.out.println("In Object"); } //3 + + void probe(Long x) { System.out.println("In Long"); } //4 + public static void main(String[] args) { + // TODO code application logic here + String a = "hello"; + new Overloading().probe(a); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overridding2/build.xml b/PrjJava/OCA7/Chapter2/Overridding2/build.xml new file mode 100644 index 0000000..13d0e54 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overridding2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Overridding2. + + + diff --git a/PrjJava/OCA7/Chapter2/Overridding2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Overridding2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overridding2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Overridding2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overridding2/build/classes/overridding2/Felix.class b/PrjJava/OCA7/Chapter2/Overridding2/build/classes/overridding2/Felix.class new file mode 100644 index 0000000000000000000000000000000000000000..404b16d789e7dd87da70caccd33bbce5d5d3bfcc GIT binary patch literal 347 zcmZWlF;2rk5S%r(4~!up_ycr65lc{l(jcWkRwzK}&-N*7WNhhhB0fbyg+##vcobsq z5(y->*qxo58QtC2_s1uIOJoTm97Td%DTR^3F(JO@miq}|=k#n&2yeRD5C#ReX101N zjeXE%Bh0AiD&5SrWw&q1uz%!dLRNHZV=dP;w~LE>Y8rmIlEg~)KKGW8+;=NmnJK%h z#4E;2z1AsWC`tbxKo~kf-spCb-<3;K^*BK&k8l-0t_~%ASGHUx$&Ak5L2v$ePkQXh o6p7$;Bf!2ONX!8ag>mMw4-+m!@G5(NU+>_LH{5#Vcf4x&17pZJQvd(} literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Overridding2/build/classes/overridding2/Overridding2.class b/PrjJava/OCA7/Chapter2/Overridding2/build/classes/overridding2/Overridding2.class new file mode 100644 index 0000000000000000000000000000000000000000..91ed4b2f41de469ff0cf8afaff8656bc445b810b GIT binary patch literal 680 zcmZ`$O>fgc6r7EnIC0#jZ9X6bT3Vn@K&qv3Eb66F4v|HWQbj^NZ4#3%a_q`=s`8^a zz@e2u;s@}fDrTKXbtJlnefwtT&6~IT_x{%(0PoSUQ9{eYa~nCdN_c^7jqKQXiQPOY zdKE3~2^2o4P$eePn#H zMb~~DtI0%#(<8T^NscKwlPVNww9mb-@>;rq45#iOiOD@qTgrG!k?Mc01;iJD+Nyll z57Z5Hjj>Ep+dTn$5Y6MU-&NY`X4b%=?&-irS)lo-O$)Cayv7>`Pw>>jzJmj_IrK_F z+E`#CGsU;7#GlbbG^dsNVm=kQpEz8?5q&wM(P~<-3JX}5niTM5%yzFc#4f+8lzxl> z4umpyhq=or81rxMAb#+W!y5NO3OZQl*;x=!!3MJuHnBxS7x!V14^)36_xTQn_Y>y3 zTjXz1c#v8ri4+u3V_`j&Y%I!%)_7N>n>rd475age;)mpDXJ!r7cgC!-X2zJgG{z4| HS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Overridding2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Overridding2/nbproject/genfiles.properties new file mode 100644 index 0000000..6be8d5a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overridding2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2151752d +build.xml.script.CRC32=fa0de290 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2151752d +nbproject/build-impl.xml.script.CRC32=d0cf31ad +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Overridding2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Overridding2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overridding2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Overridding2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Overridding2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overridding2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Overridding2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Overridding2/nbproject/project.properties new file mode 100644 index 0000000..1643547 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overridding2/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}/Overridding2.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.7 +javac.target=1.7 +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=overridding2.Overridding2 +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/PrjJava/OCA7/Chapter2/Overridding2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Overridding2/nbproject/project.xml new file mode 100644 index 0000000..9510e89 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overridding2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Overridding2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overridding2/src/overridding2/Felix.java b/PrjJava/OCA7/Chapter2/Overridding2/src/overridding2/Felix.java new file mode 100644 index 0000000..9efe12c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overridding2/src/overridding2/Felix.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overridding2; + +/** + * + * @author anda + */ +public class Felix { + protected long cat() + { + return 7L; + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overridding2/src/overridding2/Overridding2.java b/PrjJava/OCA7/Chapter2/Overridding2/src/overridding2/Overridding2.java new file mode 100644 index 0000000..d21ab53 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overridding2/src/overridding2/Overridding2.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overridding2; + +/** + * + * @author anda + */ +public class Overridding2 extends Felix{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Felix f = new Overridding2(); + System.out.println(f.cat()); + } + // must not make more restrictive + public long cat() + { + return 8; + } + + +} diff --git a/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build.xml b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build.xml new file mode 100644 index 0000000..f1eaa1c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project OverriddingCovariantParameter. + + + diff --git a/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build/classes/overriddingcovariantparameter/OverriddingCovariantParameter.class b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/build/classes/overriddingcovariantparameter/OverriddingCovariantParameter.class new file mode 100644 index 0000000000000000000000000000000000000000..bd066097805f6193fdd683970b4d56bbfcfe7ade GIT binary patch literal 1176 zcmbu8TW=CU6vzJqw7aY;tx#yK7ob|Dt+HMoQ4`bHL_kl2m5$nqaKy0wLi$p_Vu+Ux8VreJ)fNmJRq2b1>)pbBBj4w{`phI_OBHRp4T@8blFlAF8|CFd~I(Kmmu7yV~9;3{V zn#faVh+sgCTJT&v!Bd8P6I_<694W{&o~l~tWp1tf$4k0MBge4$=Q}N#>YoQ%^l04F zP}76YlszNWG-)Szk0v5BX3%Rbm>I0T3F?yMOM@~~97P&yhyDOy4b138>vcMLv@>Hp zyaM||A2Fn8T^}1=Y|ys}HEEl;K|75bGPIiH*AyM2J^2-}bo>&DIlvh^(y%GmKys77 z5JD-~LY6QFmy5!!Mc{IT+g^d&#!iU48HHPq!0i(5)=JziVUpy(9pc`F&8EJ?`fvri ndc-b~oOhf;ochcYvq0h$7q}_h!Cms%B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/genfiles.properties new file mode 100644 index 0000000..a87f85b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=438427e3 +build.xml.script.CRC32=21de1570 +build.xml.stylesheet.CRC32=8064a381@1.79.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=438427e3 +nbproject/build-impl.xml.script.CRC32=691dad4c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/project.properties b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/project.properties new file mode 100644 index 0000000..0852c39 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/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}/OverriddingCovariantParameter.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.7 +javac.target=1.7 +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=overriddingcovariantparameter.OverriddingCovariantParameter +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/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/project.xml b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/project.xml new file mode 100644 index 0000000..196e3ac --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + OverriddingCovariantParameter + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/src/overriddingcovariantparameter/OverriddingCovariantParameter.java b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/src/overriddingcovariantparameter/OverriddingCovariantParameter.java new file mode 100644 index 0000000..1700b11 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingCovariantParameter/src/overriddingcovariantparameter/OverriddingCovariantParameter.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overriddingcovariantparameter; + +/** + * + * @author andad + */ +public class OverriddingCovariantParameter { + + /** + * @param args the command line arguments + */ + public void method(Object o) { + System.out.println("Object Version"); + } + + public void method(java.io.FileNotFoundException s) { + System.out.println("java.io.FileNotFoundException Version"); + } + + public void method(java.io.IOException s) { + System.out.println("IOException Version"); + } + + public static void main(String[] args) { + // TODO code application logic here + OverriddingCovariantParameter o = new OverriddingCovariantParameter(); + o.method(null); // it's called the most specific method + } + +} diff --git a/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/build.xml b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/build.xml new file mode 100644 index 0000000..6b7b9ed --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project OverriddingErrorCompiler. + + + diff --git a/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/manifest.mf b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/build-impl.xml new file mode 100644 index 0000000..0cb9f53 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/genfiles.properties new file mode 100644 index 0000000..c7f30f3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2f99549b +build.xml.script.CRC32=62b9dd03 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2f99549b +nbproject/build-impl.xml.script.CRC32=8c6d3ff9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/project.properties b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/project.properties new file mode 100644 index 0000000..88efee0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/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}/OverriddingErrorCompiler.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.7 +javac.target=1.7 +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=overriddingerrorcompiler.OverriddingErrorCompiler +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/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/project.xml b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/project.xml new file mode 100644 index 0000000..1c54ac6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + OverriddingErrorCompiler + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/src/overriddingerrorcompiler/OverriddingErrorCompiler.java b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/src/overriddingerrorcompiler/OverriddingErrorCompiler.java new file mode 100644 index 0000000..21f6f78 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/OverriddingErrorCompiler/src/overriddingerrorcompiler/OverriddingErrorCompiler.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overriddingerrorcompiler; + +/** + * + * @author andad + */ +public class OverriddingErrorCompiler { + + /** + * @param args the command line arguments + */ + public void method(Object o) { + System.out.println("Object Version"); + } + + public void method(String s) { + System.out.println("String Version"); + } + + public void method(StringBuffer s) { + System.out.println("StringBuffer Version"); + } + + public static void main(String[] args) { + // TODO code application logic here + OverriddingErrorCompiler o = new OverriddingErrorCompiler(); + //o.method(null); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Override10/build.xml b/PrjJava/OCA7/Chapter2/Override10/build.xml new file mode 100644 index 0000000..1b9bf66 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Override. + + + diff --git a/PrjJava/OCA7/Chapter2/Override10/manifest.mf b/PrjJava/OCA7/Chapter2/Override10/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Override10/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Override10/nbproject/build-impl.xml new file mode 100644 index 0000000..be3b250 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Override10/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Override10/nbproject/genfiles.properties new file mode 100644 index 0000000..1553907 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2e833c5b +build.xml.script.CRC32=274f5081 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2e833c5b +nbproject/build-impl.xml.script.CRC32=6e136ad1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Override10/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Override10/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Override10/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Override10/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Override10/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Override10/nbproject/project.properties new file mode 100644 index 0000000..5e1fa94 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/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}/Override.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.7 +javac.target=1.7 +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=override.Override +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/PrjJava/OCA7/Chapter2/Override10/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Override10/nbproject/project.xml new file mode 100644 index 0000000..9b0e7c0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Override + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Override10/src/override/Foo.java b/PrjJava/OCA7/Chapter2/Override10/src/override/Foo.java new file mode 100644 index 0000000..d3d3dba --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/src/override/Foo.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package override; + +/** + * + * @author andad + */ +public class Foo { + protected short test(float[] test) + { + return 3; + } + +} diff --git a/PrjJava/OCA7/Chapter2/Override10/src/override/Override.java b/PrjJava/OCA7/Chapter2/Override10/src/override/Override.java new file mode 100644 index 0000000..3501b1b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override10/src/override/Override.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package override; + +/** + * + * @author andad + */ +public class Override extends Foo { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + + private short test(int yahoo) { + return 7; + } + + protected short test(float[] test) { + return 3; + } + + /* + public int test(float[] test) + { + return 7; + } +*/ +} diff --git a/PrjJava/OCA7/Chapter2/Override3/build.xml b/PrjJava/OCA7/Chapter2/Override3/build.xml new file mode 100644 index 0000000..49d8e84 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Override3. + + + diff --git a/PrjJava/OCA7/Chapter2/Override3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Override3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Override3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Override3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Override3/build/classes/override3/Game.class b/PrjJava/OCA7/Chapter2/Override3/build/classes/override3/Game.class new file mode 100644 index 0000000000000000000000000000000000000000..a6d51396d73892ce40df9cc3b0d85a76e826fdaf GIT binary patch literal 533 zcmY+AOHaZ;6ot?5D%2_n;`_Y<7j(hG1;&k0H$+G<><5_OkkXP;i2N*FXyU>j;Eyt% z78GeRy^o&n+`0Yw{`dq?#kq+T3K?vnn8vn=9qby|Gq5j^y3(!=t_9+ya$6vAQ0B28;xJ8GLTbg!9d!;p@kzHQ`)41cKek|#lVS$Q=Ac59mLTg zX*<&G+l|gZbpwIIvh_E8McA5+12yEv-h}dEJ<@B>Zu;5{T7j?RkQ>ZxR@(x`C=@v^ zxzZerW|QJoYvnetndH9?pBN7}f~cmL-Wz&`dIRIzH~C0i~r9b3x$V}Z&0vR63RGauQS;|iJP@w52XDUtg ziQ4zR|MLzAHVEYfO(btxa%gS93P(7+OFRZ453MJCS~m1tk^EYmMw + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Override3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Override3/nbproject/genfiles.properties new file mode 100644 index 0000000..bfff5b3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e582edbd +build.xml.script.CRC32=6b5d7907 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e582edbd +nbproject/build-impl.xml.script.CRC32=80faab5c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Override3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Override3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Override3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Override3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Override3/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Override3/nbproject/project.properties new file mode 100644 index 0000000..ef03230 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override3/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}/Override3.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.7 +javac.target=1.7 +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=override3.Override3 +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/PrjJava/OCA7/Chapter2/Override3/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Override3/nbproject/project.xml new file mode 100644 index 0000000..f1decfe --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Override3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Override3/src/override3/Override3.java b/PrjJava/OCA7/Chapter2/Override3/src/override3/Override3.java new file mode 100644 index 0000000..34abedf --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Override3/src/override3/Override3.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package override3; + +/** + * + * @author andad + */ +class Game { + + public void play() throws Exception { + System.out.println("Playing..."); + } +} + +public class Override3 extends Game { + + /** + * @param args the command line arguments + */ + public void play() { + System.out.println("Playing Soccer..."); + } + + public static void main(String[] args) throws Exception { + // TODO code application logic here + Game g = new Override3(); + g.play(); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Overriding4/build.xml b/PrjJava/OCA7/Chapter2/Overriding4/build.xml new file mode 100644 index 0000000..a698ff0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overriding4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Overriding4. + + + diff --git a/PrjJava/OCA7/Chapter2/Overriding4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Overriding4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overriding4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Overriding4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overriding4/build/classes/overriding4/Overriding4.class b/PrjJava/OCA7/Chapter2/Overriding4/build/classes/overriding4/Overriding4.class new file mode 100644 index 0000000000000000000000000000000000000000..4847d33c1004a463a7c6a8a83fa434124347c55c GIT binary patch literal 816 zcmZ`%O>fgs5S*7dabirGq|~Ja3gy#Dq2}v?int(h=e$~>63ZLu_N25;6HJJ zLyJJ-2k@g1^Bh#CDjee7o!MQ_PW?!?80dYH`8v3#!dmF)%b+gh%TCM**@ z8+~*HR{wLTi7gwqamPj*9TVF&JlqxNEVdT{sH$|~SP45zly1pTrUH#=kY=(luU*o^ zPgyP}{J)Z!c6IKJO1zhJG^ejJnDEN^TTa3P=2SODbk%SNy%9F~RW$gufKlj6`8>nQ zV-$?F{t?6%CKcFx)(gb Pbyf!B1^zBFui(-jwHKx^ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Overriding4/build/classes/overriding4/Utils.class b/PrjJava/OCA7/Chapter2/Overriding4/build/classes/overriding4/Utils.class new file mode 100644 index 0000000000000000000000000000000000000000..5c4363fa7bb526d092263194aef2ab981e0a5cec GIT binary patch literal 445 zcmZWlu};G<5PeS42121}Ld%9=YZ=G@5ACp20nm~ zLR?bR47FsxyLb2Qp8WIs^$p+xM;>g1E)HFE8JgEpNpr(s_Xkr3=Qf`ShITBKcv!w9 zLO=2(BPNLRlxI_}Wtsnzj(L^^Lm1~Pp|zYzHNT9WjLeE5O`Z!gQih@1j~9H!ql~M0 zG%=dGhJz6UBWbW*V({+XQt@hJt_l}D$|w0!r{Z3gM*MNT>%5%Xf`bM_XUhZi)_cdv zLZoCStf|cwoWP<#DUU^$#)0fp6cIAQ#@Q#>M^$#|ZC2zlb|`MG8?XzHGGLDws}f&P jr5tDb?mK~nT6$VZd+YK>YGWS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Overriding4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/genfiles.properties new file mode 100644 index 0000000..e3dcf08 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=226fd338 +build.xml.script.CRC32=7550b12e +build.xml.stylesheet.CRC32=8064a381@1.79.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=226fd338 +nbproject/build-impl.xml.script.CRC32=9c9ba4ed +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/config.properties b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/private.properties new file mode 100644 index 0000000..d7c1229 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=5 +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Overriding4/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/project.properties new file mode 100644 index 0000000..384dba2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Overriding4 +application.vendor=andad +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}/Overriding4.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=overriding4.Overriding4 +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/PrjJava/OCA7/Chapter2/Overriding4/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/project.xml new file mode 100644 index 0000000..3c02aa6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overriding4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Overriding4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Overriding4/src/overriding4/Overriding4.java b/PrjJava/OCA7/Chapter2/Overriding4/src/overriding4/Overriding4.java new file mode 100644 index 0000000..0cce5bc --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Overriding4/src/overriding4/Overriding4.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package overriding4; + +/** + * + * @author andad + */ +public class Overriding4 extends Utils { + + /** + * @param args the command line arguments + */ + int getInt(String s) { + return Integer.parseInt(s); + } + + public static void main(String[] args) throws Exception{ + // TODO code application logic here + Utils u = new Overriding4(); + System.out.println(u.getInt(args[0])); + + } + +} + +class Utils { + + int getInt(String s) throws Exception { + return 7; + } +} diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/build.xml b/PrjJava/OCA7/Chapter2/PaaByValue3/build.xml new file mode 100644 index 0000000..19753d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PaaByValue3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PaaByValue3. + + + diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/PaaByValue3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/PaaByValue3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/build/classes/paabyvalue3/PaaByValue3.class b/PrjJava/OCA7/Chapter2/PaaByValue3/build/classes/paabyvalue3/PaaByValue3.class new file mode 100644 index 0000000000000000000000000000000000000000..bfbd71ee0a98d14650578db3cecc083719c0aef8 GIT binary patch literal 1037 zcmaJ8oHV+2y5Uzz;8*$7e zk<HgieLYoE7Kz=DOx78V5(Ysy#QhJfMDmIch0&3#W`u%vwNO}kO`g153-Cz38T zYqDOJfzo*oG{cYTNMO9wlCpYoEbDErSlE$r^Q0Wbt0Yu@EueF^G`;ZoZ3)EPN|eVc zOw5K<#7Esq=};caLS6a?h21bv{=sUbNd^a;GJHjuY)a2~5pagR+iV9l@0HSehtA2! zYgz|`7;-R*F>NL+6dgRllEB#CLpR&1zVB(#D!ZO_u#6RLo(eeGtR7Wacpnv>;kkuX z2Wwa-%|CWPDg6Q4)kCiqUVwH_jzX`&{WsezWV$O*&B6}vA94$xY;cVU*=l+IzQDYD z#gZ;Ty(_SBii`hGIT<#)n-&;xFCQeqaHRgCAOWkT<<&rf{pr@tGV3u@!U8{9*4I=JxB! zGsNc3V0?x79r3+WB+^y~$;l1|(l&!RBhRpdYaKZKkrTW$NFT!#Y|^K2o0pj8OUp(Q bvfVL6r+F@hCF0{0VPl@#)qMhYqsqNMjGV`q literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/manifest.mf b/PrjJava/OCA7/Chapter2/PaaByValue3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PaaByValue3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/build-impl.xml new file mode 100644 index 0000000..fa2ea22 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/genfiles.properties new file mode 100644 index 0000000..91744d1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4a65b4c6 +build.xml.script.CRC32=1324f0ae +build.xml.stylesheet.CRC32=8064a381@1.79.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=4a65b4c6 +nbproject/build-impl.xml.script.CRC32=94e70ddc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/project.properties b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/project.properties new file mode 100644 index 0000000..ed71d57 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PaaByValue3/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}/PaaByValue3.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.7 +javac.target=1.7 +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=paabyvalue3.PaaByValue3 +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/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/project.xml b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/project.xml new file mode 100644 index 0000000..19b1ad6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PaaByValue3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + PaaByValue3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/PaaByValue3/src/paabyvalue3/PaaByValue3.java b/PrjJava/OCA7/Chapter2/PaaByValue3/src/paabyvalue3/PaaByValue3.java new file mode 100644 index 0000000..9560092 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PaaByValue3/src/paabyvalue3/PaaByValue3.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package paabyvalue3; + +/** + * + * @author andad + */ +public class PaaByValue3 { + + /** + * @param args the command line arguments + */ + public static void incr(int n) { + n++; + } + + public static void incr(int[] n) { + n[0]++; + } + + public static void main(String[] args) { + // TODO code application logic here + int i = 1; + int[] iArr = {1}; + incr(i); + incr(iArr); + System.out.println("i = " + i + " iArr[0] = " + iArr[0]); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Private1/build.xml b/PrjJava/OCA7/Chapter2/Private1/build.xml new file mode 100644 index 0000000..3e57944 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Private1. + + + diff --git a/PrjJava/OCA7/Chapter2/Private1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Private1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Private1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Private1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Private1/build/classes/private1/Private1.class b/PrjJava/OCA7/Chapter2/Private1/build/classes/private1/Private1.class new file mode 100644 index 0000000000000000000000000000000000000000..ef19ed218b2832d57bbf3e51cb2a6b193f7f9196 GIT binary patch literal 715 zcmZuv$xZ@65Pdx?!z{`s2#O1?V4}ouFh=9W#1l~?#>9APaDY~rF~dOOXX!x_P5b~q z%2O3bHcH%8=7AhxrH=bSxsTVu>NVFKpo* zFa!$43x?pKb8Rt1E5f#pd!3r)p7UCpkVM6)^Y#UIg{*xr=(R+bAz8U|MW1`tcInh# z>=9Lm3!5QbxT@UnJ}zyQ~>HQ@^!5hS-?g z`>tno=yIGMZKOVp2uIqqJ@R7l4mnK@8-BtJAtJVASK&YZ$kTgh^jJU;B{L=mG(LmUZ0Wb-bamd(Zsl*<7EPY8Zf$R7YCY1Y&j zjX}s1;gGlG)08QXG=zQ=WJqv!j3DIeP~=Vf1UtSC?GfRG`h>`Dk{lxR6~E1BJ_*A# IDN&I50FCE-JOBUy literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Private1/build/classes/private1/Rocket.class b/PrjJava/OCA7/Chapter2/Private1/build/classes/private1/Rocket.class new file mode 100644 index 0000000000000000000000000000000000000000..3e1b73f451212e755d966bf1d930bf91de936eaf GIT binary patch literal 480 zcmZut$xZ@65Pb~;voOjg?n}IZ2PejZ2aFdJPZKd>xc7_=HViXnXh{4lJ!s;=5AdUm zH4Sl#eW>bs_1>%Me*buV18|Hz2SrqE)KIsu;-G<56Kf{c8H%SemgEZ&`@`B!cg_^Q#s>G9C_DCI1;MOU7bYwd8!k4nMY97Q4@_*k*ugIC@W+&)l8L;CSY9U>ictN6 zx(^d2#`KV6N{xoE$ujY-QW>kRN(CR&UiE)qh62rsGgWgg(=$jT<3YRC!#)c1f!WD{ zWlK}Esq!c@%7ud$ut(i?C>Ay7qC|IhPN2M``^#VA6Kw|APsr8s&oI6X9BKh&qE>#G M*b5W-8f{hi1p8WD$p8QV literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Private1/manifest.mf b/PrjJava/OCA7/Chapter2/Private1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Private1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Private1/nbproject/build-impl.xml new file mode 100644 index 0000000..82b18e7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Private1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Private1/nbproject/genfiles.properties new file mode 100644 index 0000000..2cb8339 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=53a02514 +build.xml.script.CRC32=208d4065 +build.xml.stylesheet.CRC32=8064a381@1.79.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=53a02514 +nbproject/build-impl.xml.script.CRC32=89d93eb0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Private1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Private1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Private1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Private1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Private1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Private1/nbproject/project.properties new file mode 100644 index 0000000..7c45cf7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/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}/Private1.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.7 +javac.target=1.7 +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=private1.Private1 +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/PrjJava/OCA7/Chapter2/Private1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Private1/nbproject/project.xml new file mode 100644 index 0000000..23d9d44 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Private1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Private1/src/private1/Private1.java b/PrjJava/OCA7/Chapter2/Private1/src/private1/Private1.java new file mode 100644 index 0000000..b5736b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/src/private1/Private1.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package private1; + +/** + * + * @author andad + */ +public class Private1 extends Rocket{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Private1().go(); + } + + void go() + { + blastOff(); + } + private void blastOff() + { + System.out.print("sh-bang"); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Private1/src/private1/Rocket.java b/PrjJava/OCA7/Chapter2/Private1/src/private1/Rocket.java new file mode 100644 index 0000000..50ade0a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private1/src/private1/Rocket.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package private1; + +/** + * + * @author andad + */ +public class Rocket { + private void blastOff() + { + System.out.print("bang"); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Private2/build.xml b/PrjJava/OCA7/Chapter2/Private2/build.xml new file mode 100644 index 0000000..d61ce2c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Private2. + + + diff --git a/PrjJava/OCA7/Chapter2/Private2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Private2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Private2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Private2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Private2/build/classes/private2/A.class b/PrjJava/OCA7/Chapter2/Private2/build/classes/private2/A.class new file mode 100644 index 0000000000000000000000000000000000000000..be34da18364f88c7ce64e1eaa76151238ca2c422 GIT binary patch literal 321 zcmYLE%}T>S7@SSgu8rF!sa3BYH3tLss0dOJgrI`b`z9{BAtn;jzL$q0c<=#yC~*=B z9=`d0c4nCU`ThC^Fvp>f0j48(*y~^>u`h8TAS~;KRR|0(Y-QU^0r&W1Dc~*YCnFG~ zwlcS?*UU7JIxBgZrgg5%rEYAuZ;xL4V&4T+`qtRBZp~S8buQpP)T<^p*S6D*@3&8< zg nA>z>Az=^}z2JS~MQN#&cqN3r1vH;_L>ue%k0(J%|a%^}l+Mpoc!dkBZKe zPz?9nIp^Fn%*^)d;}gIcjw4i%)DYm%!BL1-h_*m1>z4H_s9xBGEiVOr?_?whhWXS8 z8kt>~yVc9s6pwm5r;=p(M9)XMu#WGd*9AE7TAvR1qrdA>`~|@;|vkmlv+^6&@GIxf7T8>2Rlz?~@Jb3wtwthoo_5122tx f8~AS&Jt*P9WuR$h=i5{BYEG{x> literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Private2/build/classes/private2/C.class b/PrjJava/OCA7/Chapter2/Private2/build/classes/private2/C.class new file mode 100644 index 0000000000000000000000000000000000000000..97c04619eba444e25f1cabb557ffba6928edf62e GIT binary patch literal 247 zcmYk0%?`mp6ot>NYN?@OWod~82}@!@V%3O*bU&?0jFd{1_p*{$cmNM2ZcD->Gw0`i zH<{<_{s1sU-9Z6W8#Nm)!5Zs>PA7yyyWGA iTI~9)SySxZKvy;fY<{i0Y@)T_W+WXtz@kB@l8fV=NYqlhQwmJM!RQp+$E~{GH{JPU5`DaKxVRv zu)Resm$or@pJroE^w((_Uu!wcAX8V%HR&>f<+|2F0W!Ue_eo&h=ya|Ss*q)5L&syV zS3j)M8TQFMV&ton1gs)XD2fD<#CXLG5|hZLzaZU>5zyZdJb6dx1L1|#Dgu;Jr0yl8 Zp!t&7Ng3fZ#UdoOh75_)(-D@i{s*hLb-w@r literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Private2/manifest.mf b/PrjJava/OCA7/Chapter2/Private2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Private2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Private2/nbproject/build-impl.xml new file mode 100644 index 0000000..85ed2f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Private2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Private2/nbproject/genfiles.properties new file mode 100644 index 0000000..f867008 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4b94b17e +build.xml.script.CRC32=52b69af5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4b94b17e +nbproject/build-impl.xml.script.CRC32=96ab0c89 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Private2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Private2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Private2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Private2/nbproject/project.properties new file mode 100644 index 0000000..2876c2e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private2/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}/Private2.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.7 +javac.target=1.7 +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=private2.Private2 +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/PrjJava/OCA7/Chapter2/Private2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Private2/nbproject/project.xml new file mode 100644 index 0000000..f34d474 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Private2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Private2/src/private2/Private2.java b/PrjJava/OCA7/Chapter2/Private2/src/private2/Private2.java new file mode 100644 index 0000000..45212b8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Private2/src/private2/Private2.java @@ -0,0 +1,43 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package private2; + +/** + * + * @author andad + */ +class A { + + public int i = 10; + private int j = 20; +} + +class B extends A { + + private int i = 30; //1   + public int k = 40; +} + +class C extends B { +} + +public class Private2 { + + /** + * @param args the command line arguments + */ + + + public static void main(String[] args) { + // TODO code application logic here + C c = new C(); + // System.out.println(c.i); //2 + //System.out.println(c.j); //3 + System.out.println(c.k); + + } + +} diff --git a/PrjJava/OCA7/Chapter2/PrivateClass1/build.xml b/PrjJava/OCA7/Chapter2/PrivateClass1/build.xml new file mode 100644 index 0000000..c329847 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PrivateClass1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PrivateClass1. + + + diff --git a/PrjJava/OCA7/Chapter2/PrivateClass1/manifest.mf b/PrjJava/OCA7/Chapter2/PrivateClass1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PrivateClass1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/build-impl.xml new file mode 100644 index 0000000..9a764dd --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/genfiles.properties new file mode 100644 index 0000000..b73015f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b446cb5e +build.xml.script.CRC32=5a4c4bbb +build.xml.stylesheet.CRC32=8064a381@1.79.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=b446cb5e +nbproject/build-impl.xml.script.CRC32=8eb93a29 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/project.properties new file mode 100644 index 0000000..5a8ca7b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PrivateClass1/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}/PrivateClass1.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.7 +javac.target=1.7 +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=privateclass1.PrivateClass1 +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/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/project.xml new file mode 100644 index 0000000..0332b4c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PrivateClass1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + PrivateClass1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/PrivateClass1/src/privateclass1/PrivateClass1.java b/PrjJava/OCA7/Chapter2/PrivateClass1/src/privateclass1/PrivateClass1.java new file mode 100644 index 0000000..2f58261 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/PrivateClass1/src/privateclass1/PrivateClass1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package privateclass1; + +/** + * + * @author andad + */ +public class PrivateClass1 { +//private class PrivateClass1 { modifier is not permis here + + /** + * @param args the command line arguments + */ + private class InnerClass + { + + } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Protected1/build.xml b/PrjJava/OCA7/Chapter2/Protected1/build.xml new file mode 100644 index 0000000..97bb9d9 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Protected1. + + + diff --git a/PrjJava/OCA7/Chapter2/Protected1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Protected1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Protected1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Protected1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Protected1/build/classes/protected1/Felix.class b/PrjJava/OCA7/Chapter2/Protected1/build/classes/protected1/Felix.class new file mode 100644 index 0000000000000000000000000000000000000000..c13f64fbcb3895bac67a528b2a9e0a3bee38c1ee GIT binary patch literal 379 zcmZ8dJx{|h6g;PHLY+VZl#i7SIy9=75Qqh-5~zX!)ZIxfa1|01Qq(`iz<`h#_yPPV z#5u}wS*3~U2>j(SndQVkZo2)kTaWXNvU7gY|({shUi_d59qE5xkV@?ys zkkv_31L5!kVi>D;cyA3UVpMDb5vA*#E)$F)HqhrT5o5Ep8MQWYfX*v>9=YJbjvxQg L%2vxSXjt37Ff=+a literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Protected1/build/classes/protected1/Protected1.class b/PrjJava/OCA7/Chapter2/Protected1/build/classes/protected1/Protected1.class new file mode 100644 index 0000000000000000000000000000000000000000..d737a143cbda1007d7a1556d81610858f09a05f4 GIT binary patch literal 739 zcmZvZZ)+1l5XPUmTynj5HZf@u|5U53ZIf0T#5Y34H$tIusL&D+Uv1MRu3YZI^-}ah z`9cv33Vr}Tl=$o=wWoC9Zf0lanfcA`uixK)0(gvvRb0V}hr3lcSn+WWt3JK8D(+*w z%oMx4bI13vA*ehxvB{nZO5NT-;66`|wV)Q7SihW(k92ydjv_`HVKP+FK&8g+=Rr4n zXHEp2aFQmO9%lOZQUCQ{cbDbH%EW?p_igxIovMDM;!*z~OHDl5&D*JT!~)Grjs-Fy z)lg+Q+Y1)!?)PZq1HXMi^&pw1L%nA#UhSgoj_nj6z*Rx(QZNsj0lMe~xP@g8TLHH5 zKu|9v@9D^}PrX3>@g&n@vLsUywPy2}g!7s><49VKIdC%<{2LZ{6PpzAChQCYK8(Yc zvde{7QvMgY>(dHtdFu@FnT~@R|CKx#piV!SCEyww-1%r?i4iM)#cYSR`2)_IGnB$F zaJRpr{0)_hQi~|r6f98IKr1iVp2@gt^K5}+9iEXD*KuQBe1|!f%w2-_iM9yVDS)|i iFo)WkbL|smTQF+<|Fz2nf^)6C6+R5rg4=noJAVMWJb3j0 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Protected1/manifest.mf b/PrjJava/OCA7/Chapter2/Protected1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Protected1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Protected1/nbproject/build-impl.xml new file mode 100644 index 0000000..c72a295 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Protected1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Protected1/nbproject/genfiles.properties new file mode 100644 index 0000000..d31683c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=29dc3595 +build.xml.script.CRC32=82cb548e +build.xml.stylesheet.CRC32=8064a381@1.79.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=29dc3595 +nbproject/build-impl.xml.script.CRC32=7069d3e9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Protected1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Protected1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Protected1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Protected1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Protected1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Protected1/nbproject/project.properties new file mode 100644 index 0000000..df13958 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/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}/Protected1.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.7 +javac.target=1.7 +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=protected1.Protected1 +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/PrjJava/OCA7/Chapter2/Protected1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Protected1/nbproject/project.xml new file mode 100644 index 0000000..55bc5dd --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Protected1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Protected1/src/protected1/Felix.java b/PrjJava/OCA7/Chapter2/Protected1/src/protected1/Felix.java new file mode 100644 index 0000000..6967145 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/src/protected1/Felix.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package protected1; + +/** + * + * @author anda + */ +public class Felix { + protected int x = 10; + protected long cat() + { + return 7L; + } + +} diff --git a/PrjJava/OCA7/Chapter2/Protected1/src/protected1/Protected1.java b/PrjJava/OCA7/Chapter2/Protected1/src/protected1/Protected1.java new file mode 100644 index 0000000..40a1856 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected1/src/protected1/Protected1.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package protected1; + +/** + * + * @author anda + */ +public class Protected1 extends Felix{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Protected1 p = new Protected1(); + System.out.println(p.x); + } + protected long cat() { + return 7; + } + + private long cat(int x) + { + return 9; + } + +} diff --git a/PrjJava/OCA7/Chapter2/Protected2/build.xml b/PrjJava/OCA7/Chapter2/Protected2/build.xml new file mode 100644 index 0000000..bfea4a8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Protected2. + + + diff --git a/PrjJava/OCA7/Chapter2/Protected2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Protected2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Protected2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Protected2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Protected2/build/classes/newpackage/NewClass.class b/PrjJava/OCA7/Chapter2/Protected2/build/classes/newpackage/NewClass.class new file mode 100644 index 0000000000000000000000000000000000000000..68b4bfd106671c4f026127da4f4d78abba2a9b07 GIT binary patch literal 605 zcmZuv+e*Vg5Iq~Cu`%^hZMEL-Rt1atsQ6M43PFU5AmYO|E^#%NlBBkNmLduYet;h( z&ZhP9&^&C;%$YrNW_Lfo-aY{AW7EVSCJjuP&@h=n5z`q$GbUy+r_j8C1%`n`8OY>_ zp|7-g&Y)MqYr!yL%Rrno{kn+Gc-^B+&JG>!o%2YlxSQ0I8yPd??Lf2|+_~efD4&Q{ z#p7{&Kw>_Z0Yjm5Y2WgDUiNt4mTO5Q1NR_p#v_-ukN2P%w8k!jSqqzyBaWrAko}R~ zQEC=4Fllp-)&>?WEMeKg3RVrQSy;!0g%VcDYalxS~o`JNFLl;uU@N6ZGw8^uJ)BgA77{ l!a0%z3hI53^b|daV%nh45uw~T@q@@?f?6qWd5Sd@z5(uBb=&{| literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Protected2/build/classes/protected2/NewClass.class b/PrjJava/OCA7/Chapter2/Protected2/build/classes/protected2/NewClass.class new file mode 100644 index 0000000000000000000000000000000000000000..70644292f98734549b19c09d0610356e76780efd GIT binary patch literal 619 zcmZuu*-FDe6g`vH#>S}CTK9cz6%6R3;)@^%L4`^|e44gH9Z8dtrY@hQh=PJ2;75rk zt=bA^$lN)1Ip^M)kI&b40J|ty=*OgqDGLTB)0oCgnx|O{bC@@=U}8}qwXc009S9`y zg_1z>FsLelVORU=q*X7g@LZNXdPd!#BE6Cfb&S8A$>>Tq1#)g93?fyDRCUKWQMZSl zY&Q2uR+rir7|&n2*YZX>p7d)@F$%R`+iQ!-u*UN2KVbpU5SZvCKKs=mwN(sSVMQJ3 zxVOO{&FxsmMj95I>glOlYGTR8GFEJ?V$H<5jSb}4LQnD!nLwu7^=bK<^ZjuZ@0*dT z^WuUQ1G&zKI&jW7U&JYutg}&Z$N!iLZLYsz0kaV&d%UD%{L7weS0){Y5ltu<4^u)!dBr|BUZ!j)ikZ>Q7++60RcZw-moS%>Jj6G#Kfdg6ATwm3pBU{T2hPQZ+Rdl9{d6R zDC6vEtOpJ|JMVlvGnvn?_YVLUICN1$%YlWqGJ7`mZ5$A2#qWk-tj-AKOPR?0iePq* z2L!8^j$=YKl1Y5KoDbvdK@4XcsYmHZ%myNpO8*9}{7F6&+R-9Q^LUiU|^*E7D7|_^|Cb<1{nT_IWspeM;?x{j~aNv3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Protected2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Protected2/nbproject/genfiles.properties new file mode 100644 index 0000000..3331df9 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=31e8a1ff +build.xml.script.CRC32=f086d7f7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=31e8a1ff +nbproject/build-impl.xml.script.CRC32=613f5169 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Protected2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Protected2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Protected2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Protected2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Protected2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Protected2/nbproject/project.properties new file mode 100644 index 0000000..e69cd53 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected2/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}/Protected2.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.7 +javac.target=1.7 +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=protected2.Protected2 +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/PrjJava/OCA7/Chapter2/Protected2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Protected2/nbproject/project.xml new file mode 100644 index 0000000..0330a66 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Protected2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Protected2/src/newpackage/NewClass.java b/PrjJava/OCA7/Chapter2/Protected2/src/newpackage/NewClass.java new file mode 100644 index 0000000..c8d74f4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected2/src/newpackage/NewClass.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package newpackage; + +import protected2.Protected2; + +/** + * + * @author andad + */ +public class NewClass extends protected2.Protected2 { + + public NewClass() { + + } + + public static void main(String[] args) { + // TODO code application logic here + NewClass p1 = new NewClass(); + System.out.println(p1.x1); + System.out.println(p1.x); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Protected2/src/protected2/NewClass.java b/PrjJava/OCA7/Chapter2/Protected2/src/protected2/NewClass.java new file mode 100644 index 0000000..7282209 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected2/src/protected2/NewClass.java @@ -0,0 +1,20 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package protected2; + +/** + * + * @author andad + */ +public class NewClass{ + + public static void main(String[] args) { + // TODO code application logic here + Protected2 p = new Protected2(); + System.out.println(p.x); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Protected2/src/protected2/Protected2.java b/PrjJava/OCA7/Chapter2/Protected2/src/protected2/Protected2.java new file mode 100644 index 0000000..877fabb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Protected2/src/protected2/Protected2.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package protected2; + +/** + * + * @author andad + */ +public class Protected2 { + + /** + * @param args the command line arguments + */ + protected int x = 11; + public int x1 = 12; + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Question4/build.xml b/PrjJava/OCA7/Chapter2/Question4/build.xml new file mode 100644 index 0000000..5774155 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Question4. + + + diff --git a/PrjJava/OCA7/Chapter2/Question4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Question4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Question4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Question4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Question4/build/classes/com/Cat.class b/PrjJava/OCA7/Chapter2/Question4/build/classes/com/Cat.class new file mode 100644 index 0000000000000000000000000000000000000000..cc82431020f1f471235069ee808e5461e3ae5c5c GIT binary patch literal 463 zcmZut%SyvQ6g`u+c^U1?`qtvEbzv3?E-Hc)T!kW3x}VmejwCahP6R(o7YZ)?06$8+ zNlSI%Ebil+d(OSg*Z0RKfD^QR*rPSq!H-}k4HR}dA|V5=1$HSylA46u+L48>W5S+GvEnn{Gra$iMW!v zflK`HJ%8c>9Jmg)1MFaz_7d)3FTg$y7@UO@L+vpWGb6P+4KI~UcuY_(4`Z&T;qZB8 zL_%tv8HQF=Fj9xt`Szhn1yAUh=07m)C{BzO={j@a+|rPC+Ut&Rhzk8z{w&ZqT#6ob zA!SCna`X=NQqVp{y8r{MP#w$%D6dk-u(lMR6=s0<3ae3iL;2UhCkm+2X#J0gw=}5| HYoYc7^BPw9 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Question4/build/classes/question4/Animal.class b/PrjJava/OCA7/Chapter2/Question4/build/classes/question4/Animal.class new file mode 100644 index 0000000000000000000000000000000000000000..239f4b0ea2cc8b7e6136268bf174701db72a0239 GIT binary patch literal 487 zcmZut%SyvQ6g`tZ(xlPE*80}su61D+3N9*w2(C&MD&0@(P^TmlO(ue$r3(cYet;h( z-Xu~VIE%S+&ui|?`^W1WfCIE`RIy~Cfo2WMHdV;%~#_zcU6Ezd-4mPk!!xWT>EeG4!VetM26O{SgQq^`Ip%+Lmdkq(rnFtUCqZ9CT2pvr`DDE>Op?I5!{VVSx1nqfvTB`8&WS3UEp4{Rpw< JAuh27yia`CV4eT~ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Question4/build/classes/question4/Question4.class b/PrjJava/OCA7/Chapter2/Question4/build/classes/question4/Question4.class new file mode 100644 index 0000000000000000000000000000000000000000..75c807302bb0252e8dd1ccb40a2c04c533833cb3 GIT binary patch literal 507 zcmZut%SyvQ6g`tZ(#AHetxbJHcU8eGbXO6iAPAu%m4djM#!#mu6HTZ7mm3QTet;h( z-buCDIE(u@_nvbu^Y#7y3E%|#7K(68v@IBLENo)S#I}hYhT@r!LY*_@x(6eMd_R5& z7;2u7!C)SZgXETvLqZx}?DKHM6QTQGFs~lPjG^T{&x4r~u{?Ee{;D2{MO;V*r+e>B z`3rYLE+_6#B|=VmsTofuL~s5xW?)>KX2KUzL_8!_YZ%WHKe!b7EPLg5tSu@qQDQLt zICA@3nb@shPb1AtXvJWtXJ=iHr-82s$`+T74CN=fSPgg-po0Saq<#j-1|^DR>Rif< za^Y|R_L`0@ip3PPu|{=exj?x}T^TlNglO^=i5ZluA299~$azO^$Y&xpax`p_mqX-s YD&{N+sAHXGCAzACCdn~uP;a3117;3nfB*mh literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Question4/manifest.mf b/PrjJava/OCA7/Chapter2/Question4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Question4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Question4/nbproject/build-impl.xml new file mode 100644 index 0000000..ebab7e7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Question4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Question4/nbproject/genfiles.properties new file mode 100644 index 0000000..9e19b04 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=04db4800 +build.xml.script.CRC32=944c66e4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=04db4800 +nbproject/build-impl.xml.script.CRC32=3f935153 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Question4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Question4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Question4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Question4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Question4/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Question4/nbproject/project.properties new file mode 100644 index 0000000..5b0d210 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/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}/Question4.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.7 +javac.target=1.7 +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=question4.Question4 +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/PrjJava/OCA7/Chapter2/Question4/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Question4/nbproject/project.xml new file mode 100644 index 0000000..fec19d4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Question4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Question4/src/com/Cat.java b/PrjJava/OCA7/Chapter2/Question4/src/com/Cat.java new file mode 100644 index 0000000..5edb92f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/src/com/Cat.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package com; +import question4.Animal; +/** + * + * @author anda + */ +public class Cat extends Animal { + + public void printName() { + System.out.println("Cat"); + + } +} diff --git a/PrjJava/OCA7/Chapter2/Question4/src/question4/Animal.java b/PrjJava/OCA7/Chapter2/Question4/src/question4/Animal.java new file mode 100644 index 0000000..a094b3b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/src/question4/Animal.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question4; + +/** + * + * @author anda + */ +public class Animal { + + public void printName() { + System.out.println("Animal"); + } +} diff --git a/PrjJava/OCA7/Chapter2/Question4/src/question4/Question4.java b/PrjJava/OCA7/Chapter2/Question4/src/question4/Question4.java new file mode 100644 index 0000000..5150589 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Question4/src/question4/Question4.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question4; + +import com.Cat; + +/** + * + * @author anda + */ +public class Question4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + Animal a = new Cat(); + a.printName(); + } + +} diff --git a/PrjJava/OCA7/Chapter2/ReturnType/Return1/build.xml b/PrjJava/OCA7/Chapter2/ReturnType/Return1/build.xml new file mode 100644 index 0000000..94d2ada --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/Return1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Return1. + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/Return1/manifest.mf b/PrjJava/OCA7/Chapter2/ReturnType/Return1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/Return1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/build-impl.xml new file mode 100644 index 0000000..a3cda03 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/genfiles.properties new file mode 100644 index 0000000..4ea6b19 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=85c5808e +build.xml.script.CRC32=b6e328ec +build.xml.stylesheet.CRC32=8064a381@1.79.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=85c5808e +nbproject/build-impl.xml.script.CRC32=f844f961 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/project.properties new file mode 100644 index 0000000..c40713a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/Return1/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}/Return1.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.7 +javac.target=1.7 +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=return1.Return1 +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/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/project.xml new file mode 100644 index 0000000..d9f8c68 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/Return1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Return1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/Return1/src/return1/Return1.java b/PrjJava/OCA7/Chapter2/ReturnType/Return1/src/return1/Return1.java new file mode 100644 index 0000000..4e679fa --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/Return1/src/return1/Return1.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package return1; + +/** + * + * @author andad + */ +public class Return1 { + + /** + * @param args the command line arguments + */ + public float parseFloat(String s) { + float f = 0.0f; + try { + f = Float.valueOf(s).floatValue(); + return f; + } catch (NumberFormatException nfe) { + System.out.println("Invalid input " + s); + f = Float.NaN; + return f; + } finally { + System.out.println("finally"); + } + //return f; + } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/build.xml b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/build.xml new file mode 100644 index 0000000..f812b16 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ReturnValue. + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/build/classes/returnvalue/ReturnValue.class b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/build/classes/returnvalue/ReturnValue.class new file mode 100644 index 0000000000000000000000000000000000000000..c14225fb5b31dd505248de3447f5135be5de6e3b GIT binary patch literal 931 zcmZ`%+iufP5S$Y`HgOFNxwM3~KntW!3N>x%QxS>;0#!r=H7HWlCnvbURbnI8uEbC9 zB|HER1tG)-@KK04b_gy4OWw1)-ksUm;~zi2eh09FT?2EtskK@yhCl(gaNB@^x`B0A z(rZZ5l;MVsJ38(PXb(K!iyjInR--4NJ_=sB0`qOpcb~_Tfg8Sb24iMQ?O^DPdrs)d zc$!qB*WQUhtsS~i9QvouICkxW#P3OekAO!(u$7?i3y34WkJIF~Kw;!Yox!m?j07rH zqkZh0I`-J{M|PTJyW+GT7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/genfiles.properties new file mode 100644 index 0000000..c668b5f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c234134c +build.xml.script.CRC32=6d81f1d0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c234134c +nbproject/build-impl.xml.script.CRC32=087bd8d2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/project.properties b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/project.properties new file mode 100644 index 0000000..32a82ad --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/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}/ReturnValue.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.7 +javac.target=1.7 +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=returnvalue.ReturnValue +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/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/project.xml b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/project.xml new file mode 100644 index 0000000..0fefa74 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ReturnValue + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/src/returnvalue/ReturnValue.java b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/src/returnvalue/ReturnValue.java new file mode 100644 index 0000000..cb11b60 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/ReturnValue/src/returnvalue/ReturnValue.java @@ -0,0 +1,45 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package returnvalue; +import static java.lang.System.out; + +/** + * + * @author anda + */ +public class ReturnValue { + + /** + * @param args the command line arguments + */ + public static int foo1() + { + double f = 32.5f; + return (int)f; + } + public static void foo2() + { + return; + } + public static Object getObject() + { + int[] num = {1, 2,3}; + return num; + } + public static int foo() + { + return 'c'; + } + public static void main(String[] args) { + // TODO code application logic here + out.println(foo()); + out.println(foo1()); + out.println(getObject()); + + + } + +} diff --git a/PrjJava/OCA7/Chapter2/ReturnType/build.xml b/PrjJava/OCA7/Chapter2/ReturnType/build.xml new file mode 100644 index 0000000..df9b4ae --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ReturnType. + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/ReturnType/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/ReturnType/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/ReturnType/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/ReturnType/build/classes/returntype/ReturnType.class b/PrjJava/OCA7/Chapter2/ReturnType/build/classes/returntype/ReturnType.class new file mode 100644 index 0000000000000000000000000000000000000000..27ab2f4b5f85a574a50b642a5cf4b0a347b4f50e GIT binary patch literal 709 zcmZuu(M}UV6g|@}yX~^JNVf$=r6}qagnjT4V+axxlZ_Hf8jVlec2WkryJXp#^aFhH zX9zq%qKO~iM;XuT5*reBGc)I&x%b>NGk^a6{0-nGwr$L#ZSJl!;%Dww3SeQ)hKY6+ zkMTsKbsJCd%))a4^OcHK_FACqb$SBEn`9^j>Vb;o`$^Q7>0#I(lUWRsK{)P(snYQ^ zX=F$0RA4DcWj0CUYKo0CM_^` zqLcJp?00%t<3r5n4^)QGJ~`JI`& z!5^r(D7{1XFyCN>R%)ZHv#*sjYNACg12&eh% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/ReturnType/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/ReturnType/nbproject/genfiles.properties new file mode 100644 index 0000000..67a140b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=096d1fd7 +build.xml.script.CRC32=fa765289 +build.xml.stylesheet.CRC32=8064a381@1.79.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=096d1fd7 +nbproject/build-impl.xml.script.CRC32=4218b772 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/ReturnType/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/ReturnType/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/ReturnType/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/ReturnType/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/nbproject/project.properties b/PrjJava/OCA7/Chapter2/ReturnType/nbproject/project.properties new file mode 100644 index 0000000..3eae44e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/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}/ReturnType.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.7 +javac.target=1.7 +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=returntype.ReturnType +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/PrjJava/OCA7/Chapter2/ReturnType/nbproject/project.xml b/PrjJava/OCA7/Chapter2/ReturnType/nbproject/project.xml new file mode 100644 index 0000000..3f8e508 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ReturnType + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/returnData/build.xml b/PrjJava/OCA7/Chapter2/ReturnType/returnData/build.xml new file mode 100644 index 0000000..cdfc8fe --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/returnData/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project returnData. + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/returnData/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/ReturnType/returnData/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/ReturnType/returnData/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/ReturnType/returnData/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/ReturnType/returnData/build/classes/returndata/ReturnData.class b/PrjJava/OCA7/Chapter2/ReturnType/returnData/build/classes/returndata/ReturnData.class new file mode 100644 index 0000000000000000000000000000000000000000..a1bc1f56d85212974334d2460c909d1ba6d2cfe4 GIT binary patch literal 664 zcmZuu-A)rh7(HLR?ZUdYK!5o07eUz~VQ;*H5Q2?YjT&ouS2{X5#&EqggB>MZ!?b>g|W1G4ml$zpu)ABlOd|au9O9s!#v}RyBQgGcn=Kmg`gb2Cq~{=?DDpn3*~Xa*ZYS SUAf|_!t4%D3GQ+&;NE`%1bzen literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/ReturnType/returnData/manifest.mf b/PrjJava/OCA7/Chapter2/ReturnType/returnData/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/returnData/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/build-impl.xml new file mode 100644 index 0000000..0203f1c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/build-impl.xml @@ -0,0 +1,1450 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set platform.home + Must set platform.bootcp + Must set platform.java + Must set platform.javac + + The J2SE Platform is not correctly set up. + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. + Either open the project in the IDE and setup the Platform with the same name or add it manually. + For example like this: + ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) + or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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: + + ${platform.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/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/genfiles.properties new file mode 100644 index 0000000..5902ec3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d458ad70 +build.xml.script.CRC32=5787e845 +build.xml.stylesheet.CRC32=8064a381@1.79.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=d458ad70 +nbproject/build-impl.xml.script.CRC32=ace4dc90 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/private/private.properties new file mode 100644 index 0000000..79325cb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/project.properties b/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/project.properties new file mode 100644 index 0000000..654c159 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/returnData/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}/returnData.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=returndata.ReturnData +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=JDK_1.8 +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/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/project.xml b/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/project.xml new file mode 100644 index 0000000..28c5a99 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/returnData/nbproject/project.xml @@ -0,0 +1,16 @@ + + + org.netbeans.modules.java.j2seproject + + + returnData + + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/ReturnType/returnData/src/returndata/ReturnData.java b/PrjJava/OCA7/Chapter2/ReturnType/returnData/src/returndata/ReturnData.java new file mode 100644 index 0000000..a92d313 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/returnData/src/returndata/ReturnData.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package returndata; + +/** + * + * @author andad + */ +public class ReturnData { + + /** + * @param args the command line arguments + */ + static double getData(byte a, double z) + { + return (short)a/z *10; + } + + public static void main(String[] args) { + // TODO code application logic here + System.out.println(getData((byte)2, 3.6)); + + } + +} diff --git a/PrjJava/OCA7/Chapter2/ReturnType/src/returntype/ReturnType.java b/PrjJava/OCA7/Chapter2/ReturnType/src/returntype/ReturnType.java new file mode 100644 index 0000000..df26b1a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/ReturnType/src/returntype/ReturnType.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package returntype; + +/** + * + * @author andad + */ +public class ReturnType { + + /** + * @param args the command line arguments + */ + + public double methodX( byte by){ + double d = 10.0; + return (long) by/d*3; + } + public static void main(String[] args) { + // TODO code application logic here + ReturnType r = new ReturnType(); + System.out.print(r.methodX((byte)1)); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static1/build.xml b/PrjJava/OCA7/Chapter2/Static/Static1/build.xml new file mode 100644 index 0000000..b588284 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Static1. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/Static1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/Static1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static1/build/classes/static1/Static1.class b/PrjJava/OCA7/Chapter2/Static/Static1/build/classes/static1/Static1.class new file mode 100644 index 0000000000000000000000000000000000000000..d733bac19380f5761e89d86fac9c1ed1ae24900f GIT binary patch literal 896 zcmaJ=ZEw<07(JH)h1$KrV7|b__cGmZ4*jx46PGMmLevC^*l7()KN3&8Qj8c9d`_5v7W=- z$lr_1{m48pV4<#KLm>Yt@caAz*b4>3p+I&|c`AG^pjq{fKziTrIRZ;9=e+AC$(=4B&G_BJ-s2OwDNvj9wtc6R@yx0&$E~`r{9zzB7?Rk#>>o zz$(%x!9 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/genfiles.properties new file mode 100644 index 0000000..51e303c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=89e8f49a +build.xml.script.CRC32=fdb9b747 +build.xml.stylesheet.CRC32=8064a381@1.79.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=89e8f49a +nbproject/build-impl.xml.script.CRC32=f7402450 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/project.properties new file mode 100644 index 0000000..99f6681 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static1/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}/Static1.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.7 +javac.target=1.7 +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=static1.Static1 +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/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/project.xml new file mode 100644 index 0000000..be433b0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Static1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static1/src/static1/Static1.java b/PrjJava/OCA7/Chapter2/Static/Static1/src/static1/Static1.java new file mode 100644 index 0000000..2adad04 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static1/src/static1/Static1.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static1; + +/** + * + * @author anda + */ +public class Static1 { + + /** + * @param args the command line arguments + */ + static int frogCount = 0; + + public Static1() + { + frogCount += 1; + } + + public static void main(String[] args) { + // TODO code application logic here + new Static1(); + new Static1(); + new Static1(); + System.out.println("FrogCount is now " + frogCount); + + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/build.xml b/PrjJava/OCA7/Chapter2/Static/Static2/build.xml new file mode 100644 index 0000000..0abe11a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Static2. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/Static2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/Static2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/build/classes/static2/Animal.class b/PrjJava/OCA7/Chapter2/Static/Static2/build/classes/static2/Animal.class new file mode 100644 index 0000000000000000000000000000000000000000..1da156ae47cb6b734e765bf1fe3b255448308894 GIT binary patch literal 459 zcmZutO-sW-5Ph3|Bu!(Rw$|^@gV1^~pvQ_Jf~TNDr1x#Qty_|fq#MDXr3VEM{s4cJ zI7vk)IER^?H}B2N&e!+HCxA2T+o+;dLmM3nt2Vk=GqG-BgQ0pZmDCpurCxu?P`*mW zf}!b4C2q2KB+`36iU?`@NywuiPi3C}f@S?6=M1ht*Idi+)VowN=Fxz`94CR!CKCob zNU}5(*D~)?Ul2}a{E0g-VVT%;u!U^~gCCgKaj=U$hQ@M38j&l!h^wi0JDQ15FG0cc zT#K0gkYrTo`UP1g-d!q{4sdD1 zk*`taQDhV=$M0Y-McF1_EkFl#dOHgO#TCjdH2%a#)GW8!D~xvO4duK69gDnOlw6{= K2x$^x!2JQkm|MpH literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/build/classes/static2/Dog.class b/PrjJava/OCA7/Chapter2/Static/Static2/build/classes/static2/Dog.class new file mode 100644 index 0000000000000000000000000000000000000000..583cbe21d42cd5bd21b21efd90ece3211f33cc0f GIT binary patch literal 458 zcmZut%Sr=55Uj~-H=B)l8Q%{)2#E(5^cWFD@wAArlKUi?#F5<@*~|)lmL3#5_yK;D z*t1dbU>~}ts;i5h{`h=*2XKsC4;8ekXrtp|*+UmA4ptqkF;q^ZlIE15*y|4&O6Pha z7#g8e;wno9y(Caok!V?r{*Vhp6|>UJ3Fg?7daQ{w~p zAcl==R}hIj08iuEMD*PLz=lcYe&0FYx!*Z6*Ec_}0KCAugK4bVc;vv)^|1pBs~S{v zSFy2X@OHC^ODCoOuuDa!eW>4TbT*xnXk&#t1}d;<@&(| zvR@7H{on5k*xJ*C_FSPWP~_J=KoyIqv%W+L4Ni293UwQt7s(sMO)O9a>PuL{GBcHk TTo`|`VPi%78RmRQ&OrG;GVynf literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/manifest.mf b/PrjJava/OCA7/Chapter2/Static/Static2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/build-impl.xml new file mode 100644 index 0000000..68b0e11 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/genfiles.properties new file mode 100644 index 0000000..a56dd12 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=91dc60f0 +build.xml.script.CRC32=854d3f0a +build.xml.stylesheet.CRC32=8064a381@1.79.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=91dc60f0 +nbproject/build-impl.xml.script.CRC32=f4381c7f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/project.properties new file mode 100644 index 0000000..6d25cbd --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/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}/Static2.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.7 +javac.target=1.7 +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=static2.Static2 +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/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/project.xml new file mode 100644 index 0000000..8aa332b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Static2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Animal.java b/PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Animal.java new file mode 100644 index 0000000..20d8c28 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Animal.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static2; + +/** + * + * @author anda + */ +public class Animal { + + static void doStuff() + { + System.out.println("a "); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Dog.java b/PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Dog.java new file mode 100644 index 0000000..18a4cd3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Dog.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static2; + +/** + * + * @author anda + */ +public class Dog extends Animal{ + // this is not overriding + static void doStuff() + { + System.out.println("redefinition"); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Static2.java b/PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Static2.java new file mode 100644 index 0000000..f53643d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static2/src/static2/Static2.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static2; + +/** + * + * @author anda + */ +public class Static2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Animal [] a = {new Animal(), new Dog(), new Animal()}; + for(int x = 0; x + + + + + + + + + + Builds, tests, and runs the project Static3. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static3/build/classes/static3/Frog.class b/PrjJava/OCA7/Chapter2/Static/Static3/build/classes/static3/Frog.class new file mode 100644 index 0000000000000000000000000000000000000000..88d2f8435e8f9c36179f8783d2ed172f0f42f32a GIT binary patch literal 357 zcmYk2zfQwI48}hvY5s9-(*h#{8!(WeBNYslDj`KMfI4$ILb)m=QhMRNC<77$55Pkq zd{K~CY=5@DpJadke0~9#;V_1WNdynhuNQS&83J7s{JE~Qxg@wJrz?WD zs2>Z$IMY>e)4t?Ib1(CfJJYOIvRuhVTirK3^Q^aoQMNVGXf;ch48I_Rb5-`(_^xgn zRV=lIM0S3@k*`u9KqxSPPZ0mzgv8F%QdaBqHs2J=;Fu5a_#g&b2UiZ)4B!~Cy6QAA zJo^Cc;CK)3aNfGLnB$1;z?cyU1SZ&HCD_Ua&O^>2@BG1zx(P6FdkDco{NBL7VdWtC E1)9h^=>Px# literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/Static3/build/classes/static3/Static3.class b/PrjJava/OCA7/Chapter2/Static/Static3/build/classes/static3/Static3.class new file mode 100644 index 0000000000000000000000000000000000000000..e0c0da72972fd3fe6b873d7f94260b437ba7517a GIT binary patch literal 831 zcmaJR|O`63t)9jRcjmk5byK&hn# zG=tL)eXQk>78u4vl&9mW(EC8M zYMNMzA?+h4Mk5*Y8Ft(S3%LT#8mC12U*`<$kfG`x*8dZp*Wq-_3@h%{Kq^>Drn%T4 zgEcbk`t-}niyG`;9oOlhnJ)!e5(;FO>E@AVWtv?j=(z@EUF;MxRyu2rE|4N}UJLV+}Hl0t(t R=GsldZcz-wZL%rc`3rZ8x^4gf literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/Static3/manifest.mf b/PrjJava/OCA7/Chapter2/Static/Static3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/build-impl.xml new file mode 100644 index 0000000..690cfb1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/genfiles.properties new file mode 100644 index 0000000..66d8b3d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=99cfecd6 +build.xml.script.CRC32=1bce450e +build.xml.stylesheet.CRC32=8064a381@1.79.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=99cfecd6 +nbproject/build-impl.xml.script.CRC32=f5100b9a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/project.properties new file mode 100644 index 0000000..6d3fa9d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static3/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}/Static3.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.7 +javac.target=1.7 +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=static3.Static3 +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/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/project.xml new file mode 100644 index 0000000..e29ac72 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Static3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static3/src/static3/Frog.java b/PrjJava/OCA7/Chapter2/Static/Static3/src/static3/Frog.java new file mode 100644 index 0000000..04958c6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static3/src/static3/Frog.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static3; + +/** + * + * @author anda + */ +public class Frog { + static int frogCount = 0; + + public Frog() { + frogCount +=1; + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static3/src/static3/Static3.java b/PrjJava/OCA7/Chapter2/Static/Static3/src/static3/Static3.java new file mode 100644 index 0000000..d20e5ec --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static3/src/static3/Static3.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static3; + +/** + * + * @author anda + */ +public class Static3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Frog(); + new Frog(); + new Frog(); + System.out.println("frogCount : " + Frog.frogCount); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/build.xml b/PrjJava/OCA7/Chapter2/Static/Static4/build.xml new file mode 100644 index 0000000..207f758 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Static4. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/Static4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/Static4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/build/classes/static4/Static4.class b/PrjJava/OCA7/Chapter2/Static/Static4/build/classes/static4/Static4.class new file mode 100644 index 0000000000000000000000000000000000000000..72f947340dbf68e204198e9e7495b3550de6bc55 GIT binary patch literal 669 zcmZuu%TB^T6g>k-X{o4S@rmyTx{!r#jK+N-&8{Z3OwSF-67Db~Z5^si;4&3*`G;yc|Fn5y?;8SB@s)F!nwqD*o_`Z2v-s%}?B0!}0BM=f=xjT3j+ zWY6fjaFBQ5nNUXF!kUY9Y*^TIv4w3;^3R&Ule*_c9+h#?>HH)QJ#sW+s5=mn$+ml&rh<^7Veh)%O+n~NLDY_h5O n>}O<(V=u@WA(8lSlF}^A&ym7w9!0T6P%5M>@$d|#QkeY)r5Sf{ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/manifest.mf b/PrjJava/OCA7/Chapter2/Static/Static4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/build-impl.xml new file mode 100644 index 0000000..9d576c9 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/genfiles.properties new file mode 100644 index 0000000..11aa2f5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a1b54824 +build.xml.script.CRC32=74a42f90 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a1b54824 +nbproject/build-impl.xml.script.CRC32=f2c86c21 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/project.properties new file mode 100644 index 0000000..367e78e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static4/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}/Static4.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.7 +javac.target=1.7 +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=static4.Static4 +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/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/project.xml new file mode 100644 index 0000000..d325aea --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Static4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static4/src/static4/Static4.java b/PrjJava/OCA7/Chapter2/Static/Static4/src/static4/Static4.java new file mode 100644 index 0000000..0f4c916 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static4/src/static4/Static4.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static4; + +/** + * + * @author anda + */ +public class Static4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Salt(); + Pepper(); + } + public static void Salt() + { + System.out.println("Salt"); + } + + public static void Pepper() + { + System.out.println("Pepper"); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static5/build.xml b/PrjJava/OCA7/Chapter2/Static/Static5/build.xml new file mode 100644 index 0000000..bce4778 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Static5. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/Static5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/Static5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static5/build/classes/static5/Static5.class b/PrjJava/OCA7/Chapter2/Static/Static5/build/classes/static5/Static5.class new file mode 100644 index 0000000000000000000000000000000000000000..4f450ece4982defe5b2a77ef2a84f561ded2f72e GIT binary patch literal 758 zcmZuuO>fgc6r4?+*fEASc3UWg((+N9QknxoLZaeQiBtHHf_mv`V@$f0?M2SI68{Q{ zR3r}k0Dcr=){ZEJ_^|ul?0fU(jeq|7{sX`h?D^>8Ru{Li;o**tO>A}H;jWGDdART5 zfs1VcFV|IJq$&i$;fXwzgG?5a!N`=Vm^>Hg?5jeV7Xk}$|4_g=(C<@$#i1(F*Hu1F z%Xe~|5ebJnk=davmCa|MV~*8Spf{WvX;ku*wDnD1?}I$mr7~=d;{KchC$B}V#z+6l zs+GucLhfkJGuii(Y^K{E>8ec9m&&RPW&-x?rU3$6b@4Djj6OGgWu4e`u@m4Cb_4jh z65ug*Nq2Cp6J1u4oBy+lz|w_lZ^kESVlF|WPg9fTv`<%jSZQ`qdhnM18oHdyoNh!l z$7NWc{m~Y&E1qwGTfb)ow)khe{Owd~RWouJb32~bm<@Of-tC=l5MLOyu*kDhg8`Np z2TcKb2$^|^uuQ}@Z?oEd{ux@~!Z{rAnHin1Sp62UewhMRusZ8`M%)gxJ!fd2qjNE} p=~-j_`d^cMT*nP|cv$-*d!y!{&d~jewq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/genfiles.properties new file mode 100644 index 0000000..d9b4129 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a9a6c402 +build.xml.script.CRC32=ea275594 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a9a6c402 +nbproject/build-impl.xml.script.CRC32=f3e07bc4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/project.properties new file mode 100644 index 0000000..3cb35e8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static5/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}/Static5.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.7 +javac.target=1.7 +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=static5.Static5 +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/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/project.xml new file mode 100644 index 0000000..9597128 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Static5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static5/src/static5/Static5.java b/PrjJava/OCA7/Chapter2/Static/Static5/src/static5/Static5.java new file mode 100644 index 0000000..ee23032 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static5/src/static5/Static5.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static5; + +/** + * + * @author andad + */ +public class Static5 { + + /** + * @param args the command line arguments + */ + static String mountain = "Chocorua"; + static Static5 favorite(){ + System.out.print("Mount "); + return null; + } + + public static void main(String[] args) { + // TODO code application logic here + System.out.println(Static5.mountain); + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static6/build.xml b/PrjJava/OCA7/Chapter2/Static/Static6/build.xml new file mode 100644 index 0000000..3acb256 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Static6. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static6/manifest.mf b/PrjJava/OCA7/Chapter2/Static/Static6/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/build-impl.xml new file mode 100644 index 0000000..e42fa24 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/genfiles.properties new file mode 100644 index 0000000..f918e53 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b1925068 +build.xml.script.CRC32=92d3ddd9 +build.xml.stylesheet.CRC32=8064a381@1.79.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=b1925068 +nbproject/build-impl.xml.script.CRC32=f09843eb +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/project.properties new file mode 100644 index 0000000..ff9b391 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/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}/Static6.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.7 +javac.target=1.7 +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=static6.Static6 +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/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/project.xml new file mode 100644 index 0000000..e994d08 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Static6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static6/src/static6/A.java b/PrjJava/OCA7/Chapter2/Static/Static6/src/static6/A.java new file mode 100644 index 0000000..1907f4c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/src/static6/A.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static6; + +/** + * + * @author andad + */ +public class A { + static int age() + { + return 20; + } +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static6/src/static6/B.java b/PrjJava/OCA7/Chapter2/Static/Static6/src/static6/B.java new file mode 100644 index 0000000..ff86239 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/src/static6/B.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static6; + +/** + * + * @author andad + */ +public interface B { + int age(int year); +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static6/src/static6/Static6.java b/PrjJava/OCA7/Chapter2/Static/Static6/src/static6/Static6.java new file mode 100644 index 0000000..ce60415 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static6/src/static6/Static6.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static6; + +/** + * + * @author andad + */ +public class Static6 extends A implements B{ + + /** + * @param args the command line arguments + */ + public int age(int year) + { + return 10; + } + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/build.xml b/PrjJava/OCA7/Chapter2/Static/Static7/build.xml new file mode 100644 index 0000000..78a8812 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Static7. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/Static7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/Static7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/build/classes/static7/Static7.class b/PrjJava/OCA7/Chapter2/Static/Static7/build/classes/static7/Static7.class new file mode 100644 index 0000000000000000000000000000000000000000..4603d466d759d189a717844d533cdcc45d7d5a0e GIT binary patch literal 569 zcmZuuyH3ME5S&XKJ2nS-k??*5C;|m8C_nO>6qJVQVyxsMKahPv;U76=(KG+Gb;w`Pk(+@q_tIc)~39SvjGyO!x@J|R6$)pMAz3~Y1k zV3)%{(Lj@95Bntgj|ztJ)bMS0;JIoBYQH4P3&?piq(*(LQ%3e3J&mFV@D<1!CtdAr&G^Bjz!A(cmPW% qQDvfx3L)v`vy2R|M#znje}gti-js`gfr@-QtCfW4|PER literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/manifest.mf b/PrjJava/OCA7/Chapter2/Static/Static7/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static7/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/build-impl.xml new file mode 100644 index 0000000..a994049 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/genfiles.properties new file mode 100644 index 0000000..8ba1ceb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b981dc4e +build.xml.script.CRC32=0c50a7dd +build.xml.stylesheet.CRC32=8064a381@1.79.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=b981dc4e +nbproject/build-impl.xml.script.CRC32=f1b0540e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/project.properties new file mode 100644 index 0000000..ebdd256 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static7/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}/Static7.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.7 +javac.target=1.7 +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=static7.Static7 +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/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/project.xml new file mode 100644 index 0000000..3d4bd1c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Static7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Static7/src/static7/Static7.java b/PrjJava/OCA7/Chapter2/Static/Static7/src/static7/Static7.java new file mode 100644 index 0000000..20c4b09 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Static7/src/static7/Static7.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package static7; + +/** + * + * @author andad + */ +public class Static7 { + + /** + * @param args the command line arguments + */ + static String str; + public static void main(String[] args) { + // TODO code application logic here + System.out.println(str); + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/build.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/build.xml new file mode 100644 index 0000000..2f3e292 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticBlock1. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/build/classes/staticblock1/StaticBlock1.class b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/build/classes/staticblock1/StaticBlock1.class new file mode 100644 index 0000000000000000000000000000000000000000..32b0e1ee0f9daa55bd1f3c9668f3660a37b62821 GIT binary patch literal 915 zcmaJ}+mRdIkV{;BC^JkfEIHyD1^p7nuSwhqVLt^}^lm_1{Eh)u}kL8xI zL=!)NAIf-MAscgOn%?{FkDhz(>HGEj`%eH{cxhk;r3|iNHG|u@qv5WB6iPboDSuy8 z9;lP0OxeI19_o0cVO_(9fH>lNz;_^!-j%+LUJE3xazh}sAGBP7*_!m-xBX7j4L{gT zkC|L8aBQz(hf>AkWGebBdjiX~USvnoX?lV4WwTO`gS|M|A!NsvzQBU@sdi|8wJV9wJ`mW=R2^#gFA3E+Esp!m24%tw+CUVG|m_t@W#l&N53M~FT zaIY`DmK&1PQR!95#1m|pm_=5do|<@uZ4Ffu&+&pS1GWe({c|^g>^c6s=Ar9E7gF^> zFLFCnHt4fZ7;P_u%6qOJQ2^KOP@c5i?Ye$TVBMOc&!yCO1AbVv4$A*2>rpTgSzz9} z+(>|Y%>E)F0j;a(dHiFAX@nYB<>i{;HB3NP(($A#)#;PqJwcv!o>7%v&}Y_8A(AIZ zd}EM6f!3f0K~h-Y1DK;mEaEz&43=oOJmbC+69Up%?F70)p&Yd7IA5S$VU)nFKM@$g AfB*mh literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/manifest.mf b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/build-impl.xml new file mode 100644 index 0000000..2a0cda8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/genfiles.properties new file mode 100644 index 0000000..ad39d76 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=272b983d +build.xml.script.CRC32=aa89f2fd +build.xml.stylesheet.CRC32=8064a381@1.79.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=272b983d +nbproject/build-impl.xml.script.CRC32=cf6eb8bd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/project.properties new file mode 100644 index 0000000..5fd3e68 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/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}/StaticBlock1.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.7 +javac.target=1.7 +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=staticblock1.StaticBlock1 +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/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/project.xml new file mode 100644 index 0000000..7f10b40 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticBlock1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock1/src/staticblock1/StaticBlock1.java b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/src/staticblock1/StaticBlock1.java new file mode 100644 index 0000000..162615e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock1/src/staticblock1/StaticBlock1.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock1; + +import static java.lang.System.out; + +/** + * + * @author anda + */ +public class StaticBlock1 { + + /** + * @param args the command line arguments + */ + static int x; + static int y; + static { x = 7;} + { y = 0;} + public static void main(String[] args) { + // TODO code application logic here + out.println("x = " + x); + out.println("y = " + y); + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build.xml new file mode 100644 index 0000000..7b72b5c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticBlock2. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/staticblock2/Init.class b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/staticblock2/Init.class new file mode 100644 index 0000000000000000000000000000000000000000..655d507e1b2b3474d2f2954a32b122cc279a12e0 GIT binary patch literal 765 zcmZ`%O>Yx16dZ5Tt`nA~Nt#e-3n`yTONl7QR$P#fB1M1{6wc0e6^+Y)yqIug4QcO~wH zxF6zy!0NF!+C3L2b$erh@(X*C2-Jq!B(D~;Ns_%)laxqfXk(R*Ri=GhfMxey&jp&p zxl>NZlhno^4*LTN9#N`0@QUIy|ABx!j?==bIv8CElJtJ+02Vv#%i9ttT>ltyWZ*o zQoq!Zz`8H8pDHu$zn+{XvAY0`zRX=R<2l*|H(J9yS=;`bOdB_HS)yh; zZLDxyLzxdF!WK4&ZljKMqR~=_QG<~;X%;4m?10#RO~NZo8h@EIY0}C~+DoCrgpw?w lMH|V|{`7Q^=Kyuzhb;Q26c)TIR#MGV+N5oge1k}U&EHeymN@_b literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/staticblock2/StaticBlock2.class b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/build/classes/staticblock2/StaticBlock2.class new file mode 100644 index 0000000000000000000000000000000000000000..54d9503cccab343bf3e0fb4292f467f0a8cb7338 GIT binary patch literal 476 zcmZuu!A`AmnHW}03Sh-e~Gsqi0ZWY2O*IP#X6$YkJ0N$_&&jtg*EfFWBhgp3KD z-lI1cufmN)JmZ>F#w8h->w4bBg;nqFl9 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/manifest.mf b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/build-impl.xml new file mode 100644 index 0000000..50e8971 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/genfiles.properties new file mode 100644 index 0000000..b293677 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3f1f0c57 +build.xml.script.CRC32=5da5a0e6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3f1f0c57 +nbproject/build-impl.xml.script.CRC32=499c39a9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/project.properties new file mode 100644 index 0000000..563737b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/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}/StaticBlock2.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.7 +javac.target=1.7 +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=staticblock2.StaticBlock2 +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/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/project.xml new file mode 100644 index 0000000..5174c2a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticBlock2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/src/staticblock2/Init.java b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/src/staticblock2/Init.java new file mode 100644 index 0000000..c612af4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/src/staticblock2/Init.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock2; + +/** + * + * @author anda + */ +public class Init { + + public Init() { + System.out.println("no-args construtor"); + + } + public Init(int x) { + System.out.println("1-args construtor"); + + } + static { System.out.println("2nd static init");} + + static { System.out.println("1nd static init");} + { + System.out.println("1nd instance init"); + System.out.println("2nd instance init"); + } + + +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock2/src/staticblock2/StaticBlock2.java b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/src/staticblock2/StaticBlock2.java new file mode 100644 index 0000000..94cddec --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock2/src/staticblock2/StaticBlock2.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock2; + +/** + * + * @author anda + */ +public class StaticBlock2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Init(); // order of static block, instance and constructor + new Init(7); // order of static block, instance and constructor + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/build.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/build.xml new file mode 100644 index 0000000..fdb52c5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticBlock3. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/build/classes/staticblock3/StaticBlock3.class b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/build/classes/staticblock3/StaticBlock3.class new file mode 100644 index 0000000000000000000000000000000000000000..88b989077b9d500ae91f6895339cb9be075aa67d GIT binary patch literal 847 zcmaJ<+iuf95Ivil9kb9hX(<)>xffB_7np16(0@JZcl`LB>I6i}&B#+h zTgBSMQ!tl&&_jWh<}gu-_Bui2ecWxd(%>Ks_DI=RIuuxRkDABolWGJi?D0*k!`@z6 zQpG)zRAyWY*!x~E73j30QSA9IwUIM_zQ~T@m6$`x!j{B+JP=s=yVk)-2VFmAqx#vJ z#5Q&$uHu^U8WIoj$iidEc|H+X{%1P^r8C|)onzliEFz~~!z_vSMB$uG6awgW?!}@=&?IfDaRbaur{E!5dRQ*Lk0@lFD3;2_& zvjnxV&P9^kHvSJYGkRJ2oHy+}qXtjGGrx5T@r6zXW!gdtN>u2}$pb8)%BYA%ED*siDjFySpxba8SMp}_7O3qhU UhJjm5J7Fjz&wTDKkqm0T0qO;|Y5)KL literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/manifest.mf b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/build-impl.xml new file mode 100644 index 0000000..1118a13 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/genfiles.properties new file mode 100644 index 0000000..ddd018a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=370c8071 +build.xml.script.CRC32=b9916cd0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=370c8071 +nbproject/build-impl.xml.script.CRC32=343246a5 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/project.properties new file mode 100644 index 0000000..7f2e781 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/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}/StaticBlock3.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.7 +javac.target=1.7 +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=staticblock3.StaticBlock3 +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/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/project.xml new file mode 100644 index 0000000..f35c200 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticBlock3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock3/src/staticblock3/StaticBlock3.java b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/src/staticblock3/StaticBlock3.java new file mode 100644 index 0000000..d3b5bbc --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock3/src/staticblock3/StaticBlock3.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock3; + +/** + * + * @author andad + */ +public class StaticBlock3 { + + /** + * @param args the command line arguments + */ + static { + i=10; +} + static int i; + public static void main(String[] args) { + // TODO code application logic here + System.out.println("i= "+i); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock4/build.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/build.xml new file mode 100644 index 0000000..43d01d1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticBlock4. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock4/build/classes/staticblock4/StaticBlock4.class b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/build/classes/staticblock4/StaticBlock4.class new file mode 100644 index 0000000000000000000000000000000000000000..f3c2bdcb96403d5f8659d46c1af863459d108d1a GIT binary patch literal 677 zcmZ`$%TC)s6g}gZIB`w$Dk(`yDSd`6$b#&Gx@e_JNCqke1x4Lt>{{ti$F3ZwQa=lj zK%!DVfR92w9wI0R7IWvG`#AU9nTyNwzW_Gz&W43X5jiw1v~1o4&#+?SIaV#a5D=1Q zTOhxsB9(p+$hFr80_LaqTOd$!RTS*bCSH*2OD|-k>c+kd2QpC^o(IkJyP68L+-WLP z<$Gc5|LAu58hq5CN6Lv*kwCru)jgEIWG9r-m^F!t#yve!CS#J+?nzVC)awcqw)}7| z)9%N!#1B5JOjPCnQ5zY%0~?PV6i^gsJgCaTnuC{kW#P4hH+U;hzLB=)9R_}SE7boz zO@j&5#4{$AuJ%xI=L?rexk?}>T(qV+ZifY|pIK4J7ckq~>jSLuGc0}*x5{MF%h9K5 zT8C&yW1#i^4B{BZ&>Wq>pkt1PbTV+nG6RdWk68@1nRtRGmWVSXXj>?u%)5vRs&ndH zb{ULS{~$L!gXtb)fyAfC-(_5;v<5qynz4S>g&L=T8Jm;J + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/genfiles.properties new file mode 100644 index 0000000..e34225b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0f762483 +build.xml.script.CRC32=688c0291 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0f762483 +nbproject/build-impl.xml.script.CRC32=9f083dc0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/project.properties new file mode 100644 index 0000000..e22407e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/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}/StaticBlock4.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.7 +javac.target=1.7 +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=staticblock4.StaticBlock4 +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/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/project.xml new file mode 100644 index 0000000..426b19f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticBlock4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock4/src/staticblock4/StaticBlock4.java b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/src/staticblock4/StaticBlock4.java new file mode 100644 index 0000000..d596d0a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock4/src/staticblock4/StaticBlock4.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock4; + +/** + * + * @author andad + */ +public class StaticBlock4 { + + /** + * @param args the command line arguments + */ + static int a = 1111; + + { + a = a++ + ++a; + } +public static void main(String[] args) { + // TODO code application logic here + StaticBlock4 sb4 = new StaticBlock4(); + System.out.println(a); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock5/build.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/build.xml new file mode 100644 index 0000000..d23e947 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticBlock5. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock5/build/classes/staticblock5/StaticBlock5.class b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/build/classes/staticblock5/StaticBlock5.class new file mode 100644 index 0000000000000000000000000000000000000000..29abfde2b19f6c9b261254a6cc5fcc17a56cd8a7 GIT binary patch literal 1009 zcmaJ<>uwTJ5dIDfunTN(>%tOPOzl(n zDz*ttH1Pp^DC2h)QmCMtoS8GXZ)UzdzkYxJ31AbuI$~IfU==qbn8qzBZtJ*%jEXfK zVXSCam-?<0_oUd6;jD(7hWjcWsCXzKj(HAvP6WaQyJ>qn0>R8$SwPu$YnH%t(QaC= zx{Zp}err}7dJ;vqYC2`JZA*LLRJ@ONM_{4Y@l4OIRvfqbX)9OqjXmGU6S862O@Z0W z`{I%L*~~d+v(B8h-K^*RmS($7kmQ80fL5qFg8}uD+ih2^m$n=yKH4NJaShBMrDD^- zBWxLnBVizkgo?)op5Up#+~3{zy0%lZ+MMt>y`47j49}&=8z^8~7LgTw-!VI#tW03u ziLd7WxvfBK*yMHP$f|mmT%|7^&uWlsx644P&xh^i-jEEBlvrkige859%WeU+C6gR7 zsbmf$Z(+05vYIu4jm!jM$6SMLiNDDD|AaNq?f)Htnap@10aBA1ma)v&7~?w)K$Gc`CyaX^u8TOq9uJUg56EKf!v?5r*B0aLW;DZ6tQv^;C zJcV-DLuiPi6Af%NMa&^m6xXptzlIwZV|*o&{0>8B2!?rx_ygg0=TH+`4-umGp!aa4 z2V*2OH5Lk + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/genfiles.properties new file mode 100644 index 0000000..a85b327 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0765a8a5 +build.xml.script.CRC32=8cb8cea7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0765a8a5 +nbproject/build-impl.xml.script.CRC32=e2a642cc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/project.properties new file mode 100644 index 0000000..713e2c3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/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}/StaticBlock5.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.7 +javac.target=1.7 +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=staticblock5.StaticBlock5 +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/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/project.xml new file mode 100644 index 0000000..7106b0e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticBlock5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock5/src/staticblock5/StaticBlock5.java b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/src/staticblock5/StaticBlock5.java new file mode 100644 index 0000000..6be500d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock5/src/staticblock5/StaticBlock5.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock5; + +/** + * + * @author andad + */ +public class StaticBlock5 { + + /** + * @param args the command line arguments + */ + static int x = 2; + static int z; + public static void main(String[] args) { + // TODO code application logic here + System.out.println(x+z); + + } + static { + x = 3; + System.out.println("x = " + x); + System.out.println("Class.x = " + StaticBlock5.x); + z = x; + System.out.println("z = " + z); + } +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock6/build.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/build.xml new file mode 100644 index 0000000..8fc4a1a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticBlock6. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock6/build/classes/staticblock6/StaticBlock6.class b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/build/classes/staticblock6/StaticBlock6.class new file mode 100644 index 0000000000000000000000000000000000000000..af8407d324557c53d61cc586a02e98bf6e19c346 GIT binary patch literal 996 zcmZ`&Yi|-k6g>mTF6*|1rJ%I+)hf_civ?`0#n!fopYV}jNQ|GBb%R?MFtC{TuY5#n zH1P-cql{-}iNzE@?7egEojLcMJF~xjfBy-fh9d(OY#lcZ7`T<9xvgVE`ihP_(r@ah zYN*M&okAUV4Qyds$2}c8I_}FYyBZn-vC*c0)jW3IIhDZacPp)M==Zz3vQm?#DotG= z+3@>*xF--VueSvfM}t?Mz(UjSdr!u_jyHVnbOL6q=D>A=wlnl)JV_?P*ZxRgxj71* z(04n*zeR>y9JI9_&T~n#n`%&oiD0MJqAs5N=2bE{MwUBq`IX#Xt zt1$je3utfUrhqff%^Fb~*Z3?fzOV#zsfsH|nY6m(recbuPe90V&@M6Z5aS9c*(VUT z75j$x7bL86^q-NmElnkKD-|U^a%&9Bv`a|RW(b$V907B + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/genfiles.properties new file mode 100644 index 0000000..1628288 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1f513ccf +build.xml.script.CRC32=7b949cbc +build.xml.stylesheet.CRC32=8064a381@1.79.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=1f513ccf +nbproject/build-impl.xml.script.CRC32=6454c3d8 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/project.properties new file mode 100644 index 0000000..5fd4d19 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/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}/StaticBlock6.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.7 +javac.target=1.7 +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=staticblock6.StaticBlock6 +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/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/project.xml new file mode 100644 index 0000000..4d4e21f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticBlock6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock6/src/staticblock6/StaticBlock6.java b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/src/staticblock6/StaticBlock6.java new file mode 100644 index 0000000..3f42bd9 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock6/src/staticblock6/StaticBlock6.java @@ -0,0 +1,42 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock6; + +/** + * + * @author andad + */ +public class StaticBlock6 { + + /** + * @param args the command line arguments + */ + public StaticBlock6() { + s1 = sM1("1");// seventy statement + } + static String s1 = sM1("a"); // first statement + String s3 = sM1("2");// forth statement + + { + s1 = sM1("3"); // fifty statement + } + + static { + s1 = sM1("b");//second statement + } + static String s2 = sM1("c"); // third statement + String s4 = sM1("4");// sixty statement + + public static void main(String args[]) { + StaticBlock6 it = new StaticBlock6(); + } + + private static String sM1(String s) { + System.out.println(s); + return s; + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock9/build.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/build.xml new file mode 100644 index 0000000..63bd3de --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticBlock9. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock9/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock9/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock9/build/classes/staticblock9/StaticBlock9.class b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/build/classes/staticblock9/StaticBlock9.class new file mode 100644 index 0000000000000000000000000000000000000000..68cc7bed2957f64e779e5ca5fc23b8e7bc322934 GIT binary patch literal 763 zcmZ`$O>fgc6r7FS*fDOCIHUvul$NhFh33EswE{r_sgl(qQsqD|Y>Ww89J_KHBz_hk zK;pm;;71{5HxX^6;=}X4H*e?7y#4*>=Pv*cu<60Y^$KjP=y1cqY6WY!>Ef1$+qmQ4 zu7I6n*|C7w6>xX=4xYanJP8FBcd~R+$g~*9WExwf^Vs?>kt4Rg7ASA4R27c|tj_v? z$WHb)7N~|QjrXSGVVobxVZurfW|2$=GFLjE7wzJ`nh3N*PAF6~OtR?1!(QJcPffB# z%CS_bz;fp>Jdz(}FOlhpJ-JFpTV|xpMBL4mv*8(WUztje`vz_i$gJb|P_qcoav)nNt7Lq=?7dRW>EiocU2% z? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/genfiles.properties new file mode 100644 index 0000000..2664f31 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=67b7f90d +build.xml.script.CRC32=e6eb8a49 +build.xml.stylesheet.CRC32=8064a381@1.79.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=67b7f90d +nbproject/build-impl.xml.script.CRC32=94ff4c5f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/project.properties new file mode 100644 index 0000000..d073e63 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/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}/StaticBlock9.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.7 +javac.target=1.7 +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=staticblock9.StaticBlock9 +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/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/project.xml new file mode 100644 index 0000000..c318b8b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticBlock9 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticBlock9/src/staticblock9/StaticBlock9.java b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/src/staticblock9/StaticBlock9.java new file mode 100644 index 0000000..1f70f84 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticBlock9/src/staticblock9/StaticBlock9.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock9; + +/** + * + * @author andad + */ +public class StaticBlock9 { + + /** + * @param args the command line arguments + */ + private static int loop = 15; + static final int INTERVAL = 10; + boolean flag; + + { + flag = true; + loop = 0; + } + static { loop += INTERVAL; } + static { loop = 1; } + static {System.out.println("Static"); } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticCall/build.xml b/PrjJava/OCA7/Chapter2/Static/StaticCall/build.xml new file mode 100644 index 0000000..deca6d0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticCall/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticCall. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticCall/manifest.mf b/PrjJava/OCA7/Chapter2/Static/StaticCall/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticCall/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/build-impl.xml new file mode 100644 index 0000000..9a99224 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/genfiles.properties new file mode 100644 index 0000000..0ce722f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=619957ef +build.xml.script.CRC32=a5db2019 +build.xml.stylesheet.CRC32=8064a381@1.79.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=619957ef +nbproject/build-impl.xml.script.CRC32=00e753bd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/project.properties new file mode 100644 index 0000000..3e68c69 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticCall/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}/StaticCall.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.7 +javac.target=1.7 +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=staticcall.StaticCall +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/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/project.xml new file mode 100644 index 0000000..3267a41 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticCall/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticCall + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticCall/src/staticcall/StaticCall.java b/PrjJava/OCA7/Chapter2/Static/StaticCall/src/staticcall/StaticCall.java new file mode 100644 index 0000000..fa9e1c6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticCall/src/staticcall/StaticCall.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticcall; + +/** + * + * @author andad + */ +public class StaticCall { + + /** + * @param args the command line arguments + */ + void m1(){ + StaticCall.m2(); // 1 + m4(); // 2 + //StaticCall.m3(); // 3 + } + + static void m2(){ } // 4 + + void m3(){ + m1(); // 5 + m2(); // 6 + //StaticCall.m1(); // 7 + } + + static void m4(){ } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/build.xml b/PrjJava/OCA7/Chapter2/Static/StaticField/build.xml new file mode 100644 index 0000000..48ed7ff --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticField/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticField. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/staticfield/StaticField.class b/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/staticfield/StaticField.class new file mode 100644 index 0000000000000000000000000000000000000000..31084a916fc3a5cc1656293dfd83684216460de1 GIT binary patch literal 642 zcmZ{hOHaZ;5Xb+^s}?Iy0l_Eu0uOTVi1DJ5m^5mF;o@n56_=Ejlw#t?l7l85`~ZF^ z<7^?pM(tsC=D#z)otb`qy?+2WK`jmqIURWvbgZEmM+xgXHc-^CsbPyDb}DV@oiT)~ zwKhZK-02C1q$zE2JsEa{d&fH#DH+r0a;wc+oR?M zAJS;)0DUqNE<@<*LhWinpN~ot`dSdepp6vLq7CJ$zpK=OlEGIxC?iHcRed2awF0tn zit2PSI-^H#U@!jlGTE3fmSB)?%o4DI1VuWMNRgt7FMSx0ogy?v_!SY~iITHGB@m|6 WG8I;kp=B?SS)@q;!LnpSSp5d>3yo|5 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/staticfield/Sub.class b/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/staticfield/Sub.class new file mode 100644 index 0000000000000000000000000000000000000000..9a2db6bbe391199ff30e4933d7848ec7c0180a93 GIT binary patch literal 506 zcmZWlO-sW-5Ph3|q>a(GX>03uJqWD_bMR>Kq7;N6LZtUi8tY1$lw>3Lv-F_g!5`p{ z5@*vQRu^`6=FOY8^Y-)W{R6-$4h@vitfGZ>1)Bys=<3+gvCW`eT{2kC1ApXp$fK$4 z%0xudGlud|L_(f36#9cPL-8V>1PnDtM8S17^Md4-dm$l~6ZsT{?aPd(O)yo#h;CVVz=gLBIxTlvPmwX+9z` cwW=@BtimgbN`O%Vh@wgzqIU^tP^`iF25YTpfdBvi literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/staticfield/Super.class b/PrjJava/OCA7/Chapter2/Static/StaticField/build/classes/staticfield/Super.class new file mode 100644 index 0000000000000000000000000000000000000000..dd2e6fbe9bb1cc25fcd4be54510eaf7289e8e563 GIT binary patch literal 380 zcmZWkyH3ME5S(@Vig8{Jj}B1+1uiIwka#E(!U{r0>Ces)E;4rHocS+AfkeRv@KK1h ziAX_lx4W}5v%6p4AD;kDvFE`;;9}T@iERfv4t5E~%{3v27UD&OnaJm1tV@;8&j|KN zxwTOT$Y!r-4H3peZEB@3Bq z9Po`6pUuN+8D|DRc4NfjEaXTWt>bslYt!E1-)_JTe9rw}0y^k&<)Zf|-fue04vaUn PYBgb_?sC;<%)sCW6{AKe literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/manifest.mf b/PrjJava/OCA7/Chapter2/Static/StaticField/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticField/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/build-impl.xml new file mode 100644 index 0000000..1c661ab --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/genfiles.properties new file mode 100644 index 0000000..15434ea --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=91ad5368 +build.xml.script.CRC32=ea00ae12 +build.xml.stylesheet.CRC32=8064a381@1.79.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=91ad5368 +nbproject/build-impl.xml.script.CRC32=30ecb662 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/project.properties new file mode 100644 index 0000000..cc280cf --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticField/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}/StaticField.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.7 +javac.target=1.7 +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=staticfield.StaticField +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/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/project.xml new file mode 100644 index 0000000..f092782 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticField/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticField + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/StaticField/src/staticfield/StaticField.java b/PrjJava/OCA7/Chapter2/Static/StaticField/src/staticfield/StaticField.java new file mode 100644 index 0000000..499f26a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/StaticField/src/staticfield/StaticField.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticfield; + +/** + * + * @author andad + */ + +class Super { +static String ID = "QBANK"; +} + +class Sub extends Super { +static String ID; + +public Sub() { } //calls Super's default constructor. The Super class loads. By now, ID should already have the QBANK value! + +static { +System.out.println("in sub"); +} +} +public class StaticField { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.println(Super.ID); + System.out.println(Sub.ID); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock7/build.xml b/PrjJava/OCA7/Chapter2/Static/Staticblock7/build.xml new file mode 100644 index 0000000..501671b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Staticblock7. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/Staticblock7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/Staticblock7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock7/build/classes/staticblock7/Staticblock7.class b/PrjJava/OCA7/Chapter2/Static/Staticblock7/build/classes/staticblock7/Staticblock7.class new file mode 100644 index 0000000000000000000000000000000000000000..8396f5d8a905260c8af2d64b4aa2bc2541da2aa2 GIT binary patch literal 1064 zcmaJ=ZBNrs7(KV!XjhBug@HJn6Gh7uCZM8jiVig)S=3|(C4RBn8Z34z**c^D#XsTD zEs?|@;Eyt%+l>GY{cxZ6p6A@>x&8I~$4>yOc&Z}~Gl~f;NRf-;I&P>~)Dankm!y@~ za8v4K4J)#2RXVqH+{PUhYdRx$RooL04W3N_#aWhOh2AdDCxNk|({%iY0%3D=VT)?R ztJ?w-Wv6LB?=-4*>y=e?8A+7An&oa;El2vpVAy}}v<1@Twr}}Pt?GKU4{Q0#F{ePt zhUGK`rp&kHUF)Njcdh0QYg$forx3KXS~~9kL9W@(aDoAcT%*65XFF6pOW3jCUhc;&I z?b*$`z%2JNGPfab)-9SN$-@8YHQyVIUSQH3EhJ(xV1JU3fVwB?x!hyww2oW2#K#ur z(~a;XkfhY)R0GW=P(yAc(3~lC2tv+_@;tpS^cCtixjsZLR{stq7t2t_%zcEq2p=G_ z-N#rLY7bf>+JoLjNSbG8=Dxu=4AWK)?KF)Z#(OyXmDmc>lv4r6X@tp7C+`$lye5y? zAQy1J1!U-vO>h^1C@vy9WLg?B)ekVSt@RNrA7Sgk9Wp`v5uWTaN3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/genfiles.properties new file mode 100644 index 0000000..221a332 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8c6e292d +build.xml.script.CRC32=359db14b +build.xml.stylesheet.CRC32=8064a381@1.79.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=8c6e292d +nbproject/build-impl.xml.script.CRC32=5521bc0a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/project.properties new file mode 100644 index 0000000..b01254b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock7/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}/Staticblock7.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.7 +javac.target=1.7 +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=staticblock7.Staticblock7 +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/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/project.xml new file mode 100644 index 0000000..5f8453a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Staticblock7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock7/src/staticblock7/Staticblock7.java b/PrjJava/OCA7/Chapter2/Static/Staticblock7/src/staticblock7/Staticblock7.java new file mode 100644 index 0000000..821ae83 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock7/src/staticblock7/Staticblock7.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock7; + +/** + * + * @author andad + */ +public class Staticblock7 { + + /** + * @param args the command line arguments + */ + int m; + static int i1 = 5; + static int i2 ; + int j = 100; + int x; + + public Staticblock7(int m){ + System.out.println(i1 + " " + i2 + " " + x + " " + j + " " + m); + } + + + public static void main(String[] args) { + // TODO code application logic here + Staticblock7 s = new Staticblock7(5); + } + + { j = 30; i2 = 40; } // Instance Initializer + static { i1++; } // Static Initializer + +} diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/build.xml b/PrjJava/OCA7/Chapter2/Static/Staticblock8/build.xml new file mode 100644 index 0000000..ed5a0f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Staticblock8. + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Static/Staticblock8/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Static/Staticblock8/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/build/classes/staticblock8/Staticblock8.class b/PrjJava/OCA7/Chapter2/Static/Staticblock8/build/classes/staticblock8/Staticblock8.class new file mode 100644 index 0000000000000000000000000000000000000000..37de774c9541882a85784e795ca7ea37bb053bc8 GIT binary patch literal 850 zcmZ`%*>2N76g`uec&WR@A%Re6DN9KLG?cznq5>f#o&rS*iiCI?8!Jq4Y-Bq~{1uBt z5lDOhAB8w$N2FECgYV4U&OPUjfB*UM3&0-kJ6OV13tJ9MT(fDe+qi+74z_X2L`R32 z?po-XxGhl0b_Kk_k^CV0k&MUvVVv{gZfOQZ=GiA;&nWjPbRB0Xclk9f%LR_q1m2-U;O|)FN zST=FT#a--}=)1TF(r^D)Av-0%KwxdY-b4Q=4DwT<;m0fwC#085nP`^6RMLOJhsgOH zp`378jRNCzSipR*iz2S1dDa?7*y4LH@z0=c&7U`ecj}^DqxXoX;JMs8hVUxiQT+*Y;3v#i$FK%-CQgyqpp4A|q*WH;64u#Z5#TcUXqi|3iQ6rP0(H+Wg?Y|g VAYYt~rNBDdn%svLvQco}{0lENpick* literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/manifest.mf b/PrjJava/OCA7/Chapter2/Static/Staticblock8/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock8/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/build-impl.xml new file mode 100644 index 0000000..2ed680b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/genfiles.properties new file mode 100644 index 0000000..98e8db4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=f488ecef +build.xml.script.CRC32=a8e2a7be +build.xml.stylesheet.CRC32=8064a381@1.79.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=f488ecef +nbproject/build-impl.xml.script.CRC32=a58a338d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/project.properties new file mode 100644 index 0000000..b8f6526 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock8/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}/Staticblock8.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.7 +javac.target=1.7 +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=staticblock8.Staticblock8 +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/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/project.xml new file mode 100644 index 0000000..1e3334f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Staticblock8 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Static/Staticblock8/src/staticblock8/Staticblock8.java b/PrjJava/OCA7/Chapter2/Static/Staticblock8/src/staticblock8/Staticblock8.java new file mode 100644 index 0000000..71fb8b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Static/Staticblock8/src/staticblock8/Staticblock8.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticblock8; + +/** + * + * @author andad + */ +public class Staticblock8 { + + /** + * @param args the command line arguments + */ + static String s1 = sM1("a");{ + s1 = sM1("b"); + } + static{ + s1 = sM1("c"); + } + + private static String sM1(String s){ + System.out.println(s); return s; + } + + public static void main(String[] args) { + // TODO code application logic here + Staticblock8 sb8 = new Staticblock8(); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Super1/build.xml b/PrjJava/OCA7/Chapter2/Super1/build.xml new file mode 100644 index 0000000..9c31cdd --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Super1. + + + diff --git a/PrjJava/OCA7/Chapter2/Super1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Super1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Super1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Super1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Super1/build/classes/super1/AlternateFuel.class b/PrjJava/OCA7/Chapter2/Super1/build/classes/super1/AlternateFuel.class new file mode 100644 index 0000000000000000000000000000000000000000..8628bf2c56d731649c940003adf1c2b116dae0e2 GIT binary patch literal 332 zcmZvXze)o^5XQf`zscqFVvsbc>`V%SSQ-Qo0>WXTl75p6$;x>rn?0Y(#!9fr1NczE zxiuhyQ_Sr5o0*TDuifVszy*2rL5&YBPj1b&ZOD1HwF8Qv0p0jyW z^Fl~3uNJD9DWe;`hk;$|4WXZJ>K8WWtS(p1|CW$ERJB>~ zR6EZ<^Jh=$Riy|J5{~~fBy{$;vBwEKIiv{>@^OTcBT-|iBsCm;fZkm@mK-^lq9yP2 fX8>&^qFU%U(ku^L2k^V2H<5(j)lAfZFb{{{$Z9@P literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Super1/build/classes/super1/Fuel.class b/PrjJava/OCA7/Chapter2/Super1/build/classes/super1/Fuel.class new file mode 100644 index 0000000000000000000000000000000000000000..4d3c215b441fee38c76ef8113d5f567df8308881 GIT binary patch literal 310 zcmYk0PfNo<5XIl*ZN-sh|2nwzAzKKiR5)(-`ekw1X1P^`yKUC@L zD%3s9?C-sK!~E>Nz5!fe8pA~zA`5X$2yRrX^qk$p zWmr{J`&T^kAbNF($@@goGF)hKr{KH+4;EN!gnCv-F_EgFnC@ zWt=S}LgJybGq3aBzM1|0`TPQKh65WW7Hnj(XkiJc9%(pMr1xDvHk_zbgS#$NhLbZG@)tQbl|%QAFt$gd*T zf_G^q%M3?68sDhY4_nxxotyL;KpIS&r)X2<(#hz|9DRVj zQj)?n#cTpPa42_%4ai}JDhqkc5~9hc^l7p&K + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Super1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Super1/nbproject/genfiles.properties new file mode 100644 index 0000000..8a4c4e7 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0283ccd6 +build.xml.script.CRC32=a6172543 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0283ccd6 +nbproject/build-impl.xml.script.CRC32=f87be7dc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Super1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Super1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Super1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Super1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Super1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Super1/nbproject/project.properties new file mode 100644 index 0000000..777341a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super1/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}/Super1.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.7 +javac.target=1.7 +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=super1.Super1 +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/PrjJava/OCA7/Chapter2/Super1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Super1/nbproject/project.xml new file mode 100644 index 0000000..e842ad8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Super1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Super1/src/super1/AlternateFuel.java b/PrjJava/OCA7/Chapter2/Super1/src/super1/AlternateFuel.java new file mode 100644 index 0000000..b76945c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super1/src/super1/AlternateFuel.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package super1; + +/** + * + * @author anda + */ +public class AlternateFuel extends Fuel{ + static int getRating() + { + return 42; + } + +} diff --git a/PrjJava/OCA7/Chapter2/Super1/src/super1/Fuel.java b/PrjJava/OCA7/Chapter2/Super1/src/super1/Fuel.java new file mode 100644 index 0000000..8bec75f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super1/src/super1/Fuel.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package super1; + +/** + * + * @author anda + */ +public class Fuel { + static int getRating() + { + return 41; + } + + +} diff --git a/PrjJava/OCA7/Chapter2/Super1/src/super1/Super1.java b/PrjJava/OCA7/Chapter2/Super1/src/super1/Super1.java new file mode 100644 index 0000000..3a149f0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super1/src/super1/Super1.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package super1; + +/** + * + * @author anda + */ +public class Super1 extends AlternateFuel { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + go(); + } + + static void go() + { + System.out.println(getRating()); + //System.out.println(super.super.getRating()); + } + +} diff --git a/PrjJava/OCA7/Chapter2/Super2/build.xml b/PrjJava/OCA7/Chapter2/Super2/build.xml new file mode 100644 index 0000000..1fad849 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Super2. + + + diff --git a/PrjJava/OCA7/Chapter2/Super2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Super2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Super2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Super2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Super2/build/classes/super2/Super2.class b/PrjJava/OCA7/Chapter2/Super2/build/classes/super2/Super2.class new file mode 100644 index 0000000000000000000000000000000000000000..cd144794679cbace65b3985f7237dafad11c58c0 GIT binary patch literal 592 zcmZuu+e*Vg5Ivj5rj4nW*2Y`aczLKk7|=&W5y7XRLZl!*ZR1i`aw*A1@U!$mLBS93 zqr^!nNTDn{%bb}xGiUbu=i>{&A$Cj{u zdkp${axWNWJsFG3JnD<|hWA54nqCs{u*Xwb_Yc$4aL1o`k9O666oDFp{O3%Gi1w1? z6ljlh$i%%S5sIV;9+A*i$uSNy7{ekdqz$yYlNNwY+P^{n1887{AhITTr=<@x_TIr> zp*1US&|k{5X|gk@kX?X|HZ0h5L6?zj(3zpPj# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Super2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Super2/nbproject/genfiles.properties new file mode 100644 index 0000000..b97b5cc --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1ab758bc +build.xml.script.CRC32=24da5046 +build.xml.stylesheet.CRC32=8064a381@1.79.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=1ab758bc +nbproject/build-impl.xml.script.CRC32=dd62f58c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Super2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Super2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Super2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Super2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Super2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Super2/nbproject/project.properties new file mode 100644 index 0000000..845408d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super2/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}/Super2.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.7 +javac.target=1.7 +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=super2.Super2 +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/PrjJava/OCA7/Chapter2/Super2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Super2/nbproject/project.xml new file mode 100644 index 0000000..61e8ccb --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Super2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Super2/src/super2/Super2.java b/PrjJava/OCA7/Chapter2/Super2/src/super2/Super2.java new file mode 100644 index 0000000..d032ddf --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super2/src/super2/Super2.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package super2; + +/** + * + * @author andad + */ +public class Super2 { + + /** + * @param args the command line arguments + */ + + + public Super2() { + super(); + System.out.println("Sample class constructor called "); + } + + public static void main(String[] args) { + // TODO code application logic here + Super2 s2 = new Super2(); + + } + +} diff --git a/PrjJava/OCA7/Chapter2/Super3/build.xml b/PrjJava/OCA7/Chapter2/Super3/build.xml new file mode 100644 index 0000000..e1721e8 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Super3. + + + diff --git a/PrjJava/OCA7/Chapter2/Super3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Super3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Super3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Super3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Super3/build/classes/super3/A.class b/PrjJava/OCA7/Chapter2/Super3/build/classes/super3/A.class new file mode 100644 index 0000000000000000000000000000000000000000..7692e5e05825e5d3073eb69b0e8dfe01a25b39c0 GIT binary patch literal 391 zcmX|+O-sW-5Qg8$N7JOOt@Y#5fWcGip*i%Z2qFl9s)tDNx{X1%rXQq<=>PH9izmT@ zKfoU)&aTmg-FfHTnP-@W9H1oGr{gh(I6raYf|xr(25I@ zJYI@b)$PU0GEdSAsrZdpBZf2aB$}{b6Y76dLPyzQCKmVM^>mgd1p*knhB^jct_SbJ zD&$BU?W1?loBnqAt!dLooptlK04_YvfQEKd^KAund;Tlz-p1dsX+i6L5a0 dL4o$%e~^n7*Qx0)+N=z8bU!(4ZnHGd{Q-=DI@$mL literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Super3/build/classes/super3/B.class b/PrjJava/OCA7/Chapter2/Super3/build/classes/super3/B.class new file mode 100644 index 0000000000000000000000000000000000000000..d0863182fa64af7b7d6384ad922e41bf4598d528 GIT binary patch literal 360 zcmYLD%T5A85Ukz@%Pxy3z7BfuChS2D95p6Ng4tx_1;c&7Nf-mHSy-e0gt;L{911Sba5QP!@iV*0EYpN2$d@{H_K~++iDL9UN3*tghpoO`o5fv zbn&1@Q&yT;K33DADva=7(OXW;f)Hhk@>v(%&g~`V%+xEvZ>4EFB@knh{>HXJUKV5B zHFChtrfYy%P-AaAqjKOn>o8a6bVOQ4#zug%Vf?@Gs2+hnc%w08~ znDSmvW~{WbVyb6jU0UJ4VzA2Xk`QOh>dBOY{_v7>=K7fsw$rqe5{NNLe_`9GsLH9i zwUVbsZl(9A*E&InT7m=(Lj5ml3vX}^pZ_e!~Kwf z42Yqa32(3>%PB|t+*LO`&BL>N1Miiohi$}#i;&mZ_8+0Ji>8ZJ*kj}|-gld=Z!Lf_ A;{X5v literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/Super3/build/classes/super3/Super3.class b/PrjJava/OCA7/Chapter2/Super3/build/classes/super3/Super3.class new file mode 100644 index 0000000000000000000000000000000000000000..88dd21037a922fa69ca2150bce4fe88d12d30b21 GIT binary patch literal 603 zcmZuu+e*Vg5Iviwjg6^|+SdF1mRc|meN=pCK_~Ob{KMJA`tO8 zL&m7K8RTYo?=loE5xAFqzvD(XyyFqFV1*9%+B_0TJ_6ZYBBQ=;*? z2pB5Ho%P6{x#{tsYua%ng6?U$hDTi*T>PiZz#Im3OxYkd)eifS<6ekF$n0>*Ny4ik z50znNw7#ieSHm9m6&z?d#E}9+Llwsig(-y$`b5@M=h1cIDad~9#ja0x685Q39(oX= zc})glvf*-{WR2H0sL|&y3|XVqs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Super3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Super3/nbproject/genfiles.properties new file mode 100644 index 0000000..ad2b943 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=12a4d49a +build.xml.script.CRC32=5a9e8345 +build.xml.stylesheet.CRC32=8064a381@1.79.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=12a4d49a +nbproject/build-impl.xml.script.CRC32=c195fbbc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Super3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Super3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Super3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Super3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Super3/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Super3/nbproject/project.properties new file mode 100644 index 0000000..cba82b1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super3/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}/Super3.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.7 +javac.target=1.7 +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=super3.Super3 +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/PrjJava/OCA7/Chapter2/Super3/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Super3/nbproject/project.xml new file mode 100644 index 0000000..9816c2a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Super3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Super3/src/super3/Super3.java b/PrjJava/OCA7/Chapter2/Super3/src/super3/Super3.java new file mode 100644 index 0000000..dfbbe26 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super3/src/super3/Super3.java @@ -0,0 +1,52 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package super3; + +/** + * + * @author andad + */ +public class Super3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + B c = new C(); + System.out.println(c.max(10, 20)); + } + + + +} + + + class A { + + int max(int x, int y) { + if (x > y) { + return x; + } else { + return y; + } + } + } + + class B extends A { + + int max(int x, int y) { + return 2 * super.max(x, y); + } + } + + class C extends B { + + int max(int x, int y) { + return super.max(2 * x, 2 * y); + } + } + diff --git a/PrjJava/OCA7/Chapter2/Super4/build.xml b/PrjJava/OCA7/Chapter2/Super4/build.xml new file mode 100644 index 0000000..3a9dfcc --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Super4. + + + diff --git a/PrjJava/OCA7/Chapter2/Super4/manifest.mf b/PrjJava/OCA7/Chapter2/Super4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Super4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Super4/nbproject/build-impl.xml new file mode 100644 index 0000000..3b7a049 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Super4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Super4/nbproject/genfiles.properties new file mode 100644 index 0000000..2a98baa --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2ade7068 +build.xml.script.CRC32=fa31bc0d +build.xml.stylesheet.CRC32=8064a381@1.79.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=2ade7068 +nbproject/build-impl.xml.script.CRC32=9750d12c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Super4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Super4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Super4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Super4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Super4/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Super4/nbproject/project.properties new file mode 100644 index 0000000..bf9a36b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super4/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}/Super4.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.7 +javac.target=1.7 +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=super4.Super4 +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/PrjJava/OCA7/Chapter2/Super4/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Super4/nbproject/project.xml new file mode 100644 index 0000000..e461b81 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Super4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Super4/src/super4/Super4.java b/PrjJava/OCA7/Chapter2/Super4/src/super4/Super4.java new file mode 100644 index 0000000..0a37ab2 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super4/src/super4/Super4.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package super4; + +/** + * + * @author andad + */ +class Super4{ + int i; + public Super4(int x) { this.i = x; } +} +class B extends Super4{ + int j; + public B(int x, int y) { super(x); this.j = y; } + + public B(int x) + { + super(x*2); + } +} diff --git a/PrjJava/OCA7/Chapter2/Super5/build.xml b/PrjJava/OCA7/Chapter2/Super5/build.xml new file mode 100644 index 0000000..01053d3 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Super5. + + + diff --git a/PrjJava/OCA7/Chapter2/Super5/manifest.mf b/PrjJava/OCA7/Chapter2/Super5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/Super5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/Super5/nbproject/build-impl.xml new file mode 100644 index 0000000..e65610a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/Super5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Super5/nbproject/genfiles.properties new file mode 100644 index 0000000..9c1fe3a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=22cdfc4e +build.xml.script.CRC32=84756f0e +build.xml.stylesheet.CRC32=8064a381@1.79.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=22cdfc4e +nbproject/build-impl.xml.script.CRC32=8ba7df1c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Super5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Super5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Super5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Super5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Super5/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Super5/nbproject/project.properties new file mode 100644 index 0000000..82c9d8d --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super5/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}/Super5.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.7 +javac.target=1.7 +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=super5.Super5 +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/PrjJava/OCA7/Chapter2/Super5/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Super5/nbproject/project.xml new file mode 100644 index 0000000..99f4be0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Super5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Super5/src/super5/Super5.java b/PrjJava/OCA7/Chapter2/Super5/src/super5/Super5.java new file mode 100644 index 0000000..7112b34 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Super5/src/super5/Super5.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package super5; + +/** + * + * @author andad + */ + class TC extends java.util.ArrayList{ + public TC(){ + super(100); + System.out.println("TC created"); + } +} +public class Super5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/This1/build.xml b/PrjJava/OCA7/Chapter2/This1/build.xml new file mode 100644 index 0000000..097b11c --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project This1. + + + diff --git a/PrjJava/OCA7/Chapter2/This1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/This1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/This1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/This1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/This1/build/classes/this1/Test.class b/PrjJava/OCA7/Chapter2/This1/build/classes/this1/Test.class new file mode 100644 index 0000000000000000000000000000000000000000..77f797e312e8d2ffed82dcde74bdc193c4bf9024 GIT binary patch literal 674 zcmZuvO-~y!5PeQUoGdO$lR$xfK}*{tEvyj7ATCI7SwW>B?oMh2qs?x$aVqs^wUubq zLw`VjRK@cq6+z-Mo=cDiDCgBW JZIe*}ty@MFl*s@9 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/This1/build/classes/this1/This1.class b/PrjJava/OCA7/Chapter2/This1/build/classes/this1/This1.class new file mode 100644 index 0000000000000000000000000000000000000000..302bce62d0e156def0a286bd3e1ad68d775f0b62 GIT binary patch literal 403 zcmZut!A`gx% zt|V}94{v7P%)FP`pY7*2fE%3oXd-mc_hIRH>S91}?o^@bF`+TMm=Wyz@=X#tu`1-_ zYLUolDw3R;URm=ZJop + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/This1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/This1/nbproject/genfiles.properties new file mode 100644 index 0000000..71fcb6e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a02b6610 +build.xml.script.CRC32=379aaefd +build.xml.stylesheet.CRC32=8064a381@1.79.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=a02b6610 +nbproject/build-impl.xml.script.CRC32=4e39c200 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/This1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/This1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/This1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/This1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/This1/nbproject/project.properties b/PrjJava/OCA7/Chapter2/This1/nbproject/project.properties new file mode 100644 index 0000000..61b819b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This1/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}/This1.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.7 +javac.target=1.7 +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=this1.This1 +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/PrjJava/OCA7/Chapter2/This1/nbproject/project.xml b/PrjJava/OCA7/Chapter2/This1/nbproject/project.xml new file mode 100644 index 0000000..9f86154 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + This1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/This1/src/this1/Test.java b/PrjJava/OCA7/Chapter2/This1/src/this1/Test.java new file mode 100644 index 0000000..a86bea1 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This1/src/this1/Test.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package this1; + +import java.util.logging.Logger; + +/** + * + * @author andad + */ +public class Test { + + private static final Logger LOG = Logger.getLogger(Test.class.getName()); + + public Test() { + System.out.println(this); + } + + +} diff --git a/PrjJava/OCA7/Chapter2/This1/src/this1/This1.java b/PrjJava/OCA7/Chapter2/This1/src/this1/This1.java new file mode 100644 index 0000000..3941698 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This1/src/this1/This1.java @@ -0,0 +1,22 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package this1; + +/** + * + * @author andad + */ +public class This1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Test(); + } + +} diff --git a/PrjJava/OCA7/Chapter2/This2/build.xml b/PrjJava/OCA7/Chapter2/This2/build.xml new file mode 100644 index 0000000..3cfbb30 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project This2. + + + diff --git a/PrjJava/OCA7/Chapter2/This2/manifest.mf b/PrjJava/OCA7/Chapter2/This2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/This2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/This2/nbproject/build-impl.xml new file mode 100644 index 0000000..a3479d4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/This2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/This2/nbproject/genfiles.properties new file mode 100644 index 0000000..102a758 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b81ff27a +build.xml.script.CRC32=465f57e3 +build.xml.stylesheet.CRC32=8064a381@1.79.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=b81ff27a +nbproject/build-impl.xml.script.CRC32=df84e28d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/This2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/This2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/This2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/This2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/This2/nbproject/project.properties b/PrjJava/OCA7/Chapter2/This2/nbproject/project.properties new file mode 100644 index 0000000..e5434f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This2/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}/This2.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.7 +javac.target=1.7 +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=this2.This2 +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/PrjJava/OCA7/Chapter2/This2/nbproject/project.xml b/PrjJava/OCA7/Chapter2/This2/nbproject/project.xml new file mode 100644 index 0000000..9502702 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + This2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/This2/src/this2/This2.java b/PrjJava/OCA7/Chapter2/This2/src/this2/This2.java new file mode 100644 index 0000000..0266652 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/This2/src/this2/This2.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package this2; + +/** + * + * @author andad + */ +public class This2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter2/Types/build.xml b/PrjJava/OCA7/Chapter2/Types/build.xml new file mode 100644 index 0000000..a8aa22a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Types/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Types. + + + diff --git a/PrjJava/OCA7/Chapter2/Types/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/Types/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Types/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/Types/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/Types/build/classes/types/Types.class b/PrjJava/OCA7/Chapter2/Types/build/classes/types/Types.class new file mode 100644 index 0000000000000000000000000000000000000000..0bc2329e9244b3b1c6f162ac6db993323ba499b7 GIT binary patch literal 645 zcmZuv+fLg+5Iq}w0mmtqgb*%mxE1V5)D7^0pcPUPs!-Hc3d&2LHi;D$C3fUENPI^> zfiGwuTB#5Hfc^k~gE;FT0a9)4%&@eL+2(pm|*Ph4kQ2WAPzf&CNK z_AhAXk6p!l@HYKpqpggf2m>W5oJRo*q_1F+|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/PrjJava/OCA7/Chapter2/Types/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/Types/nbproject/genfiles.properties new file mode 100644 index 0000000..394e74b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Types/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=71241bce +build.xml.script.CRC32=a01418c4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=71241bce +nbproject/build-impl.xml.script.CRC32=fa2fba60 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/Types/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/Types/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Types/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/Types/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/Types/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Types/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter2/Types/nbproject/project.properties b/PrjJava/OCA7/Chapter2/Types/nbproject/project.properties new file mode 100644 index 0000000..d761fb4 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Types/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}/Types.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.7 +javac.target=1.7 +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=types.Types +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/PrjJava/OCA7/Chapter2/Types/nbproject/project.xml b/PrjJava/OCA7/Chapter2/Types/nbproject/project.xml new file mode 100644 index 0000000..922a860 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Types/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Types + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/Types/src/types/Types.java b/PrjJava/OCA7/Chapter2/Types/src/types/Types.java new file mode 100644 index 0000000..0a892cc --- /dev/null +++ b/PrjJava/OCA7/Chapter2/Types/src/types/Types.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package types; + +/** + * + * @author anda + */ +public class Types { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + double d = 1234.56; + double d1 = 1_234.56; + double d2 = 0_1234.5_6; + //double d4 = 0_1234._56; // illegal underscore + double d3 = 1_234_56; + System.out.println(d); + System.out.println(d1); + System.out.println(d2); + System.out.println(d3); + + } + +} diff --git a/PrjJava/OCA7/Chapter2/this3/build.xml b/PrjJava/OCA7/Chapter2/this3/build.xml new file mode 100644 index 0000000..39f016f --- /dev/null +++ b/PrjJava/OCA7/Chapter2/this3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project this3. + + + diff --git a/PrjJava/OCA7/Chapter2/this3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter2/this3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/this3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter2/this3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter2/this3/build/classes/this3/This3.class b/PrjJava/OCA7/Chapter2/this3/build/classes/this3/This3.class new file mode 100644 index 0000000000000000000000000000000000000000..f5cf9c428c2c1f2eff81fdca67b24cb24ddf318a GIT binary patch literal 795 zcmZuv-)qxg6g^*(C2N+sZcXc4?S9lBYg4fgdl5SJA_#-vgqDK%ly;%Z$PY==js01Q zcA((1_(zH7%Yv=4m+yY(+;t8Hg z_{_j_0VBE@dg06$5T^qAaS#XDiGbQ_4+XT>$vHC{ZV>x#XVJ({2i_JH@D-hy`k`5ALOR<#j_Zo^<S7Es2SfZ0!G>DYf0NLOY)@}-orU}4>Yi8X<>B|jFbuninqXrXPu zvCx5Sp#oc=yzp=~y7Z;|64k$%W`4xYBr_(ecZP$c`;KlidiK4DkFDey|I&Q%M_Clc z+`r0C1JJ$n#+$}Ft@3<8^oqP-G@V-rNBs)r6On=q$uWYp8a7eRZ+Rur77<6oE>wDq zvR17h|KDyiQO(FCpV`UpFc(kOY|JBk9trBW@SZJk% zmh&Cz`&(#kXA?i?SosXS^99NrMyGr}$LazvyzfA#iw0J)%T?@g>ORi{w9#Ce?_ir5 Qu&Rk2E=9hjPORYZAFq>sCjbBd literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter2/this3/manifest.mf b/PrjJava/OCA7/Chapter2/this3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/this3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter2/this3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter2/this3/nbproject/build-impl.xml new file mode 100644 index 0000000..2c54f8a --- /dev/null +++ b/PrjJava/OCA7/Chapter2/this3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter2/this3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter2/this3/nbproject/genfiles.properties new file mode 100644 index 0000000..44d6485 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/this3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=f8570a9c +build.xml.script.CRC32=6beb0b21 +build.xml.stylesheet.CRC32=8064a381@1.79.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=f8570a9c +nbproject/build-impl.xml.script.CRC32=b1270698 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter2/this3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter2/this3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter2/this3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter2/this3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter2/this3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter2/this3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/this3/nbproject/project.properties b/PrjJava/OCA7/Chapter2/this3/nbproject/project.properties new file mode 100644 index 0000000..9251124 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/this3/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}/this3.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.7 +javac.target=1.7 +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=this3.This3 +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/PrjJava/OCA7/Chapter2/this3/nbproject/project.xml b/PrjJava/OCA7/Chapter2/this3/nbproject/project.xml new file mode 100644 index 0000000..a13f7ab --- /dev/null +++ b/PrjJava/OCA7/Chapter2/this3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + this3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter2/this3/src/this3/This3.java b/PrjJava/OCA7/Chapter2/this3/src/this3/This3.java new file mode 100644 index 0000000..89e7bb0 --- /dev/null +++ b/PrjJava/OCA7/Chapter2/this3/src/this3/This3.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package this3; + +/** + * + * @author andad + */ +public class This3 { + + /** + * @param args the command line arguments + */ + private int myValue = 0; + + public void showOne(int myValue){ + myValue = myValue; + } + + public void showTwo(int myValue){ + this.myValue = myValue; + } + + public static void main(String[] args) { + // TODO code application logic here + This3 ct = new This3(); + ct.showTwo(200); + System.out.println(ct.myValue); + ct.showOne(100); + System.out.println(ct.myValue); + } + +} diff --git a/PrjJava/OCA7/Chapter3/Final1/build.xml b/PrjJava/OCA7/Chapter3/Final1/build.xml new file mode 100644 index 0000000..b4dfdf6 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Final1. + + + diff --git a/PrjJava/OCA7/Chapter3/Final1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter3/Final1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Final1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter3/Final1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Final1/build/classes/final1/Final1.class b/PrjJava/OCA7/Chapter3/Final1/build/classes/final1/Final1.class new file mode 100644 index 0000000000000000000000000000000000000000..c281c59a3f00ee6962cd20b6c4f7fc960c58dd16 GIT binary patch literal 905 zcmZuv+int36kUe_h8YG+sl^Mm(s~2bV(YcG`qJ2h1TP6nVthK#BTj`GG7JWN_7{Bd z2Ym6RKD3P{{Qy78xDHf-qz^Ouw)Wa<@0s6!ejWk1jfXapShjHqmu+0ZRTI~2M0F;L zf{CKVN-2TsHg4dii4}qPrt7)kV*#U3tP4c9{2e7QQ*}M{tlw#<;H7M|naNcBrfk<` z;Oh7|84cgLJ&k_rda}J*-X59_(sZQj31kazs=M-oEVrfCD%Zlm^;#Qxj2Q5#2t*W} z`3cOEK~r@@*Y`Au3|eHLJAp$WRSRYF{ZrW;O5tiGYx!&{REi`Pp9Jih-w&E<+tvD$ zBW){MjspiN6J-atuxet>;pOg-a%u|)7qH0bWBvcNIk<~^0#4}X8*(S#l|fILxbNTr z)&0zS=SQRX(P0;+-D)a)0y0Fc}Slf0gm@0lw + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/Final1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/Final1/nbproject/genfiles.properties new file mode 100644 index 0000000..9412904 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1fb40b80 +build.xml.script.CRC32=40158725 +build.xml.stylesheet.CRC32=8064a381@1.79.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=1fb40b80 +nbproject/build-impl.xml.script.CRC32=8b8eff6b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/Final1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/Final1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/Final1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/Final1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final1/nbproject/project.properties b/PrjJava/OCA7/Chapter3/Final1/nbproject/project.properties new file mode 100644 index 0000000..da16daa --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final1/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}/Final1.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.7 +javac.target=1.7 +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=final1.Final1 +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/PrjJava/OCA7/Chapter3/Final1/nbproject/project.xml b/PrjJava/OCA7/Chapter3/Final1/nbproject/project.xml new file mode 100644 index 0000000..0a925a3 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Final1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final1/src/final1/Final1.java b/PrjJava/OCA7/Chapter3/Final1/src/final1/Final1.java new file mode 100644 index 0000000..c03151d --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final1/src/final1/Final1.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package final1; + +/** + * + * @author anda + */ +public class Final1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + if (args.length ==0 ) System.exit(0); + try + { + final int x = Integer.parseInt(args[0]); + final int y = new Final1().go(x); + + } + catch(Exception ex){ + System.out.println("to bad parse"); + } + + + } + int go(int z) + { + return z++; + } + +} diff --git a/PrjJava/OCA7/Chapter3/Final2/build.xml b/PrjJava/OCA7/Chapter3/Final2/build.xml new file mode 100644 index 0000000..2a49614 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Final2. + + + diff --git a/PrjJava/OCA7/Chapter3/Final2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter3/Final2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Final2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter3/Final2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Final2/build/classes/final2/Final2.class b/PrjJava/OCA7/Chapter3/Final2/build/classes/final2/Final2.class new file mode 100644 index 0000000000000000000000000000000000000000..f69f475f127232376d4e4aa13b02aa039a7ec973 GIT binary patch literal 508 zcmZuuO;5r=5PefV3Izl~iujSh4L#UIj~EYpYE+YjrK(k8X|zdVs>;t%jg z8D|R#QQX7M&YOAf&F+4EzkdR_z_EcMOdXvP_6=z0>NwDGNGM*)NTyeW+~8zN$d6*r zC)8~j`L~O?<0tpR2^neHu`9x!<-7VhrLWZ87u(&aa7m4eSrJAd<@;p;ERp=-YI)5$K zR6^;d7sRpG@2SosLhaYwgvN$>=gfRJCA0@ylkg4DM}Z$yEe)h>c`tKjaU_m~(5UMIIr?azNz++Cww9MBd&=s9ytGFkogf=BgD9>@se! NM3bw^eUEbu?H@v^Waj_? literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter3/Final2/manifest.mf b/PrjJava/OCA7/Chapter3/Final2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter3/Final2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter3/Final2/nbproject/build-impl.xml new file mode 100644 index 0000000..618f996 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/Final2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/Final2/nbproject/genfiles.properties new file mode 100644 index 0000000..d40f94f --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=07809fea +build.xml.script.CRC32=c2d8f220 +build.xml.stylesheet.CRC32=8064a381@1.79.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=07809fea +nbproject/build-impl.xml.script.CRC32=ae97ed3b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/Final2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/Final2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/Final2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/Final2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final2/nbproject/project.properties b/PrjJava/OCA7/Chapter3/Final2/nbproject/project.properties new file mode 100644 index 0000000..1011d4e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final2/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}/Final2.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.7 +javac.target=1.7 +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=final2.Final2 +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/PrjJava/OCA7/Chapter3/Final2/nbproject/project.xml b/PrjJava/OCA7/Chapter3/Final2/nbproject/project.xml new file mode 100644 index 0000000..3243e4a --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Final2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final2/src/final2/Final2.java b/PrjJava/OCA7/Chapter3/Final2/src/final2/Final2.java new file mode 100644 index 0000000..d60c472 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final2/src/final2/Final2.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package final2; + +/** + * + * @author anda + */ +public class Final2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + final StringBuilder b = new StringBuilder("I good! "); + + + } + +} diff --git a/PrjJava/OCA7/Chapter3/Final3/build.xml b/PrjJava/OCA7/Chapter3/Final3/build.xml new file mode 100644 index 0000000..3f5c067 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Final3. + + + diff --git a/PrjJava/OCA7/Chapter3/Final3/manifest.mf b/PrjJava/OCA7/Chapter3/Final3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter3/Final3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter3/Final3/nbproject/build-impl.xml new file mode 100644 index 0000000..ec832c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final3/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/Final3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/Final3/nbproject/genfiles.properties new file mode 100644 index 0000000..aabc6b4 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0f9313cc +build.xml.script.CRC32=bc9c2123 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0f9313cc +nbproject/build-impl.xml.script.CRC32=b260e30b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/Final3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/Final3/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/Final3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/Final3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final3/nbproject/project.properties b/PrjJava/OCA7/Chapter3/Final3/nbproject/project.properties new file mode 100644 index 0000000..aec06de --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final3/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}/Final3.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.7 +javac.target=1.7 +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=final3.Final3 +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/PrjJava/OCA7/Chapter3/Final3/nbproject/project.xml b/PrjJava/OCA7/Chapter3/Final3/nbproject/project.xml new file mode 100644 index 0000000..1bc179e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Final3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final3/src/final3/Final3.java b/PrjJava/OCA7/Chapter3/Final3/src/final3/Final3.java new file mode 100644 index 0000000..cde1242 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final3/src/final3/Final3.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package final3; + +/** + * + * @author anda + */ +public class Final3 { + + /** + * @param args the command line arguments + */ + private static int x = 4; + private final int y = 2; + public int getY() + { + //this.y = y; + return 1; + } + public static void main(String[] args) { + // TODO code application logic here + + + } + +} diff --git a/PrjJava/OCA7/Chapter3/Final4/build.xml b/PrjJava/OCA7/Chapter3/Final4/build.xml new file mode 100644 index 0000000..3383f2f --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Final4. + + + diff --git a/PrjJava/OCA7/Chapter3/Final4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter3/Final4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Final4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter3/Final4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Final4/build/classes/final4/Final4.class b/PrjJava/OCA7/Chapter3/Final4/build/classes/final4/Final4.class new file mode 100644 index 0000000000000000000000000000000000000000..32e6190e581e915e4c269231622adb1a2101c57b GIT binary patch literal 413 zcmZutF;2rk5S+D*jU9)80|C*|g&^UA6i7idNU1C+f>Ju zkP|wIRQdH{p62zfNK2kXNtKCmDr%|mYUngi@>y>`N+rr+JT}LOZRSEMLa%?H%*2a` zOQDK*($rEFBNHR)f`#3GXhJZl7Il`7rOs{rc%EvT5FR!|Y``V7|3nhD*Eu)oEYBJo z@rxb)0p_%XJBxdE;Oa9vHy8*8OVGf6gY{~50 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/Final4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/Final4/nbproject/genfiles.properties new file mode 100644 index 0000000..edd39f0 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=37e9b73e +build.xml.script.CRC32=1c331e6b +build.xml.stylesheet.CRC32=8064a381@1.79.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=37e9b73e +nbproject/build-impl.xml.script.CRC32=e4a5c99b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/Final4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/Final4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/Final4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/Final4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final4/nbproject/project.properties b/PrjJava/OCA7/Chapter3/Final4/nbproject/project.properties new file mode 100644 index 0000000..1b43081 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final4/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}/Final4.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.7 +javac.target=1.7 +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=final4.Final4 +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/PrjJava/OCA7/Chapter3/Final4/nbproject/project.xml b/PrjJava/OCA7/Chapter3/Final4/nbproject/project.xml new file mode 100644 index 0000000..06e1ab0 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Final4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final4/src/final4/Final4.java b/PrjJava/OCA7/Chapter3/Final4/src/final4/Final4.java new file mode 100644 index 0000000..c441fa3 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final4/src/final4/Final4.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package final4; + +/** + * + * @author anda + */ +public class Final4 { + + /** + * @param args the command line arguments + */ + final boolean bool; + {bool = false;} + + public static void main(String[] args) { + // TODO code application logic here + //System.out.println(bool); + + + + } + +} diff --git a/PrjJava/OCA7/Chapter3/Final5/build.xml b/PrjJava/OCA7/Chapter3/Final5/build.xml new file mode 100644 index 0000000..ef8a34e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Final5. + + + diff --git a/PrjJava/OCA7/Chapter3/Final5/manifest.mf b/PrjJava/OCA7/Chapter3/Final5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter3/Final5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter3/Final5/nbproject/build-impl.xml new file mode 100644 index 0000000..c46cc41 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/Final5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/Final5/nbproject/genfiles.properties new file mode 100644 index 0000000..ccf7968 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3ffa3b18 +build.xml.script.CRC32=6277cd68 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3ffa3b18 +nbproject/build-impl.xml.script.CRC32=f852c7ab +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/Final5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/Final5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/Final5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/Final5/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final5/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final5/nbproject/project.properties b/PrjJava/OCA7/Chapter3/Final5/nbproject/project.properties new file mode 100644 index 0000000..e4d3abf --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final5/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}/Final5.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.7 +javac.target=1.7 +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=final5.Final5 +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/PrjJava/OCA7/Chapter3/Final5/nbproject/project.xml b/PrjJava/OCA7/Chapter3/Final5/nbproject/project.xml new file mode 100644 index 0000000..50d37f3 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Final5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Final5/src/final5/Final5.java b/PrjJava/OCA7/Chapter3/Final5/src/final5/Final5.java new file mode 100644 index 0000000..3f1a2fd --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Final5/src/final5/Final5.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package final5; + +/** + * + * @author andad + */ +public class Final5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/build.xml b/PrjJava/OCA7/Chapter3/FinalDeclaring/build.xml new file mode 100644 index 0000000..cf05aab --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project FinalDeclaring. + + + diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter3/FinalDeclaring/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter3/FinalDeclaring/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/build/classes/finaldeclaring/FinalDeclaring.class b/PrjJava/OCA7/Chapter3/FinalDeclaring/build/classes/finaldeclaring/FinalDeclaring.class new file mode 100644 index 0000000000000000000000000000000000000000..207b52ec36d533c266608deb8a4825df616bb899 GIT binary patch literal 634 zcmaJ<+e!ja6kTVuCdcWjcG1l4SwRv#7QGZgFjQa&(bLhUIx)_KjzOPQbb*3CppS~y zQ6r6L9?m{%uf5k^n=>DuukQf1uwuc)WDF5ZnMhlVnHZ*#wJ?L6iCKZZ#+5vG1;l|s z|BmuixGNCNAFP%c_5w`}JIZ$to3)BtKamxWnK37*O0O*IO5;v48eXY}K+d^PzVy!B zsz=_xEEF}||AyO?tx4qzjOWjsYk4aRo@7-i)WzGav9f+ip~N4wfN`-YV3mSqz3LW~ zHk0Tbu%R_=SeUahfS5q`Uq8AsZerfX0v1gy*;qzgVC2WyQRUjLh60hiHrGXz?i!(6 zBM~%7r`pS?pm5AhLhj?r8n;cflzP(w=8Z1$e9ZApOuiMBwO!r}-sy>_O;jW{7_GGz zh_%cUjQdv2AkQK80trNsWM_&P7;jf&n0orNTB?HlD8@RP$L!OZ$u~q!%@;(S2lTB! h!gxmiZ}lm5ra2?irJf{CvOh+bDbC^F!@1h|#1~a0ePaLs literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/manifest.mf b/PrjJava/OCA7/Chapter3/FinalDeclaring/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/build-impl.xml new file mode 100644 index 0000000..549840c --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/genfiles.properties new file mode 100644 index 0000000..a1ad0cb --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=38098fc0 +build.xml.script.CRC32=346f0d88 +build.xml.stylesheet.CRC32=8064a381@1.79.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=38098fc0 +nbproject/build-impl.xml.script.CRC32=587ff4c3 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/project.properties b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/project.properties new file mode 100644 index 0000000..026a68d --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring/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}/FinalDeclaring.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.7 +javac.target=1.7 +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=finaldeclaring.FinalDeclaring +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/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/project.xml b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/project.xml new file mode 100644 index 0000000..95922fd --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + FinalDeclaring + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring/src/finaldeclaring/FinalDeclaring.java b/PrjJava/OCA7/Chapter3/FinalDeclaring/src/finaldeclaring/FinalDeclaring.java new file mode 100644 index 0000000..4e2d5db --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring/src/finaldeclaring/FinalDeclaring.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package finaldeclaring; + +/** + * + * @author andad + */ +public class FinalDeclaring { + + /** + * @param args the command line arguments + */ + final int shade; + + public FinalDeclaring(int shade) { + this.shade = shade; + } + + public static void main(String[] args) { + // TODO code application logic here + FinalDeclaring f1 = new FinalDeclaring(4); + System.out.println(f1.shade); + } + +} diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/build.xml b/PrjJava/OCA7/Chapter3/FinalDeclaring1/build.xml new file mode 100644 index 0000000..781f88b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project FinalDeclaring1. + + + diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter3/FinalDeclaring1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter3/FinalDeclaring1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/build/classes/finaldeclaring1/FinalDeclaring1.class b/PrjJava/OCA7/Chapter3/FinalDeclaring1/build/classes/finaldeclaring1/FinalDeclaring1.class new file mode 100644 index 0000000000000000000000000000000000000000..1e13505806fd7b85a85968c8316bfb4c5eecdb1e GIT binary patch literal 624 zcmah`+e*Vg6r4??(KKqct#_^UMpdvBAHBRNf)G@w6vU@(P3uaUNSg|NmZBCE`~W{n zoQMU2$;K}t_-;<@D4l8s@FP^RiBv=H>^p&B3nx1&!ib$sJ1}ft*b!#=U&Zc zJ!q7Q`x@_k;Y|`Zr3wT_3uo@7yp}~@2907l((RkEuxvF*mHwkFVAM+jb~)^{YTmxm zb~3*d)-|aE8%YO!=oiTSW68ptgFNOfEI3%il0fR)*HQJ-t3^Lj<(qcoHTg_ohlT9N z5-KbnbAyO`c(TbY(=o@-w19P`n|!Ws77kV_luhu9019ZcycxXHJEKFi9b+K5+J#t6 z*$*&o1Be0lQHG!#~9L-0V_#LrAW#zBsMVi4#(Pk<^TWy literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/manifest.mf b/PrjJava/OCA7/Chapter3/FinalDeclaring1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/build-impl.xml new file mode 100644 index 0000000..8c85f60 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/genfiles.properties new file mode 100644 index 0000000..81c7106 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=926e358e +build.xml.script.CRC32=4cb7242a +build.xml.stylesheet.CRC32=8064a381@1.79.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=926e358e +nbproject/build-impl.xml.script.CRC32=70a1cd6a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/project.properties b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/project.properties new file mode 100644 index 0000000..4c39895 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring1/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}/FinalDeclaring1.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.7 +javac.target=1.7 +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=finaldeclaring1.FinalDeclaring1 +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/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/project.xml b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/project.xml new file mode 100644 index 0000000..2d2ea4d --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + FinalDeclaring1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/FinalDeclaring1/src/finaldeclaring1/FinalDeclaring1.java b/PrjJava/OCA7/Chapter3/FinalDeclaring1/src/finaldeclaring1/FinalDeclaring1.java new file mode 100644 index 0000000..aa170ce --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalDeclaring1/src/finaldeclaring1/FinalDeclaring1.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package finaldeclaring1; + +/** + * + * @author andad + */ +public class FinalDeclaring1 { + + /** + * @param args the command line arguments + */ + final int shade; + + { + shade = 10; + } + public static void main(String[] args) { + // TODO code application logic here + FinalDeclaring1 f1 = new FinalDeclaring1(); + System.out.println(f1.shade); + } + +} diff --git a/PrjJava/OCA7/Chapter3/FinalInitialization/build.xml b/PrjJava/OCA7/Chapter3/FinalInitialization/build.xml new file mode 100644 index 0000000..1870930 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalInitialization/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project FinalInitialization. + + + diff --git a/PrjJava/OCA7/Chapter3/FinalInitialization/manifest.mf b/PrjJava/OCA7/Chapter3/FinalInitialization/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalInitialization/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/build-impl.xml new file mode 100644 index 0000000..e323bac --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/genfiles.properties new file mode 100644 index 0000000..d4642b0 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=fbf14b42 +build.xml.script.CRC32=78c2934d +build.xml.stylesheet.CRC32=8064a381@1.79.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=fbf14b42 +nbproject/build-impl.xml.script.CRC32=683337f2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/project.properties b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/project.properties new file mode 100644 index 0000000..4bcbfc0 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalInitialization/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}/FinalInitialization.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.7 +javac.target=1.7 +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=finalinitialization.FinalInitialization +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/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/project.xml b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/project.xml new file mode 100644 index 0000000..278e983 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalInitialization/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + FinalInitialization + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/FinalInitialization/src/finalinitialization/FinalInitialization.java b/PrjJava/OCA7/Chapter3/FinalInitialization/src/finalinitialization/FinalInitialization.java new file mode 100644 index 0000000..6f15ef3 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/FinalInitialization/src/finalinitialization/FinalInitialization.java @@ -0,0 +1,40 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package finalinitialization; + +/** + * + * @author andad + */ +enum Shade { + LIGHT, DARK +}; + +public class FinalInitialization { + + /** + * @param args the command line arguments + */ + final int shade; + + public FinalInitialization(Shade val) { + switch (val) { + case LIGHT: + shade = 11; + break; + case DARK: + shade = 22; + break; + default: + shade = 33; + } + } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter3/Question16/build.xml b/PrjJava/OCA7/Chapter3/Question16/build.xml new file mode 100644 index 0000000..6068fce --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Question16. + + + diff --git a/PrjJava/OCA7/Chapter3/Question16/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter3/Question16/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Question16/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter3/Question16/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Question16/build/classes/question16/Question16.class b/PrjJava/OCA7/Chapter3/Question16/build/classes/question16/Question16.class new file mode 100644 index 0000000000000000000000000000000000000000..4f6b9f88230db5585910a0b20023be9c75ea5099 GIT binary patch literal 715 zcmZuvYfIZu7=BKgHZ^9gt+rmeoAcH@igO<^hAcA07*arXvIKH9hl0^qqS?W!g?S%cN z;KR1{?b+QSxHB#ThHn3dGv=4v@_8__+$560XeX!R(TD(M|5IjAV(%YpH$4~8zR%;B zu=P(@Lvfz5#u`>BcEdCpiqA5W+bm>kWy}V2OcPN_sGE8@6hrlk@codXRcN$>M2tja zU=8aUHVpJ(GIUDg1p&iMF*xwXVwez9o|2(u51w^0XqVhi#o#1ciEWm4GU20Zl{t$0 z(khQbn{ds3X=<{`^7fv9OdHFn(;tvM3TQo;rqiIvBFo5DH*dgx=H(Z3*79Tn4f2i0 z1~f54(G*%}6G%3ENPP;~-XADOH>f!8+p2nt>QSZk3pMu|+F=3NK!sX6q@#-^%;(VE b$8pSJj%szX9jelYrbs2bK<^^?3YH!K{RW;< literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter3/Question16/build/classes/question16/SubClass.class b/PrjJava/OCA7/Chapter3/Question16/build/classes/question16/SubClass.class new file mode 100644 index 0000000000000000000000000000000000000000..8cd7641a5808882a0a31a4e6ea0f371740ed7041 GIT binary patch literal 855 zcmZuvO>fgc5Pch`agw@e>ok;aQreO@ZE8vpmmm&QLW&f%NI{WM#bHyg!Xn2G_PU58 z|Az}4QVAq}06z*bYX_+%v9voo4k_Q>3JfkTWI5efziRmV-trKp5Ta~y1)%G z=~{InqSPgZwJThoV9nR9L?od%04 z%xuV{ck&&^PvqZTV#zK{VeZkgi?p?AO;MVnY<#8G t95j4|20;)8WxGV8X<8Z7jD|pQ1Dh#z12=JtCJpT1Hq{KO-bu0U{sp*&!i4|; literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter3/Question16/build/classes/question16/SuperClass.class b/PrjJava/OCA7/Chapter3/Question16/build/classes/question16/SuperClass.class new file mode 100644 index 0000000000000000000000000000000000000000..b2598ee148bb3b772c7ed7c0a9792cf08a2cc7f6 GIT binary patch literal 881 zcmZuvU2hUW6g|UkS-=%46zgY8@oSfsuJ!8$c~JGq~pGb-|)UqnQ|u_aKFc6spEOl zRPSZNu-^HQibTmU*n8%6(@4boK2MSs(GA14VsM?#3IE7Fp9dqat6~|9TE`bs?Ldi< zh+A%(bR;U)?G_3&8&{lRZCNQpK9QqjBGQTy3k{09VHyv_YpJhNI+wVs zyV$UCnW5s$l%m>QYM> zR?m43`zK;R?o_5J8G7x*Gui(DyPp#!#$-*H61+OIhVVyZq$1IRkICySk0KEa8JbJn zb{G7d>!-q;3THPbYn??PAzMOLu6@Smqsw4^>>9cCBL_*QnCKCazP?zzxEibas=*E!t;r F`!7CA$zuQj literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter3/Question16/manifest.mf b/PrjJava/OCA7/Chapter3/Question16/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter3/Question16/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter3/Question16/nbproject/build-impl.xml new file mode 100644 index 0000000..460da27 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/Question16/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/Question16/nbproject/genfiles.properties new file mode 100644 index 0000000..a1e42ef --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1dbd423c +build.xml.script.CRC32=710dc10c +build.xml.stylesheet.CRC32=8064a381@1.79.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=1dbd423c +nbproject/build-impl.xml.script.CRC32=4f35515e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/Question16/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/Question16/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/Question16/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/Question16/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Question16/nbproject/project.properties b/PrjJava/OCA7/Chapter3/Question16/nbproject/project.properties new file mode 100644 index 0000000..81d0223 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/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}/Question16.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.7 +javac.target=1.7 +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=question16.Question16 +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/PrjJava/OCA7/Chapter3/Question16/nbproject/project.xml b/PrjJava/OCA7/Chapter3/Question16/nbproject/project.xml new file mode 100644 index 0000000..173dc48 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Question16 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Question16/src/question16/Question16.java b/PrjJava/OCA7/Chapter3/Question16/src/question16/Question16.java new file mode 100644 index 0000000..9ac7d10 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/src/question16/Question16.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question16; + +import java.io.IOException; + +/** + * + * @author anda + */ +public class Question16 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws IOException{ + // TODO code application logic here + SuperClass sb = new SubClass(); + sb.doIt("Hello", 3); + } + +} diff --git a/PrjJava/OCA7/Chapter3/Question16/src/question16/SubClass.java b/PrjJava/OCA7/Chapter3/Question16/src/question16/SubClass.java new file mode 100644 index 0000000..2891b7b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/src/question16/SubClass.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question16; + +/** + * + * @author anda + */ +public class SubClass extends SuperClass{ + + public int doIt(String str, Integer... data) { + String signature = "(String, Integer[] )"; + System.out.println("Overridden " + str + " " + signature); + return 0; + + } + +} diff --git a/PrjJava/OCA7/Chapter3/Question16/src/question16/SuperClass.java b/PrjJava/OCA7/Chapter3/Question16/src/question16/SuperClass.java new file mode 100644 index 0000000..a4629f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Question16/src/question16/SuperClass.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question16; + +import java.io.IOException; + +/** + * + * @author anda + */ +public class SuperClass { + + public int doIt(String str, Integer... data) throws IOException { + String signature = "(String, Integer[])"; + System.out.println(str + " " + signature); + return 1; + } +} diff --git a/PrjJava/OCA7/Chapter3/Shadowing/build.xml b/PrjJava/OCA7/Chapter3/Shadowing/build.xml new file mode 100644 index 0000000..c4caaea --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Shadowing/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Shadowing. + + + diff --git a/PrjJava/OCA7/Chapter3/Shadowing/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter3/Shadowing/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Shadowing/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter3/Shadowing/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter3/Shadowing/build/classes/shadowing/Shadowing.class b/PrjJava/OCA7/Chapter3/Shadowing/build/classes/shadowing/Shadowing.class new file mode 100644 index 0000000000000000000000000000000000000000..681735482825d4f7590edb264282fb54f62768b3 GIT binary patch literal 786 zcmZvZ-EPxB5QWbsPMo-IOMV8c`N{bXu8y{Q^H-Hx&=1y z6Z;knH1*Opu^~`MluE_|Vpm{sM@7>_MoC|Wseg9jK%n?Eh=SyqK;CWl1&kdv@&%T= zLFDhHlYt-a%Rxw`+Eqgt_GKLCdL|mlIG74J-RW44)Tbai^m=F67R^TLWy0X@wuwNT zbVwXyB7;bv;lAr0$&b}YR!^nz(0>tVrlo(EZE7bQ6;w^! zvvD5}Ol;cl@Q_Ax;7HMV(pl3Tk8E7Qiom6Fm{)@%e@O5PQt$IL@h5yGm2$&5B@dMM zn%D{9eL3O4wanvxS-||Dn?la4UxJV9xbr4QlYeeO|40JaSY%vcmBTXf%sCs^8WoRG zFcvmWAiicTb*{xswBazfPaDv{WmY9UAr*ai8wFYdm2b$cTJrt&G4fgbLNNzzWMvI? zvN#vaD!57}pp0v{J~InQmZ#RDS+#JCVjbr5pD^B@pnSmmJFGX{V#Zs}NgHGUiAuDz dX{Qa>v6@}h$S!Z;25UXX%IqlwZnDl{?JvvAkLdsa literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter3/Shadowing/manifest.mf b/PrjJava/OCA7/Chapter3/Shadowing/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Shadowing/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter3/Shadowing/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/build-impl.xml new file mode 100644 index 0000000..8051481 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter3/Shadowing/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/genfiles.properties new file mode 100644 index 0000000..944e591 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3022e170 +build.xml.script.CRC32=98e38fbe +build.xml.stylesheet.CRC32=8064a381@1.79.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=3022e170 +nbproject/build-impl.xml.script.CRC32=276436bd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter3/Shadowing/nbproject/private/private.properties b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter3/Shadowing/nbproject/private/private.xml b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Shadowing/nbproject/project.properties b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/project.properties new file mode 100644 index 0000000..5e5f0c4 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Shadowing/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}/Shadowing.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.7 +javac.target=1.7 +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=shadowing.Shadowing +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/PrjJava/OCA7/Chapter3/Shadowing/nbproject/project.xml b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/project.xml new file mode 100644 index 0000000..16719f3 --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Shadowing/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Shadowing + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter3/Shadowing/src/shadowing/Shadowing.java b/PrjJava/OCA7/Chapter3/Shadowing/src/shadowing/Shadowing.java new file mode 100644 index 0000000..26db7ce --- /dev/null +++ b/PrjJava/OCA7/Chapter3/Shadowing/src/shadowing/Shadowing.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package shadowing; + +/** + * + * @author anda + */ +public class Shadowing { + + /** + * @param args the command line arguments + */ + static final long tooth = 343L; + static long doIt(long touch) + { + System.out.println(++touch); + return ++touch; + } + public static void main(String[] args) { + // TODO code application logic here + System.out.println(tooth + " "); + final long tooth = 340L; + new Shadowing().doIt(tooth); + System.out.println(tooth); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Addboolean/build.xml b/PrjJava/OCA7/Chapter4/Addboolean/build.xml new file mode 100644 index 0000000..35c9659 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Addboolean/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Addboolean. + + + diff --git a/PrjJava/OCA7/Chapter4/Addboolean/manifest.mf b/PrjJava/OCA7/Chapter4/Addboolean/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Addboolean/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Addboolean/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/build-impl.xml new file mode 100644 index 0000000..5ed98a6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Addboolean/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/genfiles.properties new file mode 100644 index 0000000..a3f20d3 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4d93af5e +build.xml.script.CRC32=d9bbf5ea +build.xml.stylesheet.CRC32=8064a381@1.79.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=4d93af5e +nbproject/build-impl.xml.script.CRC32=4e17a82c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Addboolean/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Addboolean/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Addboolean/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/project.properties new file mode 100644 index 0000000..f05c4f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Addboolean/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}/Addboolean.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.7 +javac.target=1.7 +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=addboolean.Addboolean +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/PrjJava/OCA7/Chapter4/Addboolean/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/project.xml new file mode 100644 index 0000000..eb09c32 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Addboolean/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Addboolean + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Addboolean/src/addboolean/Addboolean.java b/PrjJava/OCA7/Chapter4/Addboolean/src/addboolean/Addboolean.java new file mode 100644 index 0000000..292aa5a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Addboolean/src/addboolean/Addboolean.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package addboolean; + +/** + * + * @author andad + */ +public class Addboolean { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + // System.out.println(null + true); //1 + // System.out.println(true + null); //2 + //System.out.println(null + null); //3 + } + +} diff --git a/PrjJava/OCA7/Chapter4/Asigment1/build.xml b/PrjJava/OCA7/Chapter4/Asigment1/build.xml new file mode 100644 index 0000000..e69f7be --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Asigment1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Asigment1. + + + diff --git a/PrjJava/OCA7/Chapter4/Asigment1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Asigment1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Asigment1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Asigment1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Asigment1/build/classes/asigment1/Asigment1.class b/PrjJava/OCA7/Chapter4/Asigment1/build/classes/asigment1/Asigment1.class new file mode 100644 index 0000000000000000000000000000000000000000..d55c17cf570fb8e7ee40be290d751141f67d8b82 GIT binary patch literal 612 zcmZuv*-FDe6g`v1#>S|zwRNfcMinuL;)_xcK@jQ!m4f)AZ3+Z>7_ce$%N&q4JyCiI@zVOwaw}77&tlAfPD%?VL!|X$=9h8g#;jyRYKD27UzB zVhsyv7zSo6%wo>KyoCiUQsSQm1?=Chj_cQMBl<&C@7j^;aWO%Mj(m3n6*wpCKjIXw z^f+TKsqvQ5tIz`dRr2so#=?Bs53;VXEh0qriV* nG?Ccsmcby|xWh3FAxja1u{oMXaho|=3fja4BAxz`Bzp7{J9TnY literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Asigment1/manifest.mf b/PrjJava/OCA7/Chapter4/Asigment1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Asigment1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Asigment1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/build-impl.xml new file mode 100644 index 0000000..4ee4bbf --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Asigment1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/genfiles.properties new file mode 100644 index 0000000..b71ff74 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8fa8ec8e +build.xml.script.CRC32=cd25f8c0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=8fa8ec8e +nbproject/build-impl.xml.script.CRC32=9702373d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Asigment1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Asigment1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Asigment1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/project.properties new file mode 100644 index 0000000..7477877 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Asigment1/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}/Asigment1.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.7 +javac.target=1.7 +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=asigment1.Asigment1 +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/PrjJava/OCA7/Chapter4/Asigment1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/project.xml new file mode 100644 index 0000000..d19f8db --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Asigment1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Asigment1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Asigment1/src/asigment1/Asigment1.java b/PrjJava/OCA7/Chapter4/Asigment1/src/asigment1/Asigment1.java new file mode 100644 index 0000000..89491d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Asigment1/src/asigment1/Asigment1.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package asigment1; + +/** + * + * @author andad + */ +public class Asigment1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int a = 1; + int[] ia = new int[10]; + int b = ia[a]; int c = b + a; + System.out.println(b = c); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/build.xml b/PrjJava/OCA7/Chapter4/AsigmentTrick/build.xml new file mode 100644 index 0000000..d4e840a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/AsigmentTrick/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project AsigmentTrick. + + + diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/AsigmentTrick/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/AsigmentTrick/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/build/classes/asigmenttrick/AsigmentTrick.class b/PrjJava/OCA7/Chapter4/AsigmentTrick/build/classes/asigmenttrick/AsigmentTrick.class new file mode 100644 index 0000000000000000000000000000000000000000..0c3a00c08c2356b81f31109dbe325954e9c4da26 GIT binary patch literal 636 zcmaJ;%Sr=55Ufe!u8C`m#>7W_KOlN=4;~GI2!aw+hy=vbWL@IuK4h~I{VWv}Joo{A zlvuL~YCt^fba!=6b=A(t=i57gZLH^DU@D7g%;YeON)|(yGcj*sK|tK|I}|W#Dp2vR zK)Slo6v*s{m#)BAT?OuO*KfJenQVDPChDOhy{3$muKQpnzET~5`MT_=w(kaU94Y6< z-s@Lqy4oSBFI6B=u3pry<(;%W8MN&NXM^@mvQ$QG(iHz_3k=sBuP-sz2)mKv9;ign zz?LmdY$1!BiA4)bST?a@VHIl@ObiQD{*fq9_|bLJx^|s-0BSsRV%O&{3cGBSdL~q8 zpVC20AFlN2vY2oT!UE>49`a~EQ$5^hVwsO%@OfxV3uBgMPTf35SlNt%acJ`u;*m)T z7EdDqEsQd^dIQK~j8zr|j1$q9k2sxT%p2!5^Q!iQROJQfAC^3q0h44ak*S=pm3ucZ jfg*cp@@QFF-sHEag=8aD6pUwNG@tmTN^dU_OQHM)pQ3vI literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/manifest.mf b/PrjJava/OCA7/Chapter4/AsigmentTrick/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/AsigmentTrick/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/build-impl.xml new file mode 100644 index 0000000..298795d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/genfiles.properties new file mode 100644 index 0000000..a734238 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5be36251 +build.xml.script.CRC32=5bda15b3 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5be36251 +nbproject/build-impl.xml.script.CRC32=94645406 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/project.properties b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/project.properties new file mode 100644 index 0000000..628e3be --- /dev/null +++ b/PrjJava/OCA7/Chapter4/AsigmentTrick/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}/AsigmentTrick.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.7 +javac.target=1.7 +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=asigmenttrick.AsigmentTrick +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/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/project.xml b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/project.xml new file mode 100644 index 0000000..7b4ca9f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/AsigmentTrick/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + AsigmentTrick + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/AsigmentTrick/src/asigmenttrick/AsigmentTrick.java b/PrjJava/OCA7/Chapter4/AsigmentTrick/src/asigmenttrick/AsigmentTrick.java new file mode 100644 index 0000000..dbb17dc --- /dev/null +++ b/PrjJava/OCA7/Chapter4/AsigmentTrick/src/asigmenttrick/AsigmentTrick.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package asigmenttrick; + +/** + * + * @author andad + */ +public class AsigmentTrick { + + /** + * @param args the command line arguments + */ + static int x = 6; + public static void main(String[] args) { + // TODO code application logic here + int x = ( x = 3 ) * 4;// 1 + System.out.println (x); +} + +} diff --git a/PrjJava/OCA7/Chapter4/Byte1/build.xml b/PrjJava/OCA7/Chapter4/Byte1/build.xml new file mode 100644 index 0000000..1f0d790 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Byte1. + + + diff --git a/PrjJava/OCA7/Chapter4/Byte1/manifest.mf b/PrjJava/OCA7/Chapter4/Byte1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Byte1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Byte1/nbproject/build-impl.xml new file mode 100644 index 0000000..dc9e1ee --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Byte1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Byte1/nbproject/genfiles.properties new file mode 100644 index 0000000..5181884 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=be917385 +build.xml.script.CRC32=26aacce6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=be917385 +nbproject/build-impl.xml.script.CRC32=0c7af936 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Byte1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Byte1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Byte1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Byte1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Byte1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Byte1/nbproject/project.properties new file mode 100644 index 0000000..b62e903 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte1/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}/Byte1.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.7 +javac.target=1.7 +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=byte1.Byte1 +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/PrjJava/OCA7/Chapter4/Byte1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Byte1/nbproject/project.xml new file mode 100644 index 0000000..cdf608b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Byte1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Byte1/src/byte1/Byte1.java b/PrjJava/OCA7/Chapter4/Byte1/src/byte1/Byte1.java new file mode 100644 index 0000000..d5fa5ca --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte1/src/byte1/Byte1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package byte1; + +/** + * + * @author andad + */ +public class Byte1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + + byte b = 1; + char c = 1; + short s = 1; + int i = 1; + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Byte2/build.xml b/PrjJava/OCA7/Chapter4/Byte2/build.xml new file mode 100644 index 0000000..1e32a23 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Byte2. + + + diff --git a/PrjJava/OCA7/Chapter4/Byte2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Byte2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Byte2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Byte2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Byte2/build/classes/byte2/Byte2.class b/PrjJava/OCA7/Chapter4/Byte2/build/classes/byte2/Byte2.class new file mode 100644 index 0000000000000000000000000000000000000000..fa17a5904790b98a6a24666e221aaf9b8beb37a9 GIT binary patch literal 783 zcmaJ<+iDY06kR8`Nv2a9bE}$EQ!jN=ZAV+*5`Bmu6oLwofcSKh9O5aHnJ}FQee)Om z6n#iR!4L4G#C0ZxT2mZ2d+)RMZS6Dr*YEE?0UY9)jWui)a2t0lG;O4@WyE$Kca6Sh z#C;nNuw&t&1y>-~(SeR%2&CQCKp^un94mp1o(|OO`E;nFcXH?xDfPmU^anE1=6()l z;*a`7V7)gyjn#qIHL}ejQ>g=in){)5EI&!lm%+sA$B_;u?WBo}CQK_|;T8}>o-U8( zITEn@;XE3tSK6?!lNS4?ssjh>7FrH=@kn6v-%j1R_Qxu6@ECin)HKGv0}oFuJauq@ zLxHuwcncISO1v2!t5JLj>Ytv(YRY#C=X6w;lj+cV%duh(r{t8Q=j3drg0VouJ!-8? zf6j?YgH8b>l{*CHY9S7KkSsC-CAk33eUgOQ9 z7S!3@Gl;K=dxJ8UfDVeZon-*7qr_VQWmJfm-411 F_ydBGrRo3x literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Byte2/manifest.mf b/PrjJava/OCA7/Chapter4/Byte2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Byte2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Byte2/nbproject/build-impl.xml new file mode 100644 index 0000000..5c27596 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Byte2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Byte2/nbproject/genfiles.properties new file mode 100644 index 0000000..fd865db --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a6a5e7ef +build.xml.script.CRC32=576f35f8 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a6a5e7ef +nbproject/build-impl.xml.script.CRC32=9dc7d9bb +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Byte2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Byte2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Byte2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Byte2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Byte2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Byte2/nbproject/project.properties new file mode 100644 index 0000000..15c74f7 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte2/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}/Byte2.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.7 +javac.target=1.7 +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=byte2.Byte2 +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/PrjJava/OCA7/Chapter4/Byte2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Byte2/nbproject/project.xml new file mode 100644 index 0000000..b993a19 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Byte2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Byte2/src/byte2/Byte2.java b/PrjJava/OCA7/Chapter4/Byte2/src/byte2/Byte2.java new file mode 100644 index 0000000..e3cf1f8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Byte2/src/byte2/Byte2.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package byte2; + +/** + * + * @author andad + */ +public class Byte2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + byte b = -128; + int i = b; + b = (byte) i; + System.out.println(i + " " + b); + } + +} diff --git a/PrjJava/OCA7/Chapter4/ByteType/build.xml b/PrjJava/OCA7/Chapter4/ByteType/build.xml new file mode 100644 index 0000000..17362b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ByteType/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ByteType. + + + diff --git a/PrjJava/OCA7/Chapter4/ByteType/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/ByteType/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ByteType/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/ByteType/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ByteType/build/classes/bytetype/ByteType.class b/PrjJava/OCA7/Chapter4/ByteType/build/classes/bytetype/ByteType.class new file mode 100644 index 0000000000000000000000000000000000000000..f72cb2c0195d1712b2aec74856dbfd6be9914d47 GIT binary patch literal 676 zcmZuv!EVz)5Pj>|SrT08I3y%>3bYN7mI{M_TpD^P5&|g#q*S?Z$vU;dR*7A?4pKfN zp8^MvIKZ8cLOeS~RRt@}&g{(Wdv8|z>-YB`0G{GO85TB5@X#t_6SpPqNZb`D_H?Av zLxDnPcPL=Kj88&=^}de6xAR#LCdVq6GUN8+v6>E5qOK@ds(5qsc)|rIJZ@`9Ea=p=d|6fHtO`&?v(Qo(Pl& z@jMxauXHAC?Jwn{jKxL~Qew--Hg+W1HtylRK;<8S0?wtXcfn~mPOqc}i}N&`@mbz1e5g7&7LD)c&*X$&~xNy*)=_LwCs6Z%h~T1 zzrfi1iUM8DyzmzNCD~q1Qzh6dKV6%7djJ3c literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/ByteType/manifest.mf b/PrjJava/OCA7/Chapter4/ByteType/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ByteType/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/ByteType/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/ByteType/nbproject/build-impl.xml new file mode 100644 index 0000000..ecc333f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ByteType/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/ByteType/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/ByteType/nbproject/genfiles.properties new file mode 100644 index 0000000..9c4d868 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ByteType/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=56afd79e +build.xml.script.CRC32=737e9b1a +build.xml.stylesheet.CRC32=8064a381@1.79.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=56afd79e +nbproject/build-impl.xml.script.CRC32=035b0d31 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/ByteType/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/ByteType/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ByteType/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/ByteType/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/ByteType/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ByteType/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/ByteType/nbproject/project.properties b/PrjJava/OCA7/Chapter4/ByteType/nbproject/project.properties new file mode 100644 index 0000000..7a593ee --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ByteType/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}/ByteType.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.7 +javac.target=1.7 +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=bytetype.ByteType +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/PrjJava/OCA7/Chapter4/ByteType/nbproject/project.xml b/PrjJava/OCA7/Chapter4/ByteType/nbproject/project.xml new file mode 100644 index 0000000..eba7b55 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ByteType/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ByteType + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/ByteType/src/bytetype/ByteType.java b/PrjJava/OCA7/Chapter4/ByteType/src/bytetype/ByteType.java new file mode 100644 index 0000000..3130fbb --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ByteType/src/bytetype/ByteType.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package bytetype; + +/** + * + * @author anda + */ +public class ByteType { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + byte a = 1; + byte b = 7; + byte c = (byte)(a+b); + byte d = (byte)(a + 7); + byte e = ++a; + byte b1 = (byte)300; + System.out.println(c); + System.out.println(d); + System.out.println(e); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/build.xml b/PrjJava/OCA7/Chapter4/Chapter4_10/build.xml new file mode 100644 index 0000000..05a34a4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter4_10. + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Boat.class b/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Boat.class new file mode 100644 index 0000000000000000000000000000000000000000..8c5c83072c1da1de15242f1500580935d78abf4d GIT binary patch literal 287 zcmZ9HJ#NB45QX0u|6qs2;2Y496d06rpcILe3WWmX7OkBXUdyo~d*NPGNGUh~hl(~Guk=-e4hY3A_~yKorlmv-@}05&Q+!KGodrOPYCvF{UHhALRIp8_nFFO zEz*)nw5T&tCZbWsU!kpY)tW5J#g~@N(`Gt}UuvOegkV+gnoPba)9o8LF2r8+;J_vH z|93Dlaa@XO8!yvBW|{~8tx9Cu$`V6ZyaNA}_aQz!j@4rqUp(ME96<*L7P_n^272%> PYTgb4-0)3IP1Wr$z0Ns7 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Chapter4_10.class b/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Chapter4_10.class new file mode 100644 index 0000000000000000000000000000000000000000..b97141c5ef81e322adeab36791e378eb243a204b GIT binary patch literal 1138 zcmZuw+fEZv6kVqmPCE>Oy?|9N;A zAd$p`SAWPib9K37%?rh82lbi8X<~HM3zl>jJ^_R8b(5vnqzbVBTyPJMDVO zuy<9dMkJQE%BogWw&})QFy!o;ErC?Nysw&$VK473%x81w=T#EcmDvy&PJhZDs4ps8 zQ;ll2;MiuPy6O#7c9j(IE7AgjnOJWh6D2p{pSo!&hvNdJMVc1P$c1#FX&9Am%|O9X z<|B64FM_u~HJe7GA~2ioUH4QE)K$iPM;z-PMbz=Jn=+Ce zTGPtD=WTFEW2ibC;-2D*uz+m3MKxZfMT*I=|#YDM(f?`8X; literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/SpeedBoat.class b/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/SpeedBoat.class new file mode 100644 index 0000000000000000000000000000000000000000..edfc86a78b6f98fb1a630fc895462f5e1b334b9d GIT binary patch literal 299 zcmZvXPYXdo6vfZQ^LYL}O4fE*_!B#_psZdtWUKK^8DaE1%Ez)&7CwLvC3hrQXzI+I z-@S9X_wl^l0klzY5JlET&W39vPl)%_PKA9!v{IcBVne-@gq){#a(vt_WH1$r4U>YW zeX*H|KpFpmv2djhgp%j4#6FZkXWnWyCVMHD11-WX!I|h|;LDLR5!r90z7{8uhJ`qx z`1dct{pBW(r}{-xeMT7(UWcdV-G~ndvfAt#Zx2|tE9k-?f&{B618F4RYTgzcr1&PL HrYrLTF%3O| literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Toy.class b/PrjJava/OCA7/Chapter4/Chapter4_10/build/classes/chapter4_10/Toy.class new file mode 100644 index 0000000000000000000000000000000000000000..7249e60535536b629a95553a1388abd75cefb244 GIT binary patch literal 99 zcmX^0Z`VEs1_omWc6J6vP4D(q2!Fj wf|ArClXyb|eTWPrg8)cQKPNFSUEe<`D>b + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/genfiles.properties new file mode 100644 index 0000000..13f1dbe --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c6930b4f +build.xml.script.CRC32=3135ff40 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c6930b4f +nbproject/build-impl.xml.script.CRC32=ee703ecd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/project.properties new file mode 100644 index 0000000..f7d2854 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/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}/Chapter4_10.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.7 +javac.target=1.7 +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=chapter4_10.Chapter4_10 +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/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/project.xml new file mode 100644 index 0000000..0ac0938 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter4_10 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Boat.java b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Boat.java new file mode 100644 index 0000000..5cedad5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Boat.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_10; + +/** + * + * @author anda + */ +public class Boat implements Vessel{ + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Chapter4_10.java b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Chapter4_10.java new file mode 100644 index 0000000..8f2227a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Chapter4_10.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_10; + +/** + * + * @author anda + */ +public class Chapter4_10 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s = "0"; + Boat b = new Boat(); + Boat b2 = new SpeedBoat(); + SpeedBoat s2 = new SpeedBoat(); + if ((b instanceof Vessel) && (b2 instanceof Toy)) s += "1"; + if ((s2 instanceof Vessel) && (s2 instanceof Toy)) s +="2"; + System.out.println(s); + + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/SpeedBoat.java b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/SpeedBoat.java new file mode 100644 index 0000000..8887f0c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/SpeedBoat.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_10; + +/** + * + * @author anda + */ +public class SpeedBoat extends Boat implements Toy{ + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Toy.java b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Toy.java new file mode 100644 index 0000000..43737c0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Toy.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_10; + +/** + * + * @author anda + */ +public interface Toy { + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Vessel.java b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Vessel.java new file mode 100644 index 0000000..d1fc666 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_10/src/chapter4_10/Vessel.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_10; + +/** + * + * @author anda + */ +public interface Vessel { + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_2/build.xml b/PrjJava/OCA7/Chapter4/Chapter4_2/build.xml new file mode 100644 index 0000000..b39f571 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter4_2. + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Chapter4_2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Chapter4_2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_2/build/classes/chapter4_2/Chapter4_2.class b/PrjJava/OCA7/Chapter4/Chapter4_2/build/classes/chapter4_2/Chapter4_2.class new file mode 100644 index 0000000000000000000000000000000000000000..e088393c3acbdbe502a153704a47757af9c1057f GIT binary patch literal 671 zcmZuu+fEZv6kU7f%nX!~!W4>%s34aqAvQ2PNuv!^9?Sq~N=TYMnA0*XL&}s4Q{u0{ z5Af`h#wZ_P^aK1E<33Yjjp00;z1G@$_F9wk{r8t!03KE|u(2S@InT2&C$?Qcy!mx? zEy~O7wkWUt_-XK*Iz0ITix!qFEECL97=_7eg6ybR4$NbW-$NY@q+I#V zGAnW=uEy#o(8shr!MB-;HYOR{g8?|mF&o7crdd%R-@t-;#kY=DF~32t>*A|f*Bw!< z)rFBlqgoe^#@rZiQ*o + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/genfiles.properties new file mode 100644 index 0000000..44e43f5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7de5f811 +build.xml.script.CRC32=85ace310 +build.xml.stylesheet.CRC32=8064a381@1.79.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=7de5f811 +nbproject/build-impl.xml.script.CRC32=3530ca51 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/project.properties new file mode 100644 index 0000000..b41de6f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_2/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}/Chapter4_2.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=chapter4_2.Chapter4_2 +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/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/project.xml new file mode 100644 index 0000000..40cd768 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter4_2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_2/src/chapter4_2/Chapter4_2.java b/PrjJava/OCA7/Chapter4/Chapter4_2/src/chapter4_2/Chapter4_2.java new file mode 100644 index 0000000..824890e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_2/src/chapter4_2/Chapter4_2.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_2; + +/** + * + * @author anda + */ +public class Chapter4_2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + float f1 = 2.3f; + float[][] f2 = {{42.0f}, {1.7f, 2.3f}, {2.6f, 2.7f}}; + float[] f3 = {2.7f}; + Long x = 42L; + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/build.xml b/PrjJava/OCA7/Chapter4/Chapter4_3/build.xml new file mode 100644 index 0000000..64d2caf --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter4_3. + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Chapter4_3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Chapter4_3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/build/classes/chapter4_3/Chapter4_3.class b/PrjJava/OCA7/Chapter4/Chapter4_3/build/classes/chapter4_3/Chapter4_3.class new file mode 100644 index 0000000000000000000000000000000000000000..a66e9e9cc064c45b0d67d9f95eee94f545489496 GIT binary patch literal 880 zcmZuv%Wl&^6g`u;apJm7ahjACC~0{mf!2_ehZKkql~{#`6jTXVpoud|T^!puVll$(FVWsWt^H7Rt=S{=j{kv@v-GIA3L#gt*eZb#y+v9%U?#RgX`^~W& zkNQMVIHk<6(2?AE`-F!RHKP;6ks}_vYM%Uw&bFd9v4}hgN->l=uA8`lEgjn?Y}{nX zDY)$Lq0n*5L> `rnBj#je*A5yN~K1-;mjZs3$rS|VrC4QuxM{44JcrlvK)#i5uy%%f;O(TYRB3a=-MH)bWN*UsS(m2 zKV$J5G;3~z%pulk`vdyRBV?`I2u3Ykr#QkqRh4QQO4TAhkje^aY*KuH)u{1;~^`pk^CB^DV+Nae%8mg literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/manifest.mf b/PrjJava/OCA7/Chapter4/Chapter4_3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/build-impl.xml new file mode 100644 index 0000000..9677f94 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/genfiles.properties new file mode 100644 index 0000000..1996058 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=75f67437 +build.xml.script.CRC32=ab979dc7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=75f67437 +nbproject/build-impl.xml.script.CRC32=8cd249ee +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/config.properties b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/private.properties new file mode 100644 index 0000000..6228c78 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=live2 +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/project.properties new file mode 100644 index 0000000..1021a62 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Chapter4_3 +application.vendor=anda +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}/Chapter4_3.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=chapter4_3.Chapter4_3 +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/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/project.xml new file mode 100644 index 0000000..79f60a1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter4_3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_3/src/chapter4_3/Chapter4_3.java b/PrjJava/OCA7/Chapter4/Chapter4_3/src/chapter4_3/Chapter4_3.java new file mode 100644 index 0000000..9890df0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_3/src/chapter4_3/Chapter4_3.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_3; + +/** + * + * @author anda + */ +public class Chapter4_3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + //if (args.length == 1 || args[1].equals("test")) { // no exception + if (args.length == 1 | args[1].equals("test")) { // throw exception + System.out.println("test case"); + } else { + System.out.println("production " + args[0]); + } + } + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_4/build.xml b/PrjJava/OCA7/Chapter4/Chapter4_4/build.xml new file mode 100644 index 0000000..b1f8cbf --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter4_4. + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_4/build/classes/chapter4_4/Chapter4_4.class b/PrjJava/OCA7/Chapter4/Chapter4_4/build/classes/chapter4_4/Chapter4_4.class new file mode 100644 index 0000000000000000000000000000000000000000..a71fdb79b72500068bcab979258b6d828122be94 GIT binary patch literal 1172 zcmaJ=ZBNrs6n^f;=vM2%y?_Ghe1q~j1r%`z3W|bdBSA?FCgw5K= z#2?^~GM>{;w*j$9?|HfBoclaadw>1@{u96y)>ZUkBt||zBPvEQ_BR?!U>p;1RR4(bk6noRWJmlq395ZYmbNeiNPq?KJ$Do2a1y2P!=Pbwa=LMqr@TNe=lDlIH zbQzXo7HgGl(|aqoZOWt!w=C^V=~)~%k{$lObtuqll=o%TH@)eP)A^-;Zh^*Cq~!?o z=v&5tJd$}^I(zvI-?N;(LU5e)_Gm!*f^7luNuax>&v2=W(#HgL*L4Ll`f$s3W2}I> z;nuvexok1+t|p!dhM?gpt|^$;uz+U@o@-dd5&_N4Oy(54(C`w=#ON&A#hPXBn4X3~ z3~6|U*SxIovPy_@8s2c;z#6BD8cIARd!Z~usyV&1ePEV-fn+nqGzF9+Y1hosE{UVB zw$f~<&@yA=_|P{iB#K+3N!d^m%gwKo%s#1N$_mMr4o+xK3&g5iL|yuMCHVt&%4*eg zb_B*RDmd5Ekcp0Ks}ETgT4{t|t64vwul#R2?z>@!K*A=0Hd&qErzQOd+7&uGS_wGX z4sOv6=?(5v6oUT)TKg!@lNDrRBPS4F$%&w!*3KZQVSs!sEWmZ#peTWx$WexyKT}= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/genfiles.properties new file mode 100644 index 0000000..5a2f0b4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4d8cd0c5 +build.xml.script.CRC32=6137e5e2 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4d8cd0c5 +nbproject/build-impl.xml.script.CRC32=179dcf51 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/project.properties new file mode 100644 index 0000000..8d4dbf9 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_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}/Chapter4_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=chapter4_4.Chapter4_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/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/project.xml new file mode 100644 index 0000000..7d1396f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter4_4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_4/src/chapter4_4/Chapter4_4.java b/PrjJava/OCA7/Chapter4/Chapter4_4/src/chapter4_4/Chapter4_4.java new file mode 100644 index 0000000..5a219a8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_4/src/chapter4_4/Chapter4_4.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_4; + +/** + * + * @author anda + */ +public class Chapter4_4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Long x = 42L; + Long y = 44L; + System.out.print(" " + 7 + 2 + " "); + System.out.print(foo() + x + 5 + " "); + System.out.println(x + y + foo()); + } + static String foo() { return "foo"; } + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_5/build.xml b/PrjJava/OCA7/Chapter4/Chapter4_5/build.xml new file mode 100644 index 0000000..cdc02a8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter4_5. + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_5/build/classes/chapter4_5/Chapter4_5.class b/PrjJava/OCA7/Chapter4/Chapter4_5/build/classes/chapter4_5/Chapter4_5.class new file mode 100644 index 0000000000000000000000000000000000000000..4cb68748a59b4a50de6041459a19dc6bb72340be GIT binary patch literal 1232 zcmah{YflqF6g{)MblP=+T4+%L0iW9!m8U3(3I<~=NK!+helSZ}>0)V{vQ^>N_({L2 z(PAX=2l%7Jv%4s%fF?V4?%aF!+jL5p*8_pjj8k#kSpn5dt_W!J)iqn7Gw)RFrN-u}U4Lw? zmKllVt3|84V$~h*d=S*!lCveylP{L6nrqj`pHJlG|G3kn+q9gDK*D^M->_a;xw2JR z&lTLdQ(2$(%UShx5_BDt7EoS{cxKcyV*>33*DAhTv}%5FiCzvaF~wm8^aW>Ur|{Zw zizR{k<_Z0r5Kf*Dr$F0WJESjE8}*{S;CM=O9!@yy4Q1doVg@=96^I`zgn>)AEOEoY zO;D7czonRKIOR3FZeRwtSa8sDW)0lN9nNRqF6IQHhd(`9-LQ);Rr5nmHMdMXU8-tZ zn=Qb?_Lgfiq*fb*$Ac?q#j~A|Rjb*RHGw|!Y4XT59rQ+A);yA&{ue&%R)d=s=r)f6 z$tY`H<7GaO_;K7T7~+%e;CmNb)R$JJPq}Hkc$$LZ=k(MrL@N9R%11^ObkpkG0RtKt z;=bpx=t!W4djw~2HeeAkVl>9`dr+V3Li@chrZZpBw)6?1JxC_P>Fhg5?L9QLiAYRu z;#B%Glq}cV!*~-$6YX9fs^3QfZS>;^vvQQR6Ri9Y=lq^hL0z7Di3#H#`iS5i@&WYI zQ;43#d3q`ah$unZM-rOEpu|w{L6Nv1adDsd)`S`)#6DSCGynaCz3|B%sJzTRRI=-- v#Y{9rkux873RLd!GyOcB=RX7fRD%JUH|8nrX@13@N+IH^Kb3&#GbDcjSWWJs literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_5/manifest.mf b/PrjJava/OCA7/Chapter4/Chapter4_5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/build-impl.xml new file mode 100644 index 0000000..dd50651 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/genfiles.properties new file mode 100644 index 0000000..05b4faf --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=459f5ce3 +build.xml.script.CRC32=4f0c9b35 +build.xml.stylesheet.CRC32=8064a381@1.79.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=459f5ce3 +nbproject/build-impl.xml.script.CRC32=ae7f4cee +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/project.properties new file mode 100644 index 0000000..3d96f86 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_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}/Chapter4_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=chapter4_5.Chapter4_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/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/project.xml new file mode 100644 index 0000000..415b76e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter4_5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_5/src/chapter4_5/Chapter4_5.java b/PrjJava/OCA7/Chapter4/Chapter4_5/src/chapter4_5/Chapter4_5.java new file mode 100644 index 0000000..b06d987 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_5/src/chapter4_5/Chapter4_5.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_5; + +/** + * + * @author anda + */ +public class Chapter4_5 { + + int x = 5; + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + final Chapter4_5 f1 = new Chapter4_5(); + Chapter4_5 f2 = new Chapter4_5(); + Chapter4_5 f3 = FizzSwitch(f1, f2); + System.out.println((f1 == f3) + " " + (f1.x == f3.x)); + + } + + static Chapter4_5 FizzSwitch(Chapter4_5 x, Chapter4_5 y) { + final Chapter4_5 z = x; + z.x = 6; + return z; + } + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_6/build.xml b/PrjJava/OCA7/Chapter4/Chapter4_6/build.xml new file mode 100644 index 0000000..f1752c5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter4_6. + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Chapter4_6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Chapter4_6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_6/build/classes/chapter4_6/Chapter4_6.class b/PrjJava/OCA7/Chapter4/Chapter4_6/build/classes/chapter4_6/Chapter4_6.class new file mode 100644 index 0000000000000000000000000000000000000000..2b76c64680bb703ad81fd1b402b5569e7a075ddd GIT binary patch literal 841 zcmZuvZEMqD6g^LqCQF*Fb+w%@Tc>ks+sO(lf^7JuAQYkzDuvh&nzo_KXp@npLw|vv z^`9uZfp0&+AK_0C&(jpU!U(y!_uR{Q&bd#1|NZt0zysVfVPM^Wf(;!Nlizh2Hg()E za1&c5Zed%;ZGmhM4*a(Qq9vg12Vsyr5m2hNj)2;X2EIVv4nqI=WZd)PmtJo~WYv!P z-l*fnfvjhsnj8ej0&8~vz&lF(_~GkEjpqM!k91=%2nEX3u6^j8c#V-44jb(x4#MHy z^f)gblAw4&TOc!x7zP7s>vk#CY)6y0?>`Nsp8WirT}f@h!m0@QwYocLqPh$d{5QY%5!ctIZt-T2;^UW-$XMOZ*T zl0zddL9MoG9bSaOYXSscie*%oQ#<1dt9@kBUi}QBu6{-46VVLvj4PZ4XH`}P3VdXh zGF`$dD+5Jbo-sY1G3CBPanGQhB0Hxt*#xdo!nJcWIh0T)4!Nos%^&E~*^k;!Xs)9D zFkPi!IIdb)a@=e|ciOI+f*L`INhqt!If-P6sE(^CPTT$rz5WH6Q!Fvtsk_Wysc-1< z{<(ZNZO;d1y#ePIT5~rQY6LdWL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/genfiles.properties new file mode 100644 index 0000000..f02fe91 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5dabc889 +build.xml.script.CRC32=3d41184c +build.xml.stylesheet.CRC32=8064a381@1.79.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=5dabc889 +nbproject/build-impl.xml.script.CRC32=bf29ce6e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/project.properties new file mode 100644 index 0000000..868e475 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_6/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}/Chapter4_6.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=chapter4_6.Chapter4_6 +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/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/project.xml new file mode 100644 index 0000000..bfe5f6a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter4_6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_6/src/chapter4_6/Chapter4_6.java b/PrjJava/OCA7/Chapter4/Chapter4_6/src/chapter4_6/Chapter4_6.java new file mode 100644 index 0000000..a1bbbf4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_6/src/chapter4_6/Chapter4_6.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_6; + +/** + * + * @author anda + */ +public class Chapter4_6 { + + { + index = 1; + } + int index; + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Chapter4_6().go(); + + } + + void go() { + int[][] dd = {{9, 8, 7}, {6, 5, 4}, {3, 2, 1, 0}}; + System.out.println(index); + System.out.println(dd[index++][index++]); ///??? + //System.out.println(dd[1][2]); + System.out.println(index); + System.out.println(index--); + System.out.println(index); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/build.xml b/PrjJava/OCA7/Chapter4/Chapter4_7/build.xml new file mode 100644 index 0000000..abf0eb3 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter4_7. + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/chapter4_7/Chapter4_7$Days.class b/PrjJava/OCA7/Chapter4/Chapter4_7/build/classes/chapter4_7/Chapter4_7$Days.class new file mode 100644 index 0000000000000000000000000000000000000000..89f020288cbff475e121d8bb2256ab53b00fb6ef GIT binary patch literal 1249 zcmah}T~8B16g|^!yW3@@Pg&XvJDG=CLrI!_YF&8;(3aArXi{;H_Q()xP)k(sK zmfPTBsdVN)Ql(UTV+%yfj%UAU>~GuthPCa|h$?fezZJ-(%X`+Lm31v|Cu`Py$J@zg zt~L-a*Q%DgW%&*#Yh_eCYo8Lw|IQ{5E;yc3Ul8cOq}W`&a4(~X6ei}2pVFTCrUW^-9!mFt-Y$8^@@>n{4(npId@)BCwV!?kT5*Wo0)%8(B6*fbwk48tiDX_P`3GVNZVqKo z5W#g!K;QhY7uLzw$VSV6&K0_nM zsR~n=mh;qRQgOvQ2+{{or>2v~2!EE-?d8swtC(Ty$VyEP8ZFMXjC`bx@blq2luBF; z9z#1qL=s(*q(c%TBuS?vU13S0lEhR=x+RHglJrQ@8#~qY#nc~^J=mm6Tv3|nFe{-Z zI?YPBiKtmoo9H$xS`$5HB}PMi<`D$%=VJSUE&q4vFN|9?iy=atR02}@})v8XWx?os_v&i60rnV_5 zU)j?cx(bG+Z`8`Wy1gZKP4a{am69;Gg>6XtuhZuo7=+PZC>@9+N4IC*%x3ZzYL4K_ z!mt?nk~@V%aV#>Xu=X>Xj%`@`Ia!YFF$}gpJtFB!2x0G2jh;3L44%D7DW(`YHyu%W zTNFnwHI6v-%<+I@j$@u7xLK*$C4JS9y>wl2oRG9MTt`Sl4lxZ2Qar?>h9#*j;}OSW z4SB2(l!hl*W$;%;Sx;0QaGgxijSq5HD`=evh`$zh1LO?CTbi0}M+ zEIlrsQOUfZVLCKYU6fm@G^b3{*;=PL7irVS!mP=a4<%Fo0cX^ts=uoVlhVV;RTS&SNE&hvZf?;TM^X20Kle;3><9-s< z8T~5huV7!?a4*RqrGbw4FodwHxk>0lKUo0`AkqY29q@va?^PY1LLJ`XH~2Qj&$B*n zRtYO%-zOx;!^+gW8d2*|&Y*sTdWzmUctkyeKcW^tDD1THlN_UCpWzP$PN9T?XXub@ zypU|t#0NyzN0y)XB#6Z*ahO09S;R0$z9q!*5;t77Y069x!zjg6$qj=P1$j3pBSy^q zct)MYsLKTT*Pt{AUga3(xaq#P7&ZJ0Q8F6nhW8=_6gWm2gmJ~^As5GOg1bX-9^9oP Oa)^xnR5Wxg5Bvdd5$vY` literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/manifest.mf b/PrjJava/OCA7/Chapter4/Chapter4_7/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_7/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/build-impl.xml new file mode 100644 index 0000000..2bd8666 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/genfiles.properties new file mode 100644 index 0000000..4a1871a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=55b844af +build.xml.script.CRC32=137a669b +build.xml.stylesheet.CRC32=8064a381@1.79.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=55b844af +nbproject/build-impl.xml.script.CRC32=06cb4dd1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/project.properties new file mode 100644 index 0000000..dcbc4fd --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_7/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}/Chapter4_7.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=chapter4_7.Chapter4_7 +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/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/project.xml new file mode 100644 index 0000000..545cb4a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter4_7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_7/src/chapter4_7/Chapter4_7.java b/PrjJava/OCA7/Chapter4/Chapter4_7/src/chapter4_7/Chapter4_7.java new file mode 100644 index 0000000..b1e2234 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_7/src/chapter4_7/Chapter4_7.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_7; + +/** + * + * @author anda + */ +public class Chapter4_7 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Days d1 = Days.TH; + Days d2 = Days.M; + for (Days d : Days.values()) { + //System.out.println(d); + if (d.equals(Days.F)) { + break; + } + System.out.println(d); + d2 = d; + } + System.out.println((d1 == d2) ? "same old" : "newly new"); + } + enum Days {M, T, W, TH, F, SA, SU}; + +} diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/build.xml b/PrjJava/OCA7/Chapter4/Chapter4_8/build.xml new file mode 100644 index 0000000..21a3084 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter4_8. + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Chapter4_8/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Chapter4_8/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/build/classes/chapter4_8/Chapter4_8.class b/PrjJava/OCA7/Chapter4/Chapter4_8/build/classes/chapter4_8/Chapter4_8.class new file mode 100644 index 0000000000000000000000000000000000000000..e1587427f6e2216db3e21ac7be65c3e53b6e7ffd GIT binary patch literal 948 zcmZvb+int36o&uJ49tLoR1O8TRZBepwH>Qft0-w~;uRhe3<=e!8<^0kz>w)+tXIB< zUik`o(I%Ss06u|F)A-MTR-}`#_S)-TYt6UU9)2Ev`vKqv$}z-|*RiPKVhjrMzPY61 zvcF!@QP5G0qJ*Uwu3}lkiUw04a?kGDUPVAD6zc-&rqi|r5>>lzJs$R&mitULyNo2O zPD^&{(zX5lIH-Et_O3v-+S--_&vMsZt(%*F-7?$tq}>;oEj+L8$hXq$%6`YJd9K~> zl!Mnvx5EahV`KqAB{^Lu5NfVc-SVC50`ZzBTW=o8K>(%Unn0}P4BeLX(Dum_M?@<= zgn^St2!P!GGd&pE-L~Z#SOpu4cLvA0MrV(|_Zn^*xP{vq)(zajU4hK8#}=45>ieX* zW3{}A(CGM_yc`Uyep_I^IzwV)Ms01! ze9AlU*v67Q7Ni2=$*_Pn@RPc{z|3)obu7T(H|IYgj+0}ho#D>p$_XP}I)L~R$fsx{ zLC`>wzA;Kb3Tf`5$Y7QczxWrMsa$0;R8{XQ6{S&8K72&>JCw!&)TModlM$MIXw|t- z(C5|9lcGKrr-bNO_=*_2obbUE_+WYHv?=b=2opsk%p$VbKn@L@#%r7npi3h#D!HKc oCABle4&wzg<_NA~3-k08oMT2D>Y@LCJTHWv$}#Z*gCQ*Z2AV?3r2qf` literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/manifest.mf b/PrjJava/OCA7/Chapter4/Chapter4_8/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_8/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/build-impl.xml new file mode 100644 index 0000000..26b4e47 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/genfiles.properties new file mode 100644 index 0000000..bc8b820 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2d5e816d +build.xml.script.CRC32=7370ee47 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2d5e816d +nbproject/build-impl.xml.script.CRC32=52c7c551 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/project.properties new file mode 100644 index 0000000..38f611f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_8/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}/Chapter4_8.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.7 +javac.target=1.7 +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=chapter4_8.Chapter4_8 +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/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/project.xml new file mode 100644 index 0000000..b138758 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter4_8 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Chapter4_8/src/chapter4_8/Chapter4_8.java b/PrjJava/OCA7/Chapter4/Chapter4_8/src/chapter4_8/Chapter4_8.java new file mode 100644 index 0000000..a508120 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Chapter4_8/src/chapter4_8/Chapter4_8.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter4_8; + +/** + * + * @author anda + */ +public class Chapter4_8 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s = ""; + boolean b1 = true; + boolean b2 = false; + if ((b2 = false) | (21%5) > 2) s +="x"; + if (b1 || (b2 == true)) s +="y"; + if (b2==true) s +="z"; + System.out.println(s); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Char1/build.xml b/PrjJava/OCA7/Chapter4/Char1/build.xml new file mode 100644 index 0000000..9164931 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Char1. + + + diff --git a/PrjJava/OCA7/Chapter4/Char1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Char1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Char1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Char1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Char1/build/classes/char1/Char1.class b/PrjJava/OCA7/Chapter4/Char1/build/classes/char1/Char1.class new file mode 100644 index 0000000000000000000000000000000000000000..c24439d5d03cbac3be94a2d2feef4f0107556aed GIT binary patch literal 578 zcmZutT}uK{5IxsbSJyR7)4nbH0PUeAdI^+Xgg{s-FnsChx-EKTKVn^@epUtrJ@fQ&IY=)dEJo|d=_Uzz}_Z&hBrf+el%L5_f85j=-V#JU&tpN|tjFz+wB5}F! z7|OMKbI6~#;c%~SbizP*{YEr|2YqTQ{*z`%H7#c*N$dFIz_PD|6re@yr;<=d8k&kd z9s8*2P?1t`pyLon44DNf4Eg!|o8Hj2!X>ElG74>%R`s?go!bv(iEg%Jvr;txN$z~`r=x6jNPCme1$%#QHn~XpmS@QL1 z0alQsD2+T;36aegR4tpe31Sl{?}*PCG|B;MR9{|T(NI8<@DyeKBvc{}nwjTsP$UCe M&>&}(2#cZo3tb{;KmY&$ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Char1/manifest.mf b/PrjJava/OCA7/Chapter4/Char1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Char1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Char1/nbproject/build-impl.xml new file mode 100644 index 0000000..4ca1120 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Char1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Char1/nbproject/genfiles.properties new file mode 100644 index 0000000..5e0950b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=bc3c6fd2 +build.xml.script.CRC32=3219768b +build.xml.stylesheet.CRC32=8064a381@1.79.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=bc3c6fd2 +nbproject/build-impl.xml.script.CRC32=3fd19f75 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Char1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Char1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Char1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Char1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Char1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Char1/nbproject/project.properties new file mode 100644 index 0000000..f135150 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char1/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}/Char1.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.7 +javac.target=1.7 +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=char1.Char1 +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/PrjJava/OCA7/Chapter4/Char1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Char1/nbproject/project.xml new file mode 100644 index 0000000..c0ae53a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Char1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Char1/src/char1/Char1.java b/PrjJava/OCA7/Chapter4/Char1/src/char1/Char1.java new file mode 100644 index 0000000..afdd767 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char1/src/char1/Char1.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package char1; + +/** + * + * @author andad + */ +public class Char1 { + + /** + * @param args the command line arguments + */ + static int x = 'a'; + public static void main(String[] args) { + // TODO code application logic here + System.out.println(x); + //String s = 63 + new Integer(10); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Char2/build.xml b/PrjJava/OCA7/Chapter4/Char2/build.xml new file mode 100644 index 0000000..3c8abde --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Char2. + + + diff --git a/PrjJava/OCA7/Chapter4/Char2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Char2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Char2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Char2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Char2/build/classes/char2/TestChar.class b/PrjJava/OCA7/Chapter4/Char2/build/classes/char2/TestChar.class new file mode 100644 index 0000000000000000000000000000000000000000..343ce902f4ce2bfead1a0ee87de8061cb22d41ed GIT binary patch literal 1071 zcmaJ9%Cqn&`jM zm?aV85Aa7B&unWNgz#a`+?o40=iZs$e}4P|u!bESCKggi>jI*~RTD^Txji@77KmBJJpr}WKX3#l>u%3^Kk(X) zziYRs5XF4f@3JrywPog>>{t?W9dL5)^bK=D=xogG4pEQ+^EDy!D2 zMI@f>_5^0ER{hxiWLLU&@37Jce7AR4jr_KM$g;UB+yZ)|Kkz%wTUV+||D#-%g$(2{ zW#9&~25#eyhNlLe;kiKmf0{P~w|n6D23}x;b0|w=Q$p3i7G7%DHt-6s1u_>qGjJ1A zYyiuxi)2lRCUx296 z=7SKYd8%-izIf>j;wudWGsHx6X&_JA7zSV#b36$-Yobj4!eR>d&G^swe$2F+`>NS) z)=Q=DP!>bPzCk@leE$pyc@sj*CPSna)%6g1h=~x!m@&&*QeuW8^Axy27Rf#{WEin$ zP{u73$S>qy8tG_IZ;Y{Nv%OVT%Q4eyHJjtonaG(Z&a#=gsO(RAb_(h-4z r6z*bvM6f{-(l>FAG~3C9m>ieaBZUR%R5YH~1V?|LDFP3O3LgFiuF=XE literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Char2/manifest.mf b/PrjJava/OCA7/Chapter4/Char2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Char2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Char2/nbproject/build-impl.xml new file mode 100644 index 0000000..dc1ee46 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Char2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Char2/nbproject/genfiles.properties new file mode 100644 index 0000000..0e86a24 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a408fbb8 +build.xml.script.CRC32=43dc8f95 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a408fbb8 +nbproject/build-impl.xml.script.CRC32=ae6cbff8 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Char2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Char2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Char2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Char2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Char2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Char2/nbproject/project.properties new file mode 100644 index 0000000..1d2c60d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char2/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}/Char2.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.7 +javac.target=1.7 +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=char2.TestChar +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/PrjJava/OCA7/Chapter4/Char2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Char2/nbproject/project.xml new file mode 100644 index 0000000..3b3219d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Char2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Char2/src/char2/TestChar.java b/PrjJava/OCA7/Chapter4/Char2/src/char2/TestChar.java new file mode 100644 index 0000000..10d889e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char2/src/char2/TestChar.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package char2; + +/** + * + * @author andad + */ +public class TestChar { + + char c; + + public void m1() { + char[] cA = {'a','b'}; + m2(c, cA); + System.out.println(((int) c) + "," + cA[1]); + } + + public void m2(char c, char[] cA) { + c = 'b'; + cA[1] = cA[0] = 'm'; + } + + public static void main(String args[]) { + new TestChar().m1(); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Char3/build.xml b/PrjJava/OCA7/Chapter4/Char3/build.xml new file mode 100644 index 0000000..2913877 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Char3. + + + diff --git a/PrjJava/OCA7/Chapter4/Char3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Char3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Char3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Char3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Char3/build/classes/char3/Char3.class b/PrjJava/OCA7/Chapter4/Char3/build/classes/char3/Char3.class new file mode 100644 index 0000000000000000000000000000000000000000..5db9ddd96a35b1c2ba91d2e85138ca27eaf5738a GIT binary patch literal 573 zcmZuu%TB^j5Iq+vg;E7Y0l^18gD&jCCFq94#Du5`hK(C9rNK*}HMN-d8~%wdG;!ev z_)*4li;0@pWM(>NX3m^xKR(~y0UTo2LJH*!mQk@##fo;TCe}=>3#6LLSJAORvcA_9 zFj_(16Ueod@10G?JukeJy%CXxcHqiUSB6UG-=GoQs5^n#wtFMPL#L&EgCt|Ae1T&9 zsy&qV(iusA;B=x;`GZEhM1}*775*s;2$$BP^=YR9RwtN*u6Lre3M*c5pjmC0NSmnH z*ubWVEgRcNYquki{iR1B|0CkOH}u@-57c?Mi@Y)K4<;-uO% zFDzi*>ZTEIHR`8(T`HO3r`AsbtRhXHVdgLj#+m(Bh^M%0(Whe2MwajPw1IJ!Sq5{+ z5z)g#k|i0-dD(nM;swd7asAk=9x+*Yf$_sviI*?3yU58BIm*cMx0g_fchsgl#OBGD V#1a-z;FdgvE;7@ii>xG2`U2-oXiWeB literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Char3/manifest.mf b/PrjJava/OCA7/Chapter4/Char3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Char3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Char3/nbproject/build-impl.xml new file mode 100644 index 0000000..82dad72 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Char3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Char3/nbproject/genfiles.properties new file mode 100644 index 0000000..b8a02f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ac1b779e +build.xml.script.CRC32=6c9fd89f +build.xml.stylesheet.CRC32=8064a381@1.79.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=ac1b779e +nbproject/build-impl.xml.script.CRC32=def85f83 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Char3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Char3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Char3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Char3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Char3/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Char3/nbproject/project.properties new file mode 100644 index 0000000..cc563d4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char3/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}/Char3.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.7 +javac.target=1.7 +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=char3.Char3 +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/PrjJava/OCA7/Chapter4/Char3/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Char3/nbproject/project.xml new file mode 100644 index 0000000..91cde3d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Char3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Char3/src/char3/Char3.java b/PrjJava/OCA7/Chapter4/Char3/src/char3/Char3.java new file mode 100644 index 0000000..cc84198 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Char3/src/char3/Char3.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package char3; + +/** + * + * @author andad + */ +public class Char3 { + + /** + * @param args the command line arguments + */ + + public static void main(String[] args) { + // TODO code application logic here + char c = 'a'; + + System.out.println(); + c++; + int d = c; + System.out.println(d); + } + +} diff --git a/PrjJava/OCA7/Chapter4/CharAdd/build.xml b/PrjJava/OCA7/Chapter4/CharAdd/build.xml new file mode 100644 index 0000000..77ffa89 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CharAdd/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CharAdd. + + + diff --git a/PrjJava/OCA7/Chapter4/CharAdd/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/CharAdd/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/CharAdd/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/CharAdd/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/CharAdd/build/classes/charadd/CharAdd.class b/PrjJava/OCA7/Chapter4/CharAdd/build/classes/charadd/CharAdd.class new file mode 100644 index 0000000000000000000000000000000000000000..c140cbec7d0f5240c75294a9a6b92afee9edf1eb GIT binary patch literal 506 zcmZuuO;5r=5Pb`UwY3UTz;DqTc(4Z#9xx_`#Kfdg6ATwm+jav>`e8~j@n`8l6A%6X zf0S`rND$*5W_I4pzIikI_5JY);1q`jO0aa)(J;`&CdU@XHbePbMJl~uD7HHT2CWzS zlA+?LNZw3CS0?wu4G5_@u_uCoNK_WjK`kAr3B!itjYJ}R-|msW^!+Xog+fIP&Gv&c z7Ei(sL^QPfX`-TGH*X}8Aw9MJNi!Jzc$#?fN@bnRIq6BpW1u5>;&9k-n5vN)gfwR?e{uGw{c(D4^lA_H}1~ zBWSeR>=Z!z1Sh*fkxibFFCD*wz2s?~Y&i!_7<4yh1z4pUpkoc|gk+D;ax%hRQK-6a ZC@u&LN&yy?)qj!bsGv$X{RY_rYCi@EWqtqv literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/CharAdd/manifest.mf b/PrjJava/OCA7/Chapter4/CharAdd/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CharAdd/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/CharAdd/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/build-impl.xml new file mode 100644 index 0000000..b8c0af4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/CharAdd/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/genfiles.properties new file mode 100644 index 0000000..ef48ce9 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e6d1502d +build.xml.script.CRC32=dd169e57 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e6d1502d +nbproject/build-impl.xml.script.CRC32=2a081cf6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/CharAdd/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/CharAdd/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/CharAdd/nbproject/project.properties b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/project.properties new file mode 100644 index 0000000..8db5ea2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CharAdd/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}/CharAdd.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.7 +javac.target=1.7 +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=charadd.CharAdd +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/PrjJava/OCA7/Chapter4/CharAdd/nbproject/project.xml b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/project.xml new file mode 100644 index 0000000..83c8de1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CharAdd/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CharAdd + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/CharAdd/src/charadd/CharAdd.java b/PrjJava/OCA7/Chapter4/CharAdd/src/charadd/CharAdd.java new file mode 100644 index 0000000..c4c4d6e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CharAdd/src/charadd/CharAdd.java @@ -0,0 +1,22 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package charadd; + +/** + * + * @author andad + */ +public class CharAdd { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.println('a' + 1); + } + +} diff --git a/PrjJava/OCA7/Chapter4/CompareDouble/build.xml b/PrjJava/OCA7/Chapter4/CompareDouble/build.xml new file mode 100644 index 0000000..c48c131 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CompareDouble/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CompareDouble. + + + diff --git a/PrjJava/OCA7/Chapter4/CompareDouble/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/CompareDouble/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/CompareDouble/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/CompareDouble/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/CompareDouble/build/classes/comparedouble/CompareDouble.class b/PrjJava/OCA7/Chapter4/CompareDouble/build/classes/comparedouble/CompareDouble.class new file mode 100644 index 0000000000000000000000000000000000000000..a3320282f9a81e4255ee540f40e8f314032a2a96 GIT binary patch literal 546 zcmaJ-O;5r=5PeGvm0B%Qzz@Wa8+fn>j~Ek!@zkgZhJ&7#vcV;7mz37TpQQ&)Jop3r zQO0R8K@#I0W_I42dHZ%gzurFpoZ!Gj5l$I3)J-(7X<*C1Hbd!DMlv~L(Au2=gWgjk z!C-qb5?5(B6!9$|282{S`W0}=Ipq@O)8AHqSRXF9b7^##PgY@~TUsA(s(D zqkZp9_#<}%9*y0863b}Z%^&6Qm}HzkXa=*d(%2W5GIy~geVnOTD8VqWW1)#%11$@C z*k@?|V~L@%@Nqqy2tQeZ`cJb>QWs5>cO$#|ilsJfvSaxyCZgU`(^7fWE7@ z?>Yk + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/genfiles.properties new file mode 100644 index 0000000..6a44ce4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4a75d7ed +build.xml.script.CRC32=872aa372 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4a75d7ed +nbproject/build-impl.xml.script.CRC32=3f07b69c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/project.properties b/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/project.properties new file mode 100644 index 0000000..0998349 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CompareDouble/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}/CompareDouble.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.7 +javac.target=1.7 +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=comparedouble.CompareDouble +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/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/project.xml b/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/project.xml new file mode 100644 index 0000000..2bb1b5b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CompareDouble/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CompareDouble + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/CompareDouble/src/comparedouble/CompareDouble.java b/PrjJava/OCA7/Chapter4/CompareDouble/src/comparedouble/CompareDouble.java new file mode 100644 index 0000000..6cf5d8f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/CompareDouble/src/comparedouble/CompareDouble.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package comparedouble; + +/** + * + * @author andad + */ +public class CompareDouble { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.println(-0.0 == 0.0); + System.out.println(0.01 == 0.0); + } + +} diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/build.xml b/PrjJava/OCA7/Chapter4/ComparePrimitives/build.xml new file mode 100644 index 0000000..376edc7 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ComparePrimitives/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ComparePrimitives. + + + diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/ComparePrimitives/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/ComparePrimitives/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/build/classes/compareprimitives/ComparePrimitives.class b/PrjJava/OCA7/Chapter4/ComparePrimitives/build/classes/compareprimitives/ComparePrimitives.class new file mode 100644 index 0000000000000000000000000000000000000000..41e4c3f306ec1818700a82abc26204452ded03b7 GIT binary patch literal 672 zcma)4O-~b16g{^eGi@25^a~Y~VgaiQX5kWKA&H4e6_Oe@u3pEN`s#c%(^nGzjeh|a zlDO~(_@6YMnGy++1(V!&=bn4tx%Zx#Uw?l51n?5iYH;wdibvR}V6%qDc;aHqMOWY) zn%LMQL9ze*Oi(&bK54<~z{L9fJR0frgBpcI8iOQI;h9QJ7GHxU``OF{yMrK!rYhCb z)I`Rbb3OBq7s%;9@`0vXZX(iH8r zV0ma&@a3JFUe8h+Ci67VZ%j6A=fC#*Sw{~pDlWD?JVj4X)?*cF7dswyu_x%=V+}$5 zX7-cOLh%4JlE(f0shoMwuTn zdkSDVDm<%2_ff}MUcZJ0bNsj1rN!C;Yr%2lH=2@7 Ky3VkG2Y&%Il#b;9 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/manifest.mf b/PrjJava/OCA7/Chapter4/ComparePrimitives/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ComparePrimitives/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/build-impl.xml new file mode 100644 index 0000000..7e91708 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/genfiles.properties new file mode 100644 index 0000000..8ab2fee --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=db754d94 +build.xml.script.CRC32=7708d27b +build.xml.stylesheet.CRC32=8064a381@1.79.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=db754d94 +nbproject/build-impl.xml.script.CRC32=1d671ce1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/project.properties b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/project.properties new file mode 100644 index 0000000..1531513 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ComparePrimitives/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}/ComparePrimitives.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.7 +javac.target=1.7 +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=compareprimitives.ComparePrimitives +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/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/project.xml b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/project.xml new file mode 100644 index 0000000..40e303f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ComparePrimitives/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ComparePrimitives + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/ComparePrimitives/src/compareprimitives/ComparePrimitives.java b/PrjJava/OCA7/Chapter4/ComparePrimitives/src/compareprimitives/ComparePrimitives.java new file mode 100644 index 0000000..be12251 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ComparePrimitives/src/compareprimitives/ComparePrimitives.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package compareprimitives; + +/** + * + * @author andad + */ +public class ComparePrimitives { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int b = 6; + byte a = 6; + if (a==b) + System.out.println("egale"); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Converion/build.xml b/PrjJava/OCA7/Chapter4/Converion/build.xml new file mode 100644 index 0000000..2ea7352 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Converion/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Converion. + + + diff --git a/PrjJava/OCA7/Chapter4/Converion/manifest.mf b/PrjJava/OCA7/Chapter4/Converion/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Converion/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Converion/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Converion/nbproject/build-impl.xml new file mode 100644 index 0000000..0d32e33 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Converion/nbproject/build-impl.xml @@ -0,0 +1,1450 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set platform.home + Must set platform.bootcp + Must set platform.java + Must set platform.javac + + The J2SE Platform is not correctly set up. + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. + Either open the project in the IDE and setup the Platform with the same name or add it manually. + For example like this: + ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) + or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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: + + ${platform.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/PrjJava/OCA7/Chapter4/Converion/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Converion/nbproject/genfiles.properties new file mode 100644 index 0000000..ff70dc4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Converion/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b6e5bac2 +build.xml.script.CRC32=c07ca589 +build.xml.stylesheet.CRC32=8064a381@1.79.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=b6e5bac2 +nbproject/build-impl.xml.script.CRC32=2bf2a839 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/PrjJava/OCA7/Chapter4/Converion/nbproject/private/config.properties b/PrjJava/OCA7/Chapter4/Converion/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Converion/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Converion/nbproject/private/private.properties new file mode 100644 index 0000000..40b0c0e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Converion/nbproject/private/private.properties @@ -0,0 +1,6 @@ +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Converion/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Converion/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Converion/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Converion/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Converion/nbproject/project.properties new file mode 100644 index 0000000..0d99220 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Converion/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Converion +application.vendor=andad +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}/Converion.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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=converion.Converion +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=JDK_1.8 +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/PrjJava/OCA7/Chapter4/Converion/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Converion/nbproject/project.xml new file mode 100644 index 0000000..faf6e34 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Converion/nbproject/project.xml @@ -0,0 +1,16 @@ + + + org.netbeans.modules.java.j2seproject + + + Converion + + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Converion/src/converion/Converion.class b/PrjJava/OCA7/Chapter4/Converion/src/converion/Converion.class new file mode 100644 index 0000000000000000000000000000000000000000..fc6c1eb2e8ccd3b723af8dd74b80e612e676f84a GIT binary patch literal 674 zcmaKq-)a*<6vls(?q-v9ZQ3TA*xG38ziw)46r?xNA{IoUs1PZLc(F-_vL)G#>!#pK z2z>^hKrd2I@Bw@Q-$p!>s-;Gpi*wGL`Q|&{IWymWeEtgDWz*$6)%=5W_~E;I|4oq^ z7aSH{Y^ugA6}V{pvN3g+OI&tXaadL4??rKxZ7XJi#-763NqSmQ+KpoUbTsJb^hMa| zOU4?6QLLy2uXYc@!?4*8 zSGlIB{Y~(26!m*L^|;Org<3JennysxVcp{<8;bHD%I3~*a>d*!)w9ll?q+9F?RRf8 zJ&@LtksSCZ!lR`5TvTVGU5A5~OduQ%b=*@d2TvMP&Hd6QxXobdu=PKDAxlo?qo@Sa zKw&IT)SnfkaE3-+Uxw}ftKuH3c=Ft4<&arZ5<4fmx_BktUOz^Clt3{rHa|&v6j`7w zv4Os3M)Gi{LhkXr+Sp!uf3#)QkGAYjSYNPT9+UU2G0s9^OwqR`8sm;RcS^f7At+-} Up@45bpp>g|n?)&75%L`VPiXd+C;$Ke literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Converion/src/converion/Converion.java b/PrjJava/OCA7/Chapter4/Converion/src/converion/Converion.java new file mode 100644 index 0000000..f16fc2c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Converion/src/converion/Converion.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package converion; + +/** + * + * @author andad + */ +public class Converion { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + double a = 295.04; + int b = 300; + byte c = (byte)a; + byte d = (byte)b; + System.out.println(c + " " + d); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/build.xml b/PrjJava/OCA7/Chapter4/ConvertChar/build.xml new file mode 100644 index 0000000..2f38133 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ConvertChar/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ConvertChar. + + + diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/ConvertChar/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/ConvertChar/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/build/classes/convertchar/ConvertChar.class b/PrjJava/OCA7/Chapter4/ConvertChar/build/classes/convertchar/ConvertChar.class new file mode 100644 index 0000000000000000000000000000000000000000..1dd4846331a9ec29e987875e32e1a1f048117051 GIT binary patch literal 1040 zcmZ`&YflqF6g@*rw_R5rEe}CN@I_0JMG;?s2&*Pd8f#KTjh}{PEKAxgS+*qpEd5Xj zCjJ0_l<~|iSSqj|X6~GO?qklK{r%_o7l1{)HqnpiG;W!=jXN3K#XS=<$eSo&)EX)~rVBn!ZYQ^)t@P$AkU)U5#I?Zh*&|mg^^|sa6Qo(zJ-3_oV-^5>!j1QQEKz^pb~fvetly3v6%_2+evg#iqbxMX0_!Xt2h zY~cx>8hB>mIhGBqSXc!$80-`&`Jt+*KnJgB)=LZP*s$Q>mB3KMYshfN-tcNCRDsb; zWMEUB#FedG<%V6*=_ONIzjgYO`BH)RIulj>wjZhnr_^lGKOC#!HSKp4GGx4x4T_zM z%5=k2aZi)#6iesjkYidj2|Xq0hAQC9YbxZ(Rp7asvfiSU$-Gl2v0DDT_&QA&9$zaO zsd1pgD_;d>E{Z&p>_j%bvpm_{1^3?BLx}H@ zJI6H@fqfXFZN&r(V}z#+MsbaZ4n9T_3GSb=J>_Dejl}8?Bqs(Iw%h3KwvLdBv7azL z7Y~tcBSS{<2u{mjB-onclRi8{!!hZ`8<&pD1IT*n$FP$KdXlTpu8 cabIMNGcJJ-*Z3@T(zMk3s#rw3Di0UL?vYXATM literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/manifest.mf b/PrjJava/OCA7/Chapter4/ConvertChar/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ConvertChar/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/build-impl.xml new file mode 100644 index 0000000..8aa9862 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/build-impl.xml @@ -0,0 +1,1449 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set platform.home + Must set platform.bootcp + Must set platform.java + Must set platform.javac + + The J2SE Platform is not correctly set up. + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. + Either open the project in the IDE and setup the Platform with the same name or add it manually. + For example like this: + ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) + or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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: + + ${platform.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/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/genfiles.properties new file mode 100644 index 0000000..4e1605f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d239de79 +build.xml.script.CRC32=f2b2ad9e +build.xml.stylesheet.CRC32=8064a381@1.79.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=d239de79 +nbproject/build-impl.xml.script.CRC32=605c235d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/project.properties b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/project.properties new file mode 100644 index 0000000..e67a54b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ConvertChar/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}/ConvertChar.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.7 +javac.target=1.7 +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=convertchar.ConvertChar +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=JDK_1.7 +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/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/project.xml b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/project.xml new file mode 100644 index 0000000..ae7388e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ConvertChar/nbproject/project.xml @@ -0,0 +1,16 @@ + + + org.netbeans.modules.java.j2seproject + + + ConvertChar + + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/ConvertChar/src/convertchar/ConvertChar.java b/PrjJava/OCA7/Chapter4/ConvertChar/src/convertchar/ConvertChar.java new file mode 100644 index 0000000..1e4263f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ConvertChar/src/convertchar/ConvertChar.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package convertchar; + +import java.math.BigInteger; + +/** + * + * @author andad + */ +public class ConvertChar { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String nString = "5"; + char n = nString.charAt(0); + System.out.println(n - '0'); + System.out.println(n - 48); + System.out.println(Character.getNumericValue(n)); + System.out.println(new Integer(nString)); + System.out.println(Integer.valueOf(nString)); + System.out.println(Integer.parseInt(nString)); + System.out.println(new BigInteger(nString)); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Decrement/build.xml b/PrjJava/OCA7/Chapter4/Decrement/build.xml new file mode 100644 index 0000000..e83902b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Decrement/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Decrement. + + + diff --git a/PrjJava/OCA7/Chapter4/Decrement/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Decrement/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Decrement/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Decrement/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Decrement/build/classes/decrement/Decrement.class b/PrjJava/OCA7/Chapter4/Decrement/build/classes/decrement/Decrement.class new file mode 100644 index 0000000000000000000000000000000000000000..e441537a12cb5f8679fc05d89923ae64395355a9 GIT binary patch literal 582 zcmZutxlY4C5Pj<$Ccz1T930`M2^6@XB%%Q!A%#NMgv3g-GxO$nGxPfK`~qMDD_Nva$zT#wSxjTbMAgKsK)S9y9c~FEYO5`Q z84s_lQh1d`I?LGSHF#1t!B&eJN0Gbd(b)S9zhm^KEUinJcv? zP^q0X&g7M}d(!LL%`nhjcQYoFL6_ylf5HOdoU$j7YlhM}-eSj3#C;sj@K48}g)D7r zn1E4QKn6MFiA2Sc%?#>Ns(vE|)m!8qU{oKGxEs7hy%Nj@CP)nwnOUM=p*0ovtqf~1 Yh63XT^TsJ$h@J`K9fl~-Eycm|CpGeSQ~&?~ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Decrement/manifest.mf b/PrjJava/OCA7/Chapter4/Decrement/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Decrement/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Decrement/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Decrement/nbproject/build-impl.xml new file mode 100644 index 0000000..2bc3f6c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Decrement/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Decrement/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Decrement/nbproject/genfiles.properties new file mode 100644 index 0000000..455be8e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Decrement/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e0b568a6 +build.xml.script.CRC32=a12cd3cc +build.xml.stylesheet.CRC32=8064a381@1.79.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=e0b568a6 +nbproject/build-impl.xml.script.CRC32=4bbd0854 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Decrement/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Decrement/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Decrement/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Decrement/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Decrement/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Decrement/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Decrement/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Decrement/nbproject/project.properties new file mode 100644 index 0000000..a3ab023 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Decrement/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}/Decrement.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.7 +javac.target=1.7 +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=decrement.Decrement +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/PrjJava/OCA7/Chapter4/Decrement/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Decrement/nbproject/project.xml new file mode 100644 index 0000000..e673354 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Decrement/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Decrement + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Decrement/src/decrement/Decrement.java b/PrjJava/OCA7/Chapter4/Decrement/src/decrement/Decrement.java new file mode 100644 index 0000000..6395339 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Decrement/src/decrement/Decrement.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package decrement; + +/** + * + * @author andad + */ +public class Decrement { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int k = 2; + while(--k>0) + { + System.out.println(k); + } + } + +} diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/build.xml b/PrjJava/OCA7/Chapter4/DecrementChar/build.xml new file mode 100644 index 0000000..24acf73 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/DecrementChar/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project DecrementChar. + + + diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/DecrementChar/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/DecrementChar/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/build/classes/decrementchar/DecrementChar.class b/PrjJava/OCA7/Chapter4/DecrementChar/build/classes/decrementchar/DecrementChar.class new file mode 100644 index 0000000000000000000000000000000000000000..17b508e18116a96f468dedd5c1dafe950d8dca05 GIT binary patch literal 568 zcmaJ;%TB^T6g^W4m0AUP)JJ{c3S8KQONa|GCMJ!TVA!~tmI(~$!<1s;XZR_)(8Prw z;71v6i-wRGCz-i(&%O8Db7wxk-ai1G;z&mx^&(7c>e#}zh8+zSL!l!>nVd1?nymqY z+Kq;Sq2$O=T+aem#JAk_38^@d$Nd41W$OQcYBH8nhCOE}yjTPxOuR9V?TcTpOJ18u z11>`bvw7!C_yf0n9**pO63cMZ&YJRgL^Rbu!VJu%ea@iwqgm{UOPQ%zYH^aX8Yn>1 zuxnrs`x*`m9HPNs{UeQ`ywKBgC&EjXp#I}D5dl3-G^0R$E?!3V4Jl7Zzu*B)SIsz< zVFv9!P4a1MwRzPVpaGRWAYBUR)uGY3LY_^QkhP)a0>yeoZb4I_u0WNNYSgh#g=R)+&dX3jnc@mjZlFS>G)?B$ Fz5#7EbqN3f literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/manifest.mf b/PrjJava/OCA7/Chapter4/DecrementChar/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/DecrementChar/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/build-impl.xml new file mode 100644 index 0000000..9e89e36 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/genfiles.properties new file mode 100644 index 0000000..f4ea4c3 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e792ce09 +build.xml.script.CRC32=4e90dfbd +build.xml.stylesheet.CRC32=8064a381@1.79.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=e792ce09 +nbproject/build-impl.xml.script.CRC32=d29dd81c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/project.properties b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/project.properties new file mode 100644 index 0000000..a3a59e7 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/DecrementChar/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}/DecrementChar.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.7 +javac.target=1.7 +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=decrementchar.DecrementChar +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/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/project.xml b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/project.xml new file mode 100644 index 0000000..4faf9be --- /dev/null +++ b/PrjJava/OCA7/Chapter4/DecrementChar/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + DecrementChar + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/DecrementChar/src/decrementchar/DecrementChar.java b/PrjJava/OCA7/Chapter4/DecrementChar/src/decrementchar/DecrementChar.java new file mode 100644 index 0000000..7394fa6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/DecrementChar/src/decrementchar/DecrementChar.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package decrementchar; + +/** + * + * @author andad + */ +public class DecrementChar { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + byte b = 0; + b--; + System.out.println(b); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Division/build.xml b/PrjJava/OCA7/Chapter4/Division/build.xml new file mode 100644 index 0000000..b8a2881 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Division/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Division. + + + diff --git a/PrjJava/OCA7/Chapter4/Division/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Division/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Division/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Division/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Division/build/classes/division/Division.class b/PrjJava/OCA7/Chapter4/Division/build/classes/division/Division.class new file mode 100644 index 0000000000000000000000000000000000000000..2128e788b3eff6eb9549a6df6637d2f5f368e2ff GIT binary patch literal 737 zcmZuuU2D@&7=BLLHEYORwytx|sr%Hl)5TfzW;z9jPzY0~6l7PYU8tv~iKOYkf8nM6 z483SULA>_DpWsgspOZ|g=sD!PAJ6;sy!rO?(-!~@G%U>Fnu&D_1~&AwS;iK&E$rZW z>Ctv$^6u^TAKJP>izz%NToW~c(tQ=F^iZJS*4hHa$MI<(Fz>4DvrFPbLD`g22w==%kGKamuJ!oWz_RpX`-UuLDotp zJ)Qg?SU{w@eeVHykw z#3M4P=1f%VJtO^;O9pR{qE$u}%k=2v_bBiJ4?n|r;q)gc_`6?Wj8Sx~@WDsStc_8k zSb{l5Ia91$aVRyC$!Xh7%(7es7F$($*Vt+Y7rEsX+`}atVl^9SJ#R~7h4B{d5?kd^ QRn&2rS(@V&A_lJh0uGvzmH+?% literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Division/manifest.mf b/PrjJava/OCA7/Chapter4/Division/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Division/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Division/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Division/nbproject/build-impl.xml new file mode 100644 index 0000000..392b8c1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Division/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Division/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Division/nbproject/genfiles.properties new file mode 100644 index 0000000..54693d1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Division/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=f948d9c6 +build.xml.script.CRC32=9cf48108 +build.xml.stylesheet.CRC32=8064a381@1.79.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=f948d9c6 +nbproject/build-impl.xml.script.CRC32=84b51b09 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Division/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Division/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Division/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Division/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Division/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Division/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Division/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Division/nbproject/project.properties new file mode 100644 index 0000000..2b56b1a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Division/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}/Division.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.7 +javac.target=1.7 +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=division.Division +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/PrjJava/OCA7/Chapter4/Division/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Division/nbproject/project.xml new file mode 100644 index 0000000..b9d345b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Division/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Division + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Division/src/division/Division.java b/PrjJava/OCA7/Chapter4/Division/src/division/Division.java new file mode 100644 index 0000000..d1b7cde --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Division/src/division/Division.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package division; + +/** + * + * @author andad + */ +public class Division { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Object t = new Integer(106); + int k = ((Integer) t).intValue()/10; + System.out.println(k); + System.out.println(100/9.9); + System.out.println(100/10.0); + System.out.println(100/10); + System.out.println(3 + 100/10*2-13); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Equals1/build.xml b/PrjJava/OCA7/Chapter4/Equals1/build.xml new file mode 100644 index 0000000..aeab225 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Equals1. + + + diff --git a/PrjJava/OCA7/Chapter4/Equals1/manifest.mf b/PrjJava/OCA7/Chapter4/Equals1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Equals1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Equals1/nbproject/build-impl.xml new file mode 100644 index 0000000..a6cda27 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Equals1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Equals1/nbproject/genfiles.properties new file mode 100644 index 0000000..4114c2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=cf67d2eb +build.xml.script.CRC32=12368e5f +build.xml.stylesheet.CRC32=8064a381@1.79.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=cf67d2eb +nbproject/build-impl.xml.script.CRC32=e66b94f6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Equals1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Equals1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Equals1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Equals1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Equals1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Equals1/nbproject/project.properties new file mode 100644 index 0000000..10f0d30 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals1/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}/Equals1.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.7 +javac.target=1.7 +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=equals1.Equals1 +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/PrjJava/OCA7/Chapter4/Equals1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Equals1/nbproject/project.xml new file mode 100644 index 0000000..16f95da --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Equals1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Equals1/src/equals1/Equals1.java b/PrjJava/OCA7/Chapter4/Equals1/src/equals1/Equals1.java new file mode 100644 index 0000000..be6720c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals1/src/equals1/Equals1.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package equals1; + +/** + * + * @author andad + */ +public class Equals1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int a = 133; + Integer b = new Integer(133); + //System.out.prinln(a.equals(b)); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Equals2/build.xml b/PrjJava/OCA7/Chapter4/Equals2/build.xml new file mode 100644 index 0000000..13d05a4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Equals2. + + + diff --git a/PrjJava/OCA7/Chapter4/Equals2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Equals2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Equals2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Equals2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Equals2/build/classes/equals2/Equals2.class b/PrjJava/OCA7/Chapter4/Equals2/build/classes/equals2/Equals2.class new file mode 100644 index 0000000000000000000000000000000000000000..c8197cdf7e2f92c8bbd4233fa282e18f44558103 GIT binary patch literal 790 zcmZuv%Wl(95Ir}x<0QDab!Z4sTKWK-r%9SsgOCt{m0OUCB2iX1sg=4)97r4_zKAs} zQVAqJfR93)YgdA%crkNl=FFTkBmesS{U?BZbPBkE%^bE&Jjh|Y01Z2N>|(Eghj^sI z$Li&psFeG?rl`P;%e<=kk;EMlu?D$MH0bhTVinPKRtQ{--REnY9$- zwMJEGE3>amN1$*#nNJ77t58X_F4>!^&w_;&u6HP-aCRoJx;%^$pGT(&u4bZcp@F6e z&%zVbEVR&8FY?$+yImRex_=%FVu5w{x>&X4zpS5UaWLkcCv(-1;=_seh9`-6m_Uws zwqhdlYFfbjpg<$uGn=YeVoYUpD<@paJ*o7t4fPwSF9RM1E3`KmdGvzbs9r#PP0BWH zHc47o<=aXDScAhTk0Nd{qnf|)=P~G8PR6et{($z*(Jx>eH4b#)iv#@|vh@W_x<=~i zwFPnu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Equals2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Equals2/nbproject/genfiles.properties new file mode 100644 index 0000000..69769fd --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d7534681 +build.xml.script.CRC32=6ac20612 +build.xml.stylesheet.CRC32=8064a381@1.79.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=d7534681 +nbproject/build-impl.xml.script.CRC32=e513acd9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Equals2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Equals2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Equals2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Equals2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Equals2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Equals2/nbproject/project.properties new file mode 100644 index 0000000..6050766 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals2/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}/Equals2.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.7 +javac.target=1.7 +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=equals2.Equals2 +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/PrjJava/OCA7/Chapter4/Equals2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Equals2/nbproject/project.xml new file mode 100644 index 0000000..4118d7b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Equals2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Equals2/src/equals2/Equals2.java b/PrjJava/OCA7/Chapter4/Equals2/src/equals2/Equals2.java new file mode 100644 index 0000000..b053d03 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Equals2/src/equals2/Equals2.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package equals2; + +/** + * + * @author andad + */ +public class Equals2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s1 = "Manish"; + String s2 = s1; + String s3 = new String("Anda"); + String s4 = s3; + s1 = null; + s4 = null; + System.out.println(s2); + System.out.println(s3); + System.out.println(s2.equals(s1)); + } + +} diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/build.xml b/PrjJava/OCA7/Chapter4/EvaluateOperands/build.xml new file mode 100644 index 0000000..e6a2f8e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/EvaluateOperands/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project EvaluateOperands. + + + diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/EvaluateOperands/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/EvaluateOperands/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/build/classes/evaluateoperands/EvaluateOperands.class b/PrjJava/OCA7/Chapter4/EvaluateOperands/build/classes/evaluateoperands/EvaluateOperands.class new file mode 100644 index 0000000000000000000000000000000000000000..ae0df86679800efc25e67462154ae48790e05b06 GIT binary patch literal 897 zcmah{U2hUW6g{(0wk%6OsDM(d(E34Z?W%oj^`WLFCe)f>ni!u37+~tMOO}P`FYu@M zTpz5_MBn{U>e+?RVoZFQnS18kbMHMfKYxAw4qz9%7SgC#n8&(_jWllIwuL*mJCCY` z1U5}GN7l_Tl6((5?&FwkCSFDflqC4cGa z@Lf~&L+yJ}t_(UXwDONs0kfq?df*3?crK8whqC$hNcQ6%O%ymjIj%oY2f7o_NtQKL zr>s@?he1<4)6t;$zgyply0u{;W8*s3*u_QrQxy~2Htu7`gk$3Y9tsre-C?`!sW<{zc>H;f7 z^Te<6roakCMy0q?nal;4WLzPKy1XfHHy9Vm7r4e~8OCp>8YW8Y-NdTN+4#VuMNO^8 iEdkayBwpuI=P-W|<^SS39%~IZcuo?Fytv7;f$|?elDm%p literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/manifest.mf b/PrjJava/OCA7/Chapter4/EvaluateOperands/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/EvaluateOperands/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/build-impl.xml new file mode 100644 index 0000000..ee13da3 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/genfiles.properties new file mode 100644 index 0000000..7c00006 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=55f702de +build.xml.script.CRC32=a0a9b875 +build.xml.stylesheet.CRC32=8064a381@1.79.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=55f702de +nbproject/build-impl.xml.script.CRC32=39a4258f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/project.properties b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/project.properties new file mode 100644 index 0000000..62cd006 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/EvaluateOperands/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}/EvaluateOperands.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.7 +javac.target=1.7 +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=evaluateoperands.EvaluateOperands +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/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/project.xml b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/project.xml new file mode 100644 index 0000000..9d99683 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/EvaluateOperands/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + EvaluateOperands + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/EvaluateOperands/src/evaluateoperands/EvaluateOperands.java b/PrjJava/OCA7/Chapter4/EvaluateOperands/src/evaluateoperands/EvaluateOperands.java new file mode 100644 index 0000000..56fc47e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/EvaluateOperands/src/evaluateoperands/EvaluateOperands.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package evaluateoperands; + +/** + * + * @author andad + */ +public class EvaluateOperands { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int divisor = 0; + try { + int i = 1 / (divisor * loseBig()); + } catch (Exception e) { + System.out.println(e); + } + + } + + static int loseBig() throws Exception { + throw new Exception("Shuffle off to Buffalo!"); + } + + +} diff --git a/PrjJava/OCA7/Chapter4/Float1/build.xml b/PrjJava/OCA7/Chapter4/Float1/build.xml new file mode 100644 index 0000000..c3396c9 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Float1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Float1. + + + diff --git a/PrjJava/OCA7/Chapter4/Float1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Float1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Float1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Float1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Float1/build/classes/float1/Float1.class b/PrjJava/OCA7/Chapter4/Float1/build/classes/float1/Float1.class new file mode 100644 index 0000000000000000000000000000000000000000..4e08eed0d8215ee605a408cecc721a24b8e06939 GIT binary patch literal 843 zcmZuuU2YO#6g?jd3=Fg&NT~vCE!skBi_jJ^txbf6qy~Qy3@`dJz<@(wrh&nv8}OwM zM%{p0&<9L>Z~<<>-5Ad|m^372a{upl?mc&Y{rT||zyT^6G;Axi!G||W?Khx2`2qxy zLteuUcBQ&6)t-ud6$JtRiD{Y6sem_^ZwV+hyK4wU8m47DpN`tb_?6xsG81dq9evo+ z$EJ+`B^BqbIg#DHp{+Z`LftjTgc<3kC9slv-5BWa^ukcL`h})5Hm&}#J4PS(`7r*U zvViDO>J)Z}CZ$cOQcTLZfTvfaqf=^>E)!iQJiU^D+BK|+>0AnEO?x`-7|y>)ZJb z@zpIaQ~TXy7!mril?{mE25k^A#F^n^ktA4%xo0uYS@!DlhErL^` xWuUP85%H2FzKSEFZty56l!%+;%QaqZlU{&&7g>5i?y!x!^fY4M<0KEZ{sO3Gi<|%e literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Float1/manifest.mf b/PrjJava/OCA7/Chapter4/Float1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Float1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Float1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Float1/nbproject/build-impl.xml new file mode 100644 index 0000000..cc2b348 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Float1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Float1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Float1/nbproject/genfiles.properties new file mode 100644 index 0000000..ae2c5b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Float1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=501fe72a +build.xml.script.CRC32=805edb8f +build.xml.stylesheet.CRC32=8064a381@1.79.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=501fe72a +nbproject/build-impl.xml.script.CRC32=f3d21541 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Float1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Float1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Float1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Float1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Float1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Float1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Float1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Float1/nbproject/project.properties new file mode 100644 index 0000000..cf28e2a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Float1/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}/Float1.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.7 +javac.target=1.7 +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=float1.Float1 +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/PrjJava/OCA7/Chapter4/Float1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Float1/nbproject/project.xml new file mode 100644 index 0000000..2790346 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Float1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Float1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Float1/src/float1/Float1.java b/PrjJava/OCA7/Chapter4/Float1/src/float1/Float1.java new file mode 100644 index 0000000..3749987 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Float1/src/float1/Float1.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package float1; + +/** + * + * @author andad + */ +public class Float1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + float f = 234.56F; + short s = (short)f; + byte b = (byte)f; + int i = 14; + float f1 = i; + char a = (char)s; + float d = 0 * 1.5f; + float d1 = 0* (float)1.5; + float f2 = 43e1f; + float density = 20.0f; + System.out.println(s); + System.out.println(b); + System.out.println(a); + System.out.println(d); + System.out.println(d1); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Hex1/build.xml b/PrjJava/OCA7/Chapter4/Hex1/build.xml new file mode 100644 index 0000000..92fc595 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Hex1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Hex1. + + + diff --git a/PrjJava/OCA7/Chapter4/Hex1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Hex1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Hex1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Hex1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Hex1/build/classes/hex1/Hex1.class b/PrjJava/OCA7/Chapter4/Hex1/build/classes/hex1/Hex1.class new file mode 100644 index 0000000000000000000000000000000000000000..649e8fc1a65992cca2db1d14be16c236b22914ba GIT binary patch literal 819 zcmZuv+j0^?5IqA63!60;5RB1y30@YAS@Et|c}P-}RNo>^2(CA&4SP6opM{i*bd%!0t-#$d(X$iju-CA&VZI&Gw8}e zTZT%X{}_#EUyTIjn)}}Ss{53pMv9?SzCh7=)$Gf6(j7>@=eD9y`Mp}4LWVsCb={Gdm#vE)D>o#s;!-Q+&7OEz0+w2eZ zT^sjs-^2qO5AjHg$Bh1W1A)a^$`_r!*NxbZnW;VqBrWrMTJHu8KiX0e3o@K~xgoGL zL(=8-ypY%^*iya>52jrZC^(JsNf-Ms^IvFoH13Sz<{c@lbufy&A*U9MSxjL{rULgR z+Z-|0lS7Uo9~X1fEMUIXpaEx8aE@0IkBIfP`Es&+O!`ZJLxxRxiYJ#^P^T*2Ail)z zdCGKbw6Vawh7y29EKz5XL!K5L{DEW!^;#~mQ#wTQ5JqN#)U&ThuTNl>K7QWhc6EZx zjCqCJAVU(T$zDK_{|e5qz~wkwWy(lzfw&~!eUV;HjWNqO%Zw|?aGj%1;5;!2to{bb CnyI4z literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Hex1/manifest.mf b/PrjJava/OCA7/Chapter4/Hex1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Hex1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Hex1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Hex1/nbproject/build-impl.xml new file mode 100644 index 0000000..960fb8e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Hex1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Hex1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Hex1/nbproject/genfiles.properties new file mode 100644 index 0000000..55c6be0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Hex1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9b3a40c3 +build.xml.script.CRC32=9d0140b0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=9b3a40c3 +nbproject/build-impl.xml.script.CRC32=12df7fab +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Hex1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Hex1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Hex1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Hex1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Hex1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Hex1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Hex1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Hex1/nbproject/project.properties new file mode 100644 index 0000000..b578a75 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Hex1/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}/Hex1.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.7 +javac.target=1.7 +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=hex1.Hex1 +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/PrjJava/OCA7/Chapter4/Hex1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Hex1/nbproject/project.xml new file mode 100644 index 0000000..1ce9046 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Hex1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Hex1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Hex1/src/hex1/Hex1.java b/PrjJava/OCA7/Chapter4/Hex1/src/hex1/Hex1.java new file mode 100644 index 0000000..248699a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Hex1/src/hex1/Hex1.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package hex1; + +/** + * + * @author andad + */ +public class Hex1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + float f = 234.56F; + String hexa1 = Integer.toBinaryString(Float.floatToIntBits(f)).substring(5); + System.out.println(hexa1); + short s = (short)f; + System.out.println(s); + } + +} diff --git a/PrjJava/OCA7/Chapter4/HexTest/build.xml b/PrjJava/OCA7/Chapter4/HexTest/build.xml new file mode 100644 index 0000000..22cb785 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/HexTest/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project HexTest. + + + diff --git a/PrjJava/OCA7/Chapter4/HexTest/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/HexTest/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/HexTest/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/HexTest/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/HexTest/build/classes/hextest/HexTest.class b/PrjJava/OCA7/Chapter4/HexTest/build/classes/hextest/HexTest.class new file mode 100644 index 0000000000000000000000000000000000000000..28fcce3816c4d1d3ed30c20a1ee8809e1bb45f4a GIT binary patch literal 934 zcmaJefzVMG+IK&fI7l15ERFvisYlQN{8A!TYxH!l4( zE_6{6HU0n=?%f!F33y(qA$-J1-o5AD`|dsG-FXLxUw;6Y#?u%~j4B_Fj*gVypAHTq z#r&I}zfvE^qsStsVJrp>qdLZ=zbnmzj!7Msj(c)96~lc@Yj~jHp+IEL_1vH!pk#Av z0_vi_=?L_eT+eygsI5EoReQb4h*|PC?CP3bcjdktRD&&dSD?SNmA38owpF#gid7Eku2-4u5ZUz#OXC-$1w@l;g=>$iB@k*&(KKnqbAedd zZ`3!OC0FV)x|EZW#XuYh4KoHF;jzHLS>|UAx4P-nsjius<$#i8PcO&g?NFee0i} zk|*Xcuc2UI0Yy&b%ryo2P8eRTZ#x^osZe=uH*jhkt>0iGc{~W$w_bA!0cYXZHBv|H zogK&96qv|fFsgH*?j2Z|&aUMClhyOi5bvlzEl5Dyk@BkidC7|et>HTQ z`2yt^0-GQ~o8-=-7xdw=eTdJUbc#082^tt6HjWSA3a)Y&#Wf5vB8$I6;oAh3)j2aX zZz_d;<xBJk|XdAJ?HZGY4L0W(& z0%3CLNTG*nOsaT69a2|;D#?vBhUi0B!Z1dtER02Dh(fF?^5P>@*@Ic!AX3?31~+kw Lrvz?y>hAmn%M->R literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/HexTest/manifest.mf b/PrjJava/OCA7/Chapter4/HexTest/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/HexTest/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/HexTest/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/HexTest/nbproject/build-impl.xml new file mode 100644 index 0000000..cc265f1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/HexTest/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/HexTest/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/HexTest/nbproject/genfiles.properties new file mode 100644 index 0000000..8c3cf07 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/HexTest/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d9a6b55f +build.xml.script.CRC32=fd64f84c +build.xml.stylesheet.CRC32=8064a381@1.79.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=d9a6b55f +nbproject/build-impl.xml.script.CRC32=0feef910 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/HexTest/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/HexTest/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/HexTest/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/HexTest/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/HexTest/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/HexTest/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/HexTest/nbproject/project.properties b/PrjJava/OCA7/Chapter4/HexTest/nbproject/project.properties new file mode 100644 index 0000000..8c2ab66 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/HexTest/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}/HexTest.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=hextest.HexTest +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/PrjJava/OCA7/Chapter4/HexTest/nbproject/project.xml b/PrjJava/OCA7/Chapter4/HexTest/nbproject/project.xml new file mode 100644 index 0000000..3ba4718 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/HexTest/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + HexTest + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/HexTest/src/hextest/HexTest.java b/PrjJava/OCA7/Chapter4/HexTest/src/hextest/HexTest.java new file mode 100644 index 0000000..d873595 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/HexTest/src/hextest/HexTest.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package hextest; + +/** + * + * @author anda + */ +public class HexTest { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int x = 0X0001; + int y = 0x7fffffff; + int z = 0xDeadCafe; + int z1= 13*16 + 14*16 + 10 * 16 + 13* 16 + 12*16; + double x1 = 25.343; + System.out.println("x = " + x + " y = " + y + " z = " + z + " z1= " + z1); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Infinity/build.xml b/PrjJava/OCA7/Chapter4/Infinity/build.xml new file mode 100644 index 0000000..0806dce --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Infinity. + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Infinity/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Infinity/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity/build/classes/infinity/Infinity.class b/PrjJava/OCA7/Chapter4/Infinity/build/classes/infinity/Infinity.class new file mode 100644 index 0000000000000000000000000000000000000000..9446ad54f53232d267aeed2eb2dc7b594dee7384 GIT binary patch literal 595 zcmZuv%TB^T6g?xQ4Wua0f^QLDfD5~D2~iS_(S)c8hK&m|K*fR5np#YZ3xCLsE;MoB z2lx#x{1W4xq9H~n>3y7g=iD=$dHZ~M1+aTWyfpV3==is+J}RF)Amnz(;*~X^IF_#a9_y$ z8&rY|am8Rz_qn9Gu@1h2GEw!pa2c}2(^{8bbIajw$EpXua69F26!$xF^FL(<)~0Wl zAzt?ee#_nyQbXd0eM1uJ7{`Q$6&CCIym}7h#cS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Infinity/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Infinity/nbproject/genfiles.properties new file mode 100644 index 0000000..c62b86f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ce67f61b +build.xml.script.CRC32=9c9bffa9 +build.xml.stylesheet.CRC32=8064a381@1.79.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=ce67f61b +nbproject/build-impl.xml.script.CRC32=ecef72ec +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Infinity/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Infinity/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Infinity/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Infinity/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Infinity/nbproject/project.properties new file mode 100644 index 0000000..9af0878 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity/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}/Infinity.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.7 +javac.target=1.7 +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=infinity.Infinity +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/PrjJava/OCA7/Chapter4/Infinity/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Infinity/nbproject/project.xml new file mode 100644 index 0000000..8f6f490 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Infinity + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity/src/infinity/Infinity.java b/PrjJava/OCA7/Chapter4/Infinity/src/infinity/Infinity.java new file mode 100644 index 0000000..958000a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity/src/infinity/Infinity.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package infinity; + +/** + * + * @author andad + */ +public class Infinity { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + double d = 8e+307; + System.out.println(4.0 * d * 0.5); + System.out.println(2.0 * d); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Infinity1/build.xml b/PrjJava/OCA7/Chapter4/Infinity1/build.xml new file mode 100644 index 0000000..3231821 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Infinity1. + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Infinity1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Infinity1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity1/build/classes/infinity1/Infinity1.class b/PrjJava/OCA7/Chapter4/Infinity1/build/classes/infinity1/Infinity1.class new file mode 100644 index 0000000000000000000000000000000000000000..8daee538c7e9d9fee7f76d7cb8c3b69e763ff29a GIT binary patch literal 589 zcmZuv%SyvQ6g{J9LTjwGP3!ypXmw!_mx>CCC=?Yc-H3~6jdiq5B&LF&r3(cYy7w#m z1iwH$llnk#Aop?ZopaA*=Jn(08NdokDfD2(e0gWamBc8<%*{+EGdJEkK?>uTurO(1 zO2AxGzKYfbx=RaH0b?sT^#uCL%J=r$t(q4e$y$?0wj9)DvnoTS^Doed&egR*p514f z=62cL`;Jyg){@E>D3p%N7xG5BP3bq>N)#%;u^JDPVT0Rq|C9y9DZg!jR3&JKb#F&$ z73m-PCCzBVMz4iw8#9=-FlS>PMH2oaMXeT<)VaW6*}a zC%e;teq@;?k%L1-Z$3c+-SlG)x_0kjI7k#P9axtSNHQ&^0|vjOSr}~2(K@twzJx+N Xpg>I|AyS|>FoXdNa)e-{^$vdmYRYpS literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Infinity1/manifest.mf b/PrjJava/OCA7/Chapter4/Infinity1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Infinity1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/build-impl.xml new file mode 100644 index 0000000..558a31c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Infinity1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/genfiles.properties new file mode 100644 index 0000000..e2cff6a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=839950ab +build.xml.script.CRC32=3fb88032 +build.xml.stylesheet.CRC32=8064a381@1.79.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=839950ab +nbproject/build-impl.xml.script.CRC32=74041b3e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Infinity1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Infinity1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/project.properties new file mode 100644 index 0000000..d603e68 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity1/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}/Infinity1.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.7 +javac.target=1.7 +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=infinity1.Infinity1 +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/PrjJava/OCA7/Chapter4/Infinity1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/project.xml new file mode 100644 index 0000000..ac4c467 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Infinity1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity1/src/infinity1/Infinity1.java b/PrjJava/OCA7/Chapter4/Infinity1/src/infinity1/Infinity1.java new file mode 100644 index 0000000..68da29a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity1/src/infinity1/Infinity1.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package infinity1; + +/** + * + * @author andad + */ +public class Infinity1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + double d =-1; + System.out.println(4.0 * d * 0.5); + System.out.println(d/0); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Infinity2/build.xml b/PrjJava/OCA7/Chapter4/Infinity2/build.xml new file mode 100644 index 0000000..e027f63 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Infinity2. + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Infinity2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Infinity2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity2/build/classes/infinity2/Infinity2.class b/PrjJava/OCA7/Chapter4/Infinity2/build/classes/infinity2/Infinity2.class new file mode 100644 index 0000000000000000000000000000000000000000..5d151a4b1c53530dd372b40b2a0bbb6448c1ac87 GIT binary patch literal 548 zcmZut%TB^T6g>llLahbC;`_-4T-ZdH8WW=-YKWR(*ti<7;1Fm{Ehc`1AEOIRT=)Tg zl<~Bvgv3ea-nr-8d*;l1e!YJH*hSeu8YS)U1ju3z^9B~MsAEaTvOs!Yc`7^*NLH#% z0qw}YaRqX9<+LCX!UWUEi4Q1{!i-;{xh>K{-GZ`Hkk&F)Sl^SI-j{+{+IHjv5_ zC{?cOJ^3J=zVy0IBMg++-HR`iL6_sje`o>G;jRf74SyK4-I|JASby@{k)jD5867Jo zR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Infinity2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Infinity2/nbproject/genfiles.properties new file mode 100644 index 0000000..ac5c502 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9badc4c1 +build.xml.script.CRC32=848671a6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=9badc4c1 +nbproject/build-impl.xml.script.CRC32=5d1d9364 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Infinity2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Infinity2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Infinity2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Infinity2/nbproject/project.properties new file mode 100644 index 0000000..d56607e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity2/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}/Infinity2.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.7 +javac.target=1.7 +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=infinity2.Infinity2 +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/PrjJava/OCA7/Chapter4/Infinity2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Infinity2/nbproject/project.xml new file mode 100644 index 0000000..44c82c0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Infinity2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity2/src/infinity2/Infinity2.java b/PrjJava/OCA7/Chapter4/Infinity2/src/infinity2/Infinity2.java new file mode 100644 index 0000000..902131e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity2/src/infinity2/Infinity2.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package infinity2; + +/** + * + * @author andad + */ +public class Infinity2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + float f = 12.5f; + System.out.println(f/0.0); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Infinity3/build.xml b/PrjJava/OCA7/Chapter4/Infinity3/build.xml new file mode 100644 index 0000000..0b320cc --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Infinity3. + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Infinity3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Infinity3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity3/build/classes/infinity3/Infinity3.class b/PrjJava/OCA7/Chapter4/Infinity3/build/classes/infinity3/Infinity3.class new file mode 100644 index 0000000000000000000000000000000000000000..7dba39d644566ba0ecb8720352265e679ab8f104 GIT binary patch literal 698 zcmZuvO>fgc5Ph4h<2IPIO>k+UK--k!^vi-);ZVedC{m;dkb-jQX_LC?R*sEar&4b{ z!KpulBOHRn0q*=L#9N0_RjQ?#ot>HYW}fZee}4P~u#24{rtnDqx&Wr}7*C2=#)@&P z##L>s*?1~Yc%>tqz81)PwXT4C6CVZwGi@COZ%4ykkbF?RkePBj?yIn?5^e7Pk}^Hk zrvfg!j||QEuHU+f_DMEWIue-o4%#Q`O!=XT27V_^bTrt{hN)ygc;%L|fHsm}Rn8VvcC;t>n(M30XB_Y{*-QlN$uT*)|YrUmSerYYo`kX|Fx?KLMytJcK| zYU3$eJL7(Z2K-U(A23 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Infinity3/manifest.mf b/PrjJava/OCA7/Chapter4/Infinity3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Infinity3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/build-impl.xml new file mode 100644 index 0000000..0bc9bf9 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Infinity3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/genfiles.properties new file mode 100644 index 0000000..5ea9ea0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=93be48e7 +build.xml.script.CRC32=5b432315 +build.xml.stylesheet.CRC32=8064a381@1.79.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=93be48e7 +nbproject/build-impl.xml.script.CRC32=45eaeb52 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Infinity3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Infinity3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity3/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/project.properties new file mode 100644 index 0000000..96122aa --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity3/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}/Infinity3.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.7 +javac.target=1.7 +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=infinity3.Infinity3 +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/PrjJava/OCA7/Chapter4/Infinity3/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/project.xml new file mode 100644 index 0000000..20291ab --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Infinity3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity3/src/infinity3/Infinity3.java b/PrjJava/OCA7/Chapter4/Infinity3/src/infinity3/Infinity3.java new file mode 100644 index 0000000..04994fa --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity3/src/infinity3/Infinity3.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package infinity3; + +/** + * + * @author andad + */ +public class Infinity3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + float f = -1; + double d = 0; + int i = 2; + int i1 = 0; + + System.out.println(f/d); + System.out.println(i/d); + System.out.println(f/i1); + System.out.println(i/i1); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Infinity4/build.xml b/PrjJava/OCA7/Chapter4/Infinity4/build.xml new file mode 100644 index 0000000..9efd590 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Infinity4. + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Infinity4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Infinity4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infinity4/build/classes/infinity4/Infinity4.class b/PrjJava/OCA7/Chapter4/Infinity4/build/classes/infinity4/Infinity4.class new file mode 100644 index 0000000000000000000000000000000000000000..2fdf318a8ff3d87f1038f6b0ed86a1b85f35a5ca GIT binary patch literal 1496 zcmb_cOHUI~6#gzVom<)w6;X@Nq9QE_t#5gVFMLBmYcSx#+|mID%Z%2k2`zDmn)qM*1>$$7MOtNP)7*QW-#Onsr~Urx(^mjTaU%v3*=8KZktmKz9J8MN zq=TOrT5#N2`J`CdM))3>bSX7UrK>?sH?W2=;#b%ND>Un%G1sdQ z#wgxpn2}RCCKtmiqOT(Y8}fmgxj&{Jgndiw;d@A&l{hDHULcnDE9DvIlBG%L}Q%qfpnvaG7wP19;5 z?di}VF{V4n*%-$JUwoZ;(Hb`G`k4t%DBzqNwb0OIb##9XtjdqGsNL#aA%zE#f#y>OzL{!rgN!G z*5tx(UYpc;-!C~TT-fRQc4~IwSkA+WD(Q`{?`O66G&-<_KT-W@g3yb@a~rh`Z^1j# zy$ta_bZ_Trg+?0*%62sX?bt!B89T9y7AA`y)NI<`d_YsH5%~gh%4kF6BV>NcY(rEF zONiZWxza^3*M@k%nJ_6XVMD*w%QIp5{n3OD9Eg2J%Tyw|jEw_vjkigLcwGteZ!2T7xcp5r7s zOoA6lae@S2lcJ`66H%UTup4`Lci<^AlO%r-i`4cJwFd$A(`FK59tS8{L{jLa6eZp? zWB0M@1lPNZQXDBFy@0ubSwtn$hD5hv=#yVWBzhzcN%Zn7Rv7wkjMWgsAXfSxK;+fO If=$T$23s95J^%m! literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Infinity4/manifest.mf b/PrjJava/OCA7/Chapter4/Infinity4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Infinity4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/build-impl.xml new file mode 100644 index 0000000..c90a30a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Infinity4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/genfiles.properties new file mode 100644 index 0000000..af64052 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=abc4ec15 +build.xml.script.CRC32=298a94cf +build.xml.stylesheet.CRC32=8064a381@1.79.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=abc4ec15 +nbproject/build-impl.xml.script.CRC32=0f2e83d0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Infinity4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Infinity4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity4/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/project.properties new file mode 100644 index 0000000..e873ade --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity4/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}/Infinity4.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.7 +javac.target=1.7 +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=infinity4.Infinity4 +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/PrjJava/OCA7/Chapter4/Infinity4/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/project.xml new file mode 100644 index 0000000..29daa45 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Infinity4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Infinity4/src/infinity4/Infinity4.java b/PrjJava/OCA7/Chapter4/Infinity4/src/infinity4/Infinity4.java new file mode 100644 index 0000000..f8c2f4c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infinity4/src/infinity4/Infinity4.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package infinity4; + +/** + * + * @author andad + */ +public class Infinity4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here\ + System.out.printf("1.0 / 0.0:   %f%n 1.0 / -0.0: %f%n", 1.0 / 0.0, 1.0 / -0.0); + double zero = 0.0; + Double d0 = Double.valueOf(zero); + double zeroMinus = -0.0; + double d_0 = Double.valueOf(zeroMinus); + double NaN = d0 / d_0; + Double dNaN = Double.valueOf(NaN); + Double dNaN2 = new Double(NaN); + System.out.printf("0.0 = -0.0: %b%nobj(0.0) = obj(-0.0): %b%n Nan = NaN %b%n obj(Nan) = obj(NaN) %b%n", zero == zeroMinus, d0.equals(d_0), NaN == NaN, dNaN.equals(dNaN2)); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Infnity1/build.xml b/PrjJava/OCA7/Chapter4/Infnity1/build.xml new file mode 100644 index 0000000..ec6bc4f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infnity1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Infnity1. + + + diff --git a/PrjJava/OCA7/Chapter4/Infnity1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Infnity1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infnity1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Infnity1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Infnity1/build/classes/infnity1/Infnity1.class b/PrjJava/OCA7/Chapter4/Infnity1/build/classes/infnity1/Infnity1.class new file mode 100644 index 0000000000000000000000000000000000000000..28601aa176cc5c73b30956d14d59d3537885bae6 GIT binary patch literal 547 zcmZutTT22#7(Jt_o7=ixR_%VVg0zR0=p`^BNTNb2FnsB0w9Q8L66+fIv+ALshkigm zD*9$ML~3B?n{&?hojo&O-yfd<_OYcw#a#0EfDo+|=CPn*5lbqTRje>14}~YfBZhdT z+G0>n{5zW=(-5A0IdI!{aKqaUG5Lny;ZBPOLgF#0gb$+6U{d!zxeWKL^YNiZRxTGF zL#cAx=8mqnO@9z{>{B5#q<`IarJ;@)q*Scx zSi`!CvW^XGGUWbbVaQGbT(x_4C!C_1!+vPH^aB2XgyJZz@U3f#8d6}JyL25h@|dO> z)JNIm&^?t(z1l(hGRP7m yhcA#ooT^bk?CcfFw&A}aF>x^>)r5iqO&24#5(S_M + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Infnity1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Infnity1/nbproject/genfiles.properties new file mode 100644 index 0000000..5f97e14 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infnity1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=632185c7 +build.xml.script.CRC32=7edc8976 +build.xml.stylesheet.CRC32=8064a381@1.79.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=632185c7 +nbproject/build-impl.xml.script.CRC32=e8f96332 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Infnity1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Infnity1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infnity1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Infnity1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Infnity1/nbproject/project.properties new file mode 100644 index 0000000..a9b0c9f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infnity1/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}/Infnity1.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.7 +javac.target=1.7 +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=infnity1.Infnity1 +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/PrjJava/OCA7/Chapter4/Infnity1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Infnity1/nbproject/project.xml new file mode 100644 index 0000000..3b62032 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infnity1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Infnity1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Infnity1/src/infnity1/Infnity1.java b/PrjJava/OCA7/Chapter4/Infnity1/src/infnity1/Infnity1.java new file mode 100644 index 0000000..6b3ee1a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Infnity1/src/infnity1/Infnity1.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package infnity1; + +/** + * + * @author andad + */ +public class Infnity1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + double x = 24.0; + System.out.println(x/0); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Inheritance/build.xml b/PrjJava/OCA7/Chapter4/Inheritance/build.xml new file mode 100644 index 0000000..9267120 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Inheritance. + + + diff --git a/PrjJava/OCA7/Chapter4/Inheritance/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Inheritance/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Inheritance/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Inheritance/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Inheritance/build/classes/inheritance/A.class b/PrjJava/OCA7/Chapter4/Inheritance/build/classes/inheritance/A.class new file mode 100644 index 0000000000000000000000000000000000000000..1ca37d60c34732905358fd5c378276e6bcf68b9e GIT binary patch literal 499 zcmZvY%TB^T6o&tS!q8ge?p?thu&@gkE^17OiHQkO6Ab&IPGCrxno>-BEL~vY!Uyo7 zjHfLT7c}Wy&iwy(F5f?&UjWW=YJsC_A&;7gIvNG+SlGoL$3DjaL;g}}6Np^Aj|q|Oa-lRJ;fq1(-HUFgXrw9O0OO^*By!G|^%xszR+Xmel(RH zCHNN_yv`#zqeg-SJv91>SOv~QT*@E{rI=A=wGCkgp497W^0iZAl7(DKkKN7?EgB%F zfdU!&sccYlbaH8Dw42=zuw?wi<>o&5qmSCVvh6-%D*{K*sdW}D7eFeH8Z~}Tq YwrVVqTZ615XPqF84G@|EfikH40%S>EX8-^I literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Inheritance/build/classes/inheritance/Inheritance.class b/PrjJava/OCA7/Chapter4/Inheritance/build/classes/inheritance/Inheritance.class new file mode 100644 index 0000000000000000000000000000000000000000..5f2e572b799138f06fd1892dc72d2697b85e117b GIT binary patch literal 692 zcmZ{hU27Uq5Qg8guCA`DF|lgXw2kJ=k3zi2O-f236bgcrLW)pwbu^2fpu1sR1N~VI zsX_z&0sT=S?^zeLrM);`GiRQ8XXf|g&tCve(6W)nP6kQ5%-|JX+t@|bLd~XSNBj0H z>|V=T*&a)8*uDtq9G*pqWiTYF_zyRQ z%B7@Ll5?W%3x5_2+>c7@E3BnG))^dR;W)^^ws7F!5Jwj34jO0*RQ{va!4@2W+`9Xm z>@~&TrlC7wxBMB4DlKbKe*3eolI6H^LS@A$;7_xF6}4i_E|`r@vxgcdlIF|=7iDr! z@J`j-b9|k`hk+KH3_uBG`qHen NLdBdWw)r;j;t5pgf2;ri literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Inheritance/manifest.mf b/PrjJava/OCA7/Chapter4/Inheritance/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Inheritance/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/build-impl.xml new file mode 100644 index 0000000..1a6629b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Inheritance/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/genfiles.properties new file mode 100644 index 0000000..21eda6d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=95ed1ee6 +build.xml.script.CRC32=f269040e +build.xml.stylesheet.CRC32=8064a381@1.79.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=95ed1ee6 +nbproject/build-impl.xml.script.CRC32=e5321736 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Inheritance/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Inheritance/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Inheritance/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/project.properties new file mode 100644 index 0000000..576af0e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance/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}/Inheritance.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.7 +javac.target=1.7 +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=inheritance.Inheritance +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/PrjJava/OCA7/Chapter4/Inheritance/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/project.xml new file mode 100644 index 0000000..0c22914 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Inheritance + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Inheritance/src/inheritance/Inheritance.java b/PrjJava/OCA7/Chapter4/Inheritance/src/inheritance/Inheritance.java new file mode 100644 index 0000000..07559d5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance/src/inheritance/Inheritance.java @@ -0,0 +1,41 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package inheritance; + +/** + * + * @author andad, nu inteleg.... + */ + +class A { + + A() { + print(); + } + + void print() { + System.out.println("A"); + } +} + +public class Inheritance extends A { + + /** + * @param args the command line arguments + */ + int i = 4; + + void print() { + System.out.println(i); + } + + public static void main(String[] args) { + // TODO code application logic here + A a = new Inheritance(); + a.print(); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/build.xml b/PrjJava/OCA7/Chapter4/Inheritance1/build.xml new file mode 100644 index 0000000..3f9e376 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Inheritance1. + + + diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Inheritance1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Inheritance1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/build/classes/inheritance1/Inheritance1.class b/PrjJava/OCA7/Chapter4/Inheritance1/build/classes/inheritance1/Inheritance1.class new file mode 100644 index 0000000000000000000000000000000000000000..6451a10de5db7e563fdf176335cb0843984d8703 GIT binary patch literal 607 zcmZ`%%Syvg5Ir}2q>0hKY_;|Mq;+8sH$ugYA{2@Wm2O9C1WX1!Ib>L)>7MXqz+GFMn9Z4@L6ie7 zU50Y)q1ETl+;q6xHQRwN-EJfPB=@^SQv9RMptrryx5c%LG~{QQk0UYzDl#fI3~XXc z#kPSR?5fx^u#W?V%D=i8a#Jz4R$th`9Mpap24X;4@j_~p#>%B<-jVEp#0x$kYq>f8 zc4#pu&8uixQ}T&ZG8kj?91QAH#OTn1O10mo>K!taqTd%i3TPY|iW*fWWkxx5^bYnK zw{?o?7%X6c-i`49I{pH9P)&dIf@F3 EKiMpV*Z=?k literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/build/classes/inheritance1/Sub.class b/PrjJava/OCA7/Chapter4/Inheritance1/build/classes/inheritance1/Sub.class new file mode 100644 index 0000000000000000000000000000000000000000..053abd2861c4f192ad0d2a363629d417f66061f4 GIT binary patch literal 470 zcmZvYOG^VW5Xb-NYq#s#r|)OIwH{o=V~ZC-C=?M^dQaETMz-0KW(7Z%9uz$I0sK(n zWLs2GxN(NpI`4E04{Lsp@e!F4K!VBc-X|2gKY;p45gk_(p)m++npgp;VQWo z4Ap^D;wGJrgudgWn3TpKiFiEZTH1Ii7R*G>ZBD9*(9&=fiSr;#M_mTD7sX4o7bdBW z#I>}bdjC)D*#m#%J{-6Xc75z&pC;<779kuQ_&CH7Lv58#H?BxCp{dTof|#pu5I)U~ zn9`$?)G%xgvW!fETP>9djTU@LBR2n$8HzJoL|yGg+X84v9CtfIv{0nav@1uOCI>^A zynrktTReROd(P4xouy2yV2yl#Q9yQ`A{UjP=93HtlwXi*(x^)4Tpq<~ z{U{Av`@_6gmUK31f0bjiKBDy26}1REBw1H7$W36{2^c!Yh3y0{fc+m4znZc6`e*+ MSXT2wj9KV^11)7n)&Kwi literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/manifest.mf b/PrjJava/OCA7/Chapter4/Inheritance1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/build-impl.xml new file mode 100644 index 0000000..3a72a66 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/genfiles.properties new file mode 100644 index 0000000..924860e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=40ce54e2 +build.xml.script.CRC32=80bf7aaf +build.xml.stylesheet.CRC32=8064a381@1.79.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=40ce54e2 +nbproject/build-impl.xml.script.CRC32=cb778a22 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/project.properties new file mode 100644 index 0000000..b559dba --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance1/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}/Inheritance1.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.7 +javac.target=1.7 +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=inheritance1.Inheritance1 +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/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/project.xml new file mode 100644 index 0000000..7862061 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Inheritance1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Inheritance1/src/inheritance1/Inheritance1.java b/PrjJava/OCA7/Chapter4/Inheritance1/src/inheritance1/Inheritance1.java new file mode 100644 index 0000000..776fd5b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance1/src/inheritance1/Inheritance1.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package inheritance1; + +/** + * + * @author andad + */ +class Super { static String ID = "QBANK"; } + +class Sub extends Super{ + static { System.out.print("In Sub"); } +} + +public class Inheritance1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.println(Sub.ID); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/build.xml b/PrjJava/OCA7/Chapter4/Inheritance2/build.xml new file mode 100644 index 0000000..c6fd2fe --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Inheritance2. + + + diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Inheritance2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Inheritance2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/build/classes/inheritance2/Inheritance2.class b/PrjJava/OCA7/Chapter4/Inheritance2/build/classes/inheritance2/Inheritance2.class new file mode 100644 index 0000000000000000000000000000000000000000..dd2c2b2a3bc69c3b340667f0eb1090ba67b4bce7 GIT binary patch literal 633 zcmZuuO-sW-6r4?CqcOI%^;_#lRj9QZ(4*o-5QL})rD#2EV~8s?ftU(<^dEVtpdg<8 zQR1WuwrU{z_RX6&Ga>IE&#wSBv20=hGX{z#w4~0O&@p3T4)X~zZ(zYdNg%zg0u}EF zq{=Hb0ev^T@C34s3cSPCb;FBJWTQzW?}V;w)?}oT{u|WeOLZeKP4=Z1saOWCw_)#h zHCvRtmMRb!E1x@8@>beS8Tj^b9I3$H>R8Iir%2(Sv4FT2$o0yfQd8UsXm=ZbW_8ZY z(6!4Aq2CV)jtR$_O3E6TjCYSc8b*cA{w< z$Sai?l&=>!$0PA1JlH7M*!Hl4T>|xN?0MM70in2T$R!ei9|}G2Z~G$|m?fz5JTY?2 zcZjBZP-~}T75R6u(xzi#DaPDW^&gmEKPIG5v#v1{rd3#_^q|%3;t)B0y<}KCxn&R> z-uWDfWA5l3^pYOCyyjET!wT=c8G+*}XF%~+e8y&p*m;Fj$-E)^XW*uFN=z*;m^gD2 K{u`EADE$CzFKm|nLU=V(jpwnL%-i97^8^bbfZ~3 zl;?4(`N*aABcnVco?BHVM?Xu;pSKJA~42!@s}{_e>o8K!hW|`#9Bd!Z(O! zno#Sc6&3kcu?lrp$5KrAMAd&_f_0yef{=C1Oqf|}hDYsI4|~Y-+a<%`$p;3(=FI0v z9P|6Hpr^F#@LEX0Dwa5RGXlqD-T|d=@iChvV*43}mwSQvW8kEH>P&4cnAmd@{u!1T GD1QM|eOs3R literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/build/classes/inheritance2/Z.class b/PrjJava/OCA7/Chapter4/Inheritance2/build/classes/inheritance2/Z.class new file mode 100644 index 0000000000000000000000000000000000000000..bbcd365a4e90613e75c410051e24bb4158045e5e GIT binary patch literal 475 zcmZuu%SyvQ6g@Y6q=~WiVSQ9>UA8U^=)y(CjUWg?gh;{ergdniq=}?c!Ozl#f(t*u zj}mXvqE#H2xp&Sz=iGUGe7?N{I7ZV(9%Ty^R0~+QQNxCbO%q#${HY3+J|kpW?JgmE z9^Fa8nx{f}HJkKhd?We+BNZu(hX$ee+wd=N%RLhZHxS{_^&h8NPWT4V zOcQEeT2YaE9jj3LI+kL>C#wDf6U_UB6ojm6&4qJI&G4|(?qVM~e!FBCJo&&NSe&^W ziDT~I74(#rZC>*!SjP(I&YZw;m3Kh#TYSQ1iP(CEQOUd@`(t3IeHu({E}2*h6aE>N H87O@LU4mP% literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/manifest.mf b/PrjJava/OCA7/Chapter4/Inheritance2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/build-impl.xml new file mode 100644 index 0000000..321a4d8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/genfiles.properties new file mode 100644 index 0000000..0c06c1a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=58fac088 +build.xml.script.CRC32=779328b4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=58fac088 +nbproject/build-impl.xml.script.CRC32=4d850b36 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/project.properties new file mode 100644 index 0000000..6fc43da --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance2/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}/Inheritance2.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.7 +javac.target=1.7 +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=inheritance2.Inheritance2 +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/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/project.xml new file mode 100644 index 0000000..62cf3ec --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Inheritance2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Inheritance2/src/inheritance2/Inheritance2.java b/PrjJava/OCA7/Chapter4/Inheritance2/src/inheritance2/Inheritance2.java new file mode 100644 index 0000000..21dbd8b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Inheritance2/src/inheritance2/Inheritance2.java @@ -0,0 +1,49 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package inheritance2; + +/** + * + * @author andad + */ +class X +{ + void go() + { + System.out.println("X"); + } +} +class Y extends X +{ + void go() + { + System.out.println("Y"); + } +} +class Z extends Y +{ + void go() + { + System.out.println("Z"); + } +} + +public class Inheritance2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + X z = new Z(); + X y = new Y(); + Z y2 = (Z)y; + z.go(); + y.go(); + y2.go(); + } + +} diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/build.xml b/PrjJava/OCA7/Chapter4/InstanceOf2/build.xml new file mode 100644 index 0000000..0820ad7 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project InstanceOf2. + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/Bat.class b/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/Bat.class new file mode 100644 index 0000000000000000000000000000000000000000..8809f0d57e6880c665013f563bd977ef0fc0a4d3 GIT binary patch literal 266 zcmZ8b!HU8_41KY+)mpde7kG3%Y(bC89ux#Y^q}-Ut>ZdUTd1S|2HG7`-}+oG~Y@>uuz#?o{zCCHX=@$=`8X@ zq>(6;nct+X_v%Dwv-+e(mdJcJ2q!|12;MqB7m1uHV{Xmg`_*pnbr2Wf!$y_Q{PVHW zY{OJ!KjA7q$V8)y3jb?@IN8SCVH9#VOtpUlT^Us1a&<~FK#j5g5}*!`CqkoC`A_qT BHAMgb literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/Bird.class b/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/Bird.class new file mode 100644 index 0000000000000000000000000000000000000000..ef67c75e05faac8f98fce5c7903945ac3a31ca8e GIT binary patch literal 293 zcmZ9H!AiqG5QhIrYNBbY;&nRC=fo5Q;gp^u9^Ax*=|0lL&pRo(dj(03S-6 z)gHvd&g}pF|13M7U+*6PZZQquV&r4&W8xzwc=t-HZccEot~Z3iL$j5H@lt8|)V~(e ztVK~XnJ$}B)Ei-x)h9UUUQ}y6rQ1&EQZ~CZStzr;BLu6aH>J#!ot`|N0{JeTRpL#A zID^Oh{~#l4C$-SeNnTX4>VSxGE>fR7TdWg#)i%)9U8 z++?1w`vX7+wuv+f28sqs1ihzx74-?}dSgYN>k;_+4;DZ;Zm$UCY5R63U4Js z74KiDMSFE3RM|d7!gpn`b=o7b^JJG`E`oFD%CU;;_T+2Kw@&LIF2aI_459qjWcQa1 uRJcJ6DgJYOh%Xm;>YUmG$XyN#Ii(2 z2Ek0IP=1<`zFSUZY7tNwNJ>8^F)v-;KPf9UxrB{@fsug;XfOycGB5*4CI%J&d@dSE literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/InstanceOf2.class b/PrjJava/OCA7/Chapter4/InstanceOf2/build/classes/instanceof2/InstanceOf2.class new file mode 100644 index 0000000000000000000000000000000000000000..4b2f44bd4f29bf371eaa1fde477a8b814a5a3fff GIT binary patch literal 590 zcmZ`$%TB^j5Iq+Pg<5$jFW>kqE^Gu{VN48(2?-Gs3>#OMTHq3BO(`aRmM$=H;RpCp z#%Un|676E{oilgNoHPCY`TPP@b9{geBZ-hM-n# zF-TSW$z+Jvg=OB2hi%h&;Ozk+sk&|OL5n-W%V(hE_QZ%GPp?NVw+z$nl=Rx{-sqGn zL^$NaV#sKZ^*(>$`hZ(qz3Do_>Q?-L-02d<+8<>GrD=~H!@L!qg2V#xna8Cff~bsL z6?-T!gw9Lli%S{%Dh_Zc<4DCZP8hQPh$F_iqDH%K8txL*d>y&wkQQT)sgRz^7q)&+ z+Ff#B@*(+K;F!9il^Q+n+)$6C)rwW}=8swKWRRado&oJf(yGN43JBAm^1c9==ZvC4 znNBC8Gj#d^_U4yYD29D736<{Z^Z`~8qb!Oz5`=ioR|xvG*gFELU?Mz$G(l+2qR=oP TN1gcvrWle)5l+%62C)7M9qf6< literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/manifest.mf b/PrjJava/OCA7/Chapter4/InstanceOf2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/build-impl.xml new file mode 100644 index 0000000..bd2e98e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/genfiles.properties new file mode 100644 index 0000000..ef9a172 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3d488f05 +build.xml.script.CRC32=7729ec0e +build.xml.stylesheet.CRC32=8064a381@1.79.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=3d488f05 +nbproject/build-impl.xml.script.CRC32=d2592afe +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/project.properties new file mode 100644 index 0000000..ebae1c2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf2/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}/InstanceOf2.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.7 +javac.target=1.7 +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=instanceof2.InstanceOf2 +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/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/project.xml new file mode 100644 index 0000000..c1bd8b8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + InstanceOf2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf2/src/instanceof2/InstanceOf2.java b/PrjJava/OCA7/Chapter4/InstanceOf2/src/instanceof2/InstanceOf2.java new file mode 100644 index 0000000..5d65e2e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf2/src/instanceof2/InstanceOf2.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package instanceof2; + +/** + * + * @author andad + */ +interface Flyer{ } +class Bird implements Flyer { } +class Eagle extends Bird { } +class Bat { } + +public class InstanceOf2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.println("12345".charAt(6)); + } + +} diff --git a/PrjJava/OCA7/Chapter4/InstanceOf3/build.xml b/PrjJava/OCA7/Chapter4/InstanceOf3/build.xml new file mode 100644 index 0000000..abb7016 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project InstanceOf3. + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/instanceof3/A.class b/PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/instanceof3/A.class new file mode 100644 index 0000000000000000000000000000000000000000..bfaf788d81fb3003cd6c4ed0d6b1c2333da188c4 GIT binary patch literal 306 zcmZ9H&1%9>5QWdg=(X`L+CG5G)+Nk%#SERC) zj1nfDc^b=PEi-NB8+7wey}zpWxiqm#w_z}TBY4a7ki}}Mt<|5I>vpjXUw86b)=_~V zH1v%ZF4oyykVx|pETWx?b3*gKWYxb119ai=PYzs^`95@p0NF>5SV?S!dNVQ3o_p*{$cmNM2ZnX=sn0x1Z z=iJGi*Zc7V;K0(6M_q%dp`oEkC=FGh;t?U=?raE!X}FUFbD;vcyqvZ&a>dqXVl6^X z_!|+aL}#!NAJjQbpJNetGTb}%WI)i@;U)6qOeLd@d62rRz0*62tEi!f62VXz|4#ks zF`@qJyM45flhmuC+7(9aUDuI!PHHGx9gM literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/instanceof3/InstanceOf3.class b/PrjJava/OCA7/Chapter4/InstanceOf3/build/classes/instanceof3/InstanceOf3.class new file mode 100644 index 0000000000000000000000000000000000000000..ec64114982f1fa2d8d17e56a0b40571c170d46de GIT binary patch literal 794 zcmZuvT~8B16g{)ucG_hrwY7ZsQCdJ<5V~r8!2G*vTa+t)N%h&#vz+Bp&s>u#6HQ4JO`Cf8`>U3YScz1?O`y3{1c4z%J zj1yQtkTXvqiSj3yA}SY7Vd*Lv=qj_w@?1n7b>aqUSi%OkR#&Z0GBak5D9_!U#{%n? b7G-JK2#Ii(2 w2EI(FP=1=ReuyDZ4MG-JK2#Ii(2 w2EI(FP=1=ReuxoJ4M + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/genfiles.properties new file mode 100644 index 0000000..756cb9f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=355b0323 +build.xml.script.CRC32=96546764 +build.xml.stylesheet.CRC32=8064a381@1.79.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=355b0323 +nbproject/build-impl.xml.script.CRC32=e4d10482 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/project.properties b/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/project.properties new file mode 100644 index 0000000..2f45d1d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf3/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}/InstanceOf3.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.7 +javac.target=1.7 +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=instanceof3.InstanceOf3 +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/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/project.xml b/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/project.xml new file mode 100644 index 0000000..78581f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + InstanceOf3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf3/src/instanceof3/InstanceOf3.java b/PrjJava/OCA7/Chapter4/InstanceOf3/src/instanceof3/InstanceOf3.java new file mode 100644 index 0000000..e729633 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf3/src/instanceof3/InstanceOf3.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package instanceof3; + +/** + * + * @author andad + */ +class A implements T1, T2 { +} + +class B extends A implements T1 { +} + +interface T1 { +} + +interface T2 { +} + +public class InstanceOf3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + A a = new A(); + B b = new B(); + if (b instanceof A) System.out.println(true); + if (b instanceof T2) System.out.println("strange"); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/build.xml b/PrjJava/OCA7/Chapter4/InstanceOf4/build.xml new file mode 100644 index 0000000..45e2c56 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project InstanceOf4. + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/A.class b/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/A.class new file mode 100644 index 0000000000000000000000000000000000000000..ba012cdf9f6bfdb087122e51b3e1adc0c9035a5a GIT binary patch literal 262 zcmXYr&kn&r5XQfuTB`oU6FB0a2W~_n5{X1O5ch2@R%)A6c`ql4g9q?XVzxEO&V2Km z?@RXceZ2t;&~#Bm%|YEkgJ6%9R_TOL>~wboYZmV%p|Mn2u5On=CR-6iOj^r06wyv3 z%Itq=r6+aG-Pcs;P{xO$KOGU=O?*p2IaemyT*@_vcXGnfDX literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/B.class b/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/B.class new file mode 100644 index 0000000000000000000000000000000000000000..924aefc7102fae4ea1303f8cae6afd76b2d52b13 GIT binary patch literal 259 zcmZ9G%?`mp6ot>FKUAyY2`sT-!H!6fNF)slVn1rc2yN0I?`0*i@Bki4+_qLGnYrhD z_nc(jpXUp}01XReI40^QT!JxHfl4NXa=Wu5X!GzO39hFCxk|5l8EwV>!ldbizPRi} zq%!}5T5?ixk&Y7)_%b{W`?C?j+JtH3%Z19Sjb%`5*T-S+EN;Sv2A$xjAJ1EVeu@@K p{L${2DoQP+@Hs0aRhJBh>Pg{RNq8GHn0= literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/C.class b/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/C.class new file mode 100644 index 0000000000000000000000000000000000000000..321a2ac98bdddafd9c9dc5ff5a21ad9efce97664 GIT binary patch literal 259 zcmZ9G!4APd6h-gTYN^u37g%D!f*r9Skw_XAr2A=2V}v%T@?TaG3m@R4#A|D1l9_k! zdG{vs{ybj*MsO`?Xqsr5a0td!#VVT-v~JHQ=!;}8367^?xxStQneIezV$$}KP@H^` zs@(seo*mSsOkXk)hcb!A!^MPPZIf#n%B9My?kX;~n`k^Zikq;Zqe^J1A1_*eevS?* p{L%anUvBU;SPgmRq}qRg?kp-W`85jILXEXu22h8^j?gGl_7|GkGI0O^ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/InstanceOf4.class b/PrjJava/OCA7/Chapter4/InstanceOf4/build/classes/instanceof4/InstanceOf4.class new file mode 100644 index 0000000000000000000000000000000000000000..b6db416fd8085fbb30dcf19ef2e0000f03833461 GIT binary patch literal 616 zcmZ`%O-mb56g_t`X3TVK)aWF!wY9ZMwBRhvE=3SQD8#mq640)mag47fGcuV7{VDzo zyJ$c`=(fM9l%6+nkxHG#z3<$QbMAffe*L+*1F(&C7Y-^8sxB=Ps7H z{+*6=x+BQdHrfJvFFpwc#iowJ55xX(n0!{pJx1o6aYyyqD$xet2krDs4+K?K4^kC% z!uYfvyuUwxJgqlK*jG9d__Z(1uj*0-Jr#9>R+{Lj+sFh}(j`UdKWTwz!AvVvo$~{A zk!f-ff!m6QNhjRbX0X`_y)7f*VHyQN`H`8(IGNdXu;SqrUOQOz@CIuS@_SU682sBH z4g0*Tc$f+n$1CYL_{4ouZWXFNcP?cO|Aqz5g(>RsGVI#XMw^-ze~tMph?$wzB?{<; zerj_Bxz5s0X!BWc4j#|mxBxSFN>o4*vy7PLkYpBp`4-mU2)X9lpRljse#eyk19?N2 sgQ1&;O0`@|EGXMYp literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/manifest.mf b/PrjJava/OCA7/Chapter4/InstanceOf4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/build-impl.xml new file mode 100644 index 0000000..5b8615c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/genfiles.properties new file mode 100644 index 0000000..fabc3f8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0d21a7d1 +build.xml.script.CRC32=5db7ddb1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0d21a7d1 +nbproject/build-impl.xml.script.CRC32=6569cff6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/project.properties b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/project.properties new file mode 100644 index 0000000..6834617 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf4/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}/InstanceOf4.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.7 +javac.target=1.7 +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=instanceof4.InstanceOf4 +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/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/project.xml b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/project.xml new file mode 100644 index 0000000..6ef0b9c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + InstanceOf4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOf4/src/instanceof4/InstanceOf4.java b/PrjJava/OCA7/Chapter4/InstanceOf4/src/instanceof4/InstanceOf4.java new file mode 100644 index 0000000..5e2d751 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOf4/src/instanceof4/InstanceOf4.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package instanceof4; + +/** + * + * @author andad + */ +class A {} +class B extends A {} +class C extends B {} + + +public class InstanceOf4 extends C{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + InstanceOf4 i = new InstanceOf4(); + if (i instanceof A) + System.out.println(true); + } + +} diff --git a/PrjJava/OCA7/Chapter4/InstanceOfOperator/build.xml b/PrjJava/OCA7/Chapter4/InstanceOfOperator/build.xml new file mode 100644 index 0000000..e29a60e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project InstanceOfOperator. + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOfOperator/manifest.mf b/PrjJava/OCA7/Chapter4/InstanceOfOperator/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/build-impl.xml new file mode 100644 index 0000000..5188f93 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/genfiles.properties new file mode 100644 index 0000000..4293f07 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=fbe001ef +build.xml.script.CRC32=1a478779 +build.xml.stylesheet.CRC32=8064a381@1.79.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=fbe001ef +nbproject/build-impl.xml.script.CRC32=722f5170 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/private/private.xml new file mode 100644 index 0000000..2eee429 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/private/private.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/project.properties b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/project.properties new file mode 100644 index 0000000..16d60ce --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/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}/InstanceOfOperator.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.7 +javac.target=1.7 +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=instanceofoperator.InstanceOfOperator +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/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/project.xml b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/project.xml new file mode 100644 index 0000000..48a582c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + InstanceOfOperator + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/InstanceOfOperator/src/instanceofoperator/Cat.java b/PrjJava/OCA7/Chapter4/InstanceOfOperator/src/instanceofoperator/Cat.java new file mode 100644 index 0000000..af9e4eb --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/src/instanceofoperator/Cat.java @@ -0,0 +1,15 @@ +package instanceofoperator; + +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author anda + */ +public class Cat { + +} diff --git a/PrjJava/OCA7/Chapter4/InstanceOfOperator/src/instanceofoperator/InstanceOfOperator.java b/PrjJava/OCA7/Chapter4/InstanceOfOperator/src/instanceofoperator/InstanceOfOperator.java new file mode 100644 index 0000000..d4c8a96 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/InstanceOfOperator/src/instanceofoperator/InstanceOfOperator.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package instanceofoperator; + +/** + * + * @author anda + */ +public class InstanceOfOperator { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + InstanceOfOperator o = new InstanceOfOperator(); + //System.out.println(o instanceof Cat); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/build.xml b/PrjJava/OCA7/Chapter4/Instanceof1/build.xml new file mode 100644 index 0000000..6c9a623 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Instanceof1. + + + diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Instanceof1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Instanceof1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/build/classes/instanceof1/Instanceof1.class b/PrjJava/OCA7/Chapter4/Instanceof1/build/classes/instanceof1/Instanceof1.class new file mode 100644 index 0000000000000000000000000000000000000000..90d378534504b0e8d7fdf6abe3c256c909ac277f GIT binary patch literal 870 zcmaJ=*>2N76g`v8i7~WfYYXW@*_@Qtl(IYo`T!DAr3jExMWQ@SoFTY!?8tGDc;%1a zA(cQv;+2m=oN+3ZGzCj@@11j(bLV>I*Y9sX0PNw32@C56HVU|bO#?SgWU#KqtvqgP zeMgJCCT!FVGz@GBk}!qLRb178F_kt z3TEOD-bi4D(W6)ft_t7pItOQVlLZIT3k0h6yVkM%C>>u0eWx8qUeIqQgfi;0MCk&z zfRLJaE{~2b*AbU1V79|?&*y)vT*TPn zeY?cFr@s`0o;c+KcMi3n&NfaUz9jBN%3K0kxJuia2B3%%cLkJDA)=E%BhBjyG(=1M zMC#cV#r{{Mza#VZ1ligIxuP*aewD@qg$c|vhAOhmEU}$33|6#IMIFltV`EyC$P!~x bd=1N3Atzr9uHiZn3u~y+N)ug8V%GiuQYyg< literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/manifest.mf b/PrjJava/OCA7/Chapter4/Instanceof1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/build-impl.xml new file mode 100644 index 0000000..26df993 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/genfiles.properties new file mode 100644 index 0000000..5119650 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=04528969 +build.xml.script.CRC32=4cb80aa0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=04528969 +nbproject/build-impl.xml.script.CRC32=b99fce15 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/project.properties new file mode 100644 index 0000000..a6e0c3c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof1/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}/Instanceof1.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.7 +javac.target=1.7 +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=instanceof1.Instanceof1 +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/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/project.xml new file mode 100644 index 0000000..93b8074 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Instanceof1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Instanceof1/src/instanceof1/Instanceof1.java b/PrjJava/OCA7/Chapter4/Instanceof1/src/instanceof1/Instanceof1.java new file mode 100644 index 0000000..a46e66f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof1/src/instanceof1/Instanceof1.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package instanceof1; + +/** + * + * @author anda + */ +public class Instanceof1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String a = null; + boolean b = null instanceof String; + boolean c = a instanceof String; + System.out.println(b + " " + c); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/build.xml b/PrjJava/OCA7/Chapter4/Instanceof5/build.xml new file mode 100644 index 0000000..60472ad --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Instanceof5. + + + diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/A.class b/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/A.class new file mode 100644 index 0000000000000000000000000000000000000000..8fd28d6bb770f5c43ba43a38e439227d7612ebb9 GIT binary patch literal 262 zcmX^0Z`VEs1_omW0WJn+23~dsK6VCvMg}&U%)HDJJ4Oa(4b3n{1{UZ1lvG9rexJ;| zRKL>Pq|~C2#H1Xch>%Zya$-(cVo@fD4;5r7$;d2*s4gx^%u7zqPczkbv}R=B3eGPr zN=|jl1ZfrU%!AA7WhIs+@-VP4urf06W+KG(9f9gVa{4)mdFlH8Nm;4MB@7A-OhC7S z03#3sH34ZhAWI)egG5-hwlgqp1TvTy*nuP)SdfQ-1IXrqC}7}Z-~#d(8Mwi!cmSKZ BGrIr) literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/B.class b/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/B.class new file mode 100644 index 0000000000000000000000000000000000000000..c149bd327b254b7d0d4bc9d373b5077e11e0fcbe GIT binary patch literal 259 zcmZ9G%?`m(5QWdsAF8zR1eRFnLac}ci9{kc#Qv%)uFxiJc`qx8g$M9ZV%iFcN$$)! z-<(PA^L2j!=)$#7MAbyighMa}Dp1LgP;9o=1Z@&-CBd1iKrYUwjf_@eb7WGVhrT$j zMWj;yfm*Uxah{G75%@CP^}KPPU@gOQApQGm(a$e@D~Yda6142vD1lBMi7t9vq& literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/C.class b/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/C.class new file mode 100644 index 0000000000000000000000000000000000000000..40ac1fb6f1ae7645df69d472c55293f4a60e1122 GIT binary patch literal 259 zcmZ9G%?`m(5QWd^A5|)S0!u7(Ay&jf6NyA@NcUG=afLQ%%X?W#EIfdR5>tf4BzNYV zZ_Xt5{ zsVe*j>iJe>?{t=nIFiYx?*{{dy-1E}BqypkZA|0uw!0H2;XsE$sHq?KgFin;6D9s= nQN)igc$%zyo&_;F7tonS2^M$r1wE8mJMRE0u-Or+uaxrytt2v; literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/D.class b/PrjJava/OCA7/Chapter4/Instanceof5/build/classes/instanceof5/D.class new file mode 100644 index 0000000000000000000000000000000000000000..e703866b1083b768ecadab7f444489a5720a5cef GIT binary patch literal 259 zcmZ9GK@Y(|5QX1REmbrUcSjubAWp3v%(R%ny9{4XbogCF2WiKz;SNp|MF zZ{8&Pc;4;+2Cz*OQ8Q3C&>-kz6{>VXD0aFYL7PS!NoXuoD3_!>NH ztJqMnsi2|4QgBDXU4iUl*K@;NfwZ}PERZ?y-#Y>`P1kc?4ti}Tcq7|gGR3BE%kHrZ z+z1cJO!(353shL$52a^2{)a8=#c037fj#MZ0(0iO=860)t*-PsRx1o#ud@>$D1#11 zlrBjNh;|}nG<=^Ug`8yf$WFIHX@5GBr?EEPmIerDEq@T$&Y>IKp)e+`5vkEJg92N} z zok4ty(?zb?m|Q@Kdp#+@6_kl`n8Q4osQH}3(u~i4A@%kQ>1O?C;~bf<$bZLFG5Z4w zp*n=Q1g3^iOJIHob;9WQG@|1h$a7tUiYhc}pT#mNSRq=4i8ZP=v5gvbQO6-RW0}=N p3Km!ic0R>bT%%A8PjDSKDD@_J1DU_5C|FcbH4KCKC9)|j{|5xAvC;ql literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/manifest.mf b/PrjJava/OCA7/Chapter4/Instanceof5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/build-impl.xml new file mode 100644 index 0000000..c2aed17 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/genfiles.properties new file mode 100644 index 0000000..23eb87a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=241cb9f1 +build.xml.script.CRC32=7fac2b8a +build.xml.stylesheet.CRC32=8064a381@1.79.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=241cb9f1 +nbproject/build-impl.xml.script.CRC32=63bf77e5 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/project.properties new file mode 100644 index 0000000..948c347 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof5/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}/Instanceof5.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.7 +javac.target=1.7 +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=instanceof5.Instanceof5 +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/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/project.xml new file mode 100644 index 0000000..73352ee --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Instanceof5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Instanceof5/src/instanceof5/Instanceof5.java b/PrjJava/OCA7/Chapter4/Instanceof5/src/instanceof5/Instanceof5.java new file mode 100644 index 0000000..69335c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Instanceof5/src/instanceof5/Instanceof5.java @@ -0,0 +1,47 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package instanceof5; + +/** + * + * @author andad + */ +class A { +} + +class B extends A { +} + +class C extends B { +} + +class D extends C { +} + +public class Instanceof5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + B b = new C(); + A a = b; + if (a instanceof A) { + System.out.println("A"); + } + if (a instanceof B) { + System.out.println("B"); + } + if (a instanceof C) { + System.out.println("C"); + } + if (a instanceof D) { + System.out.println("D"); + } + } + +} diff --git a/PrjJava/OCA7/Chapter4/Int1/build.xml b/PrjJava/OCA7/Chapter4/Int1/build.xml new file mode 100644 index 0000000..38dfefd --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Int1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Int1. + + + diff --git a/PrjJava/OCA7/Chapter4/Int1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Int1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Int1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Int1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Int1/build/classes/int1/Int1.class b/PrjJava/OCA7/Chapter4/Int1/build/classes/int1/Int1.class new file mode 100644 index 0000000000000000000000000000000000000000..4e45255d2b8b067ec5cf0d3ded09fecb746d5418 GIT binary patch literal 658 zcmZuvT}vB56g`tovdLyOHZif*kFMJ4s?a6sn^I~Ef)Lw6N?!UjiAx;2AF^%)|AK$S zhd#9r3O@7)^f#5_nT;p`2j+g9x%ZxXXXfw!yFUQ7;aVtR)l0b1!MJjzSV7TjDf&8cV*cYg_RpfsjhCM&|CVK&qT08E`peqxl{Rc3go~Uzy z3Zv7OcSy0z5}{O)K-2x+K9v{J3uH9#I%%S!!EQz&lL3?J&m0RBE@Utyoj4Sj=%lj$ z<4B%8uvwjWnDqSvrTZysws)GqMj4igWg9Da!)ErKPz8aCBd2BJt<zjiFmie(YCZ z>Z!>uy;HxRjzOKv^VAP{JMoYQjnPCZ_P%nQltcM4-47Kpa~Z<*u*UV)I!GJ9C4t= Z7@gB%T!S4n>6KvogCqDRf?1mR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Int1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Int1/nbproject/genfiles.properties new file mode 100644 index 0000000..1af73ad --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Int1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e19cfe6e +build.xml.script.CRC32=3160f66b +build.xml.stylesheet.CRC32=8064a381@1.79.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=e19cfe6e +nbproject/build-impl.xml.script.CRC32=ebc0207b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Int1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Int1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Int1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Int1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Int1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Int1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Int1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Int1/nbproject/project.properties new file mode 100644 index 0000000..388de6e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Int1/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}/Int1.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.7 +javac.target=1.7 +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=int1.Int1 +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/PrjJava/OCA7/Chapter4/Int1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Int1/nbproject/project.xml new file mode 100644 index 0000000..3c9e046 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Int1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Int1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Int1/src/int1/Int1.java b/PrjJava/OCA7/Chapter4/Int1/src/int1/Int1.java new file mode 100644 index 0000000..d03ffa4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Int1/src/int1/Int1.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package int1; + +/** + * + * @author andad + */ +public class Int1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int value = 1000000; //1 + switch (value) { + case 1_000_000: + System.out.println("A million 1"); //2 + break; + case 1000001: + System.out.println("A million 2"); //3                  + break; + } + + } +} diff --git a/PrjJava/OCA7/Chapter4/IntOperation/build.xml b/PrjJava/OCA7/Chapter4/IntOperation/build.xml new file mode 100644 index 0000000..b10dd0a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/IntOperation/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project IntOperation. + + + diff --git a/PrjJava/OCA7/Chapter4/IntOperation/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/IntOperation/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/IntOperation/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/IntOperation/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/IntOperation/build/classes/intoperation/IntOperation.class b/PrjJava/OCA7/Chapter4/IntOperation/build/classes/intoperation/IntOperation.class new file mode 100644 index 0000000000000000000000000000000000000000..ba17ea878a9b0e343cdcc2d73642a32949d40a79 GIT binary patch literal 812 zcmZ`%+int36kP{q7{Sp(5ekA)M<7@$2{mz#3LFxPav}ZlIRIP25uEwla5=xohB_ zfx19y!||MOQy^Jy^aZq+{>TUiPqU$V}Yu5>(sV*PFRKz@+cM0#VZ7Y2?uUXMn~V9X}@e}q}go}4Z^ zR4QG6>V*PE{CGt7_9+d5@yWNm>=&z}ZEyX~kAa_4oeC@Ch=$QWptXyU$s2PPh3 zMHx$(mNFbt{_k=E*|Uvy2M6|$>dv`(ACE%Y;Y^-DmgWoR#wSwun9o8KY6Mq!gS6*)~@;@gZ9 za2X3^X=IV3M-~4>GHSY)&1`6u>}aCxj}(la&aqD~=IECv`W*lK*!YG-b%rFNHiJee z=`-lWC1ZxvnXD#t19^_ULJ47gy$&X70TGbRrFE8dsHLon_L9g!y;?Is&}j_ kP<)P=MZOa3@Qn2(##+2Zne{rmEwe|J7ZbR~x&*HO2Ds{=WdHyG literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/IntOperation/manifest.mf b/PrjJava/OCA7/Chapter4/IntOperation/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/IntOperation/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/IntOperation/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/build-impl.xml new file mode 100644 index 0000000..8626735 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/IntOperation/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/genfiles.properties new file mode 100644 index 0000000..7a6514e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a98b97e7 +build.xml.script.CRC32=ff357397 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a98b97e7 +nbproject/build-impl.xml.script.CRC32=dd01831e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/IntOperation/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/IntOperation/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/IntOperation/nbproject/project.properties b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/project.properties new file mode 100644 index 0000000..6dd31ed --- /dev/null +++ b/PrjJava/OCA7/Chapter4/IntOperation/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}/IntOperation.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.7 +javac.target=1.7 +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=intoperation.IntOperation +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/PrjJava/OCA7/Chapter4/IntOperation/nbproject/project.xml b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/project.xml new file mode 100644 index 0000000..ebe8bda --- /dev/null +++ b/PrjJava/OCA7/Chapter4/IntOperation/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + IntOperation + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/IntOperation/src/intoperation/IntOperation.java b/PrjJava/OCA7/Chapter4/IntOperation/src/intoperation/IntOperation.java new file mode 100644 index 0000000..692c122 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/IntOperation/src/intoperation/IntOperation.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package intoperation; + +/** + * + * @author andad + */ +public class IntOperation { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int rate = 10; + int amount = 1 - rate/100*1 - rate/100; // the result can be long, int, float, double + long amount1 = 1 - rate/100*1 - rate/100; + double amount2 = 1 - rate/100*1 - rate/100; + float amount3 = 1 - rate/100*1 - rate/100; + System.out.println(amount); + System.out.println(amount1); + System.out.println(amount2); + System.out.println(amount3); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Interface/build.xml b/PrjJava/OCA7/Chapter4/Interface/build.xml new file mode 100644 index 0000000..f3ad315 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Interface. + + + diff --git a/PrjJava/OCA7/Chapter4/Interface/manifest.mf b/PrjJava/OCA7/Chapter4/Interface/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Interface/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Interface/nbproject/build-impl.xml new file mode 100644 index 0000000..5bbc0c4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Interface/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Interface/nbproject/genfiles.properties new file mode 100644 index 0000000..aff61fb --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3a204d21 +build.xml.script.CRC32=10ff6b8b +build.xml.stylesheet.CRC32=8064a381@1.79.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=3a204d21 +nbproject/build-impl.xml.script.CRC32=b41d3414 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Interface/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Interface/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Interface/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Interface/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Interface/nbproject/project.properties new file mode 100644 index 0000000..f0e293b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface/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}/Interface.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.7 +javac.target=1.7 +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=pkginterface.Interface +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/PrjJava/OCA7/Chapter4/Interface/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Interface/nbproject/project.xml new file mode 100644 index 0000000..270d7cb --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Interface + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface/src/pkginterface/Interface.java b/PrjJava/OCA7/Chapter4/Interface/src/pkginterface/Interface.java new file mode 100644 index 0000000..3e5394b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface/src/pkginterface/Interface.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package pkginterface; + +/** + * + * @author andad + */ +public interface Interface { + + public int A = 1; //1 + int B = 1; //2 + static int C = 1; //3 + final int D = 1; //4 + public static int E = 1; //5 + public final int F = 1; //6 + static final int G = 1; //7 + public static final int H = 1; //8 + +} diff --git a/PrjJava/OCA7/Chapter4/Interface1/build.xml b/PrjJava/OCA7/Chapter4/Interface1/build.xml new file mode 100644 index 0000000..4fb7243 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Interface1. + + + diff --git a/PrjJava/OCA7/Chapter4/Interface1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Interface1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Interface1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Interface1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Interface1/build/classes/interface1/Foo.class b/PrjJava/OCA7/Chapter4/Interface1/build/classes/interface1/Foo.class new file mode 100644 index 0000000000000000000000000000000000000000..e3c078d06afd4b5c8be356705cfe6978cdde396f GIT binary patch literal 164 zcmW-aK?=e!6h!BzwW-xgx86WE2Jr+c6kG`k-NzD3OGu!m9?pda@KEBnt6|;@GoSD4 z4Pb{{VkR*sM2G!_Kqo?e^zIR~3zfEmiMSRMMB}-$T33YZ>W98IWor!~Exq4#`l$(v v)&v<5Iv1HZ6mrH>l*a2>OrBP5738- z&Z>BcUe1|w`_2E%eE)oW0XV^dhA?sw!#^VoeVWX2mP+qfb5 zE-fKNm-bAJ7>j8J{_Hh%X!k&|T56EUApHoj=zIL+Nj%voMFx3BK6p3;d!vI7I@!=D zsbh)G`nUlx#3>?;)8SL<_J+gn@bLixvw4jwKnfh`IYxNGh+r8>n)C#mO&HNn1n-6j X4Z#0m@^oQg4ihDCdL$)7)`#pb&0Thx literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Interface1/manifest.mf b/PrjJava/OCA7/Chapter4/Interface1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Interface1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Interface1/nbproject/build-impl.xml new file mode 100644 index 0000000..a8d733f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Interface1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Interface1/nbproject/genfiles.properties new file mode 100644 index 0000000..c227f07 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4561cea2 +build.xml.script.CRC32=a36b474c +build.xml.stylesheet.CRC32=8064a381@1.79.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=4561cea2 +nbproject/build-impl.xml.script.CRC32=07035688 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Interface1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Interface1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Interface1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Interface1/nbproject/private/private.xml new file mode 100644 index 0000000..9327850 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Interface1/src/interface1/Interface1.java + + + diff --git a/PrjJava/OCA7/Chapter4/Interface1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Interface1/nbproject/project.properties new file mode 100644 index 0000000..89c0876 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/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}/Interface1.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.7 +javac.target=1.7 +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=interface1.Interface1 +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/PrjJava/OCA7/Chapter4/Interface1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Interface1/nbproject/project.xml new file mode 100644 index 0000000..8c95146 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Interface1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface1/src/interface1/Foo.java b/PrjJava/OCA7/Chapter4/Interface1/src/interface1/Foo.java new file mode 100644 index 0000000..b69987b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/src/interface1/Foo.java @@ -0,0 +1,16 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface1; + +/** + * + * @author anda + */ +public interface Foo { + int BAR = 4; + void go(); + +} diff --git a/PrjJava/OCA7/Chapter4/Interface1/src/interface1/Interface1.java b/PrjJava/OCA7/Chapter4/Interface1/src/interface1/Interface1.java new file mode 100644 index 0000000..e58ff56 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface1/src/interface1/Interface1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface1; + +/** + * + * @author anda + */ +public class Interface1 implements Foo{ + + /** + * @param args the command line arguments + */ + public void go() + { + System.out.println(BAR); + } + + public static void main(String[] args) { + // TODO code application logic here + new Interface1().go(); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Interface4/build.xml b/PrjJava/OCA7/Chapter4/Interface4/build.xml new file mode 100644 index 0000000..213079e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Interface4. + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/build/built-jar.properties b/PrjJava/OCA7/Chapter4/Interface4/build/built-jar.properties new file mode 100644 index 0000000..099aa81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/build/built-jar.properties @@ -0,0 +1,4 @@ +#Sat, 28 Jan 2017 17:29:04 +0200 + + +D\:\\PrjJava\\Interface4= diff --git a/PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/Bird.class b/PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/Bird.class new file mode 100644 index 0000000000000000000000000000000000000000..a4210a179c9e33bee76ef3327b98e11e64b26128 GIT binary patch literal 412 zcmaiv&q~8U5XQer)5gYX)7lsC<{vNzy(u0PdMbKQdfy~l-LfXIrb-{nliC+J+5($trN*1_Ra5MEb>7W5~k)HjQ# zOuKuPSvtc>l`A_{&Un2t!}`%Y3kK}2wVSD2pQTsE73Ul`vrA5YRYl?P_^w*GT#t!O|2>)(%WpV^P1LL)7UPx3-=N58h)Cm`OI025mm}8% + + + + TODO supply a title + + + + +
TODO write content
+ + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/Flyer.class b/PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/Flyer.class new file mode 100644 index 0000000000000000000000000000000000000000..ba8d9c4b79d8a14b9a244e33255bdd60bbef1ac6 GIT binary patch literal 146 zcmX^0Z`VEs1_omWE_MbEb_PyH2Ht|A%)FBD%)IpCg2X&V24)S-Fd&(hQ_0A{6`WsM zl$`38nUf0SxaCx)7U^XrmL)PW2mtk@7NsR7r<&-4#eqT~8U38ZymWp4q^#8B5;jH# eMg}IJZ43-dEI=a}SQr?9G%JV(%CLdN8Q1~Y{2y5W literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/Interface4.class b/PrjJava/OCA7/Chapter4/Interface4/build/classes/interface4/Interface4.class new file mode 100644 index 0000000000000000000000000000000000000000..8fc08595d9a04f5c2f9a1c98228943d044be1014 GIT binary patch literal 467 zcmZ`#yH3ME5S;as7zc+uNKF?&!bRv3QGkSmWYGkLg6iTN=8$7Y7l;3%LZaXU_$b8M zL?NJX#Xe?tW>)v{`SuQ=kB$cuO&2W}ZGtmYnJUf+X76ZBurBkdBm|Ml!A@zfZ)fQa&u$gwEDWczpxEPs>Ru zP8tLUByQY#MjQ$!Zk&)faNyV*;ve9KI3UhkD!#XCd)JFgL1N|I^~}8Yy*Ka8`}WoE zOiY@Lon-8*&nvfC>MF2FR@-Q-TGj1M``J^*>O;{d5IytD{Z}6wjL|(0wV`Njb-TK` zvD+xuHfzFDdol>EyHW?r_m=pz@LP3}aaT3%ebJHS1EGuNJ!@^JR@>Na zEb*F9o)t;*BjvihDY2T2t{SKg7!gY^%6ThBv9iaM-Y>GfG@%5#Lb$xJK9Eyik zFO+&uwB+JLM+G5v((SrXB~Pp^)zm^CTdS_?ABmXQeX@=v!y(_-Rm@^Zcw}oc4o^* z9_|XQXxyKi4BIL&*c_w>(YMLyO~CEB$3QN7DgU99&W9g{S*JabP;Bo9Y$5kN@S4{d#S0z-TD_0sj>pMK?p^%Tc;L%*gj+YYA zjtm8DS_d**F1_2>wB9PEkfLP|<+fZpRPqSq6qb0)$9eT2ex#hRz3j+CM8t{)R}l>r zD&blI&bwR&EB4_kcH(5E={v_MD~>vhy*<(j5$fYtY?_Cwk+&6rjmQv-4xDNE9Wddc z(86oA%i8aGPOn>zMS}7>J@pY07;+ueZ;1=tYO6yi4mh+#pt1j@>x&B|Bw6jZv8Tla zcwDh#sMyEIe(Z!DdydUSr)Ko<8O4K@_(*k&r z==2nF6f0-wG*O&SDdM9LDHZ@!e39aX5yjJNCbBq-XO7J!XMtLw%9r1K_9qtTK8t(U z3RSn)H|~|Us=JNbLRURUKFV}LMRO#W=vfB3MKg&feYi(En?wpFUNrHrhjpGA+F0!P zUUs%m2G5!97k2Qx<$uJq1E~+eD$u5e!^q7~Jio(4xNyy~-&g59*jK;bOjO5poTNb4 z*Pl}MhpMUmGi`iazZ0oP#{a+}O9GDWCoxTm+5RV1B-1Z}H&Tj8H?q literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Interface4/dist/README.TXT b/PrjJava/OCA7/Chapter4/Interface4/dist/README.TXT new file mode 100644 index 0000000..327189f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/dist/README.TXT @@ -0,0 +1,32 @@ +======================== +BUILD OUTPUT DESCRIPTION +======================== + +When you build an Java application project that has a main class, the IDE +automatically copies all of the JAR +files on the projects classpath to your projects dist/lib folder. The IDE +also adds each of the JAR files to the Class-Path element in the application +JAR files manifest file (MANIFEST.MF). + +To run the project from the command line, go to the dist folder and +type the following: + +java -jar "Interface4.jar" + +To distribute this project, zip up the dist folder (including the lib folder) +and distribute the ZIP file. + +Notes: + +* If two JAR files on the project classpath have the same name, only the first +JAR file is copied to the lib folder. +* Only JAR files are copied to the lib folder. +If the classpath contains other types of files or folders, these files (folders) +are not copied. +* If a library on the projects classpath also has a Class-Path element +specified in the manifest,the content of the Class-Path element has to be on +the projects runtime path. +* To set a main class in a standard Java project, right-click the project node +in the Projects window and choose Properties. Then click Run and enter the +class name in the Main Class field. Alternatively, you can manually type the +class name in the manifest Main-Class element. diff --git a/PrjJava/OCA7/Chapter4/Interface4/dist/launch.html b/PrjJava/OCA7/Chapter4/Interface4/dist/launch.html new file mode 100644 index 0000000..97e7349 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/dist/launch.html @@ -0,0 +1,30 @@ + + + + + + + Test page for launching the applet via JNLP + + +

Test page for launching the applet via JNLP

+ + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/dist/launch.jnlp b/PrjJava/OCA7/Chapter4/Interface4/dist/launch.jnlp new file mode 100644 index 0000000..02ce388 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/dist/launch.jnlp @@ -0,0 +1,18 @@ + + + + Interface4 + andad + + Interface4 + Interface4 + + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/dist/launch.jnlp_ b/PrjJava/OCA7/Chapter4/Interface4/dist/launch.jnlp_ new file mode 100644 index 0000000..cc1a820 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/dist/launch.jnlp_ @@ -0,0 +1,24 @@ + + + + Interface4 + andad + + Interface4 + Interface4 + + + + + + + + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/dist/lib/game.jar b/PrjJava/OCA7/Chapter4/Interface4/dist/lib/game.jar new file mode 100644 index 0000000000000000000000000000000000000000..8722facc08378c0c112466b49f0b117a384dac46 GIT binary patch literal 55568 zcmagF1C%XMvL;-%ZQHhO+qP}ncGWH0xMkb6ZCkhIcE6sPHShi1|H-w_%99y!_KvmV z%ZLmpNCSgF0sQ0Rk@d##&y#~mP$cm~6(n`vS(f^qM08sc#iUI)f_i+Djq$qz` z{tv0Fpq!+bsIm&3tk|RM)TE3wE!{k3QLgmBZ?1ma`Zzqb+ojSb2KW?W70E= zXS+xH-vxm~*b!fv>;IkJ`tSJ10{=^v|Gq$wzjux8ZR!6n#ebI;?q3vEhHi#VhIYml z|A7|uf6)H@Z(Do2|G%O179rmF++ z+GtT24-ZvFvLauSu|ZUd>o~Z|DC}%wBVd#{jX`A5p*0@^Cm<@(`C2xk4&wLEz78HWnNodrcE^(cT`FS-#d#}5zkn!zEM(Hlg0mpC_%D%P zso&-asu+vKn3+O#oJ2!8@1EZv=~P&|13!OyJnV2DIolXu)oDYgAyD?R!d$ zYh$3B!v@UgS0)w5@c+O>sxU9ODj)!W0PueTE$M&WDiK2$!+-6QlCJfl0gB&_4~sPV zs&7S=^NgJ{ndPbnW0!(rxhMn*dj^_`x+PXe3>hY?>RqqLbxn|I{$9;qJkqS>AsDF* z$jqvD-XqWH^yleqygopdMM}Y8PaNmcnoYy{O1*Me6nM^+l}CC1k^!W}Av5~}SYUw5 z7Si13_$UYc)bk(({BhG!cc0j(JkjaW=U!~r8owh&bkdq5d@_UFFQ}BfP{#~D^flIa z?JwPRdsonubje>M>Rg66U3lW%22UfGuoaD4l0Nop&tin9o{Ez4LP?6$c$-*dmPoDL zOT?7Nf(bp}y_rT@UD<*yFUMYwIeIo4g;xpbTP!u!D>V3|hl%)IP@2leNx#PtfTinU zrv@1uf~SFC0-veLmFg!xHlfxdVUT6<6t)ouxDc2^sUpYf`@&%f(lO`|@L7J}Ij)h364C0@_(k*(Z8kiAfP#bhrv z@R#({Zh=OERBPdKn$ulLL3$T(SwkboT znfKE}^n4)dbf$R>80cvD}c82bGYp$N~|3jaQ2UY^U|LW7@f7B<+|Ey0kmd-Aw zcK;juw$Xx60}Lo4r|P!Nb|Ciowb|Tl4x|)bK^S}+Nn{Ddcr&5kcM3+02#8$3gD_p5 z-T3kVtS3N122>2lO%M2_ zG)#oCjq09l&DF$)tR6gGaQm;DFhb;P)j<9YNdgo};uyry43e7pU;i{D46CWIaeqZv z`#b)Z>YqKt=?_In};^o&L7&~I&4NbHSwAs>V$444X zO`JW7F~^O?n2pRpFa}Jge1!u9Ai$g0ihXr*4-zw4$diir>}=CSUDnm&F5RSq^^3wWY9!W9kMOfDWrSR+CaH9Mx@_W+ z#Zs-)Gd6ows#P<~6|2tu@!W1_uY}ojb+S!#n(3;Dc$FT0B%1!mOiRmG^bKapN9A69g+8bj)n z=z=zJ#gIWGc_Y_yqMX>Fugqj{O=BS+TGZ>Z{ml;cxnx~^4923GN*+gut?`_k%EWza zvW#*p{Jh9_R{ze91QXH@7Gx-~EL||By#g;*$Z>4rY|#5rJ|KBR`(xs{QUpRQrxA`m+ew!n_Dh z)On+Wb|JD65`(dzgAxze;=D#TBYl%$=SBkk7!|7@+$+=cxb55TF;Pp-sEXy79a^j|#!Nm1Ya=&}b1vT>I0$&+u=g7^}M+xD(f*gGx!o(I@ z!VPB7U{12*H4wWSS#l;d=4p7jCDvD>xP#RJme)nYEgp)Ij)6oC64>)UI&N-ex`1({ z(Ihf4s8z;{s2sHSClomZ^fUfuW@w5Aj6}?P9i>5V+zX+x*^8naj;gb{uNl zt7UDE??Z$u5f;J=wyeS{-PEXA5X_p+EHbZzh;vWhN<5Gg{{V-<f?dUt^u;&poie>%;kOLJf3583JG37t~Zv-wHjn4u@|G;OBfg!(S7~h*bjHLJ5`mbVB&uL=HdJ! zI5XX)9)B7J8-N>hF}6?zFD_zWfcl_?aRVm@B z2^`ezN}Kp-zZlESa(nzMK-!jN7G(mk)gktfqY4(uZbfp5WA5x>#?1E<4p!V{PChj& z-rT#-NFbWrR2&gp_ROD{BZ@QugQ!6H@eCNy78BT5aM$8pXjd)~_)8ze+sP|aLB-SP zcck3BV)Bd$e(Kn>FU}s7)5$Z=yFk`T7q2w>)pJ=aq>{KjRhG`6I*Cw2*PclGmGfU`*_hCy$ed!t z<0eEEA_LViAFX#aT)SZIh2n2+Ae$2%9b|%+aJjcfll!04_tp#Vk3Q)$?$Q3!xWeV6 zXwgrhMpena!QTdalV*8S7$~pl;>r_Q3Z7|NmlLjD**o*^cz=K@zoyzxiWvzS;r%Z* zH!cSEA9%g7K0mRQDIsR?XY;vsp>gs*eYyM-Z&%-?zXA-JfDgFTE%`J9pQ6jjxeE$`KaXIcBN3Qf4Aed73(6 zZoz>=)uy7(P)(Le zA4*iR1V`sbY0=_R&WNWkVt#avF|^bdsaQ;EvU#MyV=(9^<3^QBGHE4sT7rDTfso6S ztC8uT4;8Ve9s3PX)o@t#9@DWfp^aQ-K9%d^B^f6RxEs(le1MEg038PXEUNDnFJweq zFJC#(7b&GU=T22V{Q*PfFpsF{+=t#)X+wpxx} zyo#kHhf=K*Eg=L`x{0)JVb4;y*OdQiQ0w5Sp>{gndw;44M93!=c$ zh(=1VT4QW(NOc_obr?I0|7&d}QYm zmsDmQ(iKbR9elESQv?cl%J7c04fxtRerPclR!*@8)fO%Z-v-q^n8NPzg`1g#?*OAL z*vBdpYRfun!n!RnY>|FY6X?^N167{*)f`khPgPk!rX^Np^u*FtQ(&egP1_vDR&+fy zvAraQXjRsYfte3ydaYSso(bf_yDeZRVNr^GPPWz#!(?Bo9Wdqe)tzcb4EuRixOooe z1Oetk?yCowQ`}jP_6%mS6PpL?^*qn}1lqXR{dUvWO1gH;_dz6fgizbBY@!mYq^NG_ z5fY^>UQrA!&Qwxkmhq)~Jvycit0Em9=N}N*c)|EtCP-Z9JPvIwRi168ka40&586<+ zrfe!v`dI*JsK)6Vi5CDysv-t{E+_%1fJoEXU${-?C82qcNVULWozqcZ{7fM`{0=I& z#L(OE0-9x3geyGylb}3K0w8PHB-o`d@o0&!x-g7JS|v-mts)pdSENu3!3;|}X)ysQ z<#oo0#k73czZhqpe*sZ@u}nV)Q<`pRrtLZn%>vD($y2If>&80sgyk{Wg5aC0RJes; zK(#*<7KQ{WaP7zyv%FH%DqHpNjr=US2L zk+Vd8PN{qWOSa=$q_U&RE9AU!CCgluq8nabU21g#&9W*ssKO}o2)E{W_Es10{$)-s z;8*v+%6{`MWD(&kkGnK)W z3aj)B%xLj)so$Ii!PC9Co7E`M5qhGZt`ow?{J^vAPc_wpmMpsKR?298(=Oeb3b*we zejrd-o8kslHvG7HYPk(HHDX=>{`(Be8a6CGU#`vkeZTDi8u7J!e7L&v*^+jmp_X_E z2+=m{k14uM?B1bN5IHZes>CYLc=X7#SK{XiU$g?ekT5J8jF%B;E&Sus;ue_hgoN+M z2b*yeXz2MsVa-_J7NZQcI1eR7Bbf^Zkd((ksXV)aTipxpu?ipArkh_=GgM9+EooILvT7CyIJ%Xqh5-|QnN^j+IwDVDX@cSr zc;Vaok4(WczTPrC;AgzMXU&$ooFi9?1Z@w!*Z`mq1Hdh?*OxA^sB9HYvn+w3_iAHa zBvut;#;P0UMu{=jwO3VoY(vzbPs;V)kh*)r!Wj+1b+s)0*7EQ~`-*Riu+fq6)DiN_ z6IxuCZ)#6DamWnKrdCl(c6F|QZ%vs@5gIqfxF7WFiEX&w`ob+YBksl_)vBHLYLzE^$r7sOt8%HSXb$g@-epGQ z-c+d)`NASp*;NB(1!;VN3>=CcAC#u}m9F&Hj|EYJ^u;%le7<2?ACIp8><4l40^TpH z-#f-|KAiNkX?e%6j3abfQ$H}3&hGAK{MMu5-P_A5irbdZyKZ?oVCD)NQ+8I_xq_AJ zZ34@2_KMwYZ<{aSAlSnysEO4Qz%GsRwp0UKv<*;_DmfnBoClZ_Q?J=QcfW#b3`C1FSOK)$#y@BG8LhapsyngjE@=Y0lWRB(*PK^#N;nRJ%B`b>VYg z7{=%gnw?6Mdo;*p_>HTSPA#KDQE!FdJ9|ix4hU<=y+8CFcQ7F9sEE%nx~eN1#E5kz8>A&OmE)Od+ryI)28jNygHJV$BM0vr7v!yKlh} z9~BH|Vbd^$1}fPdC{AX3?hJ+_o=?Ctxh|tN2eX9^WLDT~4mFVMR zFIG`&z}pgZ)B<>ClT(n}Gr-L`>BTAQ;~fZeRZXA;1ndvBfkPlnFd56DLL}UxHbVmt zYo&=P_;pC|H#Pv`9@5jTS=JhKT^dWGd;yJjZw9U>7ql_O*bK>=?aF&gRYY9He}vaQ1wtN^WDqQ%@lXM6kG|m+v3yo8CS3DALPm6l zjc9k`hbXJ~tY6Ecicqeo?(qupMWw85*RXir!K=5ZyI$ohx4K(r)H~bd*oNoH^;6JC zlmMqO(9*wHX?%s7O;QGQnV6Y`x?|r@wgS+`@JsnL1LVE!ID{0PBX8WJW4gu9y1-g@ zk>{p+$oKBNziYPv@t@eeyhZ`(<1TPY%=-XEi-1yOMEafNis<(qJ8?V1DNDn0PwMHI zKJoLhguVRR2xou20?_Gq@ZUlVLraHIBHoRc1qRgB`)C}1JQS!DH0=Mi^cvMX;di5s zfqHO(YIvpXUlgG4j9L@n=O}(i%?~KKBl3${eqmaU;M+5^^K^cB13W^f_lR3``o+?o zC@haiy2JE~(_c{A<8=$XU#?ymy@K+0?B}e1;JSzF=Jnq{uZ~vRBX;-Bzl8H<>77}7 z$6>$F*dI5yM)>!2zvy1?X4`-59+Lbd(I4tRE`MS7MEZ}q8{d3?c^~KVi`o1x6hI|% znsejWmRAMo359uNPN96KV82m7IUT&dLGyy=#eFULj=Fkq==4zGY)$`E#QXy4=0Uhr z`yf5}@Ib#wzAY$o#vP9Jgd$Bwd523z0rr8N$kz@yrrb-%r&QvBj~tt$ikvdHXhEVO z5jh7^b5<1i1_SW~ofUh3V(~bk$`kyF%merL7ymJ38hRxVoVZtxp4DdsRs~{8*mcBL zRV~nxfU@1dOQGf@vXOGF*^Za?n7GYxjL>0n`=SL=2At@7!T@LKvpIktoADP4`ok>q z1C4qYt}=lisPPk4^b=C~#zEW2$hwxZWZ|rsEUWCmE|{vc`oWuD zzbN&AKa7Uu6s_nu=HHh%*=D@8`~m+Y-t^M8OcQM;1*yHGdW=yZsM@6mfPE@`e__Ec zy~xCHi)3wR@|ZZCCf`vL5M>j3)QYN@SrbyaS!yD!glqo8C5g&`OPrbHQmW}LaqIiI z3sh<@y#U{szGC;dz=di$AL=CAKGxO8CJ?8UOnh(tYLcyMptn^mOOu*Ay+D>0Cf-zHixYW(maFrNX=xIg^xrqHp{k z@P9-nMH1LVt&sr$gvtI>;O>8BHU5>DkWf)k_^-H~ubQPd_A;uUcoOe}$pHqXBhDzJ zBm@CV#dW_uQym_I-E{o)~hLFGP8(wb-%&53RvpcQFa(sytnDi=Un%EtSjw7CM3m&lCZn*c zNxqqw4=2@KLDv;A%)fXnX)tOH%}!Q8;UAeZL_RB7j?(7@ZN(CsFXpa1O=UAfti9aBbVJ^d%@++ zr*dpGV)#EDug(i9l2sJuaJ6Uap#&s7dy8q$WOA!T)zPBL1;TMj6OU6sg+b}n?>s;j zGs={(=jk$PS9{MgeQT|0;<&05w2a9=IxjfYN>M=Mo{}|wFXglKX*Zj#ij6Q6L|4PL{j=fduPi;h}* z=ni9Z?F?yi%|QN*IVz@(KgeuezMwg~ESnuUX;K@HVJ69qFn8Z{{c^><-P6Urjg!c)|L+RUGsbTZBRaHALrE2i_kQf`~ z;_FWe!c`BiQ~bf^TfPUtTWWy+blnOM<_f!)#uaBQB+x2Lq2gO~#PC0LNaVTQtT@2u z;!Dr*BV1eNoSnRuCR6=V9u@VeIHdlHj`cI;{Dfv^F0DG;ebW+0oViiq|!kYFSBtGal}oy=R`diNQr* z#rDyw7_*_c8F@GfNX%qjFGsYC&x%Kz>SDh_3cjSJYJ1U zEs8NgK6S7?ZK=tV_$YTHu#H|$f4h@!PgBPvWqq&0iiFLqPCkWRAb7Oa2~y=znW+CsaKB7@Sz|IsG z%amwZY5(O)*N37CRKD#X3tQZoklOqL-ljAGVBldP*l^&QdoY$Py z!M2i$xt@{PyvKHG-y(hB?PAooCROh024J5Ge6Ex40JJ=9v*2Xi9b z2V(EEIF|2`?JG!yo^nraYgjdzQjnI>4@>Y*zz`G=vI~ODH7!w!Tu77!!a@cFS^*i+ zzJxMjmJJ&Totn`V8OoeF@;7TydTW8V2XhBH_gpyk{4BKWMtpA*3b6Yjz$)36z_xcp z1!nHjO;M}ggYXdy0`90fX0Gs*QM)zh#}E{o+)%WI-bkrwbMfn+0EZxhI%yO{O>Q@8 z*}iu4VTj*GFt{8eckrtHYscXsKQ0ij%oZsEaK?8~7&&F87?vL}4%>}E6oxiwBDR`h zRYz8rT5K%(=js;y#rU-?CLt)e0b5`={Rp{rVC%Bba_3G6ojxnPB?PukE4Gss`mv9^ zzsuU)NazelwWc6=1JxHO%<6HQ+VGrJ#kZCDtWZ`{jqS}}K;`qHM3a5UCMd|-qfA-+ zAal<{ejQ4;JPBoFfltiB6qk0PYVe3&VsUt zy2Xcp_#TfOh_`!JY(t#;Jmv)~o`#^05vI2&fB!=RbEmR&x_`{m5Oa2S;wJ~hRuvh(-OjXYVH&(UFn9Zh625TRu4bDN&mI%>j97Thqj-cvUc!EB z0eHS)+P4_;kD#)i2;?sY`2*{m{?^o(D?_$8Wu)S8$={d7yQSv$*8J>%7kG!sQz^S| zpW#3MOal9Wm3TIe?~)EJ3IZOgjh>2g#(NX57&HuRcYbXk&u7 zevCNsgg!_}*kJ~mmk^UYnLQLSBM#g_%+QZyyJ1){l#7LJW~h-2_EQQH+SUUZx-@g# zpDoo@7}mC|;mJ!qK}9;jl-wK!t<;Beza?&7FeKI9rt z)XZ*@1?TQ{YXG-(; zuF!tKsu&v5uBLANlpupYqI##(bYD@JX3DFD11G;aD8#cEj%hzYPrImN?X?y+t94i! zK($e|*lY?wX0tGcGa{Wa%thfN1`0Ur4}j<%aM5l2BW{ckc#2t9m82g+Xwp$$zPi=P z=mw(*?TwJs*EalRK`%A*c}2%U9FSyZq9c0GXFx@H^N^t&9iafY(|7VKWG}gAdsKlp z;Vap71ufSt7;e7$y=Sczyym$JPskmFe9yN+kJW!y(^fkXeyyB)N3fXS+j0 z^R87jxihT@DiPkojQ1)e33Auaq>_J2kg4_ttw}eVC^>dBGFO1v>E+9&_=*TEvG#;# z`UjVevoi?yXFqmVNz@|O%!T^F7${Tdx%Fx0jYx3EagcXMKd#4D#T+wAaED;W>=+%v zk-y-TI_RUP8IBOxqQ9K`$r|&+oeh)@48Z6>Po^QkhmrOiT$g`Engvozyi_Z=?NV)s zy5nDBFloiAvb17pc?GXo^t_r6a#tYTc|y%ah}+yS?cPCdex!WOzQN44^c0y`9xFru z3I9k-6ludtt5K_djEh)?aOhT-g-@XP4lKRG{==K~HwWr7{+nl){0rTGpN1yP zx3qKlSKWq+t^J}Jil1E$nWfPN$=pK{kZH`cEOcoXvxOl_fhg6sSgX*R(DojhdWEh~ z5F3KU!VCFJEPg#afncIQ*6+Gc#fVcK?GY(mvdPyR@7wm-#~kPQ@7-{Be_)P4`{=dM zbHNM_(!q0{8I;6f7eMpjyySf!Ky;`!iW_!MoryyyJZ7j1^d8urUaBKH@1E6MRfg(F z($Fg%hh0^SyjLIhg4TuuH$Nw}4V{V^aN4r&BNv`b@#ys%;M>H3{&%%{!#eKx+_=M5 zytN!#ke=-~!n>~<(on#vd4xO1%cel2Lbi&d#7$DRQErwrzAW8E<|vyG?P&+unA291 z%Z5cbavf$16sT>3hRypg)==J+p{~0P+fn_dK~<{Bc6e{OY|0po$m?76m2I@=EmDR0 zM!IqPO%;r*wr#ypeI%{nxdWrQ%jPZYJe5+E6BnVG%yOgFNW&Ca6$LenYjvlZ){YA| z2;8-jEwX?Sr)Rm44MY}Ydc?#sEMid_ogXR`A3^cD%g4nA2N~BPte!}o8!`^eL=@LC z{UogO1Os6eM^ZstNW*G}=D-~(g7RYXojU}+P4kQm>&WY!7}e-1BL@susD~O4v5O{p zjmmTMzUZER#}z{}euQovWrpI0s1OnA7eoEyrxYp^TI+PY;%3T%78%W>Enb(f>9j~^ zijinZo34~&Cr<2Rj?k9d<-GN;v zF5pVD&^ZTU#eB(inle;lzx@WeKmtL?VEp;gxz@~z>2p?wmqZ5v@IdMZ&Rp{ zE5j4)ee_eSg4eoxboUUg);+CUKHmOMzs36=jj`E-eulr1&)G&7FG2s6RzeN8IzcT+-C-+|fE>XAiP&r2Rvu7G7Nye5CLJA2<5C||t zicl$DP^czE3=1nEBA7!X&&)nDVsht#2BfA^aj>k?-75dxvXQ2>NreU^F>GgKUFEiX zgJ!K>RdW6KB<}zA#Jk(Q)6SepGrNfYc)jaAW| z&C&|S(Jh+=Fa3yU$%oZ9+_oLh4Fs|0X33`(6fgY~3BVW0{oPgt;tsA5=q=??w}(sD zUsl{JU%N{m&WGD)ey54as}M9hek5p#mvr(7=mV&qauR{B50wuIKY2_q{TRWbkC;&h zcE`#?RWw@6NhQTgS5yb?05dwt5QMytLo-OpLpW`@{w;=?H-wqVcRb4e{g#Hm`*O&Q z1-0M^i@M!O)JbfcxUZt^L9t-pY<(wMv!4+*P|jK0znd*b5~Cp{tjJ?Xl8lwr>0ML6 z)}9(Mi?K6+MhtQgRc6Qp|50{-c zocj7$RgET7s@PjuO=xhyfFtL}Nt`RS(I{P%_#VZceoM%(s+uBH_L|LjSfC|@%k??y0cG-#rN(J$Yk_(Ce74n( zKMO^(mz(LNs{m^?WE}VcrljZwIkjlCl|>dp?CIHF)59-l`{t>P@)p_*Y(V5`^4Tzc zTy=Gp6e$_bLnN>?=IS$cC72w(U`DiU6TQijjlF@GJ~`*H2vXT&t<*$|CA51r6blUo zx-vc0sKt8=l9D^-yDH?ww}AERX36VS2HM#?5x=1n7z7EdirNeikoQ;6)++E_>$%wG z>*ml8Q_{eO<;fXTAY}yn;!OlXa%u?~c{*Q;6cELrL#HI)p77IC*$WQ*rdg>ctn728 zP{DSc%9C6w^)z_R^Wyz-5hpAj670@QzRYfqeCaT@b)U!%#~F(`R1@_Wc!~(q7nk_V zq|ELLizyj(*sShVlhWKs3IARhU@NL~WwPvQmgSzUl=4-PQSEJ>1y?a4x@yQx}^)23<;aMVI2wvk9)eQRpLUbFQAY-K)iW;;*&% zUuSQWeq!j8I!?%mVIO+byco7IniV5_%xJb(ie9W)NMx}@H>V^%Wgv;L?{GBc1lJ}c z>yK`VzNlQHW6^$H#fRu`B{F`)I5~0Vho&aa4oM6c=!&?#Y0$liC#`R}`1F@=yffz> zpr>b1h!oJ_a<9wOg^|E*yo%BZeO&{p@+x@x<4^{0_Sy5VzDz#QmA8TY(rpH^m zXOc$8aI%te-y}E|m(`fFunaz)J=%9EhRxf0B&Qr(ALkF%+jJqyDIOFmg64tx`0Q@i^6BSRs#}q57m9tz0;3tw`Qr~=7+VD0ki|`ijcbhnwq!xOBfHLY zaZ)Z2yJE--)!qS!-A?3{d)iI(0xm?ZfW;Nt_ZykQ8Z%H&b;b-tSMtxvYEjO=k3tR3306+j-pyIowxR=p(9Yr7_Ud&!i+}2Hb9QZ8pL?mm#~|I*(2E^{|M@TB56>175Lpr50k2 zX>M+9+e6ym6{m!SyD^q+piK@{3l_1lCss=VuZ)-$R!@F$P)io%;-OZ}D+Qf`i2B81 zg`SMJI@6=gEmwPS209K{vYSp#gOF36Q_FQ4xt+r2g`4g;x-9Q%u6HD3qRCJV9#r;b_%>=vC2W$10xC)3g*c#r@E~PlWg+l<^+~(mE54=}7olamU(<^qjX1K{8~5 z#ov}j6}-`uNx@g8;PCnf5Wd+{5|{GvUJMr=ASUi8Ai1Q>J#sEh5Qy>4r)!_gMvn56 z_=d`HMB(U9v>r&Nd6~gD(QcvCaPY^%mvf?@SsG^I0#gk{7gD52aI2T$)HFv(nF5qk zTKUBLP9gsUfj3Wq(h5Uaf==9egFh+dA>z}xM`K4$hx#UFUXhORC&w(Nb;@;)f@)s| zs3KQwcvfF1X8bt0r9K)HD9%^7IIn$`Qx?DW>W3*9iN$+_#RLTtzx*xkSz0IAp!*BdHc5am-g$qfd}Ah1StZcG+em2nZVv|s!)-HK%XQw{K~9NF)dTD8$ z@Jh#XF^AGqhebBycJHXEO+(G@O6w+>g5HLrk5w5KM3Vm7M%)`64t^GSYJj;E#?^PS1;OoiaH4Uhg{ZQ6*-xjkP6pzKtp9N!x6#pN|HE+}m5rNwpj?$%|9yJuc4xDe zn(HGqAh)h3a$c+$3sKuDCi6SQH3x!LmX=O+biy1&C@6vimOTL|@HA04c^K#YpOM7% zje>&2zhd?U^LWl0lO)X+mhHNC-m^ zRzgSvK!7O#QEjb-m;_i%7%&Bzf3GY|ci+$e5oM_j*B~j-tZb{*bha%2zWMA~n*BZD zKI7|dr$@#d^6}}o>uZ0*J^7R4J=6ZW{Z@8+!wCYADzygOYi7QgFzzQY&AIe77Caqa z!MO^Iye41H8E@x*VVJ!>TmI^7<+pFxYtmb|^G?ZhQjL3?v>J-=<&V0~@|&dOb}E;{XswkcbuBhT(#-X56MRMDQ8 zrDx?QJZ)dm9tpN9GfhjjDZQ$Fes80VBQ= z-SIRp4a0m5Yh`GkQ%1kEub`uSEgR}+Ug)EJZ5w`?*4WWLTZjJ`H~eT_X-E5-Hw>l$ zr47)CHlQpku}II;4%eeBD$z(c$PNz*=(qbVSIWYqC}Uxi=O)sDRU_hy&&0U4GTqte zEFwlfRa@IeGu*M~u5=W*`j}gsM<{YZ^tlIsL{{S+|XzaEIz-n+ZL&eDS97Jb6P#v5f-yUc)+T; zToLWqu*CV9K0CXJbQ!g90DcvYe>B+ts9gljsnN}rm|beTe|<>Oi2X5W7Uv>nRAHDt zpSnFG!{MFD1+M&U=L`RS)Iq@&4}NOnUVSb2cL3E=+}qeMp>zt8&LzgFI{%<1E~e5ExnySwMrA z$)P<V)Eu5+6cFPme~PSKgb{3Hq~aJ9*UR0=)yhwi+`tR*BIXUN2zgK6=3loM*uTQnJUd5EJEc z&yo0>25ZoTcEu&I6F}$D=tdM!dt|fM-DwU(KauSy%>f48ZWl?Y9xV8t>v{&OQKMg zXj38%Qm4hy7+Kzs^W+Ix3*;bX_U#vfa2X~)`@%}Y@0LYD{WTbG$CSs36E?Dv`@`SnPlyRk$xZDifu#f{~e z+qFy{KkhpPl%?@yh@#pvF*uny(}0t>mP;;TXKlu(QCkDf_4pubMA8c4@q&F2u{^PO zhlNHHL7sL<-mT71e$wb)aV;3Z+T)$cl5}S;IrE%) zaUv6(wW5{_ zhmOiAB!d%jmN@CnM{H~gk;}rYd}2_4t4zM>NezVtHL8^3IS~mx=V+Cco&OZQs_D!)CyJ_$#n{bvAjvINvdPHCpt*}na*Wak98B%%bm|$L* zDe#DDGAA7Bl4dt#OZuunQu5U)O^CZ~a3HnBWdC*uBUYB9P?PGh1=@)#)P>0kHI+eZ zQ5;CD`m3g@s)AhA=&{95i_lA?{EEVxP;4g#|4~rO2$SR)1*mHqD|FvW7(81u$FqD{W}d22ySr>9jKTmx5}j^u!V%s^VtIk1Cy(%KDBT zll@Lt603D-jV^Z$IJp{_zpZa|kuy(sfCHs*_g%A+*fa+{&#>HcBf|PHcy}q1(C|7H zy>+m6*OkkPBu7djlZ9t&BNnQRig{H-tRj`iipyf5rgkWD3>_}^S!*6#Osf|>*()6s zryOUYBGplqP1K3T*Q0*y+K2>sx5@rQJGT1X+Z2(N+^WuUgVa+(`C=2NA!7=%dxyyG zInq3x)){6Fg`11a&J61Ld}_HZQDqJq>~Tu@;JFPJ19?sYmUuG1*3yLfeA^MKwMUFh ze=%cUCK<2KH<1-Fu>PKD>SPT?j$z;=G@GIg=OnsT@>~+~Wd#_X=_E%}^&fRcD>1dj zXf(P_Z=xd47Q)?^G=oMRY5ZN;grO1DgPO4mF(unJPoq4$btA+*NeL@#}3PL>>zWHH5uNR*Jox#ZKp|*HuYbya@#|FZnQH+qkmIqwF*yVuS z2A=`CTERsPbLL@#6w%`p@3CZNC{Tv{_*;Qg5b}41ZONQ6K>;(SIny|rNk;ScB)YL1 z${cpOgI<~Z;#H76!*76CEAk$7bK(PiH2T`TaH)c*9p7U2>TyStMV=#Z2ExnZeNYaT z2Qn*M1-VrlBr*zYKd(j1$=VkkU~`1?h0$i}Eq43^`>+tZ{SB1`73z z6ybYCNBiC(2lvS$ho^-WPzUzfgGsJ|c@e|V(gA7`fT?v)W>R6C_tCBr+h3*F(4hrN zLk7yJ9Q&&#-t%X|!448G_XJ`C4!Zp$qxyzkSnBs&?gYs@1kk;nxiSJ)$LFqt45Csj zq7upx#9xISsuF6n1sKQxgYJsLHMc6_aG?WM+bF-Uyxe(Mh>xL#Ht)$1zfl zumWXser7?~kRy9ML4L*%|ICA@0Z)ELG9USb90TRpqZ=Bufed#*R5J2B2{S1|F)2bM z#oLb%_D`rru;fKU#>2m$xGKJ|xRZCoI0w%rA;Yq-Qwz2sdD2uNH zm$*P)g&AQ9`nq~rfa*1)sr0_yWfuVGeWp^2wg8Z)#}=9u?E#{=k~mcda2sM>jT$(# zLSJhtjcdMjB74+-pe^vmEF{viSGf*lY~2HRTr6wRs#9;pG6IrLEL#oCn4+&`vx)&q6F}pIGQAPcERQmp@r5d0g64Gl?+dMR z97q&ohc;1h7~!|dfK3JST~$b!!?mW3sBX}!cqx>-bSXe~kJTvo>CEZC@{-ribJNA% zfi8^k8yFyk?(}uCE9SH+B(xgRbVZ|i;Om|ni+o7K$p1J|x^$_WdF)$3#YIpr5uj#~ zqH+bOxu9ebo0))3M>N+M99%6ff$*C|O`c#TX@|w|f$!y+Jatu^nHCqHPOSw~9&IKC z>GdN#;K~r{Q+XMOCEV_yJlM($)_Fm^-^l*s+OzQ3>nF;CZg$Yl0O8T6FVwrzJhvgl zJ6uVEy*88=b$G(9!auHEVhQzpDvh-g|1ZkkIY_rB$n$R7wr$(CZQH)LZQHhO+wR-8 zZQpjk{Tsx)GrKdp6LFsN-+3acA}ceiD!-ou?QZ<}n;w+=;)1^qKVJk+0X%^6${T>2 zP51dJ(FGzQzO!0fI@PTu(`DdEE&%_HZ2R<+kyIrj#pEd`nQ*J7CdXtV=cOR+03wbO zQ>p9HL2;O;OqEf*fEImHmBXz@kcLaHs8x9N6N)<_a6_K(X7*Uq8#8JZ_S=Fiyu~td z@AqhlokVbYkM_ZV)jW~H^9b!XPV=T1{f1d%@$j=~C^cI@nkzHMb08Qxn447;QL76}hioceJ;*vKQ$;+yLBrvIgxYsh|e?bFp z39OkxSkAzKXyF(R3`K{(a^>j-bsxNi%4reu*MXIeiaO%y?$-9FhA7^5qf{of0=QHi zGpO~??FQt$q=jg3H-Pbkr&&91d@o6xGLSnAWK6kC zBqx_SX^!Uqmb7Stx1Fdsr2sJ5Qni6h@HS$~u8hP^>Zpuhe*37HAW|2ba>#sJMZl@6 zVq+!&OG0?&i0Q;22{wyMo1aAp!AlQ0E!t(7M2|A3h2xnR3Rj?USa6z%;+?P$ov=?M z_-8Uwu_!f2D?KtpUFku}ir#4aSV5cIjGEr$W-0S+#bM82tl8m}VRJUHHa`i{fC`yV zIvoVmgI1BO^HP<{BST}aX9(SvO>W=gR}cCZRhv5mIs{0IAfNgPR~9Oulds+&Xuu?L zirs|GToTwV)dPVxCzvLC$0}G+1>hMOpbje+;(>jF?E%2-1!N?DF|KKtKuH7EeKH)xUb7S@E*WKZ zjfw*GQ8{Y)N?`e}oZTXg4#kLa|D=g{Un`O6hiPyObyb8WrW^r$|^Y^v=S;HiAVtJgQXsFQ<08 z9uKIdux3Ov^rZJ}1w$nJz5$JPw3Ag=j@}w^`!=}lJ+a3Sy_JTsE7;lyNkwWC7RN1b z@>E7}Saf}~Ph36Z`5fv#x`RxLQ`q)-YtFWQf4X-$BbYW^n?JPv2qq%P5^TV6h^fNU1F0Z8KsGLbfzhYrux-j6 zsUk!&Lmlt}?|IfgM56%c4MAS8rM{r{-{70xD;c0`ACg!0G>&L3zv~&KG&n$rO*H?I zuv#bhH-vkFgHEuUB62$mxJ^q(_2L_Td~%3}c&nP!u^*9HbbSaLX(1Wu6V=!19OY6@ z_O=%BI0y4=#|0WQ<@W@$9Ce~tveGSTE0tj>h{VS-!Aj>9@9U^O6$O87Fr_bcO3&|w zqs+$(iA6N9M`-S?{j$5n&n zE6_?MWT9j!y@L$8A8}o_8WEd2eT&WDL0Heo#V}_A0Y6)~74SW6a_iIMH0c(qKU0VNChA705G)$5#~i>S`^(?MmGl0 zj2NR2R6LhNQ0hI2069{sal$;A+#}}GN5OeuTnYMv?m)O#{gUOEjl==)3YVpwuLF@0 z60mI59m?-UGK?79*>@bPcRb&-n~*a5yBXM#AC~6HMZ}#}3M<&~oQuU3hI9)+^;}b- z@@owBX-oT$V|XbmRv5K*{*dQtD&F8Ss_y+fuIyQ5 z*Zzt1I|a`|BA>KbCD*}tuJ~2z*@w!p6|$mn+Xq&&evq55E-v9q15ssdAohhYAK0KC zCWjmf%@Y1@hwOzF{==v^)zJgX+4)fZ>Tw50X@9p2MEMOI**)O)=B=W23ImAQ3W!$X z!Z2wM@o-qY8~q8o6DsW;!yp%HWJGK!$($ANg+hN}be$J+pyCfwUCW=Y#}-=ihr>O< z%=|q;s6R0*c|)2~{056$QqPn91g{$KDSgAr%J1>d=mI{e$nE=eZjRFqT6TfsLL?+N zD!NA!ljX16F3o{RL>Rw8^Yd(7kKS_fDYrLzGg<(m3v@vtr97UuQqD{BxcLzLEqaHH zFGM3ln7>2`+DAPmrzC+QLz=)ADv(!_P)U*~bAbr&NkZBp4j6|io{@xREto*lI>qKqv@x}GPQejIC0BhB z9DZNv$Nj{yVcf12N&UKbclcms#Ib@_z&9$?(E{Dn8JlJ z8H7CK-iuZl)2o;eZ!6aOL5bqcecFsfOa~-g@`5Pdj z)sLK`kbjI9S)xgVTB-+$r5Y9nHr0KdYS91|W`QeTLpySu0}6GWt8CebL6m!;SQKwG z<2IMf`2!_}>*{mKiJS7&nw5#y8~7VdD=YZ#qgnZ86ir;t;NNekKqJ%)g?Z~<0Z3m^ z&UH|PzAuO?BlQfLWQ>#nUy*sr;P3mVRwB1%3n?#Z={GyYd30RUyBYNTbySK$)v!5K zg)-fPeSMNw^zl<=5-7J})jD6`9mua(2pqJ^r=!?_J$g-*vdbXOd;llUTk5b$f>-O&5!pv%eP^j`G*yMu+#Nfv&Q19IypI_F5xJTW9v|hwof7v;9>;hn} z(8iXYh5X&HXPUY5q~395mY)T)Tkx@(fa@faxO;W)KFY8!r@`$$^iCrG~~#5IW;+(2~EDDFC4V{mQ)@Q87+L5%nkAE1obuY+$G z+ZXU|_pLpnSv|q6ALuS#dN+-NTg1j1G(AHuTIKfJTtRCTc!N$h`}UWwv(wRP7p2ff zLDFic4O|%xh6_mt&&Wd2#v)r1kdLpN1=XUgyBi#kOfGNfV>y$I;@r7v<`>2Xyz$i^ zW{uAxf((Yb3De5r9~uY4?_nk0Fbwrh9dizQtu{}1@vl)SvkR`!N-XeFM4^XVU@DZo z8$?})hI?dJoCtL1kOwM4$~Ahx@+(JhD`x@c=P*N-yJsGNxvVOe-IDKtMXHh)aRHXk zKuYu^=psPa3|sI8iif)PJ!9 z)jUj=(8z-%ZOU~^UG$Q_3Rvb|l*VP?SZNbT)ILJ`%j=W>fQoJ{Bs*|fDyb5;;Spk@ z5i5EX(Dm)CM%1%Ai9}b52{+5$)2$3%Y`<3#5?PTSn70_4rh8O$EG38utW2a&jgu;v zv~KXT5ZB_}00xW|e6v+Kz>|&25ia1JnBvc@sOU^!To2~RMX!TDw^)ESDd~7pLKbyj z_JM>_Dui7*F+%7{yd^-NuRQFnD8&XT#BDLff+>S$FOb=Vdb>k9aq%4~s0Ym#wKNDu zW0DUoP!};}pQe+iX(50|L801_K(iYME0H=?T;87x$l}N^?8O7J#RD^p>YHGzPdD{A z*IZ?!WS(rw)D4oE(NwTEoi_ZD@Xv0^G7X6DVBwwwK8lkI9(@e_QyvUsKd3|(D+hj+ zpn%8vB9^RMZ-riPMuCdA8^$@j0K+$Lg`#gjv2%EV^e+OHv)BQaPezar$Jgvah>Mk4 z5e{1fBW;MbmkGJhqu|x00SL4Rl{N4KWHo{}X1Yt-aBsRv&V@)Er9{+PAMkv~j_+c^m>+M{WvBdeNVNs( z-60FlvgxuP6bTQ8%t7|s1F2C>-WaWOBy3TzCxZ4yT>_>2$Z4_Q8gN`bTnOP;XRjLRjBR>J3@)Po-mw zWN;imo9F0L{Xp?=uu`jsj57tF2s734w7N?Y#6cNKtv6=UDrKvm?CvZK< zDI1xPO#)VMgZU`EIkY{gKmn;yRqbj|A`Hts49qyYmwxjXg2^$rdQi2oh&FrE$)HqH z5QD0;WQmp-dy|bul8y1kxU2pBZpu}#cw5E>+;AIlf(^yM)rxSNHHev(q-YtF%zD37 zJU>cr23Np(Tu*JN7Syp8sI_H+4J#9FONtg76zu7>n0NwT{lnP-V$zwQ2P83GrX0xj z5gP~$*cuIG3QbUwI%CqxFay?g&4by#B*wTEL-T_;-#j^!HIR~ei2Eo~1eO^0dK}u` z2Q@Y}~a4iZfysIXckSHZ67eNi+{Hd+IISq`f4hg3%@4KeC~O|Zcz2$TcY zrg|_Tu~3kWScDyt0X2=8BZrSZlFz+poj#7p21=nUD7asq*$=qgx~@G>Ai)N~Bp6GI zxz7>6Y>><|t9}jHkm)026bv&Vh$EZ~aJ5S#zZlk5X(lUVlICB5kWdoH@Xn&8u@Vxl zkum|7l0b$e7nlfb6>h5F(OOolKD0skDVb;wz4)#I&%&AX;4&ORJ)$cKHrlWlyTD-E zKu55&4Fl?R#YSu>j11`x7$^*mbVdjc8=w?D)uk;fi<^>}^0EndsO7mF!Ip@a+unUL z>c-gI0!LQ^%dW)WdlWkoi0TYK`0%2sNQub9h2i`A*eDQmvXFsd;PL%Bjv$Nu9HGy> zsb>(~`P_1=&_fAVJ=93sngX3udIhS5`Pu{Ie`kq)<~2%-;m-_z#u;wH4n_yo5CelI z$ouaK?>z5onhq$ePRqn>0f%h~hyC*=7B*nt^X;SaMR1cRa+4=?n}zY$efnd>Zq4B4 zD|o3Vbomvs+U>NsDw~9OWydI8@&LoCZSDR%O%ov3)*tT6XFq^!Hfi4)oV8D>*sphFikkMfv(A3Ogj`Py5->pop_JI{T_!3lm1^1!~m(X4ujBJ1oU#Gd$+bu!z!=2&DG9jPUD zD&8QYP~oIL&N?Pgh#92V3}YnohygTrDKq&#QHBs?mBlVYY0P-xl^hd4W$ccFN13dS z(guuO9Zbf+byJ7!^Qb`KP$Pb#0bXbj>U;B(!Cvt-jV~?sNz(Uolz%#7)NfR0H-l}B z=VqanEpyn+dB9mCP-lvJxt0TBbQj6MzqcM9&4|zgAm%EtgioU>jYExK&{C_1EsQj` z+Kl-ybJC!weX}{O7Qv>RJ@q0Hp3?@e_P2OIXk3Xd+iJ!R*?KZFbbpDfMP>rhuNGGlk$!x4-E2dUk2(L?@8~%=BX5ognj5 z(uQfjFy*SKb#etFUv$88<_2~*i4dg0`|5y$+u=al5%b&dg3po}iX1V}oD~*GVJr*!9_MmbxnSb!8wW0vsb!+* zM(8k*l^8qbB8pT>|lU zhZV{dp?ey_Z0Cr$JU&|q5(l1|2YI)-VAEMzbrR$*4CTA_Bf2d9|f{${QAj8~P=STC68#33D z0gmm!r6Y$gy%E)EiC5huuPbn_X8?Z z2f7hjPh4Y|VFYWh;w5zaLusUE_S++QCXe%-pDhLYodb&P-JfTX8!+oZ$jrYMMA&yA zCjiw6-vEik_HDy83?Iz3L886a#F1dA*E$I-fVLp3k7B>L;=XCPnDd`$@rS+CPqU_9?l=uQ|-9Kqm z3^}1cpX5w@l7Gl4dk82yVm+OIOP1MUIndF{(fVv|n3*Q5M||Prwi68zqj8P6L@_2q ziUvPXyF5M+4tDgJrrAjHXw!f=P8j+hwLP>EuF6P{m|-`p#n{yFTCwF5u2#v89J84? zb2qdfl&!t2O7)x7-@^H3$tt(OcMM3jJrbsVV&K5F!R({!*c5Tfn#6}Uuwk`@F(%R* zRehTx8gIczJOM!66UdqA&}zjBv^-(JwC4C3T}VP`%L^7iu`FuL4ys%fqeP~8$T}8@ zM#+As!sL&@d%zB^)aU=)La3H=vJJu0on>@R?OUT=s3zUAGE}iE46ygxcSqMh@}isk zO7Ml#|BGlM2&tJ$LGH{^JEgF{T;xA8mOxrOc;|fh0_yaErMt@?XX+iO)9ZRg_>`K= znb4}Al000cd+!F-hU2NmZ@=sHDkL zgVg2S^U_y8ybZSq1s@M6_dp z42av4O&v)^N`Wm_a#Uu6TC~PG)`Z1$r8Um60P2!rk_Gv`YBl2#?NZh_~>*K$Iz3yaWj(k_5cci#OaBL+@) zFq1-e@0GHm0kMD0$t}Pb<(RB$cYfhiBeWls$gFa5Y!cQ{!kB;*t+_lh9|Vj`i4P4H?rBr zNY~5TBV#+FeztX$fida7h;<8j;hU*=&1+ifl$8h+1-t$J=^Q6MNt18LxVON5g$(Om~8n&G6+?KN(mK2UgY!^J&L2A)LV46z*;kbl%2px6(6w zowd^2WBxEVwtn*st3Kif*WUOhw&DH4H_klfN7t_XCSNUipB-cy{8qMM{>-d@di4#l zP5C}qef#X~W83(iJl+v(oOR;(j^N0Z&!Q)oK}R}?40{;PdLYeuD1I4{YziLM;if?3 zm>e3PU_<1%tom1~iE+I67Ud68*;eO&t(^VOMVJ32)kMY8*7V<~CQ6fb3j!#-iA9WT zc5g6E!6_-Fi9#^6okT%F0#FT5M2ed7S&B@_yfImfR{VbUhPr47^}E0?c*|kjF^Yo= zk?nl$Gn~#|y!ySqUqE@m-r#I(xHfwknk}@Kt8FpZaCZACfzWNXdoiG~`EL?b<@n4= z-6M#?N0#&GFwp)g`wWquL|6BEBH2d-kiT4plr0_pRGsGIFzY}LkUYn}YUeni!g&ih z7JSr14FeA9=!<+Ljp=P<^+~kiVl?18vfge;MY2qbX+7p<2N@Na7D$+mGDRF}1Rc(< zw@cGwGc0yv+KQJd!NT3|YGqjJvl?r^{-r$maICQQ5%51l;QzA${qN=G|K6A2-+K%Q+q?g( zAw{cixvQw7es4|vJtRvf0fCV816XE2De?L_y9^HzF(AN~m=B7za%Ogxv`gE}oY^D{ zva+n!vapu^EDP?S+SM9?*Qo&`S}o=|4YY25>__*$9Y)XngxC3cZf9o}#E>|OISA77+q)3Z8S>f4@_KG31J%ZY`c-VWteH!YvTS+B_Sh&u?~aM zNLQxRES9pF`tUs=tl~Ow)Fo}^*JWF>YbozZVTpTN4(0Jf$yG)4&?I&aRc2{;3?Mno z#?&h|$>sj#Z9C#h7IhStI83U4eWbD3%(%vNK*+i!c`B}BwNA|}bx5nqT^aGhezeGkSW3laodVWlo(&~VaD_~4>Hq!JdY&SEmWb$Pj zM>^A~=_8rexO3;@^i_dS9E4P2)d-BX$^%~!C%5H#W#XE6_jlNp(}XzaSqpg&hshk*Q(qmzxZrJPt)muMMXM-;31Qt7uqRGroJII4fZ_Bp;Ru!qI7jQEW4T8btVuN%Z2&QHaB zL255NfbGvckhoo3B0Qvq7KolBR>_Te!+?o;qFY^XP^`%lxZJ`$goX}?+#*lKnvspHg!&$8a_J^pp^!oNB9N^M(!ACd}x;^ZkLj`qPF6>-^1huB_l#ARn` z@-@;==&lf$sVh|)Ok|#d%)Iyx&1Si*Vz$<0dbpH4p22Q>=@L~cUv1A~UD-I%XsN)p z-!smw(PUN0K6-C>QncTZ-bx1?9h;~J#H%#a9bFUV=Kl&<;^P_wlJf6{v#324lUC!+ z-5U=`?=?8?MDgjUeboCLeM`Jp>tejI|KVvoy`DXiXE}grzxvr972!#lje2))tXzT>D@&+zslH4$MAyk_G_?W&L9Og|Eew1i>$`!~`@hKvYp>Fb?%+J{eW6g@!o6 zMpukwttCpMfwC>?1z1IY^q54JxBPMy$qEfoPw0y29PLj6j4B=Jq7rW^pUQ5Jz*=En zF~ShqBGWLoYCpY?+lXy&ObV}!$N=mD1c$AYd;E_`{9&%&V2bRdLf2> zM$;`QFLxyVoqGYexOSTKv`|u`t$v!2np@AS`b{SD&dRne+GuXu5t(w|pNW{yBL!gD zvc(t^+t>{@ZWZ+QAh?5n^G%vxjDTEEn>w&yfArx6v zL1onE9G}d)=sNU>%%o9no}~s$yGB3o1kf5qW0ZQ5ajSD7T@x;~LZdr51V<>yDP=TU zfOufhZ@FDgpSbzZMGW@NBMe10uEF8|kmeVN*#&?uispc)UZ)`VRiPhF^-IS4p56Oi zIDmlUP&nw%Z(PX=g@Qdc!fo*lBBgbzA@6ZMjZz)Zt%D937;}Z6lJIj9ow@9Un zJmC_S6`WN7I1oe%qc`F{Y1tI8#wI3`@is4_O#308qon8IQ`#!pWC%sTPFo}*M5ajM z665Zcc1`dT7v(+>zJiW#8It;hvwcLQehBjsOJ5duk~B=|b;uLJGX(6^E%5C#-)m3p zyMM5LE5!4S>x#8a5)dD))4n_gUbYiH<%z8M51tE_8?)yqz)yf(Kaf7<*%;mA6rt{) z%{rFiLR8}UF4x{U){Jq_mt9NGccLq9zg8bq=4R|9uH&PWJ?Tl5BSm8zxFS-NdYE=a zYpXUxxIognAM%4YD{D-D#pjqW-`nV2y_);Xr0^&&GEu7&IF*9TI)7S=CI(5(tIE$>LF2tf)6vVd@o8&vY_N9^KI5>hKAi}+v)o1_A=}0u7ln? zBUu2#HLSu68R(NF;;9b8m4U36YX!^~Wfpq-_yp^N>$3zbx~<$q8|UvlUjE}D7!(UGY{#m@m- zE&HJ55NMDj5;A3Ry9WIj={grPbLqI-4C& zd7WgQWqsaVY#{p4*`6^MeXCQ|K)arY9AlENmHK@MDMFr-|M)M7+Zocwn}@R$~mVn^v`$rLSq&&4KQ>*X;!TH9iVQp9I!kP2Z1KV>b!sgi*}to! zH+b7?X|kjqt*b!Y%TL749faIc7vaIkP67(yb#FCdLi zkTl~Je4k#0K$ifc48ss5O;X!b=zu9qi&7mZ8O1Q)|0co+RV^*$$nps~LD&()XH-xa zgO($IUD#&tJLAP{5{CD$c-5_^EPe<(c{ z$`FF1ltyL?myWi8;fO)RSBOGtJ-N?i*F>esWr#nFaV0SWjXSgFatv_!-8{OENWNxh z^k-)s9yyi6w22#gKt!6%A$eJF{&#rl<)*Bbf6mT7OTnNUIKCJN0N@hzzjFgL|IbU| zU!6d*nzlRg3hGyk9q~A@1cqRE`zWBM6arWQ+mW4eUBAvWY0JV$pi3QC5hf#Z!)23Y zW)j)sc8T}3uzp8}8h!>1gPvhLeq3$>e*EDEu^~4Cc}=&=44>ysS)+D zQfbm?swV#pqIASzEiATc2v>CvS4}KS4hK`qh}|5(SwDLM1-}5!bB=ZF8ttCiA0WA5 ztM^1bw%YD*sI!gr@>AxV3k6PQx6zDdDK&12XtpX$ZxKS&iO{MEUC_e)mQkDBh)-o> z)K*0#+gT^7=7f`$EUQY*hK%VBxDO=nTPOR$?4^~>mLt{KAiMMBsDKO=37lqJZjKs- zsam7(&5(b9S296z5b- zXe%~gz3D-ys#IF>6;iG5^vA+WpXx{N~w0S;2mfB&a+y8isZ+_3yT^2sCuUHSj#$LOl9?12`cU0>$cobj`Hsr zTo;)sS0ICSg=bt^5$&A4I@66gOI2&A{4xbbu)ljn#rV~V3%q;3`}~2S&{wir{hM8d zO=8rP4<6(c7W{QJ-PkFv)og>%w`6O&ek<%PvFc|hb;h>~Vqv&z<8jZYh-v}&T!)mc60s#Hga)$!cI$e`g}VbbMMG1*pcIzfyCjZCo%s7|Jlfs zbTr51vMJH<2CMdVe}o~5)T-dc5RmvEnbQ#6EMGlwni{0JhntjWhT&UxZ{^NP)RcFvWu6@Cmc%)i{qM!TK% z(ds(#xhox%{x(Jg>RRjYHY<1Z);Ct<(Ks47Dw0t4>#CTHyd-Beo^Lrw`psDt8+AK~ z;FNloS&(t0Xq^Mtf1YKc4I1fXa3`o;ZGWk|2H&eJHLe>np~4;I%0Hi;GL53ih5DYQ z)OKrL1qTwY;Rf1X?xP>T`OuFd#Q&9~BC2KHd~F%bhR^m)$OVe{sPIZ&^hGEIX;bis zvLJkes6d!TX{1V4B}Ye~_6m3bLJHm&#)y>Q6OtNpk$6TyH$*dn))?))$Tb)g5#$v! z16+$0cCQWQNB-T0M^Z&A;mBt*VhBWwJOTgf4RM9t0fm1=5~m-d{Bv=86EFw~4uFtV z0vgKGq{qdeas^W?qhXnd4eyFu?bI`3TRhApVYJa>6+N>i)i@Z`MoWY)F|8)$;Exkg zDg}?oVWaP!2w8k2y^-_UYEGnVYT|~oBxkYH`0AtMpK;QhJa;1VLnR~Q4PzV3Ui{Z{ zAED3p%F@FR1I{i&leQcakJ7kZOWu(9Vau+dT!s^K2zQWC2B~Y#tdnn3Fy_F>Het=g zQULXVID6(a^LW306KWbi2hwk#mXZQxy=H-t2{=Ew0on z)bA~U!=N^u_=c=K2-7NNM3qkY$4nu(GQ_uR&_?w;RF~}2cohuktXW6$QvJ=5J?=)< zX=;Kz4Ji8%(heCIi8Ke86Cl=>lp01aI|+p%V^coFbB+1w@pCE(KcZ_|vPIu-c;u5; zHZHOlghm5aDDT8rHRkzW0%9v+3g|EQsw+A{TLc%Rm&ZNvi*h9rn>M>W;PJJ9{{$K^ zKgcZjA0pj8^nVvgBxK{9A!scaY;jp=yk^#)I4Y1+Xg-3 zm2Dl>lQ2V4yZa*5Fe22d>9k{jf_Tcraa@G&y8ahWG zbi#Hvbr}!kY4y&2y5uGv#7#tlUQv-rR6!BT0@|TkoZB%(c$M);nvQYK+ARSyW!WW+ zCWZoB>+5h(sdQ0w@B^ph{3Aba7u2=#x7!4_SEu<6|L;v)DZA-Bbdgbom~v9yH^m4= zV*c2uLstEzH$!Jz#ov0_q`e5BB<{RFOR|IB5(=mg{1xZ4igqLy= zi)^e1*ukCNR5)Z7@IFQ8L($kG%Tw~oS(lLM)jpq+C~2`JiCGu#qJ(gvYf7B6i`f^1 z`?DXn^qVr{&q0peG5SB&3(z`%VEmINx%{+&{jYaR%>P&GRdh9VcCoa#`wv^DFq+SzcaL zK{dENjz3@{`Ll7-n0%U`I9Wv;xzfTiopti0(eNDjfTt({TGmIMw22r^ws39Idy)_P(XRYIk-f9|~g+)2&?*m@}6bH4qjFpe2% zCE+l9Sm5lR%b82|gI6d08Y7e^!i?#Pw85?jP?`#kSZJm0G9$>` zN{x{Sm0pGV2x%v`_Au6}NloDhSWtBo9n&%J&J=!C^E6AW>zuE!?;+l6jLwdekQmHo zm+gx+qT46#{9E8jS376%)kzrP>QcEnYM{wH0_qfF&`OvmrwWP%+Yp^WR?tC*1*ajm zwiVQE-tFdbrezmcyViDd$!`0paTm-8>>A=4$I+(X(L7yuoIO^X>-PY()cHe(Cn*vm z*D7o<|BFr3mfao(%m&kRk_S^hrXo9Mb8&mnoTE#Gud==0ISc`;qrNoCm<=CdHiV^c zyeioT^~An7r_s8GA9Jp`G}Nmm0E2@rpwh!OY!&v$lDZL^V7$fbf$L7fvk2MeV2`l%dHIRn3=}4azgratk@!P4W4!e4+LpXU znzeJTaptlTS-5XP%mVBbXA#(gPDOFe-=g~$p9gZrff3ir&{MeY1IWu~CRLziC*gyL z`}eoZykF=@e1$>Kwnt+3R8FDkx48|;@_cTZa`EQ0;+l|5>-9!Sy5GbIGf&cNxL9I@ zzZ%BI+(h0yi>eb+@)fIjgiDk@ao6-ECwILQehmOTa0ogPiS3cdi7GDo$b`f?bl_j; z58&kA`5dvEKD+tX5nT`!csszEhZ-w9HOl8lQU6wUm9{@Lai4iO0)y8r1Orh)j3#{@eF(AF{2UfWR@!z=w zuK%G+_>aJzWchw8AVvgl4w{x?7b&9_yEd0#bZj35X3jDJyw6mQ~p}d)=)<0U|Y9aETZojel(Dp zEPHh8=d2>#N8h#Vwkk0idK6X_nXy(MN|u}=n+0=5tZJ4=!aEkfYmIfNZF1a&K7HtQ zgt#tVZ%%FtfoD;l;cyQSL_m^03DUT$GKi;r9EbrSXodZ;3ay<31L6~dc{t2ab^$&% zWabdeaiRMsoVatFz|H*33H{IQ+JEgxMgNDhCTHs5^6vrWKRDE4r46|a0R&!aaz;kF z)TC{D9iU(l1LFLirh)<$Rcg^Nr*Z1_RqEm7#+XZ2QT|FLY6SRCKOdFh%M86ZkNWe_ zbj}NAb91wkliEmp0JhsrQCxW)mfI%DKg{S48V+@*2I2YnA&%Q{7|Wi9T=)EUvpfe( zIB%L-V`UicUOaL^6Q8lcW2#vb-gKh(3HiTXL@V+Y93_ZqjW8>1LkyY|CbV+%TQbE0 z3_H-J>(!&ch`9FygXFZjSq>$0&Fe?hLs@m{2CsM>D}1cGPne`cMs~g9luSAyXPpI$ zvZ=laWO2LAa%6SmNciY1-E|;2n0@;8uKOMgt=yZI5|4(j4k84M7uOYQLRrU?NvgA)=MedKn8h!(TKk=YJQ6V056q zEb_t&$DdqP6XdzpF5F+BTc62|v*+_;r{n+{#?G-3Ms{s*1}>fXgnlN+1#6pN4*@0!Xgxb*b%iC@(wSU1E{mfA0NCH#$D=QXm3ZauX1b}#h= zb91JBAU%+G1O6*Z%k|qYG)d9TYA?P%mQlJ#R59Dhd~AnM{;&SOEWSMA{U0y@008ZO zo0TyB&&=pw^Xh7ipAN)Ju3xogOQ({{`}L%gOh7@rSdu>?g>X|t#+79fxU|DvL%>E)ClGs>oEF-r@qhL+&3 zlOFcMrIB;=_XXXV&c8I@n%D6;o}YJ?02fR72yb^qFbl&tISG68rY}J-@}UkWvq86# zUQ~X)NE402FDzeLYO~|Ty^y>1!T0WfUSvT|UTi^3UUGcCdSm(!yEnoR2aQ6np#Wd? z7_$eFfL@eAsvcxv=q6v}m_0Ou>OwD6J!nF#Uz%yX6ob-CAJU9psNZCjwUf8e2tVyK zgU2p52vH79F~4~I)PY`N5wvb`G4)X6zbPwIOjVO^*C zU@~K3oBttfkcN)TSDSHV*In9J>rDol%}cQyq85xL*w7@`KWnRLt+I4OX7;2Hc6HLQ zrHpHg1A#zY&^hNW{!wYj1HHjABZ}Wani#9E?9nXYpYE`>P;iS`YuQ$t?OW$G8kU1A z8TorJm7y*y>=Ny)U^vYaUQ=Xu!Y!{(X5P;3OMSY|BVg__l<4T0InX|aWYF1=?cI`I z@1EZBtKHdte{RGF)ZW}`Ea5hSyn4I-k07=45ROco(pq*zdbkfWa%#7<$_FHO9O=}L zn)>=KE!i#qd7apiXuSbN*Q1&vvo#>5Tg$T?PadXN?BK6PW7b7@m?V{)r`%EbmYS2s zJPFEVQNvozVH|6Xf{RSTNQ>A)qg^Vz_Os!%Yp5Jg0@t=kp->SkUS_aVZgx0%Xt~L) z3gIfSS&sQqf%s2$ajVfnz%dj?ZzIL*+{_fRzveQ)L(O;a95P0PbCL{wbq+EcX^f6| zBb^qgCS=(D#j%~iEByPyc1tK(rw()Lz3SyQjMf~towNo^&R^^L`aZ60LbMi3(8}WQ z&PfAnEq*aQ{dc|*h`nKtQul4w`aTF#FYu zy?fVK6_kMUyktkqVV6aJWby{I*W?Zaj(v)4EcpfJU#}=PApVoxI#U~tEQwNZC-6xl zLli%4@f_gO>(i2_*=$zp1PyO8Rb$%AmpoqQ)mY@*hP}-bpTkT?jhUU;BC@`UC)(GI zvQp>Cl&(L{Bs4$j$E7k$=dNR!$>#Li5F9`CWoqc z9d%PqHnr(LU_U6YS#KFJLl}(+Vme{7L!?-vmp`85Wz*xiD+k zRRTK*^Omu!vLi4m6meW~0wXHOgjp+7{Iu-L)SCMhuvIhj?Nl;>&dG#r)!4DmX{{pj z*O%0UT`9oSU%g;4p`fLk^TZ`v%WT0$7%a-JtP=C>RJk>@j(H%w;PYBb2tJ-MJh)?&2h-6i_;RY{V@Q!g)+?Ve zE2M)q$pAG`2<6@>W5QgWH#F>b0bkdN&A_vN8U^nQFN!@)qyjVHBstJ*o0G~(LmEHK zH3bQz!{kABsb2SxwPB*50XH z2p-2z+cZomVqKKxq!?`AXs!~n(h+c?8eMc9fP>w%7(FM)fM2Qb`KOAb&d>Z}cDt7tiPD_c)_#_|1KPq1bGggSLbhuCr531&oqmRdqZOOZ z5~?dPY1Y7+2J94z;+^cY*6fgQ`5R+V}lIUUf&=g-H6Gj}&=unPOv<8PY z^ue2Nm>!!|Udt{rXFSckT%o8^@%O8d@^ih)Ta_IrI!BQ;VgeZP&<9mh=-$}R8FPbS zzoVNkULNibA0moo-YWE^oj)h~LO+A&cy2CA4Gyo+lFV>EXQ2o+42l}vvA)nguA=SJ z*l`3)HoL`*M5Dbz@>-`0Qm+@HcCtBSosbj>|Kn(OoS3Kz6r4$IJ?esAbZX40GCnq` zMi)s|S3T^5DQBH`28{Epq2`c2t=_A#vNESd3Ibg2!cBwyw0jxT8{+A7R1pA7ZTx*; zi7E{vNGR%p2*%NVdOdd+9-FA!OuopxMfA6sbm2)7ccbz=Gd4W$#`TnXk~65U+yM+{ zEN}&`;ETjB0T+Ww<@Sque8GU#4V7+wV#yp{^Ii<04|Z91`rrxc@>8keZ#{E9nCu}rYG$>#}_Ux zM^}AxX>}FcUcXnJM}CxKJFb6n*U)j__PGa-zR@jkduvP7yWIGWXT(jGbEDH!p;ZQ6 zCk8c|?W>ak%$k}k)conF=ES)2y$N+k0QJe%stjv?i8YUQzfz}gqvy2jPzFYl)A+d| z{g+umRsYNzn$sXeIUSP1i?83`;QmadUr6f1&bbbM#m|lG??`^%f zva30Te${ZPJvC~Qi`e|4bBamEXxTl3eZ@O#{IN>6BG}SPYtF6L=h-0r=G+aR4nt?A z4y4MZ!Z7lO^1N_o<%(w~!Zhtm6A$m**vH+GJODbYejBFXZ7Er;y07e06*@o_u-?3S zN$JBF3V5!un=iHz<`~PLHE^1)g`qH#c|%vhv)iiLyF-3$NqK@li6s$n(6eK|73SIS z0S4Ta~ zB9>m9t4=IjU5@(S05DcfldpscX9CYY3N>*cr9qi*LdlOLx8V}?;eLgw=nbhtAsWEc z>T+SrXa%5%4v4))MPkzD6LtJ1{i-%5JcTKDJ!+%S{R7WEA?V)DLwYI+s3JCWWMQa^GHYBG--M72+IwLU1`m;cP(vD%<%=4%W+Xd1fr)%KJ_?Bh&Qv{ss!>I z36E_B^c_ab!$FP3B0JtJ0ko_>6Y1G}xm>jDu4A_}4*pkWe8ZsER6UpI4;Qqru4XSb z9o_i(UJ>~sa$*(_0)m8Ong~$7qCBQnIWtt9v+9oowfZxjmCCyiW!muBMt-xV?q20iBjxoaTl~lc5;dT!l7reFxPdI;>LoHMXfE(+(Fks8<4L zNB___w#+N0lH6PiLXaK1hp-le2R*h>=COYmBIlb`hf9X{BdeK z%^vAGekk39i87mh!Yg!kgfq9*L4Tj?&L@VeZD8tw59|QSX%tC=)3*=z!EiM++sqq5 zEcu;r+}HPmA9e`1YW?QDK+pBzi%!HcYx&29&#~_oeLp|M!5yi85+1-Mh^bVHW0$X3 z^e7{ltK|?=0XbBu#_a4tQ8>NiVqXpzOXA;aw0}@BCnvXfV6KeSMSEwevDK?<#zwT@ z2Bk6hlCGzx5gik0Cr(7&Ev3i6pQkRFM?dm!jW z`n^_xdA;0$qPssl5Q|=OJiyiB{}l${+0W9$ztVpcoXtH1?d+_Ko&Jvi^u(JD=K+rO zvM*?wH1v5BDgc}jaz$}Ao=7m}QxBLMCF6Uz#tFksgkJW_>m3+9zd%36zQ7xK57G}W zXwdbWu9v)3RDvANwX`6JxmN3>l19mT-!LS63|fdn(JWd`)XDbh7YR^*?4^(bg&tP5 zG@cKtQq|}w5p^fNczY7v93Rc_;EJ+Swa}w>YzJK$V3Ux)$#D^=b947c128922IT`E zZx49b;`vL8*dfjL;=p!oH6RUQ`tJC#~MO!j>^7aQziANngA`xGS~ z(urnt!g2kth>~TiXH9K29?|qSv5yiCC-C(J!*eMs4bc7;@0Q5!aazzn$C`f7>T@rl zfRI6WhnSsb9nNCVTh9NAnL?a*fOR%d!yreNBVgOrCrSPI(-?&rz4$jHylUA14-I=3 zvFfrCqwE2Da z3jdSt{nNGfM;HI%p;WfEoRtUW$ z4r}tvUcBn{M{0>zJ8mOXiIdxJDVul|SGnNIk?}47IAkMS?J|WBwx;|pBS8?v7@t<6VNjPq*wl8Z;IAZc!J12R|by5 z?&jN4ucM|1+$7uNPbB$O;mDsu3mRhN60xWBXJmM8*;GzFz7rzvM|ynoSTeIzhn#Cr z3B^7+_GRpRY~o8ycB3nZ*O9uLKbA2Q4Q9A{z5HNWSa28unoMvWZcynCb5r~Cj;o3r ziYz;v$TqTxT?RZ)FP`W?$@W>=uV+4=JB=x`y^}4-l(CU}eJEdDMsKNb^Y?#&=+$B; zgblW!Pu%8cB@EroKqApBg=Z=>SdtS?3nzY++wQ5K*AD`DFD@D9L@N85s(0|))L7<0 zTh^6nX1@k%Xs`UWa;Ei(IU?S9m35;0yv}%EG6ED^ub@p563IA8(p59M0=;xnP5>h< zf1B29qE6q(LRY3HR6nNb@zYQC)%VI1k?&X>*S<3Ao9)RIEdieAtT=jYd@CM$csX5= zqFLa{cAz`ALtdBD2@22a7*2y;Pss#L*XRh=o0)Tpap%oL{_fCErAB4$ahE&Lqkh*X z06^eaYh^hy`@G+|$DLNGoQ4e=E^Yi+y6e&8+gg&JsnR{ZRG@R2`g18Rr)Vxl+`fC% z^!^$8@52!+vV8t~pmoFpw@Q9L9Q{4p_Q&V;U!RzMHFqzx1(e76F2`P{GbyE*ra}V|cb;%vf85;9h?gQ@v z*YpO7llz#*yYbI;afY+L77t&e-I+JW(%G3$j$eIiJ^_96;ifUzCL`XYDSF%-C(3NU zdz{ImVJeF>f6v0K|J=wUBKWdN#cWay07{&VGJ=D%R;2$zhf<3kH5kj%4MvALKgC=< zqL!&eJ1ym%TM$v@+|(PjTY$xZZvJ*XZt}J>lY2YSJxkj&TV=ot4A&cg34)B96hXzn z>j$^=@J35@KiAMaS6G0yPuuH$&%VIxvL>aSfyGX_er??4Qy+!LXBb4v0Ad6@qYgqM z%oRS8ak0Zw##Op}N9r$togLhUt+rHm(XDxG1XqgRhn}-aYxy-d*w*;eblL! zUW)z2%3AXF3eV8@GlvVzUCH1F83`aX8|`~mP07Z=Db$YS(xdSj;|YoJU9}S0U_V`^ z$#QLRp$)ZYi>g*J;a3L>4Mr&iTa%Gi$66OAOgm8<6)3{YItzV#{u=#;bly&<#vOJz znuns$gac)it&)8_QGJRjNKZHHZ4I+rvaMWq8CAic`zt50ayQXH+;q!+u%$1D9RXhZX;|(G#W?VP7@0h z0G^;I5>d*LpYQ$73m&OKQ{)c-ja-5rW@j&1QAT_P#8X!g1vPIkxpNU>co6dAL1X} zVaBndDa!2hza%99Yf>1@zp3`;1dl|*2>=QLv`AbtGYW$rQottjbGk0#)}6tiX80H@ zRXMj1uPK+7hg#6vdXyZjBo`;_wN?JAI(Ty06isn@@8y(@ z$k}TjETFc?L5-Vo%%;trrM1psupGrW>M|xeAH6SbX=!N~Sv^Ck;EL@#1x)o7cG;Lp z+)7L3Z2^_Qm^J&=l)$%J*ZC`gui6ybab}_oJ;AqFTC1!IN>Yc_WY{^X=oaZ~T!_o^ zA%c%7Jxv~3K6GPeBi& z&QHu%m{Uacy~N~)K-iIE(w)1yxIQtIahA5f9-wH{JDJ`wDcDbUK;4kU5N>a+P~XLl z40+L9d)9z{7HijGa$@EUgGm6P60-dEAwfGDZM3%7b(5)L#@vzZJ#j<0FB5~*WJj%% zIkm5|j4NCUz{QF>b$jWG9-{FZ5j?J%&?ub&`0k9Or$0tbG!-G6XgN!*p1sEQN3%82 z_-i%UvJTpBsF-V7%=i(l@fuqInzLAP3vN>1sR@;+=5aK4aC@I1=u3a;NDC~9;F6KF z_;=KB)YYCe)VGcp-10@@l&@j!Je44Kbb4+?i9fipT8{|n0F*Jx?{&3e-rZ==^_~pk zDi3o<Mp7*>IJ~#RvJS(RsNWah%9s$fxgeS4zuh^)% z;Qr-}r>e2t#}Rm3PgRJD7Oc@PgCEkp5jvn49pPob{EAKN$NM2S+=0nB(}Ga(d&8f_ zco9czQfeBt)pXTRPtHgt(+cI65cXQwwwX9099VwzqGSqg@XLwsZ=ua%3kOk~$5LZ+ zqrt0PWPz3OO6mU82KSB^D>)l}5P_9^kVyn5DWZzyB+t-HZ)LRUaA)LM1%ln>b4+G} z3L|P3Mie3GAZO`7Yv~|u=>Tu1yl&kLXhg$%RncpWful^})}b8FH~QxcYD6D_1lbh+ zXz+US@DLX$0{Us61ngp?Dv>)+J8Q_-gH_hg?X;aS<&YYc)n<2(zuHdb&3H5rDNnkdz zLTPn|f!#fg=au*j2cx3|UxNjYydmPVk8%QXIwV~Isi`vL&sy_>%Z6DwFd!0# z!ONQH&1V-UedyG#nV`T+BE0F<*s4wpHwHSgA0~$`&o%jdh9$cnJHJnIG6wBz!+<;x z9ki#DoPQotqzEK~*;<=>{K*H4QqY$B&he~W^J!ERkWYaSq--d6$rnrv#TGJ{DX0#^ zMZF9%=kD2dY1C*ax;v^ooyOAfLYC>fxdi))_Xw2x;jX2L=euQKcKwp!_@&vk82%j>ekZMa!fP&{>ld#q#sL|2 znZydEHjMk}K4J`!EckM($F8qQ+`3*@#2R&uuh9{5oDou7+AS=Zs$0}ORM7Qsy_*Jr9lLASbFUMdv{^hVFuPj%Vq)B#@tgYd! zE06IRO7r1aG0Ds#H0YyNTv<$5AAYb`j?QNtG57+J>0^a>DZN*2+*>cZIRah)-qttZ zU1ztRTn98X?Fb)`D}J?}Ik z&P*0|pfi0R?Sp=>PfB;J2$keC2~r}JqS5T|zVu51KLW*^twd19`j{!5P!LM}#ED2J z{DewW%?{&rL1w<^0FzLD5C80LbLpwKJYyt5>Sg?glUGz!zRO3=nyLIc%!l-RT0-@j9aNtCtZ81 zXb9EmD;kCquscsz+mQFVh*jHCa~91b@J7F#*X1>-oWp{7p1T(D0vo4Ra2Uqe78j;{ zz@ul9PVzxRQHv&pl0)AMVpgFf1{nqaD)%w@0;SGc0L|Mz_YdvSmWi24Yq}hdgYH4O z!(O6iTPVOl0s_R#tU_-c9G#m#0>rkXob7CYo`dtBrt802GSlBK=AN$L{+oZSbqcS^ zj(p}1wrAdduszqB{(|i}S;4q|oM@bY`MC^wddtLnfNuemv_~ifYl*GChAY8&X;Dc@ zLPaIGJ)!f>Qap%IO?C2NlEOqaY2->Z%ShJ8EA^_Yz}s)q(qPpAC(Z%LibxM~(LIB? z6!89d9e=E7hqHLozq37$fya+E%dd^__a3sJ8sX=4Y?Pb?Y>xnPxr>BBWRCA?4q--s z95T2d1Em|0;Z6?+OzjN^5?_~C7#h7t9a6o3E5?J@8WBj*e!sYZ6HI%%YsFl%zU8fe zS@Zz6Pzzlec%LT4suV7206bZ= zGT$4H2giCDH_Z9%Nd}up?JsBuNqD0lJ_Nx5DO|cJ&jKMo=c>Aaz0bil^JNgitdpPEM2*j3Ti*~aK6>Q<)mzqB_Dp}6fc zk}(z6V-rEb(6*J2%v4~)k;N5M3MsiU(L4*VId_JT2(yF0sjGm>81`H4pfy^sSZbIVwnne)r#2aGzYK_*2q<7Sz>aJ;+v?b^ zbRR2Zcio{(@M&vvq4G9y?{Lk;O;1zRRJT}ERsir|w1 zhOpodcLc(Ftr*b&aC~s)#*X;zJQ-&k^0yY%d3~sN@@;P^KbdOX<%Z%M?J0)eJl~Zd zfv!>$65XR``fP2T3}j(bkf8IR@CB?N%gC%6g7l6m@+PCyByi`o6O>lJq zFq1DLh1~nLHOG6+6E~$z80YuFKDI!pjJe$*r6%%#ABp&cC?hvAS7Eg-KQ$1Ji0)2Q zrsQ=)={j;0=3M?OrIYA0NaOoNa~91B7?$F1D0iMCEaeI;&|p@2ncJ#gV8s!)i zy&^1XTCMJgEEz~s{JCd1d)PkH8l3%@1m0A|bwIzFF+mDUZfMq23C%OvZ{SB8{+bZm zb<15zTCr)`{j6n_%OC7`W7vlvr=n%=t+%JdCDK*PF2F2%8O!*ARt5z<%k!uS4IGvB ze{wPX`a=G_&;F^^{mYGzsUGHwZi?gcV(Dn?CEAc6?3Ni+A-RSSCTtOT?jrv4KnPHY z?&laU(j{EfKaE;}GaH-@jM;P*!qTwyk3O4Z@diW6Wl# zJL%K)itW04=U)59Nh;5`&f+Y{smN~wQ_p`%Bzqez3f zcVYoA7|%^`T>DQkSLt@LI6if&oT>u6(y`ZH2D|nFWLNRT$fJjw=%XQ;bfG(>)ZGLI zT6feVuR~Ly`cGpcLonLdqYqE{0FRFx)kL9N0XMNZe6+zK+c(gJD05;#EiqvWF*G-U zZa#{sUlaZ1Xl^3?C#m;QS0}@^ruW}JKtFEZ@DM85X?0_vdnt6MpnGXN@5tM<&%Jsl zbi5FFOJS4|Yp*y!1rwWNQ*YgST<0{&%!5-*PDwR;j=)4dwxS<-Wx(C#UtDOo&>XFA?Wk^6p8O?UEb>@Cq2|huBWjRS=F{1ScWP4Nx}_*Z1!Vw?m$fzdEEtCb^$(F- z>E?G+hr2jmOq9^;JZjWyrz#9+T2wB!K^FRGF%!d&7jq5p6j774Z0Lrtl@z*~0_Qb^ zS*)Q@5wlQw6R2JE+0lICiV^{d;k7p{ftE!nWu*KpWDS}1nI2i~c{t=abmQ%P6hd(A zmn^gMFFa?;N^c;uFnifmyx=B>ZW_W(0U6;Zp&6_?muw`f-zvg0_Z0xVUfBc~Zly6d z!!HwfKTQ+(-TH;^0bXJ7_r#DZ%j&Ul=fQoHRh@-LJM$0E-Yll}33g=isn`bQ`3}bd z(BO2c0`R`7_Mg}Z^h@2ehx2dpxB?!%MDbj_f-l4}u!tYRq{oNv)0hkF)uyzn>UViJQh*5XI$gE!=pJkPpEfU1Yi1^Qu$zqvJUBW0-I04SSXXfQW~J*#2@{qkMI` zfW2ox!UgNCOs&}ot5v^RRR{U1o%8D#qncdRWVEd}8W?O|_5tnQs_C;eQvLKJj!xBcE;(4{s`P4dcP5Tw3JK^I(i-O;Jy6wQL zHmTLg1f1Y=7!^E>c4KV7aH4)=|SiywZ(i-3SDW-5CneKoxCn!fIcka!Vs5Oq)Ws*?ZS^MJiT=5 zVkE%Ve#T4kB+WfLhvVeMImgml(|CE+6WW{nv86vmMSVoP9KEb8b zp9Gs`$M53~WcpCus$=r`#JL#B6_zp#@vekj<&1-)1EDlZyG8WxBlG!^0i^i>L?jrL zXjm|c#@n*UJnn+fSv&xL3M3o8(c422qE11ZosglIl!*|s=qmq0^m}&$MbJ)&BzQe7%jsj z^MaI-Y>YM!bI!;6WSZdE&)+%lb}lWSVzX`9ulgq}hPKbuMVFdyUGE%D%VkQVUTq9d8bb6r3q@&b%K{S_OA+XHMu#eLO{^%M@CRZ;>j*6@?KE?R&%1`_ z)nDu~9mY5VlJ7MQ$hp}Sq_mayTQ%fsa^~SAQIy~182DSzXwqmdpF$_2tIVm{m3>N{ z`D$MRV=xEG_61=SE0089;1Z%ul|@t}lzvmyuL62%>tdjt!v708#HycWG{MoZY{|aC zGj@GqHs+3FrJ~mb4!ynT6PBNTqk+Sb9}Hpy=IAmdW$Yvw$q5NZn>Q@`(t@kEYX#6! z0t(QLrlY*)|30ZqVi+BGD>IrH z(ML_WNRorrX#57R!@v$m&2?N*M>)d6&J+orlOBsNo7LwZRg{+qyq0`}N%>LcO(J{U zSJBzPizy|aO|eHJpO2?&aYjqgoa0nvgUsB_t{wMlC+kZD59b@c_uMElv)O2MF&RF0 zw52}Oid2He4(@J2As9Yq+sZPra%t(B{#Gq%T~4t%u_SCI*RwjBTSX|`8N}!GE~#8d ztsA!s{OfHjSvi(-M(0?~w@mE1VY6!19>YZ`)*k&ul}i_8GP;ciT=YJ@MYhWqbm=;^ z2hQmo*0Zi|cdcyg`m@(o9`V>FY@W?e`f%+EZIOJ7^D0jUN?X49u^B(2*N6m7_{soHo0vBwIZqmdBO{$T%m|Q4s?d#RXDSY z&lX(s12B(qU(@beq{)CDV2vCIEO-~|NEtSic^}0JvQUsV`+jW`X|G*Y2z8vk{7~w_ zTIpZQbVB8l2RFk_50)}`JiK0VL^7iNtv{gr0}n>f0dw$|_=}`L&_IG1%r$oQ2uMk4 zuCUayON)7Ll!?ZeDA&Tbj_*d0w2yn4AVv!XFjSB!i;cPE6Jl*t)hw6Q%0FLKe_2QK zDC{ynGhY1w<}6KDnxm)pp3|sv9*5lRI5JW?xxxR# zTW5E?FW^;tj#qyE3lrLt*sbD5&IF-@+Q~fiqGRUknFa1bj)^8a7qw&rd3g4B?(sf? zox9yzWCXc*tN5abCrLE2>lR5(*|~-*P;#Np$9KP?$$YlOG_lq!;kl zgz%FeSbI=NOwM+b9T$U1aLH11Ss3DD5=;T`utuX=N?kpwJi!k6&v20Juu+?KkP6j(JqQdq#>4qGU- zywF}I8v(%p(>Bg7iZq6^QdWs8cm;iz>MO#I;D!=XMAf6o3;nimYcqL7;oV%U89K(G zLQu{EgI@r`4ELS_i(`wjMRcg@SMrZ?ABs;^ZIeEg+w3|sOH9@bRMvdLjt;fKxu3zG zO-BEmRxX>CB!hS%hQIj*V6~vjy+x~z&JsjR+?wNcxkDr`cNh*GNliJ&MXQl|&(T0{ zZ*MQ2TTzB7^sZnHVXzr&XS z>?%p1&5dZq0U7V02xryfvf=cNw=UDNZj0psa+}ma(ADn5eXFHk5zcT?MP4QJ+{x4sC({h&R}QOIrE zc6?olEp5V9deX#pH-dq5y8q3X~HeE9R22u1A^~3qTx9TKh;~4?6?x=4;s(? zq;C0EzoFg4sMWfAG_3J2e6c5G;H`k#Z#;$QyAWIEwV^5+eBX1?#FG=VW1GcfG!2@C zKV~aP|KdwL>$GD?gY;304DX533Bl)`!BqFiPD^CI5Et&t+{{89w_~U)hAASbt2_;6 zb*FgQx4QKHva_f>8eZe(o;<-1n0I3Q&$-#{@pK*~A4=b+ti*)1UUccIX7)!O_&<|t zXsGX|8>tW~ih^UhPrzf()~Ri_bw1bNT3DxL94&V}GJxde?YilM@QL2B-DI=2cBW$9 zNYa1fF_i^z%IOh4Q3>NaXmP{M;M>j7A>Q23+DNPw34u>g)IHO4(-oCI$6m$2C%r=5 zdy(Ul&3C)p(Gm9gVk*F!+0_h04k@5J8Hd@+$UobYe$Zk_Ib{s(Mn%F2rb`zjm)=h+ zi}00=m_%-Pcu8P9F~_sLj8?>M4G+I$LE2#4mcU}dqh**#jf5R~Q1kq*#)G&hP&GD` z#iCKvjHgd7~dF8LKJXjW(FG{T{T=%Q3Ds1;>m$a<*0ah>h$Z9w}&B)TF`h&BE zI>h8$tg;PO2;MbtFS#UI4@MqySW$2_w5r-uEV+bR7ca3{TeV(0dce%Ewe?(^s6cJ3$+nlnWDJkWSQIe-8LyO+xo+Hm zl~rG~RNeB@IX&cL`qfDq*HKmpaa!OVmU(2wj@r#@j&GPXLyB0B|I!Q_#uShO&QolW z|NrJGN`|%$#!|+{cK^4#k)SO%tA{=)w_p>XpcjdNO%EE*6|AW2^$dnlFe>ob87jP% zMgwf`%tVDs=dbvV(#tgJkn)jm^Z|TV@M!vF7}3Ufzd4^Q62@nDGH9J^*JxeYNED1sHa zUgTifNXt4vM?#3%66|N7!B{za7hKY6pn);Ev%}@z`dH=yj;yGMB_b!65ic$#KW;CU ziS4&nsd2J9%;hgRd_m`qN!K_i!H5mIGPrsbt5AVCW?_w*^PJ62?^fzPMF=<{8*0O= zSD$UL$tcm|INL+#XttIxs>$7AFeD9aceWirpy*gf@>hR^tm36RXGzHAlsRW{{+zFn zIWt$NL@$LT6;9r3ATK+Zo}y%S)=301Vwa_#KH*p0;cJB9joZ6YvU3?e{oGj*Ypc8| zLLSvO5q*KG`D%ofZXTSy2PiG%J%_XhQekx@Ru%oxH$Gm?S3Xe0cv?O0mBiYkY;~o7 zVvtTA2a5=<*>RpIZrZc=*`m1t{`9FV!oAygxcMm4G_7LBA0ZS)3TQe#!^?^bI)pDp zGXwSDcM?hcOS4TwQdwuh$&6FcKfDQJL!1V27!}?D(H)qo$T`5-uxS}aLa6Q zCH{p2#%g{%3w8|(o#KpLY;|{f*ywqyEV#G%&gVu_js;6?i!&Lv=Fx2FDVk};nrZYI zw;EFC2-3H!JRxD{I_&9kGjmsWk*E}3QeKQ%K+n=KT7Tu09E)8fR!rb>%?T_|7iak# z*2|=DFIxR+3~LHU;b#7iwLoI%(K!@w%f%9?6Z3nw`rpU1syP6qhs|wFrS%Prt^Uo$ zRkO5H26{MUuN-R96UL(u$iNG=*jr&O4fVnIr#imHB`cC|vs*w{mfpdmJ@wdC)w-YyF0QbqP)y4@9?mg~} z>y8c2+pO!e%!f^WTV3!fShaKePQ2`1Fs36lfF2*ALvM75@k1!yJNvHwrF>v$))u2a z&&yu48lHmfDm)R6ob5xK#Lz5M9;#j?CVaaca~{%OcB9*J_zkDt5ZmEXYn-fvEq8q{ zF?52srO`X`*JZypA`T3^y-{Z->m3ND71pYCR^C+{C02i z++C`w;wb$xD(kiPC({9pyz6*YauoT1b=KWu$-ZHlk+X|jr>eK$O!!5(%h-~i!N68m zF`^3Yg?EfS7Ale0i+X}XEvn5{#hu9-V707UCO=gg9k98%o}EUFi~4Zn8{s>D8X91?hSj)p_Ka!u+wFDiybKj3FYrZZ&IMt z{c?0#wS6#jx@duY0gX{7D`1@@@?$f0?VC7ni^@0~Hhmg^%H%Uy85uh%Z_YqCs#VIV zhT`jyE$GldcGd)o>w0PR&kOQjSQQD>AOY#ybArZ5< z$-9TB2b(>Z?1Nh}A&Fh($6Vfc>L1^N9fQ-Qsuk9vui$RowX zK2VNTa?zyIqf!V8MyYa%lRA9uqZO!Bc>73RJ5i~U$+%KKlQzU%A@5D z2`D9w_s478w$;~x!2s`yxfw7bU2q$8$8ZFntGy0bu{c923R5$<#g(i z+7((1rUW#~q8c`-CAQsHd}JeE{mS5~Z0VgB!|Uxi26HD=wMO$Rm@w!k!lkKS)}oI} z3k);MSk*|w+Z*qB=KA8_KB8(728`-*LpF9=z(YI=KrSbiN_rp-3`Ijw>J^0JkkhNE zqH;1GPnM;zwA;;G2#wZ_kqNOWvKvNx6ppoB`gocha6eYSSuD}!jJu5}Rqs!)|Bigs zDl3%Z25kF^1GX6dDpj3D-i9FI^Obp5D@CSLI${{u@&3@3eD{F{qV>?h6dO?0(=1mY zwKo@2X+mUp74bc@qpBd*myxYlQ#PS=M~*}aH4#;g6W~tX>|h!k)bi1k}*V z9Pdj%(dk`f2utM%72@V%I;AJZ!>WK|DwpI{8iZHEd;`z8if!%TTnkXJY7Bz4CXQJ! zv`{~wLq|xWs19vt55l2E9}I6Jv{i5&a?Fv(Y4>^GqmL%5;*D~QA+v;bTr@_KhD=9l z7iWUhELyoi*5Oq&f3{z%jZsDy(4W6BYEjHU*bN&^K-+I!UM;K4NK1pA`W&Sr2zy~? z6n;@{QN1P11?ikAvQ__dVf1tO_Oqjb{Ln3TAGt_9kii>!`|ykf#>m>mkZU`licKG_ zoeBOOL9f7&Q%1r83ODd?J%W!4?ppR+v3Xlnis8kHw{Duv&n78-cq|7VSiYfZ>(3k+ z&7dn-azB(B8gh@GwWKp6v8v8=*6-T%b2o+5fjX=gbUMezMED96Z`cgShLP>kMur-p zn=1CX52+;sq+3&^3MI)W=LZcc6~oc?6z!V~tiMkC?3H=0tklJ>oN92ZcUJ-(tn z)NSQu-3Yg;G}tw=Br^My-ox9NCHd4E!Ap^k(rtBaVXAA6Rk9TarL_GKjKJNs`Zr%84l4 z-P?t=bY4tUGFa-6pB2aU;km_cgpfwgP_^}c;ABol=p*fmPI+#DXu&1j2W4gnlf{s4 zkv|{sB7VkfQhnM%e=aUo}) zp@@}p?_!HIPZ11mz0FA&f&A#qplg#TPk(H~p=Vmj!R0)5IfHYXS$+oBoa(&WuR{3X z+IM^1CRYhCxCc84;XfPrigx&oK5|{xy`&Rmud~*tvc`m;Nq=#~a4i@F5{Eo#=6KO? zzz)MtBF(w_O+B-4TBggkN!ytjog|&}i@R!em~xQtx3v zKoFPn& zdC?eXFK}O^_0$EK=XO_J%f;xKeM`PI@WQ;I>TRI~EaE`cWyf~X&%dg~-y(bnqQ4wOY~bJ{rdl_huLC=Nrpi)}{+Fas7aQ zXZl&8O143aSuled@FBERLd(*r#i=z2fvd~DJB+3Yc1YaJkO}oOIu49C1`bS6S!AGS z6jvpRZtfH@eQX*~PI*uYr-jz#BS)>7dZZyRECJQ-<1A{E8f=FGtZGU(cj0Dwp`JI6 zRg%AFp`JC4mpbfvy!J}xA6yDM>CYOFKrV&gUvepauY3G&^HOrscW@HcchditeMQB~ z*rG8a2kRC~uoXz)3HhDL+?pvNYTH8+r>TnPKnp8591JftX*A-sy0x!``}V_xfw|t` z;iH(^gjOGt^gXi&FrVKMoVd;F`uKbW*8@A08Qby+`~Yo<;sKwjg*{vw$Iv|YdHmcO z^2$HAy->xbxrQ_gBX9ok>&41-z8QOdB-Vt4h?nV0Y4;JaKW#@xYKSpzh>hsAtHeEZ~^_7@bk%avqb)gAfj7urX{(TpEW$&YrO9t`vtq z(Ui+v_BP8R_|CAjz`KWG;WbfQOCg0*Wj`>Lk1-=2TUw%W(*FBcDANauH!^(#YBV#cvr8xNN z8|*Ik0tI27P-Wn<2-IjvuB^TAWU)V_h|HLhv@eMDWKdUsm+a*H$QY)`i*I)%%>;z^Fdi4@x5uke!rGi|D~VHW_Fp2RS&||>sI@uTw#`)c+XC^`r_2sH4= zHSLDMhV;->7x?RzzytlK%f63j|97d3psa+bh?4S48PV?ue^&k-;ps&`S3L&&ukW<8 zr&s)XyFk(ZC*{k(udvW}(Ra|dF*N(jYcZZ&2?Bx(Y@DA-ZvTEY{;GP+pCDxZ1LDsp zp1@Z~;b5JO0tsPfa7~ z6)%(u@G=3Q#Zmr10-mt~$E*L^)I!cqPPR6JM*4P6e|i`7q&`fvUM@@Ed{udu?gY$BFG2KlQOARy15 zfP#Qv0Mk|cS6ESVE8~C1T>pyZ1#av&0=yk#V66MkT{D6E8#HlcW%+*%=f8sanu2y2 z0-H+$2nf8pC*>pYZ@?t1^-YbXZS{?Q*D)ufN3Hfi%t+wF0YRRW3}8R~*T7tM z`tP?$++wmn0-QDlVu65=JOKj%(E|3-e}$9&m-+m6yqUa!(`+ElFz}%G3C{(ncKcuP zWNclG|GJAE4A!uNfnZs{<7X4MVEGNGyo0f$<6omLE$8OO0TH`_2Q~2cQAAmPgQ{q3 zWvuV`7kB%8+~>p6xfdN>2aI1M<{@zGFR2srIuu7U=#4>qj2GU%{THaQV4! zKI;Dp_UDND=V=1XEB4c56W_C|{3sn3|1JdQyYlOg0^{}1s`~v4|Ghh&%3prh zO8rszz5iJ~zg15C_0gWnrhMOr_)&s=|526yX<*-_0-lPJ{4~P@>5lq)_+OP+p5FX- z^rxB_-@`V3lpf%B{O7U!*YV;<;5pf^GAF-Q^Hd2z_(vVUv)tH!P|Z(P{d+_B{$Nj| z>tFp;BWl7wsPQQ;{;w;18tL})Ajy#QzgPI5Ht^l5pT-{jjEw>OUjB72{Teym9=-IVY~=hc_7gRV-wp6j<6?fcu-)8$g#Y{I|Na{to;< zhzh@gKlRZ4JQk|9{2lmz*`fUv{;7xN`=a1p! + + ${APPLICATION.TITLE} + ${APPLICATION.VENDOR} + + ${APPLICATION.DESC} + ${APPLICATION.DESC.SHORT} + + + + + + + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Interface4/nbproject/build-impl.xml new file mode 100644 index 0000000..fbbd319 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/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/PrjJava/OCA7/Chapter4/Interface4/nbproject/configs/JWS_generated.properties b/PrjJava/OCA7/Chapter4/Interface4/nbproject/configs/JWS_generated.properties new file mode 100644 index 0000000..7a873bf --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/nbproject/configs/JWS_generated.properties @@ -0,0 +1,4 @@ +$label=Web Start +$target.debug=jws-debug +$target.run=jws-run +compile.on.save.unsupported.javawebstart=true diff --git a/PrjJava/OCA7/Chapter4/Interface4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Interface4/nbproject/genfiles.properties new file mode 100644 index 0000000..6236f93 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=69f2bd12 +build.xml.script.CRC32=35bdc2c7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=69f2bd12 +nbproject/build-impl.xml.script.CRC32=f75d04c4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Interface4/nbproject/jnlp-impl.xml b/PrjJava/OCA7/Chapter4/Interface4/nbproject/jnlp-impl.xml new file mode 100644 index 0000000..32bd923 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/nbproject/jnlp-impl.xml @@ -0,0 +1,923 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + javaws "${jnlp.file.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/nbproject/private/config.properties b/PrjJava/OCA7/Chapter4/Interface4/nbproject/private/config.properties new file mode 100644 index 0000000..272d89a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/nbproject/private/config.properties @@ -0,0 +1 @@ +config=JWS_generated diff --git a/PrjJava/OCA7/Chapter4/Interface4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Interface4/nbproject/private/private.properties new file mode 100644 index 0000000..b0ad727 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/nbproject/private/private.properties @@ -0,0 +1,6 @@ +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Interface4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Interface4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Interface4/nbproject/project.properties new file mode 100644 index 0000000..aa06508 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/nbproject/project.properties @@ -0,0 +1,100 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +ant.customtasks.libs=JWSAntTasks +application.title=Interface4 +application.vendor=andad +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}/Interface4.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath=\ + ${java.home}/lib/javaws.jar:\ + ${java.home}/lib/plugin.jar +excludes= +file.reference.game.jar=C:\\Users\\andad\\Downloads\\game.jar +includes=** +jar.archive.disabled=${jnlp.enabled} +jar.compress=false +jar.index=${jnlp.enabled} +javac.classpath=\ + ${file.reference.game.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.7 +javac.target=1.7 +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= +jnlp.codebase.type=local +jnlp.descriptor=applet +jnlp.enabled=true +jnlp.mixed.code=default +jnlp.offline-allowed=false +jnlp.signed=false +jnlp.signing= +jnlp.signing.alias= +jnlp.signing.keystore= +main.class=interface4.Interface4 +# Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found. +manifest.custom.application.library.allowable.codebase= +# Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts. +manifest.custom.caller.allowable.codebase= +# Optional override of default Codebase manifest attribute, use to prevent RIAs from being repurposed +manifest.custom.codebase= +# Optional override of default Permissions manifest attribute (supported values: sandbox, all-permissions) +manifest.custom.permissions= +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/PrjJava/OCA7/Chapter4/Interface4/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Interface4/nbproject/project.xml new file mode 100644 index 0000000..08be3a1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/nbproject/project.xml @@ -0,0 +1,21 @@ + + + org.netbeans.modules.java.j2seproject + + + + + + + + + Interface4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/preview-applet.html b/PrjJava/OCA7/Chapter4/Interface4/preview-applet.html new file mode 100644 index 0000000..6f5766b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/preview-applet.html @@ -0,0 +1,30 @@ + + + + + + + Test page for launching the applet via JNLP + + +

Test page for launching the applet via JNLP

+ + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/src/interface4/Bird.java b/PrjJava/OCA7/Chapter4/Interface4/src/interface4/Bird.java new file mode 100644 index 0000000..03bbe81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/src/interface4/Bird.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface4; + +/** + * + * @author andad + */ +public abstract class Bird implements Flyer { + public void fly() + { + + } + public void waddle() + { + + } +} diff --git a/PrjJava/OCA7/Chapter4/Interface4/src/interface4/CallAplet.html b/PrjJava/OCA7/Chapter4/Interface4/src/interface4/CallAplet.html new file mode 100644 index 0000000..b2fb29c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/src/interface4/CallAplet.html @@ -0,0 +1,21 @@ + + + + + TODO supply a title + + + + +
TODO write content
+ + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface4/src/interface4/Flyer.java b/PrjJava/OCA7/Chapter4/Interface4/src/interface4/Flyer.java new file mode 100644 index 0000000..fa527fe --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/src/interface4/Flyer.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface4; + +/** + * + * @author andad + */ +public interface Flyer { + void printWingspan(); + + void fly(); + + +} diff --git a/PrjJava/OCA7/Chapter4/Interface4/src/interface4/Interface4.java b/PrjJava/OCA7/Chapter4/Interface4/src/interface4/Interface4.java new file mode 100644 index 0000000..cda5260 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface4/src/interface4/Interface4.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface4; + +/** + * + * @author andad + */ +public class Interface4 extends Bird { + + /** + * @param args the command line arguments + */ + public void printWingspan() + { + + } + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter4/Interface5/build.xml b/PrjJava/OCA7/Chapter4/Interface5/build.xml new file mode 100644 index 0000000..69c45c5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Interface5. + + + diff --git a/PrjJava/OCA7/Chapter4/Interface5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Interface5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Interface5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Interface5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/Breakable.class b/PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/Breakable.class new file mode 100644 index 0000000000000000000000000000000000000000..df2e2ede3da808e531084c57199e679ea6162164 GIT binary patch literal 140 zcmX^0Z`VEs1_omWPId-%b_Nbc2HvEi)Wq!I+}!+1R8xJp93z7ONLD{5F)v-;KPf9UxrB|8 bfsug;XdeRuBMZ=I1{M&DffYzHF|Yvud`ckO literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/Car.class b/PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/Car.class new file mode 100644 index 0000000000000000000000000000000000000000..2cfd52004137fc27493ebcc287501bfb53c5b84c GIT binary patch literal 470 zcmZutyH3L}6g_T}rU{`bE#(bTx0Znn2r(3~RAPz%DX6;>OmUS5a$O`o3kHxF_y9f% zag(A#B|P~0o|muv`Stz*;1~xEYFM+;Lc5NJgLQN)Y*^T2sGZ47>T`x_uRmfihWV{v z@B*2M%UK!;b;F~CkXDe#JQ;B%i~a{R^u3%iG)b+6y5q4p@rPUu7#tqQA`yyf@;YHY zQ?a;^MNpjtM-%?YU0A4F*mALr9SgfI_OQ>;Sk9vKLhL6z8~az$M8tXt3ZJH0q%?j$ zBcchLc ziy|i6#mt>E=bSrpKfm5T0G#5$KnZI)>S&a)ZlH;lh7Apygwllv6t3AU_p(&gwSNRlJT8z<(btNp*!t~xJ#%wu@nz> z5JYP1PYH${O=4H}z0|PsOFX$3Pr`(TvW6`a+t?wr{wWWWiR1brNi^)5*uy@dvE)U< z>H^9m5NfHn<%@7++0#VHfcK0hDjhlNc#(A-v&dFFX}}{lmcWGKV@hIGdnTJ1Dh5a0 z&Jaf^^8cnM2TB*=sB>j;CeFp zXwvk#KdR{&G~G?pm-%kzJKyPA z8-Y5}u{IaV*KfNY|GLMd8>=7^sI|ZLF4e8-hAJ9%`>_e4;qhXeGD8xq{iiIDyCyDX zwVmcaQD)Ja@s$x+{T3dHAtYDQ<0c&`{jBS2Lv~4av!uc{s z<{sIE!u|&kED29&im0N-ytLQyOmjwSX&RlM$jy-N%;3^>W>|VMg@m=nPY1k&iw5_3 UMM)csnyCp5#tmWwt9G4@Kf?fuumAu6 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/SuperFancyCar.class b/PrjJava/OCA7/Chapter4/Interface5/build/classes/interface5/SuperFancyCar.class new file mode 100644 index 0000000000000000000000000000000000000000..9e17a4182f27a03462c590431544770e01aea9b4 GIT binary patch literal 613 zcmZ`$%T5A85Uk;~urBge#3!D>gL^Q>1IB|SoQN@5!+pRJR`)@MSra}>51M%J1N^iG1=3^CEkBSW(X$uge@Mso{E-{TLD#TjU>AED_6;1M$x#2# ziJ`L6`tfI|uArCUO`>&*p@->kZ){rgnG!BNfFCG^T7S{8ee+rp)l$T9X^lz@%#faj zL&R!Dv`A19IPSCuXd*+;&yc0RNK&SiD6UauQf8FXN3UQ{bV$IUm|1`Z@^m($0j#4y w6+>}JKBMW7oO?#1oP0s*S3sv0Xp}yAMI^TrDaDJVV??SXQi~NSlSKlRFV+cmO#lD@ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Interface5/manifest.mf b/PrjJava/OCA7/Chapter4/Interface5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Interface5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Interface5/nbproject/build-impl.xml new file mode 100644 index 0000000..36a0a09 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Interface5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Interface5/nbproject/genfiles.properties new file mode 100644 index 0000000..d82a62c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=652ffe3a +build.xml.script.CRC32=1b86bc10 +build.xml.stylesheet.CRC32=8064a381@1.79.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=652ffe3a +nbproject/build-impl.xml.script.CRC32=8d1a52b7 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Interface5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Interface5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Interface5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Interface5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface5/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Interface5/nbproject/project.properties new file mode 100644 index 0000000..3d11a5d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/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}/Interface5.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.7 +javac.target=1.7 +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=interface5.Interface5 +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/PrjJava/OCA7/Chapter4/Interface5/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Interface5/nbproject/project.xml new file mode 100644 index 0000000..d47b4d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Interface5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface5/src/interface5/Breakable.java b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/Breakable.java new file mode 100644 index 0000000..7b56778 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/Breakable.java @@ -0,0 +1,15 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface5; + +/** + * + * @author andad + */ +public interface Breakable { + public void breakSmmothly(); + +} diff --git a/PrjJava/OCA7/Chapter4/Interface5/src/interface5/Car.java b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/Car.java new file mode 100644 index 0000000..4a2fd4d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/Car.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface5; + +/** + * + * @author andad + */ +public class Car { + public void accelerate() + { + System.out.print("accelerate"); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Interface5/src/interface5/FancyCar.java b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/FancyCar.java new file mode 100644 index 0000000..462c63a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/FancyCar.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface5; + +/** + * + * @author andad + */ +public class FancyCar extends Car{ + public void breakSmmothly() + { + System.out.print("breakSmmothly subclass"); + } +} diff --git a/PrjJava/OCA7/Chapter4/Interface5/src/interface5/Interface5.java b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/Interface5.java new file mode 100644 index 0000000..3276e0b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/Interface5.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface5; + +/** + * + * @author andad + */ +public class Interface5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + print(new FancyCar()); + } + private static void print(Car car) + { + //((Breakable)car).breakSmmothly(); + //((SuperFancyCar)car).turn(); + ((SuperFancyCar)car).breakSmmothly(); + car.accelerate(); + ((FancyCar)car).breakSmmothly(); + ((FancyCar)car).accelerate(); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Interface5/src/interface5/SuperFancyCar.java b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/SuperFancyCar.java new file mode 100644 index 0000000..2d4b30f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface5/src/interface5/SuperFancyCar.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface5; + +/** + * + * @author andad + */ +public class SuperFancyCar extends FancyCar implements Breakable{ + + public void breakSmmothly() + { + System.out.print("breakSmmothly"); + } + public void turn() + { + System.out.print("turn"); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Interface6/build.xml b/PrjJava/OCA7/Chapter4/Interface6/build.xml new file mode 100644 index 0000000..ee3db3f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Interface6. + + + diff --git a/PrjJava/OCA7/Chapter4/Interface6/manifest.mf b/PrjJava/OCA7/Chapter4/Interface6/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface6/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Interface6/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Interface6/nbproject/build-impl.xml new file mode 100644 index 0000000..0a4247c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface6/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Interface6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Interface6/nbproject/genfiles.properties new file mode 100644 index 0000000..61b6962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7d1b6a50 +build.xml.script.CRC32=69cb3f69 +build.xml.stylesheet.CRC32=8064a381@1.79.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=7d1b6a50 +nbproject/build-impl.xml.script.CRC32=9c4cd037 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Interface6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Interface6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Interface6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Interface6/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface6/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface6/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Interface6/nbproject/project.properties new file mode 100644 index 0000000..3804b42 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface6/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}/Interface6.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.7 +javac.target=1.7 +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=interface6.Interface6 +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/PrjJava/OCA7/Chapter4/Interface6/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Interface6/nbproject/project.xml new file mode 100644 index 0000000..ad6e439 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Interface6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface6/src/interface6/Interface6.java b/PrjJava/OCA7/Chapter4/Interface6/src/interface6/Interface6.java new file mode 100644 index 0000000..e49139d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface6/src/interface6/Interface6.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface6; + +/** + * + * @author andad + */ +public class Interface6 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter4/Interface7/build.xml b/PrjJava/OCA7/Chapter4/Interface7/build.xml new file mode 100644 index 0000000..0dc1179 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Interface7. + + + diff --git a/PrjJava/OCA7/Chapter4/Interface7/manifest.mf b/PrjJava/OCA7/Chapter4/Interface7/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface7/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Interface7/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Interface7/nbproject/build-impl.xml new file mode 100644 index 0000000..3c18031 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface7/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Interface7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Interface7/nbproject/genfiles.properties new file mode 100644 index 0000000..d1ea297 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7508e676 +build.xml.script.CRC32=47f041be +build.xml.stylesheet.CRC32=8064a381@1.79.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=7508e676 +nbproject/build-impl.xml.script.CRC32=25ae5388 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Interface7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Interface7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Interface7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Interface7/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface7/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface7/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Interface7/nbproject/project.properties new file mode 100644 index 0000000..b310951 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface7/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}/Interface7.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.7 +javac.target=1.7 +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=interface7.Interface7 +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/PrjJava/OCA7/Chapter4/Interface7/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Interface7/nbproject/project.xml new file mode 100644 index 0000000..33fcc62 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Interface7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Interface7/src/interface7/Interface7.java b/PrjJava/OCA7/Chapter4/Interface7/src/interface7/Interface7.java new file mode 100644 index 0000000..e8c1d81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Interface7/src/interface7/Interface7.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package interface7; + +/** + * + * @author andad + */ +interface Bozo { + + int type = 0; + + public void jump(); +} + +public class Interface7 implements Bozo { + + public Interface7() { + //type = 1; + } + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Bozo b = new Interface7(); + b.jump(); + + } + + public void jump() { + System.out.println("jumping..." + type); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Intsum/build.xml b/PrjJava/OCA7/Chapter4/Intsum/build.xml new file mode 100644 index 0000000..6b81eb6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Intsum/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Intsum. + + + diff --git a/PrjJava/OCA7/Chapter4/Intsum/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Intsum/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Intsum/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Intsum/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Intsum/build/classes/intsum/Intsum.class b/PrjJava/OCA7/Chapter4/Intsum/build/classes/intsum/Intsum.class new file mode 100644 index 0000000000000000000000000000000000000000..84b73b28aafd61274ed17ad87b396894b6e954e5 GIT binary patch literal 802 zcmaJ<%Wl&^6g?9scH+7;&8v?XXrX|UHg%!PBrHHeiWC7-P^5@WCy5oNa_q>lE3xHE z`U|i~C6HKj$wwjX*paF>6_#f1+{c`A?)Cin`|~$|Q=IBpgPFraJks!3hXPY>ds*yD z`$TR}bsXTChUXeyFsLoziSRXpV%7Q#>9_vaVc6&j&v_qBhfeT`4_%5By8ei}eI5wu zFN5juiZ6cu$&vaatW( zLk7L)N5RN>C!~h81pin<8ZfY~!7@-oonh-P&6`NLV<#|hh$Du~(e>r^rF0qwj$vy! zG4K+v7}iCsc`2PCe*^SkcKfKcviZOIZ0IL5WGGpyg@jm))!!Dxpv|N_mwrh3KE^)wA>WPsQebkh zv_BxvCdQ`Xjr?Zh1U=s!Mawwui5qbF=y)}jGNnUT|OYN#QXq~mp z?4W(t{(;mlD1$4cs|#cb>H?ZchXt|= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Intsum/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Intsum/nbproject/genfiles.properties new file mode 100644 index 0000000..871ca26 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Intsum/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=80093e6b +build.xml.script.CRC32=a76b0751 +build.xml.stylesheet.CRC32=8064a381@1.79.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=80093e6b +nbproject/build-impl.xml.script.CRC32=66ac57c0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Intsum/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Intsum/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Intsum/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Intsum/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Intsum/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Intsum/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Intsum/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Intsum/nbproject/project.properties new file mode 100644 index 0000000..8ec3cec --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Intsum/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}/Intsum.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.7 +javac.target=1.7 +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=intsum.Intsum +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/PrjJava/OCA7/Chapter4/Intsum/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Intsum/nbproject/project.xml new file mode 100644 index 0000000..ea657fa --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Intsum/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Intsum + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Intsum/src/intsum/Intsum.java b/PrjJava/OCA7/Chapter4/Intsum/src/intsum/Intsum.java new file mode 100644 index 0000000..9c4e65e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Intsum/src/intsum/Intsum.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package intsum; + +/** + * + * @author andad + */ +public class Intsum { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int a = 10; + int b = 20; + a += (a = 4); + b = b + (b = 5); + System.out.println(a + ",  " + b); + } + +} diff --git a/PrjJava/OCA7/Chapter4/JavaApplication32/build.xml b/PrjJava/OCA7/Chapter4/JavaApplication32/build.xml new file mode 100644 index 0000000..f2dd6f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/JavaApplication32/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project JavaApplication32. + + + diff --git a/PrjJava/OCA7/Chapter4/JavaApplication32/build/classes/javaapplication32/JavaApplication32.class b/PrjJava/OCA7/Chapter4/JavaApplication32/build/classes/javaapplication32/JavaApplication32.class new file mode 100644 index 0000000000000000000000000000000000000000..4c0ddc9dd80c9d2fb30e2bdf49a4e7f8de74568d GIT binary patch literal 588 zcma)3O-sW-5Ph4bO&g=B{YcgNRYhn$7*KC5f(SyTSfSF3r)>=FmVA^n75!OyQ1IXn z@JET0M9`uK7j|do&CHv5yYC;bZvc+5qauxR4hAYJR8!(M01?>L`K9AWWL_}c|pkO zPozoYE*BnyQNM``Oow|zvlj-!8#d$SJQxyP@sBVAyQke|P<#F?u&p39$6pqvO1zIjC|LegS$ zmy{M`j(M0tnM6qrJ%LqT()*No4hGtD09wttUv;XQaMq3e*)SQc{UJmZ`83QyNJbbmS>65#=%p KL`rI6zw`+sV|yq7 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/JavaApplication32/manifest.mf b/PrjJava/OCA7/Chapter4/JavaApplication32/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/JavaApplication32/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/build-impl.xml new file mode 100644 index 0000000..3120734 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/genfiles.properties new file mode 100644 index 0000000..37c3a02 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9a9d9c84 +build.xml.script.CRC32=bd9819dc +build.xml.stylesheet.CRC32=8064a381@1.79.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=9a9d9c84 +nbproject/build-impl.xml.script.CRC32=5b8847a8 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/private/private.xml new file mode 100644 index 0000000..2fc6eca --- /dev/null +++ b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/anda/JavaApplication32/src/javaapplication32/JavaApplication32.java + + + diff --git a/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/project.properties b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/project.properties new file mode 100644 index 0000000..f878cb0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/JavaApplication32/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}/JavaApplication32.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=javaapplication32.JavaApplication32 +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/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/project.xml b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/project.xml new file mode 100644 index 0000000..93c493f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/JavaApplication32/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + JavaApplication32 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/JavaApplication32/src/javaapplication32/JavaApplication32.java b/PrjJava/OCA7/Chapter4/JavaApplication32/src/javaapplication32/JavaApplication32.java new file mode 100644 index 0000000..72827ab --- /dev/null +++ b/PrjJava/OCA7/Chapter4/JavaApplication32/src/javaapplication32/JavaApplication32.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javaapplication32; + +/** + * + * @author anda + */ +public class JavaApplication32 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + int x = 5; + x *=3+7; + System.out.println(x); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Left-Hand Operand1/build.xml b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/build.xml new file mode 100644 index 0000000..e29e5b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Left-Hand Operand1. + + + diff --git a/PrjJava/OCA7/Chapter4/Left-Hand Operand1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Left-Hand Operand1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Left-Hand Operand1/build/classes/left/hand/operand1/LeftHandOperand1.class b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/build/classes/left/hand/operand1/LeftHandOperand1.class new file mode 100644 index 0000000000000000000000000000000000000000..b6cfa2eeba168ef0b2bd7ab3deea0b2268c4f856 GIT binary patch literal 602 zcma)3$w~u35Ph9(OdL(j=Ds5&9vsADq8C973@Std>Zudkq{Cz;OeTV#r3VEMet;h( zzL^N3c(9?ns$NySs_J_GczpwKfb9&DD5o)xg$x$4WMJ9Aia@HaT^$?=#4FX7K;qcD zRRURCyXtH_Xe<9xwjCmQ+v`ZDC4C**Utl8W>5;&W?WnuJ>Ph$3@`lQ%+_!8(r_|2B zfEvjMQo91>%8lKZ_tJ8t+qIg3uib7fDlYvl=?Z_i1%&2p@b(2VO>gXX)QJu|EB&st z7m}Mu!7#9DVh!sCHcV_{OJMsSoeJc>+dFUfRVVlXH6KQS8t})wF&(AJEZVa!I7q;8 zlpJu_Ld5YC7BGfkki%a{R2tP5n@Vsm;faCEfWdc)mPIKjle;evkC8jgHx+>_tTS)jnUA~Qw=#P + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/genfiles.properties new file mode 100644 index 0000000..b1c4bed --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ad2ce29a +build.xml.script.CRC32=eea3028b +build.xml.stylesheet.CRC32=8064a381@1.79.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=ad2ce29a +nbproject/build-impl.xml.script.CRC32=a70233b9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/project.properties new file mode 100644 index 0000000..09d5963 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/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}/Left-Hand_Operand1.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.7 +javac.target=1.7 +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=left.hand.operand1.LeftHandOperand1 +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/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/project.xml new file mode 100644 index 0000000..fe7d545 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Left-Hand Operand1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Left-Hand Operand1/src/left/hand/operand1/LeftHandOperand1.java b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/src/left/hand/operand1/LeftHandOperand1.java new file mode 100644 index 0000000..463f76f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-Hand Operand1/src/left/hand/operand1/LeftHandOperand1.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package left.hand.operand1; + +/** + * + * @author andad + */ +public class LeftHandOperand1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 2; + int j = (i=3) * i; + System.out.println(j); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Left-HandOperand/build.xml b/PrjJava/OCA7/Chapter4/Left-HandOperand/build.xml new file mode 100644 index 0000000..a619219 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-HandOperand/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Left-HandOperand. + + + diff --git a/PrjJava/OCA7/Chapter4/Left-HandOperand/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Left-HandOperand/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Left-HandOperand/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Left-HandOperand/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Left-HandOperand/build/classes/left/handoperand/LeftHandOperand.class b/PrjJava/OCA7/Chapter4/Left-HandOperand/build/classes/left/handoperand/LeftHandOperand.class new file mode 100644 index 0000000000000000000000000000000000000000..8db2231967717099e92671d2f369035284b32ed9 GIT binary patch literal 1120 zcmah|TTc^F5dO}#bj!Nj3I&mi3!)SRR>eET3y85v0h1aM;?vR|%GP$bS+-vOkBQIt zP>dw{?vGNx(-kOc^kHYtd}n69x$OD&{qq+9i&!(zi;RID%;=cy#8u20n8$(++du-D zB(5oaU5Oh?EUN39N!&6J!)+aRbleq4WL?h<9|*)UGg|`jRlg(!dh)I(HyX7a8N6_I zszg$GzvxuAoWND~FEAeNx%&c>`KsIv?LEgU`E?mk*?9ubc-V~WC1$QUt|u^9(u2w?$bGUEfo&PEaOK|6f8GSmBow=qiLx@zuIhZxyFw zjAIcE9V#LQ?E{68S_e|W! zl8&s2WpI!~r(RKeD-E|=k^yVk@ZVS!YuPgK5Ra62Y+?ngD)0%1o|~>&ej^MWYflDp zLQxa8{x@8K-c!oWor)~7**2)~Za?dd) z+u7>!2TZMhM0~D^4yq$0why7Fl1+4uG+{Jxt_kyi;TjBdwZawMICRQ>qG{s8yct9{ z>Cz-yz(}hMi{9O^aDld_NHK~rYK;$g92c3>qSXiO2g5ZT6KqV!q=lsVPwA#Ao@~_% g7)OY0r@9W&{go((Ng4G#hRZz1iK#(d;aS7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/genfiles.properties new file mode 100644 index 0000000..65ac667 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8a29cb8f +build.xml.script.CRC32=7b555515 +build.xml.stylesheet.CRC32=8064a381@1.79.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=8a29cb8f +nbproject/build-impl.xml.script.CRC32=b99b655e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/project.properties new file mode 100644 index 0000000..81aaf3a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-HandOperand/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}/Left-HandOperand.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.7 +javac.target=1.7 +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=left.handoperand.LeftHandOperand +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/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/project.xml new file mode 100644 index 0000000..cb5dbd6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-HandOperand/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Left-HandOperand + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Left-HandOperand/src/left/handoperand/LeftHandOperand.java b/PrjJava/OCA7/Chapter4/Left-HandOperand/src/left/handoperand/LeftHandOperand.java new file mode 100644 index 0000000..35ff19c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Left-HandOperand/src/left/handoperand/LeftHandOperand.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package left.handoperand; + +/** + * + * @author andad + */ +public class LeftHandOperand { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int j = 1; + try { + int i = forgetIt() / (j = 2); + } catch (Exception e) { + System.out.println(e); + System.out.println("Now j = " + j); + } + + } + static int forgetIt() throws Exception { + throw new Exception("I'm outta here!"); + } + + +} diff --git a/PrjJava/OCA7/Chapter4/Method1/build.xml b/PrjJava/OCA7/Chapter4/Method1/build.xml new file mode 100644 index 0000000..7689877 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Method1. + + + diff --git a/PrjJava/OCA7/Chapter4/Method1/manifest.mf b/PrjJava/OCA7/Chapter4/Method1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Method1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Method1/nbproject/build-impl.xml new file mode 100644 index 0000000..4c642c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method1/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Method1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Method1/nbproject/genfiles.properties new file mode 100644 index 0000000..a870fbf --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a1fe6feb +build.xml.script.CRC32=dc019e07 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a1fe6feb +nbproject/build-impl.xml.script.CRC32=494b51ab +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Method1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Method1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Method1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Method1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Method1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Method1/nbproject/project.properties new file mode 100644 index 0000000..c9f21b4 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method1/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}/Method1.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.7 +javac.target=1.7 +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=method1.Method1 +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/PrjJava/OCA7/Chapter4/Method1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Method1/nbproject/project.xml new file mode 100644 index 0000000..2acb5dd --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Method1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Method1/src/method1/Method1.java b/PrjJava/OCA7/Chapter4/Method1/src/method1/Method1.java new file mode 100644 index 0000000..4382da2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method1/src/method1/Method1.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package method1; + +/** + * + * @author anda + */ + +public class Method1 { + + static String s = "-"; + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + + void go() + { + s +="s"; + } + + static void go1() + { + s +="s"; + } + +} diff --git a/PrjJava/OCA7/Chapter4/Method2/build.xml b/PrjJava/OCA7/Chapter4/Method2/build.xml new file mode 100644 index 0000000..d4a1211 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Method2. + + + diff --git a/PrjJava/OCA7/Chapter4/Method2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Method2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Method2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Method2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Method2/build/classes/method2/Method2.class b/PrjJava/OCA7/Chapter4/Method2/build/classes/method2/Method2.class new file mode 100644 index 0000000000000000000000000000000000000000..5db6883c662fb40682e2325be4c68decb6960891 GIT binary patch literal 489 zcmZutO-sW-5Pg%Tjg4FTrK$B3Z&krSJytwa@DvrP6vWe}4e6FPftdQgyjW212l%7J z*|bs+13RX}gWra?N2hi&&}kvl9jl`0}QttW3R zU!*&cQRw#4L`7jITO^Z^N9+Hz3FH&RuV~xtvYy?GXUQPAR@#hM?m5%a0&6HTVd;VC z0{bWm9B8=w#~Pus@^j~pgF(t~AI4pR5ym(|f&Z8O43HM)XmjOqCeHbjIp{TOuX8M9 zUo~UuB!=Hc^(GXFEFZwR}@zP4pD$d(#o$8dl}*pYoPKC D_Jma4 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Method2/build/classes/method22/B.class b/PrjJava/OCA7/Chapter4/Method2/build/classes/method22/B.class new file mode 100644 index 0000000000000000000000000000000000000000..02cc64fc2b89b5b4456c8d1cae5341840e727aef GIT binary patch literal 449 zcmZut%SyvQ6g|^NUdAS-*0(};tqTKn;i4i~!Br5U(*3j@+L0t9=~VEubfMtF5AdVJ zn^f8^oW;F!o&)p!^Z5nf948J8Y}p7G>w9E ru|aotVW7Q9h@rL&Ule74{f1Iden(|h;E)7(WcAld>}82ZY6<=?CT>w2 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Method2/manifest.mf b/PrjJava/OCA7/Chapter4/Method2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Method2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Method2/nbproject/build-impl.xml new file mode 100644 index 0000000..05d7f22 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Method2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Method2/nbproject/genfiles.properties new file mode 100644 index 0000000..bf4386a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b9cafb81 +build.xml.script.CRC32=a4f5164a +build.xml.stylesheet.CRC32=8064a381@1.79.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=b9cafb81 +nbproject/build-impl.xml.script.CRC32=4a336984 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Method2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Method2/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Method2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Method2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Method2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Method2/nbproject/project.properties new file mode 100644 index 0000000..710f99a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/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}/Method2.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.7 +javac.target=1.7 +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=method2.Method2 +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/PrjJava/OCA7/Chapter4/Method2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Method2/nbproject/project.xml new file mode 100644 index 0000000..c7c76ca --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Method2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Method2/src/method2/Method2.java b/PrjJava/OCA7/Chapter4/Method2/src/method2/Method2.java new file mode 100644 index 0000000..5afd870 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/src/method2/Method2.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package method2; + +/** + * + * @author anda + */ +import method22.*; +public class Method2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + B b = new B(); + // referinta b va mosteni de la ambele clase si de la A si de la B + b.doB(); + b.go(); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Method2/src/method22/A.java b/PrjJava/OCA7/Chapter4/Method2/src/method22/A.java new file mode 100644 index 0000000..5f070a6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/src/method22/A.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package method22; + +/** + * + * @author anda + */ +public class A { + public void go() + { + System.out.println("A.go"); + } +} diff --git a/PrjJava/OCA7/Chapter4/Method2/src/method22/B.java b/PrjJava/OCA7/Chapter4/Method2/src/method22/B.java new file mode 100644 index 0000000..d2584e3 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Method2/src/method22/B.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package method22; + +/** + * + * @author anda + */ +public class B extends A{ + public void doB() + { + System.out.println("doB"); + } + +} diff --git a/PrjJava/OCA7/Chapter4/NullInstanceOf/build.xml b/PrjJava/OCA7/Chapter4/NullInstanceOf/build.xml new file mode 100644 index 0000000..c7c6d05 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/NullInstanceOf/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception3. + + + diff --git a/PrjJava/OCA7/Chapter4/NullInstanceOf/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/NullInstanceOf/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/NullInstanceOf/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/NullInstanceOf/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/NullInstanceOf/build/classes/nullinstanceof/NullInstanceOf.class b/PrjJava/OCA7/Chapter4/NullInstanceOf/build/classes/nullinstanceof/NullInstanceOf.class new file mode 100644 index 0000000000000000000000000000000000000000..61f9c55b57c7405f3de220bea3bc4a9ac1b0598f GIT binary patch literal 722 zcmaJ<%Wl&^6g}fSoTTn6ZcTxPru0Dq5?-(@VuOT)WLl)4Y*Tqp$etkaDSQEI zSb)R=soQ=NLY#4eP*j8$ckVfN?zs=o)vxbA06ap!1qU}>+-l-Bb{pula0h!0bY1KV z)E_IY%oBl1uRj#1KF!`F0_%~|$?0q|O7d57l#*#jSuE3`%$3CpvTEL{LSQe_vouw@ zFjB`!b{?J*K3~AI^ApNWq|yRG?{#z`-^(zSdK?Z+uJrh%EGzRdh5Ubn*;!$7+rYI< zfz^SL@w*ptS~le3u0U&$&GI;Trfk>#awiY1gog&20vmtj&PEqWY+M|8IK&ZES+J{$ z?jQcx!#(r_HW$3k%pxYx`S0jUW#;oPQy&VGOgLgTGXmT55mgqx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/genfiles.properties new file mode 100644 index 0000000..c04f1af --- /dev/null +++ b/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=531280da +build.xml.script.CRC32=14a3de37 +build.xml.stylesheet.CRC32=8064a381@1.79.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=531280da +nbproject/build-impl.xml.script.CRC32=66d99448 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/project.properties b/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/project.properties new file mode 100644 index 0000000..c5a974c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/NullInstanceOf/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}/Exception3.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.7 +javac.target=1.7 +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=nullinstanceof.NullInstanceOf +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/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/project.xml b/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/project.xml new file mode 100644 index 0000000..6c03fe2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/NullInstanceOf/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/NullInstanceOf/src/nullinstanceof/NullInstanceOf.java b/PrjJava/OCA7/Chapter4/NullInstanceOf/src/nullinstanceof/NullInstanceOf.java new file mode 100644 index 0000000..12b2d7d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/NullInstanceOf/src/nullinstanceof/NullInstanceOf.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package nullinstanceof; + +/** + * + * @author anda + */ +public class NullInstanceOf { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String str = null; + if (str instanceof Object) // NULLCHEK + { + System.out.println("str is Object"); + } else { + System.out.println("str is not Object"); + } + + } + +} diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/build.xml b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/build.xml new file mode 100644 index 0000000..366da84 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ORNonShortCircuit. + + + diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/build/classes/ornonshortcircuit/ORNonShortCircuit.class b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/build/classes/ornonshortcircuit/ORNonShortCircuit.class new file mode 100644 index 0000000000000000000000000000000000000000..787ee2fd45cc83c5ed72876a94400682c1de7762 GIT binary patch literal 553 zcma)(O;5r=5Qg7{LZMbc3i$mMV*(!R!Nd#33yCL!#u^TKT51DJXxA)T6MvQ-H1XgM z@JAV^#RQ2S+{5h7Gqdl^?0$T{y#qMLu7w<&BC4oasAI*%s);p*{Hch9K4Zu>nmq=i zE$;$`Qb$BVHxB!Oy5{{ckxEDUeB9$oB>p!v^iWI~4mwgrGMWsf(!NlBEVO%Z)s>N# zkoJ_cNIc{sVyHK6J0t$U-7${_uBVlV2CcL>R|ArB{s=Qzo{W_roQtHJ`Y-vTMA1eb zripbM8`w0lWn&vV4Ez6RkD)y4>7qXhd_9M}$B7O?dL|iDpf(*qNcWPu*EB=GLz>V@ zHRdrx?mkJP`5QOQ9`<0+S0pO~dViQ?3*@=9Gum^9uV7DUxJWjiLK_yH?P&rQ=mZq8 nh$SM)<&#tlC_E!$ydXQfZ&3trs7&>TMgb+1i8Cyd&7krH!t8nb literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/manifest.mf b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/build-impl.xml new file mode 100644 index 0000000..ddbe53f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/genfiles.properties new file mode 100644 index 0000000..5c2be2a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9808b30e +build.xml.script.CRC32=9df3a1ce +build.xml.stylesheet.CRC32=8064a381@1.79.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=9808b30e +nbproject/build-impl.xml.script.CRC32=297e2008 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/project.properties b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/project.properties new file mode 100644 index 0000000..5dac8ac --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/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}/ORNonShortCircuit.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.7 +javac.target=1.7 +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=ornonshortcircuit.ORNonShortCircuit +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/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/project.xml b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/project.xml new file mode 100644 index 0000000..1b08523 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ORNonShortCircuit + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/ORNonShortCircuit/src/ornonshortcircuit/ORNonShortCircuit.java b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/src/ornonshortcircuit/ORNonShortCircuit.java new file mode 100644 index 0000000..fbfb536 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ORNonShortCircuit/src/ornonshortcircuit/ORNonShortCircuit.java @@ -0,0 +1,22 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package ornonshortcircuit; + +/** + * + * @author andad + */ +public class ORNonShortCircuit { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.print(true | false); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Octal1/build.xml b/PrjJava/OCA7/Chapter4/Octal1/build.xml new file mode 100644 index 0000000..8aaeba1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Octal1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Octal1. + + + diff --git a/PrjJava/OCA7/Chapter4/Octal1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Octal1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Octal1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Octal1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Octal1/build/classes/octal1/Octal1.class b/PrjJava/OCA7/Chapter4/Octal1/build/classes/octal1/Octal1.class new file mode 100644 index 0000000000000000000000000000000000000000..8aa2be6bc313edc5716f5a11fd729a9af2b56496 GIT binary patch literal 768 zcmZ{h&2G~`6ot=Z#-7GaY1)uL`EB`4Xo*Ex79k-dB%~CBTtzZjO^g*>lDJA8Bo^>2 z>{!DBBm_JF4@EiSAdyJm#oU?io_p_^@y}mhe*n0PmIoIXG-_pB#3c`xv8l18aYewr zmyXl?zJP4Dx&rE9_978j?WE)6$#m3DCI_ZJBw6odu^D#FB(>*1P~|VvW2?^M+zjvd zK@s-YW@OT_K%?2~9Gch0ADZ#N5A#Vn9_$rk%w)jA+CS0)!U&XlkGbj7R?qHM!ra8K z_RUc-SYu72u5nes3$y7YP9CM!($wmuK1*(7T1^vS$ z&S|PZY34tr-JGTqGg=UaZ;tbXNM=*Y>$4j!>iGov$d(WJ3aa_M)x{PZ{sjA#z$})y zmU;3S1*3E83&h7F?QwMrSiv&)m6?EXg{Lx3VU>i%qQ*v&?4ADRMN$Qka)QXIZU>R8 zgO2+hrAWH-DIJ87DhP#zSdlmdktDX%ae{FF6Xdqr-jTab`#rS!03|;|S?aWRoLx0f zt!oMEy1`2VHPmq$&$tdq-r{U=i_Mu+RIx@)9VynS6x7|Oy3S{5kUxMrK@6#JMx&%z XD>ODvn3+T58{*(UoGs5$Uc&j`3yzA& literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Octal1/manifest.mf b/PrjJava/OCA7/Chapter4/Octal1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Octal1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Octal1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Octal1/nbproject/build-impl.xml new file mode 100644 index 0000000..6350f37 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Octal1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Octal1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Octal1/nbproject/genfiles.properties new file mode 100644 index 0000000..8f8e7bb --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Octal1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=76e7fca7 +build.xml.script.CRC32=ec1cc3f7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=76e7fca7 +nbproject/build-impl.xml.script.CRC32=e18e48fd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Octal1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Octal1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Octal1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Octal1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Octal1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Octal1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Octal1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Octal1/nbproject/project.properties new file mode 100644 index 0000000..2dbf5b8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Octal1/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}/Octal1.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.7 +javac.target=1.7 +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=octal1.Octal1 +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/PrjJava/OCA7/Chapter4/Octal1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Octal1/nbproject/project.xml new file mode 100644 index 0000000..fe0af3e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Octal1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Octal1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Octal1/src/octal1/Octal1.java b/PrjJava/OCA7/Chapter4/Octal1/src/octal1/Octal1.java new file mode 100644 index 0000000..3520868 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Octal1/src/octal1/Octal1.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package octal1; + +/** + * + * @author andad + */ +public class Octal1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int a[] = {1, 2, 053, 4}; + int b[][] = {{1, 2, 4}, {2, 2, 1}, {0, 43, 2}}; + System.out.println(a[3]==b[0][2]); + System.out.println(a[2]==b[2][1]); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator1/build.xml b/PrjJava/OCA7/Chapter4/Operator1/build.xml new file mode 100644 index 0000000..78bfc21 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator1. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator1/build/classes/operator1/Operator1.class b/PrjJava/OCA7/Chapter4/Operator1/build/classes/operator1/Operator1.class new file mode 100644 index 0000000000000000000000000000000000000000..514ebfd90ff9b227ae06a4848201d15586115906 GIT binary patch literal 992 zcmaJ=YfsZq7=8}hXjco&-B1{A^G2D#gsG??;z*2=MMy9t#!rV)XUWzsr8Dw(`~~WV zVKngv_@j)^>4q>_Y|{7kyqD*^J^l6j`%eHBY#K;oR!1&IS3RXuV?GWGb2>@}?qFWS zf&l}w22xm5R#}O=N-XJER=T1R?`gQN;eo*Dn&Udbx;gwQrHEo9hqQRLlAhnF-05=NGCl75+5P{&Fq z5MOAF;0onv7#zb@+GZ~SQ<$d5>y8;lRPl6(0FmU#XS(8CX$o;%L%yH*i4E1iv6Dt* zBaK+~E3~BEMV$Hvj5jB^^bKYgWBD$|8J|cd=yY*;ASGXvgnNl0mOLXo#R(v(C^_h) nogm!`32u{vIz#~xHJ`dj9Yqb-af9r1yueLbYAd&hjNtYk7w*mN literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Operator1/manifest.mf b/PrjJava/OCA7/Chapter4/Operator1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator1/nbproject/build-impl.xml new file mode 100644 index 0000000..bcb845b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator1/nbproject/genfiles.properties new file mode 100644 index 0000000..e5e3c6b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3e498c65 +build.xml.script.CRC32=9c999bba +build.xml.stylesheet.CRC32=8064a381@1.79.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=3e498c65 +nbproject/build-impl.xml.script.CRC32=4e6e1f88 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator1/nbproject/project.properties new file mode 100644 index 0000000..1c7a5b0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator1/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}/Operator1.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.7 +javac.target=1.7 +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=operator1.Operator1 +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/PrjJava/OCA7/Chapter4/Operator1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator1/nbproject/project.xml new file mode 100644 index 0000000..fba618d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator1/src/operator1/Operator1.java b/PrjJava/OCA7/Chapter4/Operator1/src/operator1/Operator1.java new file mode 100644 index 0000000..2da0ae2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator1/src/operator1/Operator1.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator1; + +import static java.lang.System.out; +/** + * + * @author anda + */ +public class Operator1 { + + /** + * @param args the command line arguments + */ + + static String foo() {return "foo";} + + public static void main(String[] args) { + // TODO code application logic here + long x = 42L; + long y = 44L; + System.out.print(" " + 7 + 2 + " "); + System.out.print(foo() + x+ 5 + " "); + out.println(x + y + foo() ); + + + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator10/build.xml b/PrjJava/OCA7/Chapter4/Operator10/build.xml new file mode 100644 index 0000000..3254186 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator10. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator10/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Operator10/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator10/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Operator10/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator10/build/classes/operator10/Operator10.class b/PrjJava/OCA7/Chapter4/Operator10/build/classes/operator10/Operator10.class new file mode 100644 index 0000000000000000000000000000000000000000..a7ac4143c6e83027b068cc6bbd92b0a819b886f7 GIT binary patch literal 921 zcmZuvOK;Oa7@T#SIC0%3O_~R^Jjyc(P&aTaLY0t^A_6T6%AuS#!6Yt@9k~t?7k&*A z7cOuphyzCs{3u}7i5i#o;{A5M-I;G@{rk_4p8y`eX4U*q;oCoVavOo6~lKX*h76 zxXN&TVPs2ywg>AGfRIw^hJ~s@3!ou8M|IiuGZ~~g; z5kCWcCL8aMB4^A-pdu>IY`KBG&-^0Za^#pnmtykMuz)d9hdc(N*AE&!Z1Ux^{5t?0 zLiyo$i94IC;F@lJgZRQigT-$q1}!YJwq^&gf;@LQ<(r7Q{DP-7uEpjr@ol~&u9}QV>KfLebYqKchXR@!@}wNXP(7!`JMtWXmSS}J;;Xz=XIc#wL RONpeaL^s$IL{*-b{{d;Cr&j;~ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Operator10/manifest.mf b/PrjJava/OCA7/Chapter4/Operator10/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator10/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator10/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator10/nbproject/build-impl.xml new file mode 100644 index 0000000..9220ec6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator10/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator10/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator10/nbproject/genfiles.properties new file mode 100644 index 0000000..a35f77f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3cc7aecc +build.xml.script.CRC32=0621baf5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3cc7aecc +nbproject/build-impl.xml.script.CRC32=c90621bc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator10/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator10/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator10/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator10/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator10/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator10/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator10/nbproject/project.properties new file mode 100644 index 0000000..7ef1f13 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator10/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}/Operator10.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.7 +javac.target=1.7 +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=operator10.Operator10 +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/PrjJava/OCA7/Chapter4/Operator10/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator10/nbproject/project.xml new file mode 100644 index 0000000..8349576 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator10 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator10/src/operator10/Operator10.java b/PrjJava/OCA7/Chapter4/Operator10/src/operator10/Operator10.java new file mode 100644 index 0000000..b10bb9f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator10/src/operator10/Operator10.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator10; + +/** + * + * @author andad + */ +public class Operator10 { + + /** + * @param args the command line arguments + */ + public static boolean longerThan(String input, int length) { + return input != null && input.length() > length; + } + + public static boolean longerThan1(String input, int length) { + return input != null & input.length() > length; + } + + public static void main(String[] args) { + // TODO code application logic here + System.out.println(longerThan(null, 1)); + System.out.println(longerThan1(null, 1)); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator11/build.xml b/PrjJava/OCA7/Chapter4/Operator11/build.xml new file mode 100644 index 0000000..cc29062 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator11/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator11. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator11/manifest.mf b/PrjJava/OCA7/Chapter4/Operator11/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator11/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator11/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator11/nbproject/build-impl.xml new file mode 100644 index 0000000..9910bd2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator11/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator11/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator11/nbproject/genfiles.properties new file mode 100644 index 0000000..1d0dc4e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator11/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=34d422ea +build.xml.script.CRC32=281ac422 +build.xml.stylesheet.CRC32=8064a381@1.79.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=34d422ea +nbproject/build-impl.xml.script.CRC32=70e4a203 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator11/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator11/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator11/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator11/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator11/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator11/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator11/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator11/nbproject/project.properties new file mode 100644 index 0000000..93b524d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator11/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}/Operator11.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.7 +javac.target=1.7 +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=operator11.Operator11 +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/PrjJava/OCA7/Chapter4/Operator11/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator11/nbproject/project.xml new file mode 100644 index 0000000..db909bf --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator11/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator11 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator11/src/operator11/Operator11.java b/PrjJava/OCA7/Chapter4/Operator11/src/operator11/Operator11.java new file mode 100644 index 0000000..f817750 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator11/src/operator11/Operator11.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator11; + +/** + * + * @author andad + */ +public class Operator11 { + + /** + * @param args the command line arguments + */ + // short circuit operator + public static void main(String[] args) { + // TODO code application logic here + + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator2/build.xml b/PrjJava/OCA7/Chapter4/Operator2/build.xml new file mode 100644 index 0000000..71a4189 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator2. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Operator2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Operator2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator2/build/classes/operator2/Operator2.class b/PrjJava/OCA7/Chapter4/Operator2/build/classes/operator2/Operator2.class new file mode 100644 index 0000000000000000000000000000000000000000..db04053d46dde691a11d7d6a118384ae98a2f5b9 GIT binary patch literal 875 zcmZuv%Wl&^6g`u;apJm3ahjC2P|}u15@-!6FDVcqkXQwZl&TW2nmD82;@HL+Be8?e zV8^a&Sfmn2{Qy1+aVJh8fm-sNx#vF4oip?E*Y^_uySQ&)0T;5kXkZJs`Z*ORUI`Qb%x9X*LP)$AziH-U>uG9LA* zym&^KVWA_r^Y$4JCtOA+h$BZlb=5TaKQue4vxz(k#3#j2>bP#=2DWwVn6Pn^A*bMq z!-qo0EfWpwGA#c)(Bs(kdLm+&52K(LJJJpOiiz8}W8yCE(UfPLkzw&~pS|v(aO4b> zoRvft?_%yLrK(d(Bn8ddtJ#_lLn#JyA3;pbN=d#O*e^&nNeu-bkhH}y?<~xqhbqY< z&1Z9kdwP=7gsI^YXrc-cW@V5-3`^D8e~C?Oz@!(bz7*(!P$0WVo=q#G zb*_F4_H`USM>aDCO<1%ylLQp8L|zUhlnGJApP-Fnt@?@f1-fJ60L$O-a55%%e44YWNL#$0r&?5Xi#aHOp Qp&5@@d6no_$xUJHH;R|XYybcN literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Operator2/manifest.mf b/PrjJava/OCA7/Chapter4/Operator2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator2/nbproject/build-impl.xml new file mode 100644 index 0000000..0b375dc --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator2/nbproject/genfiles.properties new file mode 100644 index 0000000..2a4bf7a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=267d180f +build.xml.script.CRC32=27a76a2e +build.xml.stylesheet.CRC32=8064a381@1.79.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=267d180f +nbproject/build-impl.xml.script.CRC32=677797d2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator2/nbproject/private/config.properties b/PrjJava/OCA7/Chapter4/Operator2/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator2/nbproject/private/private.properties new file mode 100644 index 0000000..6228c78 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator2/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=live2 +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator2/nbproject/project.properties new file mode 100644 index 0000000..83710e0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator2/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Operator2 +application.vendor=anda +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}/Operator2.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=operator2.Operator2 +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/PrjJava/OCA7/Chapter4/Operator2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator2/nbproject/project.xml new file mode 100644 index 0000000..0e1af05 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator2/src/operator2/Operator2.java b/PrjJava/OCA7/Chapter4/Operator2/src/operator2/Operator2.java new file mode 100644 index 0000000..770ea70 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator2/src/operator2/Operator2.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator2; + +/** + * + * @author anda + */ +public class Operator2 { + + /** + * @param args the command line arguments + */ + // daca apare o exceptie si nu este prinsa programul se termina + public static void main(String[] args) { + // TODO code application logic here + if (args.length == 1 | args[1].equals("test")) + { + System.out.println("test case"); + } else + { + System.out.println("production " + args[0]); + } + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator3/build.xml b/PrjJava/OCA7/Chapter4/Operator3/build.xml new file mode 100644 index 0000000..b2fcea6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator3. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Operator3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Operator3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator3/build/classes/operator3/Operator3.class b/PrjJava/OCA7/Chapter4/Operator3/build/classes/operator3/Operator3.class new file mode 100644 index 0000000000000000000000000000000000000000..22e132e90f57e6b3344af699b7e603f6db7eab43 GIT binary patch literal 1200 zcmb7D+fEZv6kVqsn06d477A6X0$wP+P@#%91gr_Z6fh|vL7xuo1P9xhW|*4r;46NC zzo5^WSQ1J606$7xXNp{_(PU=N-e<41_d5HW`SJ7HcK`(x4fJ6=iZD_-CL%~1bTbiT zqsU=WN8UgL$$cf;v6h?l4a-}V8?~UETamRj>DekiT-5y6_BM-^+=k^z-}MUl zmERt_X?1Bk0z;`+e`qGXP0|NCqy<9NDP^XWDG2nGeOY<4BpX3%9Z60{$9)b&z$m*- zuVO9QN@(wqf=M+16EQq6(T|I4)Ip{|xaisnH9*0uJD#oMp@~PJ{^7F|EH>?0)$&Zt z;)#G5QO=x+c`Q(hiKnVY|1oK0W6P@e>>DiEZvF+2!RKLEvd+FKHSiPg^3Jwzsf61k zDc+vhX_h)d*=Sf!RUnyqIdN{ThYE?ybvog{;3K}YmH0Iv#BfK8d_Rv)dyl#3+U!deV|2M3Rw#cf=%u&21Bz z;0PA*ocILmju7zy-3J&)SjVW2F+K?CxS`|b0h1?I>8e$6fGo5l@EQE+#4%;$e<>7v Ji~U2m{R<`->P`Rv literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Operator3/manifest.mf b/PrjJava/OCA7/Chapter4/Operator3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator3/nbproject/build-impl.xml new file mode 100644 index 0000000..d3ba511 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator3/nbproject/genfiles.properties new file mode 100644 index 0000000..08e5b9a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2e6e9429 +build.xml.script.CRC32=f862389d +build.xml.stylesheet.CRC32=8064a381@1.79.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=2e6e9429 +nbproject/build-impl.xml.script.CRC32=7f80efe4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator3/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator3/nbproject/project.properties new file mode 100644 index 0000000..39842b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator3/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}/Operator3.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.7 +javac.target=1.7 +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=operator3.Operator3 +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/PrjJava/OCA7/Chapter4/Operator3/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator3/nbproject/project.xml new file mode 100644 index 0000000..6ee15a7 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator3/src/operator3/Operator3.java b/PrjJava/OCA7/Chapter4/Operator3/src/operator3/Operator3.java new file mode 100644 index 0000000..39e9d78 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator3/src/operator3/Operator3.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator3; + +/** + * + * @author anda + */ +public class Operator3 { + + /** + * @param args the command line arguments + */ + String name; + + public Operator3(String name) { + this.name = name; + } + + public static void main(String[] args) { + // TODO code application logic here + Operator3 d1 = new Operator3("Boi"); + Operator3 d2 = new Operator3("Tyri"); + System.out.print((d1==d2) + " "); + Operator3 d3 = new Operator3("Boi"); + d2 = d1; + System.out.print((d1== d2) + " "); + System.out.print((d1== d3) + " "); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator4/build.xml b/PrjJava/OCA7/Chapter4/Operator4/build.xml new file mode 100644 index 0000000..a576a25 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator4. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator4/build/classes/operator4/Operator4.class b/PrjJava/OCA7/Chapter4/Operator4/build/classes/operator4/Operator4.class new file mode 100644 index 0000000000000000000000000000000000000000..d0a6b02352f28662f55f795e1218a809e6376284 GIT binary patch literal 817 zcmaJ#j)qkW9 zG||K#;Eyt%S*lHi2$?%)&b@Qby?5v5uWvs9?BgJh8))Qk5BE*1=V73s&4z_dy>Dr= zoyP+_G_hmC5y&2@K*dJ_hSTf`q+f1tN~%IxXPHf-E9(X`RRBZ0Ml)m}`MKlCCSkFm>a>l*CYaPh>% zQyb5)&nlMmAW*nUb<#ic2Jtnj`{_LP#++R^rK2+MQibj*Ta4MLC&wH^R!$~fFchde z$IXRFT-L_8U1!1B{$IQmhx1_yl%2&uW-KMuUoS|&oapj=ewoTL#U3`GpOOBhAoOTy zS9o%{3+|cL1;m%cy-J%+NE-!WdmeyWDDsp;31u?+@@J&^2U-RD(0X1lkG>-H9md-W zq-%A5hD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator4/nbproject/genfiles.properties new file mode 100644 index 0000000..f6582a3 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=161430db +build.xml.script.CRC32=8aab8f47 +build.xml.stylesheet.CRC32=8064a381@1.79.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=161430db +nbproject/build-impl.xml.script.CRC32=35448766 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator4/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator4/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator4/nbproject/project.properties new file mode 100644 index 0000000..fad4245 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator4/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}/Operator4.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.7 +javac.target=1.7 +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=operator4.Operator4 +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/PrjJava/OCA7/Chapter4/Operator4/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator4/nbproject/project.xml new file mode 100644 index 0000000..e0fdb61 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator4/src/operator4/Operator4.java b/PrjJava/OCA7/Chapter4/Operator4/src/operator4/Operator4.java new file mode 100644 index 0000000..f83688d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator4/src/operator4/Operator4.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator4; + +/** + * + * @author anda + */ +public class Operator4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int x = 12; + int a = 5; + int b = 7; + System.out.println(x/a + " " + x/b); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator5/build.xml b/PrjJava/OCA7/Chapter4/Operator5/build.xml new file mode 100644 index 0000000..27821e9 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator5. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator5/build/classes/operator5/Operator5.class b/PrjJava/OCA7/Chapter4/Operator5/build/classes/operator5/Operator5.class new file mode 100644 index 0000000000000000000000000000000000000000..a9104cd1970ac4c1408e5a8b289c7db4c1f3652f GIT binary patch literal 548 zcmZuuO;5r=5Pi#6X|00P;{wi@f6xRA;8r9axkgvo}1qJb?N+t^_+AC<1% z@n9qj?AoZIPNZ`rF_fn|THS%@#WPU*X%vf)oeMN3cU{MNiXpZ}j#6%g(gwuzT&A|Bv63cWF literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Operator5/manifest.mf b/PrjJava/OCA7/Chapter4/Operator5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator5/nbproject/build-impl.xml new file mode 100644 index 0000000..f45000c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator5/nbproject/genfiles.properties new file mode 100644 index 0000000..b8c995c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1e07bcfd +build.xml.script.CRC32=556eddf4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=1e07bcfd +nbproject/build-impl.xml.script.CRC32=2db3ff50 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator5/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator5/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator5/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator5/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator5/nbproject/project.properties new file mode 100644 index 0000000..a3d563d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator5/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}/Operator5.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.7 +javac.target=1.7 +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=operator5.Operator5 +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/PrjJava/OCA7/Chapter4/Operator5/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator5/nbproject/project.xml new file mode 100644 index 0000000..e74e981 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator5/src/operator5/Operator5.java b/PrjJava/OCA7/Chapter4/Operator5/src/operator5/Operator5.java new file mode 100644 index 0000000..fdb7b33 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator5/src/operator5/Operator5.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator5; + +/** + * + * @author anda + */ +public class Operator5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.println("xor " + ((2 < 3) ^ (4 > 3))); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator6/build.xml b/PrjJava/OCA7/Chapter4/Operator6/build.xml new file mode 100644 index 0000000..a81ac4c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator6. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Operator6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Operator6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator6/build/classes/operator6/Operator6.class b/PrjJava/OCA7/Chapter4/Operator6/build/classes/operator6/Operator6.class new file mode 100644 index 0000000000000000000000000000000000000000..5af1e1997b97fd7320f3758265acf6831fb9923e GIT binary patch literal 568 zcmZ`$%TB^j5Iwg%3bjH7if;uUNpWFgOmu;9p^1q}BPJL&t}fW%CA1}_nD|+`z{G_g z;71wf7GEUT#hE*2X3m^R-#=d8032dhg9(=S<2X6Pd-?f`jDEw|cUdF>NjTdK>8MJ0F3OnwFklS-Vvinj=M+R9H8#*>o zA?pXn6%|z-TiBMcLz*)jF&Mu#8ttCjiKeLL<1lhPk_$#uFejcxU|*Brh-|yuqoazk z#x%{48ptM^vi>>Mx~#QOMVkJG{1h;G1EEHlO_5Pd?Y)3K#pOA|bWG~d>8(#1FpnH% wS>$05BZtpoF~E3+Qb>%Eq^OLM`qjxHL48G9SfV-ekDh@A6sSgL5h^Hs0=nFDo&W#< literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Operator6/manifest.mf b/PrjJava/OCA7/Chapter4/Operator6/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator6/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator6/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator6/nbproject/build-impl.xml new file mode 100644 index 0000000..ee8b0df --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator6/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator6/nbproject/genfiles.properties new file mode 100644 index 0000000..e9c434b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=06332897 +build.xml.script.CRC32=ee502c60 +build.xml.stylesheet.CRC32=8064a381@1.79.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=06332897 +nbproject/build-impl.xml.script.CRC32=04aa770a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator6/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator6/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator6/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator6/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator6/nbproject/project.properties new file mode 100644 index 0000000..63a2aa5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator6/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}/Operator6.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.7 +javac.target=1.7 +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=operator6.Operator6 +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/PrjJava/OCA7/Chapter4/Operator6/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator6/nbproject/project.xml new file mode 100644 index 0000000..c73dec1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator6/src/operator6/Operator6.java b/PrjJava/OCA7/Chapter4/Operator6/src/operator6/Operator6.java new file mode 100644 index 0000000..58f34e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator6/src/operator6/Operator6.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator6; + +/** + * + * @author anda + */ +public class Operator6 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.print((3 + 4 * 5 -6) + " "); + System.out.print(3 + 4 * (5-6)); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator7/build.xml b/PrjJava/OCA7/Chapter4/Operator7/build.xml new file mode 100644 index 0000000..d248f90 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator7. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator7/manifest.mf b/PrjJava/OCA7/Chapter4/Operator7/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator7/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator7/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator7/nbproject/build-impl.xml new file mode 100644 index 0000000..3e01afe --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator7/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator7/nbproject/genfiles.properties new file mode 100644 index 0000000..14dbb36 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0e20a4b1 +build.xml.script.CRC32=31957ed3 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0e20a4b1 +nbproject/build-impl.xml.script.CRC32=1c5d0f3c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator7/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator7/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator7/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator7/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator7/nbproject/project.properties new file mode 100644 index 0000000..179c9ad --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator7/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}/Operator7.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.7 +javac.target=1.7 +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=operator7.Operator7 +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/PrjJava/OCA7/Chapter4/Operator7/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator7/nbproject/project.xml new file mode 100644 index 0000000..71737d8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator7/src/operator7/Operator7.java b/PrjJava/OCA7/Chapter4/Operator7/src/operator7/Operator7.java new file mode 100644 index 0000000..0d06ed7 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator7/src/operator7/Operator7.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator7; + +/** + * + * @author anda + */ +public class Operator7 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int x = 1; + //if () + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator8/build.xml b/PrjJava/OCA7/Chapter4/Operator8/build.xml new file mode 100644 index 0000000..a530dbc --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator8. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator8/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Operator8/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator8/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Operator8/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator8/build/classes/operator8/Operator8.class b/PrjJava/OCA7/Chapter4/Operator8/build/classes/operator8/Operator8.class new file mode 100644 index 0000000000000000000000000000000000000000..1e39e5d1bed1b0b893edf63d7f7f7974c768f842 GIT binary patch literal 576 zcmZut%T5A85Uhcf6+zw)iwR~{qYIl2)hZ)As?rR_b_PV!4Yw-?E$Qjt{tFuZoqiC=HQamUN#FI3?Tf#xO0l8TjzGSA z)9A}bX%D2+vzxxBonAF;CcPfZGc#y`NasL6w1ebOAklP3URRyzz)SMK$$p?~AqLaL zx`hpFn%J_ijUCF)FeQ+hIJxNbRo9<_nokeD8gdx!h(vB|Tf6opJ^OU7MeDDK6picp^BbZ}OAHgaeAqj~-dUF9u!KB!A(Y=5OAt#@DnfP{X*MvB L;ZBEsvt#B5dR}lI literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Operator8/manifest.mf b/PrjJava/OCA7/Chapter4/Operator8/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator8/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator8/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator8/nbproject/build-impl.xml new file mode 100644 index 0000000..7c5ebfe --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator8/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator8/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator8/nbproject/genfiles.properties new file mode 100644 index 0000000..e8bfe60 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=76c66173 +build.xml.script.CRC32=0bc343d4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=76c66173 +nbproject/build-impl.xml.script.CRC32=9122a60e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator8/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator8/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator8/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator8/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator8/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator8/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator8/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator8/nbproject/project.properties new file mode 100644 index 0000000..545abb7 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator8/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}/Operator8.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.7 +javac.target=1.7 +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=operator8.Operator8 +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/PrjJava/OCA7/Chapter4/Operator8/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator8/nbproject/project.xml new file mode 100644 index 0000000..448e26d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator8 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator8/src/operator8/Operator8.java b/PrjJava/OCA7/Chapter4/Operator8/src/operator8/Operator8.java new file mode 100644 index 0000000..0db1cc6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator8/src/operator8/Operator8.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator8; + +/** + * + * @author anda + */ +public class Operator8 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + boolean b1 = true; + boolean b2 = false; + System.out.println(b1 & (b2=true)); + System.out.println(b2); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Operator9/build.xml b/PrjJava/OCA7/Chapter4/Operator9/build.xml new file mode 100644 index 0000000..09aae3b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator9/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Operator9. + + + diff --git a/PrjJava/OCA7/Chapter4/Operator9/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Operator9/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator9/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Operator9/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Operator9/build/classes/operator9/Operator9.class b/PrjJava/OCA7/Chapter4/Operator9/build/classes/operator9/Operator9.class new file mode 100644 index 0000000000000000000000000000000000000000..a4e98ef7fb5b1944ef7de7dccc598b3dd6df21ad GIT binary patch literal 567 zcmZuuO;5r=5Pb`ULal&6iwdH60uT1!$w0iAn2ROn+tvJoJNeWANv7iOl7~W6;}o z=9E8j!{Oe<7>0rHCf&Fh4<=Mz*^p*ng8n{(GV~Y0*uD~xio!qrX~d`^3t2`(#Q~Z! z4pkhXMT8sVFqBpr2G-ObhilOAX&%}xt-)VVLQ4b--?$;QA!)X`OA}RMj&+zpo<)}& z8dYldJ0r9p(Xyj21==uVI&%~mWEt7a$vfCfoX*pkjX@O(`D$_jTjT+GY@!iTAVg$gEiPSVDzrs>G$y!|SxATHHlXm{3HC7*l9q2W9F*1IBUn E7f1|oNB{r; literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Operator9/manifest.mf b/PrjJava/OCA7/Chapter4/Operator9/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator9/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Operator9/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Operator9/nbproject/build-impl.xml new file mode 100644 index 0000000..f8a761f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator9/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Operator9/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Operator9/nbproject/genfiles.properties new file mode 100644 index 0000000..c39ccbf --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator9/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7ed5ed55 +build.xml.script.CRC32=d4061167 +build.xml.stylesheet.CRC32=8064a381@1.79.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=7ed5ed55 +nbproject/build-impl.xml.script.CRC32=89d5de38 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Operator9/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Operator9/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator9/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Operator9/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Operator9/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator9/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator9/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Operator9/nbproject/project.properties new file mode 100644 index 0000000..57a2f09 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator9/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}/Operator9.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.7 +javac.target=1.7 +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=operator9.Operator9 +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/PrjJava/OCA7/Chapter4/Operator9/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Operator9/nbproject/project.xml new file mode 100644 index 0000000..b1fab72 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator9/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Operator9 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Operator9/src/operator9/Operator9.java b/PrjJava/OCA7/Chapter4/Operator9/src/operator9/Operator9.java new file mode 100644 index 0000000..a9c94f0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Operator9/src/operator9/Operator9.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package operator9; + +/** + * + * @author andad + */ +public class Operator9 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i=5; + System.out.println(i++); + System.out.println(i--); + System.out.println(i); + } + +} diff --git a/PrjJava/OCA7/Chapter4/ParseFloat/build.xml b/PrjJava/OCA7/Chapter4/ParseFloat/build.xml new file mode 100644 index 0000000..6245dc2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ParseFloat/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ParseFloat. + + + diff --git a/PrjJava/OCA7/Chapter4/ParseFloat/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/ParseFloat/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ParseFloat/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/ParseFloat/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/ParseFloat/build/classes/parsefloat/ParseFloat.class b/PrjJava/OCA7/Chapter4/ParseFloat/build/classes/parsefloat/ParseFloat.class new file mode 100644 index 0000000000000000000000000000000000000000..9742e1284c1779ee59b7ab75dce31e55d478b7d1 GIT binary patch literal 1017 zcmZuw%W@Jy6g@pWCQK$kAPM3t5R5|95Z{kPHzEs*m{ei0an;~}6Jds$3@Kgt1^!B^ zbP-c7EZ2UNdU^(hlq{yZ@9UgARF zV0AL_%%KQ5$r$S-woEKxnS#xfRUkbn*=rwI9si6g6h%NklKqjjM`hM$2|p#pzuW4n zYip^p;5|^#DXQj&L*E)O;EqVR9M;=zb)OgMlhl#}UQssa?W~)<3{_H}mk=%2D=ifH z1Wi6#AOhYRl3Y`?s@w(l*v40g&pc>IbBza16N@~XVFEJ9(n=_$=uyR=m>uDspRaA4 zLOVgE_65<>31X$=-OOCAbj(C8D2y{v0bk~S0(vyU7zA3x3So1!&T-8Lgazg + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/genfiles.properties new file mode 100644 index 0000000..6834e49 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5336e083 +build.xml.script.CRC32=9c6403fc +build.xml.stylesheet.CRC32=8064a381@1.79.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=5336e083 +nbproject/build-impl.xml.script.CRC32=c1138847 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/project.properties b/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/project.properties new file mode 100644 index 0000000..03eac8b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ParseFloat/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}/ParseFloat.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.7 +javac.target=1.7 +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=parsefloat.ParseFloat +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/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/project.xml b/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/project.xml new file mode 100644 index 0000000..5ee5489 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ParseFloat/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ParseFloat + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/ParseFloat/src/parsefloat/ParseFloat.java b/PrjJava/OCA7/Chapter4/ParseFloat/src/parsefloat/ParseFloat.java new file mode 100644 index 0000000..dcf272b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/ParseFloat/src/parsefloat/ParseFloat.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package parsefloat; + +/** + * + * @author andad + */ +public class ParseFloat { + + /** + * @param args the command line arguments + */ + public static float parseFloat(String s) { + float f = 0.0f; + try { + f = Float.valueOf(s).floatValue(); + System.out.println(f); + return f; + } catch (NumberFormatException nfe) { + f = Float.NaN; + return f; + } + + } + + public static void main(String[] args) { + // TODO code application logic here + float f = parseFloat("0"); + System.out.println(f); + } + +} diff --git a/PrjJava/OCA7/Chapter4/PassByValue3/build.xml b/PrjJava/OCA7/Chapter4/PassByValue3/build.xml new file mode 100644 index 0000000..183189c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassByValue3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PassByValue3. + + + diff --git a/PrjJava/OCA7/Chapter4/PassByValue3/manifest.mf b/PrjJava/OCA7/Chapter4/PassByValue3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassByValue3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/build-impl.xml new file mode 100644 index 0000000..fe5f483 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/genfiles.properties new file mode 100644 index 0000000..d5def15 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=559a5823 +build.xml.script.CRC32=f07894c8 +build.xml.stylesheet.CRC32=8064a381@1.79.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=559a5823 +nbproject/build-impl.xml.script.CRC32=79021d5a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/project.properties b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/project.properties new file mode 100644 index 0000000..30655eb --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassByValue3/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}/PassByValue3.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.7 +javac.target=1.7 +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=passbyvalue3.PassByValue3 +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/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/project.xml b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/project.xml new file mode 100644 index 0000000..f4f0208 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassByValue3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + PassByValue3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/PassByValue3/src/passbyvalue3/PassByValue3.java b/PrjJava/OCA7/Chapter4/PassByValue3/src/passbyvalue3/PassByValue3.java new file mode 100644 index 0000000..bf0480f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassByValue3/src/passbyvalue3/PassByValue3.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package passbyvalue3; + +/** + * + * @author andad + */ +public class PassByValue3 { + + /** + * @param args the command line arguments + */ + int value = 1; + PassByValue3 link; + + public PassByValue3(int val) { + this.value = val; + } + + public static PassByValue3 setIt(final PassByValue3 x, final PassByValue3 y) { + x.link = y.link; + return x; + } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter4/PassbyValue2/build.xml b/PrjJava/OCA7/Chapter4/PassbyValue2/build.xml new file mode 100644 index 0000000..83c8e6e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassbyValue2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PassbyValue2. + + + diff --git a/PrjJava/OCA7/Chapter4/PassbyValue2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/PassbyValue2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/PassbyValue2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/PassbyValue2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/PassbyValue2/build/classes/passbyvalue2/PassbyValue2.class b/PrjJava/OCA7/Chapter4/PassbyValue2/build/classes/passbyvalue2/PassbyValue2.class new file mode 100644 index 0000000000000000000000000000000000000000..94ff5ed1f0a9eb9ed3a30efbf5c9abc21575e4de GIT binary patch literal 1158 zcmah|+fEZv6kTU1oiYxkEl>o!-~}ixP$=H8cmpLdDN2ID5TB-HQU<5fW-de?{Um)T zMiM{3k20<^Q_~hS&ciwTy4KqJWPbko{sX`owl!ohuOgSgf(8Y74RI7yEXsRcLmEp% zSVmFBiUv(aG^{32lJ}ZC?rFG>2Pz(_cq9*%M+Ncv<%Oyo}L(XV3vxzp|c-4Wr5+A+pL+Mx91zR zkF1`}RgR4lqZs&>T?~WeO93fG`LrsKzLb)Q5`{Jl%Mr-tK13C^;na!dT28$j4q~`< zl8yc)O$3k7iboi2uNk;CbK8wzQA~AxtG?_3cMqMx!!ctQ(ov!~l59v3S^{RHCS1dHdThrHT7u9wG1Gzm%s$zVL8PrPW-YG18 zL*grj&Y>}WrO<|+8EzxFNTZFBHd0;kECvZNg#;C+NH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/genfiles.properties new file mode 100644 index 0000000..d484caf --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7bcc7683 +build.xml.script.CRC32=11a0c622 +build.xml.stylesheet.CRC32=8064a381@1.79.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=7bcc7683 +nbproject/build-impl.xml.script.CRC32=1b17c61c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/project.properties new file mode 100644 index 0000000..b5b6126 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassbyValue2/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}/PassbyValue2.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.7 +javac.target=1.7 +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=passbyvalue2.PassbyValue2 +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/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/project.xml new file mode 100644 index 0000000..7d280ab --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassbyValue2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + PassbyValue2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/PassbyValue2/src/passbyvalue2/PassbyValue2.java b/PrjJava/OCA7/Chapter4/PassbyValue2/src/passbyvalue2/PassbyValue2.java new file mode 100644 index 0000000..039e863 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PassbyValue2/src/passbyvalue2/PassbyValue2.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package passbyvalue2; + +import java.util.Stack; + +/** + * + * @author andad + */ +public class PassbyValue2 { + + /** + * @param args the command line arguments + */ + public static void processStacks(Stack x1, Stack x2) { + x1.push(new Integer("100")); //assume that the method push adds the passed object to the stack. + x2 = x1; + } + + public static void main(String[] args) { + // TODO code application logic here + Stack s1 = new Stack(); + Stack s2 = new Stack(); + processStacks(s1, s2); + System.out.println(s1 + " " + s2); + } + +} diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/build.xml b/PrjJava/OCA7/Chapter4/PreIncrement1/build.xml new file mode 100644 index 0000000..5c5ed95 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PreIncrement1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PreIncrement1. + + + diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/PreIncrement1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/PreIncrement1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/build/classes/preincrement1/PreIncrement1.class b/PrjJava/OCA7/Chapter4/PreIncrement1/build/classes/preincrement1/PreIncrement1.class new file mode 100644 index 0000000000000000000000000000000000000000..c522963ddbafeeda4e162a93ad9c4cecb05bc6cb GIT binary patch literal 663 zcmaJ;O;6iE6rAT6n;4hSqy&ihD5W2PLnG895f`LNk)nbWlpcCvldjT**p3{hQt$kn zUfM%j^}rA4kE%L$5Xe>4!|vNR@6GJI-Cw_d-T-)o7akmJcvwKAi~yS+wy^DD$HilT z(>9Swj|HXXeqUgp#P7AB(lwEOGYbbgIah-*k!m*{s&QW>Cd+R@JN;m$g01c((Iy%u zI@D2m*g8ve=Po-ESm7a+o1OiRKnxe79V!zE>dklEOZ8E;#wr@MdTC;!(NS(hB_m4L z{!ymDmB8!8vt+1Wo7`RD%9oj<4;PC*mQiuB>*ERbTs-yh49^9@fBXto?hTy|F7+@i zK)p}XREK=8c*er&+`Wl8w24v@d7PynFY0SB^*XU!Hf8y|ufD%~6BKI=0 z7NamO9DIj-;lYB(-N`{8OFaAY2F3@>%GsPm3gl}@NN{n{{)$rY4feg4D(tL{p4NHu2I^?!()BqVkFd(R!wc$M**I&=Ev)|m DODlWC literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/manifest.mf b/PrjJava/OCA7/Chapter4/PreIncrement1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PreIncrement1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/build-impl.xml new file mode 100644 index 0000000..850605b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/genfiles.properties new file mode 100644 index 0000000..053d025 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b5fc59ac +build.xml.script.CRC32=aecf28df +build.xml.stylesheet.CRC32=8064a381@1.79.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=b5fc59ac +nbproject/build-impl.xml.script.CRC32=fb17b059 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/project.properties new file mode 100644 index 0000000..94e9682 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PreIncrement1/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}/PreIncrement1.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.7 +javac.target=1.7 +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=preincrement1.PreIncrement1 +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/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/project.xml new file mode 100644 index 0000000..725b592 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PreIncrement1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + PreIncrement1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/PreIncrement1/src/preincrement1/PreIncrement1.java b/PrjJava/OCA7/Chapter4/PreIncrement1/src/preincrement1/PreIncrement1.java new file mode 100644 index 0000000..a9981f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PreIncrement1/src/preincrement1/PreIncrement1.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package preincrement1; + +/** + * + * @author andad + */ +public class PreIncrement1 { + + /** + * @param args the command line arguments + */ + public static int m1(int i) { + return ++i; + } + + public static void main(String[] args) { + // TODO code application logic here + int k = m1(args.length); + k += 3 + ++k; + System.out.println(k); + } + +} diff --git a/PrjJava/OCA7/Chapter4/PrimitiveConversion/build.xml b/PrjJava/OCA7/Chapter4/PrimitiveConversion/build.xml new file mode 100644 index 0000000..e7e0abd --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PrimitiveConversion/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PrimitiveConversion. + + + diff --git a/PrjJava/OCA7/Chapter4/PrimitiveConversion/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/PrimitiveConversion/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/PrimitiveConversion/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/PrimitiveConversion/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/PrimitiveConversion/build/classes/primitiveconversion/PrimitiveConversion.class b/PrjJava/OCA7/Chapter4/PrimitiveConversion/build/classes/primitiveconversion/PrimitiveConversion.class new file mode 100644 index 0000000000000000000000000000000000000000..2bdb3f11dfa076038ce3ff970fa8a01fc0228373 GIT binary patch literal 1155 zcma)4T~8B16g|_gUFs^>FHlgC580x$Dt-cjQY6tdXi`IBe43WE9kShRwo@Wc`mQhP zoBu)|N+Jo-SAUdxXBS*a8{U|Pql+Api+ijFz87m_IAs*Yq5;q(&x&8y2U^iIZ_qgxNf^#YPe(IE*2Pu!%8sAYDd^xmPh{Bu2WwaH?W8$wcKNf z6bc5Gv7+I=fd^P+hzmysoDzf9Znz$W)LUzC&j;0AX(=%CpGGkZg%drgZd)~ZELGWU zORGsg&FxSj8(1k^<+&qCfyJBTb%M8Amb1k$XZA6>Cv~Wq8pq7X`G1sk=>{$_WXxV7 z9gy~?KRysSL+TxA(;v+C8;G9YnE9ypyra2r5ovn=>WhHRK#ta7ii)%|+T*i(V4wZ+ z2(1Y}Y2XZDBOu@`MkyM=7|v0Kn%O8~h*Iu*D!P`6J^X_BJ`&IOpr!OK1}5KikxZQ+ zG^J1%Mi(dl;+#^Pw_OYd9EEx~Lq6wYNK&web=qfr2w4jDuu?wjeaKQUV1>dbpp&39 x$;yxkS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/genfiles.properties new file mode 100644 index 0000000..a9c40c0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7ec731fd +build.xml.script.CRC32=9567af4b +build.xml.stylesheet.CRC32=8064a381@1.79.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=7ec731fd +nbproject/build-impl.xml.script.CRC32=1117e17f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/project.properties b/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/project.properties new file mode 100644 index 0000000..1f21e05 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PrimitiveConversion/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}/PrimitiveConversion.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.7 +javac.target=1.7 +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=primitiveconversion.PrimitiveConversion +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/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/project.xml b/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/project.xml new file mode 100644 index 0000000..87aa01b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PrimitiveConversion/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + PrimitiveConversion + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/PrimitiveConversion/src/primitiveconversion/PrimitiveConversion.java b/PrjJava/OCA7/Chapter4/PrimitiveConversion/src/primitiveconversion/PrimitiveConversion.java new file mode 100644 index 0000000..e2932fc --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PrimitiveConversion/src/primitiveconversion/PrimitiveConversion.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package primitiveconversion; + +/** + * + * @author andad + */ +public class PrimitiveConversion { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + float fmin = Float.NEGATIVE_INFINITY; + float fmax = Float.POSITIVE_INFINITY; + System.out.println("long: " + (long) fmin + + ".." + (long) fmax); + System.out.println("int: " + (int) fmin + + ".." + (int) fmax); + System.out.println("short: " + (short) fmin + + ".." + (short) fmax); + System.out.println("char: " + (int) (char) fmin + + ".." + (int) (char) fmax); + System.out.println("byte: " + (byte) fmin + + ".." + (byte) fmax); + } + +} diff --git a/PrjJava/OCA7/Chapter4/PromotePlusInt/build.xml b/PrjJava/OCA7/Chapter4/PromotePlusInt/build.xml new file mode 100644 index 0000000..1e8f7d8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PromotePlusInt/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PromotePlusInt. + + + diff --git a/PrjJava/OCA7/Chapter4/PromotePlusInt/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/PromotePlusInt/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/PromotePlusInt/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/PromotePlusInt/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/PromotePlusInt/build/classes/promoteplusint/PromotePlusInt.class b/PrjJava/OCA7/Chapter4/PromotePlusInt/build/classes/promoteplusint/PromotePlusInt.class new file mode 100644 index 0000000000000000000000000000000000000000..528815d9ecc5e81d5abb740d0269621b5fd6d23e GIT binary patch literal 813 zcmaJ;OK%ck6g?lWDFX@u8ZRDNZxYkYO(2BrF5ses^)M>9Eny>!O>8-^?Z6#@+<(szh@RhY*ga8u_MEHzdTgsh z5^7EuSezZKnIwhO@McvRl99OEW8N(wjhrN%RQZZcmzd(gOzo9ASV4$?+4(#W&Jn~2 ztqQfE_Lo0Gym!MfM2g4wr)?)}gQNU6{i3)IQr6v4mjv^0f$K6=w_8HbmH0vshH$zdsC8cWC^ zkIN_{OS+fv06EmL?5_C~3tXweycD$;yUfpU(EuK@BFnpFR9TZ_EP`!ZVV$4ZYq-jn X#K + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/genfiles.properties new file mode 100644 index 0000000..379d7c5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d5c262fc +build.xml.script.CRC32=5652d505 +build.xml.stylesheet.CRC32=8064a381@1.79.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=d5c262fc +nbproject/build-impl.xml.script.CRC32=a5193f04 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/project.properties b/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/project.properties new file mode 100644 index 0000000..ed857ac --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PromotePlusInt/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}/PromotePlusInt.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.7 +javac.target=1.7 +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=promoteplusint.PromotePlusInt +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/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/project.xml b/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/project.xml new file mode 100644 index 0000000..0d4a79f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PromotePlusInt/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + PromotePlusInt + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/PromotePlusInt/src/promoteplusint/PromotePlusInt.java b/PrjJava/OCA7/Chapter4/PromotePlusInt/src/promoteplusint/PromotePlusInt.java new file mode 100644 index 0000000..1c9a244 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/PromotePlusInt/src/promoteplusint/PromotePlusInt.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package promoteplusint; + +/** + * + * @author andad + */ +public class PromotePlusInt { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 10; + float f = 124.9999f; + long l = 11111111111l; + double d = 123.5555; + double d1 = d+f; + long l1 = i+l; + float f1 = i+f; + System.out.println(f1);// promote float + System.out.println(l1); // + System.out.println(f1); + System.out.println(d1); + + } + +} diff --git a/PrjJava/OCA7/Chapter4/Promotion1/build.xml b/PrjJava/OCA7/Chapter4/Promotion1/build.xml new file mode 100644 index 0000000..3088f02 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Promotion1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Promotion1. + + + diff --git a/PrjJava/OCA7/Chapter4/Promotion1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Promotion1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Promotion1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Promotion1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Promotion1/build/classes/promotion1/Promotion1.class b/PrjJava/OCA7/Chapter4/Promotion1/build/classes/promotion1/Promotion1.class new file mode 100644 index 0000000000000000000000000000000000000000..05e500947b80c535bb6c67bb29c9c6a116cd5711 GIT binary patch literal 728 zcmZuv%Wl&^6g`vJabuh&P3jaHT3!K?@URdlAhoJ01u9X6hZK|zn@(IeOiAp>b&&W0 zHi#~e*s$UgfCWe_*sz{$#`s_|R z^0M~RBUTi(YB`qi8Arn+i zI2I6!cu4FJ8^ktopYVx}K%tjN|K%e&N!3`W2-v-78vDV9(vpiuQf}(%4)U-qTy@Yu z(?ZL^HCz{PPZTduI#T>(up9WvF{<}^FA2uHwrI)&_pm(`v3(UL>@bjH_FqYJ9H#}W ziFO+CVvI(o+2@;Bd@4OM5LzVXQ?xv;f~(p34)G;Db~xu!(m{cH=gF?LyHutwaY0lK#SD3E(4LMye z%ltr#f`AIe&BKJtDpl5ApmiEGEb=yMl)8kwSWY$Fp%?3-%oyELo1QLJnf#Ph#$}kn jW9%8`FYpZ(8E@h&edmz*s|^cFB9mq76^1RRNzNSrt7VB$ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Promotion1/manifest.mf b/PrjJava/OCA7/Chapter4/Promotion1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Promotion1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Promotion1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/build-impl.xml new file mode 100644 index 0000000..6375cc8 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Promotion1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/genfiles.properties new file mode 100644 index 0000000..9db50dc --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=825e3ecd +build.xml.script.CRC32=a6243378 +build.xml.stylesheet.CRC32=8064a381@1.79.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=825e3ecd +nbproject/build-impl.xml.script.CRC32=6b0935d9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Promotion1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Promotion1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Promotion1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/project.properties new file mode 100644 index 0000000..9e79163 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Promotion1/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}/Promotion1.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.7 +javac.target=1.7 +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=promotion1.Promotion1 +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/PrjJava/OCA7/Chapter4/Promotion1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/project.xml new file mode 100644 index 0000000..02f9f4e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Promotion1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Promotion1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Promotion1/src/promotion1/Promotion1.java b/PrjJava/OCA7/Chapter4/Promotion1/src/promotion1/Promotion1.java new file mode 100644 index 0000000..bb7f5f1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Promotion1/src/promotion1/Promotion1.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package promotion1; + +/** + * + * @author andad + */ +public class Promotion1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 5; + float f = 5.5f; + double d = 3.8; + char c = 'a'; + if (i == f) { + c++; + } + if (((int) (f + d)) == ((int) f + (int) d)) { + c += 2; + } + System.out.println(c); + } + +} diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/build.xml b/PrjJava/OCA7/Chapter4/Shadowing3/build.xml new file mode 100644 index 0000000..5dded85 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Shadowing3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Shadowing3. + + + diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/shadowing3/ABCD.class b/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/shadowing3/ABCD.class new file mode 100644 index 0000000000000000000000000000000000000000..b4632692f5ae9dabf6c196aa1f22fbb59a767081 GIT binary patch literal 378 zcmZ9HPfNo<5XIl5X_Ka_No)Oc5|7%0IrLO4f>s0}=%Ld4CJpVDm_V9V`>{ks@ZbmV zLy5C7^x$FM@@C)shWY;a`~uL&k%Kz+nlRDTvTxzQ!XbfPxbC<%gvL;%s<f6xt0P=I06k=0yZoT{9_S3o%0i!&isdP5l011_?kMOXmIf) ztF4Et4g*1Gu^VuL_-*w*Kt0cShw)m51gley3r6i?hrRfVvUAzl@V1!a@`qP>-8a-U QfjF&KYq-nW=GQ>y7g?!1g8%>k literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/shadowing3/MNOP.class b/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/shadowing3/MNOP.class new file mode 100644 index 0000000000000000000000000000000000000000..c77a2724bed7e6874b42cb92df0123fecc1f133a GIT binary patch literal 377 zcmZ8dO-sW-5Pg%TO`5Jv8m)RN9%~Qv(34mMtq4M_LZ$a@8tj%dfwcAGXNid5!5`p{ z5@%y5=waUQ-oAOm?AQ0lCx9OI9h9+Mg^3*vO$)mg_6YREb;b2esPt8$R;Pqg`*2J! z2kA5-xPeNd;d(KNvO776S@DB3l<`<*O7lWAS2MLFG=k+!PSZz~-1m;Ihc~w;1iK%` zMY1zW*I5`{DxKqwHrDQ3K1hKo9Dxcf0UH(@{$>4D&dvuHIN)Q-e4)X`gN(MGEfmfJ zp~mc(9mKuXc?Wg8)*FnM+$0#CeB9TcgDvLb*NQq^W;VP{Oe=rkRbKlQC7nR*)~j`R Kld-|wfd2ys<2+LU literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/shadowing3/Shadowing3.class b/PrjJava/OCA7/Chapter4/Shadowing3/build/classes/shadowing3/Shadowing3.class new file mode 100644 index 0000000000000000000000000000000000000000..3724b1b3579381e26f1572468532780eaa658910 GIT binary patch literal 830 zcmaJ=ZBNrs6n@U$y4C7nV}QyO1hhk-%=td!2T4pwCXkGb7(bA^tr?ee?b3BBKTBdp zB8fl1A7wnZTP!$YliqXAb6%cv&TW7F{_zt)1+R5vQOw{T?rT`o5l2zOl8&STlX#$z z!(&3~jdW%3mJl~f4MJkuYukiuO}h5(pxd;8^wvbG81lXnS9z+o@RfziO4sb%k^Zv*xGTiTErmN4OoU9{3zt4e5m6 z;R5+<+yuSu4g8k*xlPVU}4KZ z8BYkY^+lys3_MlXGd$Pu!oW+sA`~v=Mcjm`h-t5RVz+`TQ2n$Y*j?VHH(*C$G_~}s zeI7aB!EMpywa{07cX;`t*R$O=VZq!fO>Ag90>^Kd6VB@Y;^~x-4!qH#2{YzoFjvio zlU!|%p!HO%4&PegI@Si3aEm`X^~AulW17z#TNX=VnOr*ueGA=rK2sq$j~UjDQ2+{< zWh;X@%rl~rkB|s` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/genfiles.properties new file mode 100644 index 0000000..7b90944 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4920b520 +build.xml.script.CRC32=d501fa4a +build.xml.stylesheet.CRC32=8064a381@1.79.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=4920b520 +nbproject/build-impl.xml.script.CRC32=e898a26c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/project.properties new file mode 100644 index 0000000..1d272bb --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Shadowing3/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}/Shadowing3.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.7 +javac.target=1.7 +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=shadowing3.Shadowing3 +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/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/project.xml new file mode 100644 index 0000000..28131e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Shadowing3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Shadowing3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Shadowing3/src/shadowing3/Shadowing3.java b/PrjJava/OCA7/Chapter4/Shadowing3/src/shadowing3/Shadowing3.java new file mode 100644 index 0000000..59ecf31 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Shadowing3/src/shadowing3/Shadowing3.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package shadowing3; + +/** + * + * @author andad + */ +class ABCD { + + int x = 10; + static int y = 20; +} + +class MNOP extends ABCD { + + int x = 30; + static int y = 40; +} + +public class Shadowing3 { + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + System.out.println(new MNOP().x + ", " + new MNOP().y); + } +} diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/build.xml b/PrjJava/OCA7/Chapter4/UnreacheableCode3/build.xml new file mode 100644 index 0000000..a61cee2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreacheableCode3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project UnreacheableCode3. + + + diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/UnreacheableCode3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/UnreacheableCode3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/build/classes/unreacheablecode3/UnreacheableCode3.class b/PrjJava/OCA7/Chapter4/UnreacheableCode3/build/classes/unreacheablecode3/UnreacheableCode3.class new file mode 100644 index 0000000000000000000000000000000000000000..29193a48b12121be3370216fd1c87e886eb93050 GIT binary patch literal 612 zcma)3Jxc>Y5Ph4AITJ4?8jatdL5LP!kphhiFI7|&n=lQyPoObeu{+Sk##fK^^@ z3M4mzBPEclYhP{mx-Av%$ySHRa6Ry3rzt~i;!iLc9qV&}rFzc~mGq94$$3<$xclD_ zqgh#_cvos)pjbYvpU4a8cBJ2S8&RnJ_L^xfH2)fTGHg?}@CQvG+lZuhx+Tv(XUH^y zUg)V!ZKf>#YP)JWIY_~_G2>tsb2jE3EMQTf^pCLx@?W#=v`&;4{eT*m=aK62`hp%4 zqaTauz}@9m5qDFv%gqb1#!pzlJ~N~auOwNnEjKw-l8?` bF)qp?hkPuY!w`mJR^0Xl2{X|M5mvneC%=Oj literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/manifest.mf b/PrjJava/OCA7/Chapter4/UnreacheableCode3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreacheableCode3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/build-impl.xml new file mode 100644 index 0000000..6935d6b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/genfiles.properties new file mode 100644 index 0000000..30c597f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3d59da54 +build.xml.script.CRC32=3d5ccff5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3d59da54 +nbproject/build-impl.xml.script.CRC32=87a28ec1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/project.properties b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/project.properties new file mode 100644 index 0000000..50a5f2f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreacheableCode3/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}/UnreacheableCode3.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.7 +javac.target=1.7 +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=unreacheablecode3.UnreacheableCode3 +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/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/project.xml b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/project.xml new file mode 100644 index 0000000..5d570b1 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreacheableCode3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + UnreacheableCode3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/UnreacheableCode3/src/unreacheablecode3/UnreacheableCode3.java b/PrjJava/OCA7/Chapter4/UnreacheableCode3/src/unreacheablecode3/UnreacheableCode3.java new file mode 100644 index 0000000..9a1ca1f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreacheableCode3/src/unreacheablecode3/UnreacheableCode3.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package unreacheablecode3; + +/** + * + * @author andad + */ +public class UnreacheableCode3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + for (int i = 0;; i++) { +// do stuff + System.out.println(i); + } +//System.out.println("I'm unreachable!"); // CE + } + +} diff --git a/PrjJava/OCA7/Chapter4/Unreacheablecode2/build.xml b/PrjJava/OCA7/Chapter4/Unreacheablecode2/build.xml new file mode 100644 index 0000000..4d4c512 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Unreacheablecode2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project UnreacheablCcode2. + + + diff --git a/PrjJava/OCA7/Chapter4/Unreacheablecode2/manifest.mf b/PrjJava/OCA7/Chapter4/Unreacheablecode2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Unreacheablecode2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/build-impl.xml new file mode 100644 index 0000000..0eb8ce3 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/genfiles.properties new file mode 100644 index 0000000..c5ee846 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=678e2362 +build.xml.script.CRC32=4b065173 +build.xml.stylesheet.CRC32=8064a381@1.79.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=678e2362 +nbproject/build-impl.xml.script.CRC32=0d773d5d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/project.properties b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/project.properties new file mode 100644 index 0000000..9013a90 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Unreacheablecode2/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}/UnreacheablCcode2.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.7 +javac.target=1.7 +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=unreacheablecode2.Unreacheablecode2 +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/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/project.xml b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/project.xml new file mode 100644 index 0000000..1ac028b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Unreacheablecode2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + UnreacheablCcode2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/Unreacheablecode2/src/unreacheablecode2/Unreacheablecode2.java b/PrjJava/OCA7/Chapter4/Unreacheablecode2/src/unreacheablecode2/Unreacheablecode2.java new file mode 100644 index 0000000..396e470 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/Unreacheablecode2/src/unreacheablecode2/Unreacheablecode2.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package unreacheablecode2; + +/** + * + * @author andad + */ +public class Unreacheablecode2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + throw new IllegalStateException(); + System.out.println("I'm unreachable!"); + } + +} diff --git a/PrjJava/OCA7/Chapter4/UnreachebleCode1/build.xml b/PrjJava/OCA7/Chapter4/UnreachebleCode1/build.xml new file mode 100644 index 0000000..af4f309 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreachebleCode1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project UnreachebleCode1. + + + diff --git a/PrjJava/OCA7/Chapter4/UnreachebleCode1/manifest.mf b/PrjJava/OCA7/Chapter4/UnreachebleCode1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreachebleCode1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/build-impl.xml new file mode 100644 index 0000000..f6329bb --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/genfiles.properties new file mode 100644 index 0000000..93f95a3 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=93a0dfec +build.xml.script.CRC32=cbc35f60 +build.xml.stylesheet.CRC32=8064a381@1.79.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=93a0dfec +nbproject/build-impl.xml.script.CRC32=5d639713 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/project.properties new file mode 100644 index 0000000..afc5c3a --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreachebleCode1/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}/UnreachebleCode1.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.7 +javac.target=1.7 +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=unreacheblecode1.UnreachebleCode1 +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/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/project.xml new file mode 100644 index 0000000..5242ef0 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreachebleCode1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + UnreachebleCode1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/UnreachebleCode1/src/unreacheblecode1/UnreachebleCode1.java b/PrjJava/OCA7/Chapter4/UnreachebleCode1/src/unreacheblecode1/UnreachebleCode1.java new file mode 100644 index 0000000..02d3366 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnreachebleCode1/src/unreacheblecode1/UnreachebleCode1.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package unreacheblecode1; + +/** + * + * @author andad + */ +public class UnreachebleCode1 { + + /** + * @param args the command line arguments + */ + static String[] days = {"monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday" }; + + public static void main(String[] args) { + // TODO code application logic here + int index = 0; + for (String day : days) { + if (index == 3) { + break; + } else { + continue; + } + index++; + if (days[index].length() > 3) { + + days[index] = day.substring(0, 3); + } + + } + System.out.println(days[index]); + } + +} diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/build.xml b/PrjJava/OCA7/Chapter4/UnrecheableCode1/build.xml new file mode 100644 index 0000000..e98437d --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrecheableCode1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project UnrecheableCode1. + + + diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/UnrecheableCode1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/UnrecheableCode1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/build/classes/unrecheablecode1/UnrecheableCode1.class b/PrjJava/OCA7/Chapter4/UnrecheableCode1/build/classes/unrecheablecode1/UnrecheableCode1.class new file mode 100644 index 0000000000000000000000000000000000000000..9b3010dd59a0313eb8f87689552108b2fce53327 GIT binary patch literal 500 zcmah_O;5r=6r4xD1VNB5JxaWw2O8oL^kQOSQuTmx(9=>ku(cFZTmO=0PbMDx0sbeA zZx<30V`7uteQ)ON%xpiu-#-8xVYdVeEe~xEI|O&A5|y10tnR^>V4p7TC7~LqL|*3e ziA=A>Bxa-@EJ6{FMXGea0_|+3o(TIvo}@CINlk?;(D!fFfL81eSb8p0LTGpIf=E0I zKNiW_5skLj-feg+)gUG987iBIS74fJYgk9XIAWo&R=UJjs$5_d&x z8bn{dWk!p7*3dqF;R4+1>stnHuve44T1IAXIf@FiI)#HOYAj$gzRgtub;do=7i`j@ I8fL8d12QFHX#fBK literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/manifest.mf b/PrjJava/OCA7/Chapter4/UnrecheableCode1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrecheableCode1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/build-impl.xml new file mode 100644 index 0000000..0ea001c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/genfiles.properties new file mode 100644 index 0000000..2060d86 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e7b26f32 +build.xml.script.CRC32=b632fd4c +build.xml.stylesheet.CRC32=8064a381@1.79.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=e7b26f32 +nbproject/build-impl.xml.script.CRC32=15a2a5f2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/project.properties new file mode 100644 index 0000000..1b13e22 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrecheableCode1/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}/UnrecheableCode1.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.7 +javac.target=1.7 +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=unrecheablecode1.UnrecheableCode1 +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/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/project.xml new file mode 100644 index 0000000..53ce74c --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrecheableCode1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + UnrecheableCode1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/UnrecheableCode1/src/unrecheablecode1/UnrecheableCode1.java b/PrjJava/OCA7/Chapter4/UnrecheableCode1/src/unrecheablecode1/UnrecheableCode1.java new file mode 100644 index 0000000..ce96d3e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrecheableCode1/src/unrecheablecode1/UnrecheableCode1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package unrecheablecode1; + +/** + * + * @author andad + */ +public class UnrecheableCode1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + final int i = 0; + final int j = 1; + while (i < j) { + // do stuff} + } + // System.out.println("I'm unreachable!"); // CE + } + +} diff --git a/PrjJava/OCA7/Chapter4/UnrereableCode4/build.xml b/PrjJava/OCA7/Chapter4/UnrereableCode4/build.xml new file mode 100644 index 0000000..848b2f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrereableCode4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project UnrereableCode4. + + + diff --git a/PrjJava/OCA7/Chapter4/UnrereableCode4/manifest.mf b/PrjJava/OCA7/Chapter4/UnrereableCode4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrereableCode4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/build-impl.xml new file mode 100644 index 0000000..a6b41cd --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/genfiles.properties new file mode 100644 index 0000000..b17be57 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ec2352e6 +build.xml.script.CRC32=c8807708 +build.xml.stylesheet.CRC32=8064a381@1.79.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=ec2352e6 +nbproject/build-impl.xml.script.CRC32=138826c6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/project.properties b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/project.properties new file mode 100644 index 0000000..e2fd374 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrereableCode4/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}/UnrereableCode4.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.7 +javac.target=1.7 +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=unrereablecode4.UnrereableCode4 +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/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/project.xml b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/project.xml new file mode 100644 index 0000000..7cc0d27 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrereableCode4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + UnrereableCode4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/UnrereableCode4/src/unrereablecode4/UnrereableCode4.java b/PrjJava/OCA7/Chapter4/UnrereableCode4/src/unrereablecode4/UnrereableCode4.java new file mode 100644 index 0000000..f0a3530 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/UnrereableCode4/src/unrereablecode4/UnrereableCode4.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package unrereablecode4; + +/** + * + * @author andad + */ +public class UnrereableCode4 { + + /** + * @param args the command line arguments + */ + public int go1() { + return 0; + //System.out.println("I'm unreachable!"); + } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter4/XOR1/build.xml b/PrjJava/OCA7/Chapter4/XOR1/build.xml new file mode 100644 index 0000000..e7528e9 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/XOR1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project XOR1. + + + diff --git a/PrjJava/OCA7/Chapter4/XOR1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/XOR1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/XOR1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/XOR1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/XOR1/build/classes/xor1/XOR1.class b/PrjJava/OCA7/Chapter4/XOR1/build/classes/xor1/XOR1.class new file mode 100644 index 0000000000000000000000000000000000000000..ba89ab5ba7daa97e19d80eaab8244b165a97e943 GIT binary patch literal 600 zcmZvYPiqrV6vclxGs$bxX&aj+R^z`~7fA(&;<7~qK`2HmMuO1QOB~|VWTs3fQn%v9 zkKkT#tqTPgegHp{sP|3$L&1T0@7{CnJNMlC?Z=m|z)h~zD08;TI_GMfr){`kxF}S1 z<0Q^+30|i=5d1so(@0q9#YyyFHXTOUV>_HEvf4{Wb~3P8?DF5BpFfL_g~i@Unr(+q z_8)EUsKnI9iO}jC^bYL{8%}I84*Pi)C*z%>h0VtLsPP|KkQ4p)gr$CNN6+uuqoR|c zF4X$zEE`34V`r!8n%!{v0TqnlQov=d7&Zc~vZ)1sEeZ91KK6%)(I`I!^ zCp_1}QxRBIN6=7#H8yFoMXPAnnoF`mUHKAS&S3VBF=8J HsBZlNFQ{() literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter4/XOR1/manifest.mf b/PrjJava/OCA7/Chapter4/XOR1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/XOR1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter4/XOR1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter4/XOR1/nbproject/build-impl.xml new file mode 100644 index 0000000..f217eac --- /dev/null +++ b/PrjJava/OCA7/Chapter4/XOR1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/XOR1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/XOR1/nbproject/genfiles.properties new file mode 100644 index 0000000..d00a654 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/XOR1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4adb8eb5 +build.xml.script.CRC32=4dba4786 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4adb8eb5 +nbproject/build-impl.xml.script.CRC32=f7eece8d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/XOR1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/XOR1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/XOR1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/XOR1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/XOR1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter4/XOR1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/XOR1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/XOR1/nbproject/project.properties new file mode 100644 index 0000000..18bd2ee --- /dev/null +++ b/PrjJava/OCA7/Chapter4/XOR1/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}/XOR1.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.7 +javac.target=1.7 +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=xor1.XOR1 +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/PrjJava/OCA7/Chapter4/XOR1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/XOR1/nbproject/project.xml new file mode 100644 index 0000000..218245f --- /dev/null +++ b/PrjJava/OCA7/Chapter4/XOR1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + XOR1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/XOR1/src/xor1/XOR1.java b/PrjJava/OCA7/Chapter4/XOR1/src/xor1/XOR1.java new file mode 100644 index 0000000..e58b733 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/XOR1/src/xor1/XOR1.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package xor1; + +/** + * + * @author anda + */ +public class XOR1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int x = 1; + if ((4 > x++) ^ (++x > 5)) x +=1;// se evelueaza ambele expresii + System.out.println(x); + } + +} diff --git a/PrjJava/OCA7/Chapter4/boolean1/build.xml b/PrjJava/OCA7/Chapter4/boolean1/build.xml new file mode 100644 index 0000000..8950530 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/boolean1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project boolean1. + + + diff --git a/PrjJava/OCA7/Chapter4/boolean1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter4/boolean1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/boolean1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter4/boolean1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter4/boolean1/build/classes/boolean1/Boolean1.class b/PrjJava/OCA7/Chapter4/boolean1/build/classes/boolean1/Boolean1.class new file mode 100644 index 0000000000000000000000000000000000000000..f671e0ad4e9ef1003048fb099cdf956d4f254575 GIT binary patch literal 1028 zcmaJ<+fEZv6kVq?blN(#w55QGh^SZ)s9eNLp&}+en2L}ZlGdlwGQq)irYTbsKLvll zXE7;>CVqh5;x`!AZfgjZ_;A*~oPAld=KTEq?FWDrY{ihkOca-KS0F1e8^s*%S(uL@ zj2VH22o}ZW1n$SMgk^yh3#%3$C@9TS;i>Y}6vFGS=LQ7@BRjjNU_STv9fd^E^_=Z? zqw2KY=xUvrRMD^L`krpN68Dp4@XkF_NEfTVUw5>(l-ue%d5&sm*HakHzAYZ=4?0)Z z-a)Puv|R5X-(96!2hx1OHJfFkLa4eVuq?2m5HAI~_WqS__V>q1e!Eq3Ubw|)*0EusVB;w^1)eD+ z2fkHd_-x$k>Y-B$&ZSBpj{>Jbh5a@!GCeh1Ket0E0t({j2IUItX4CQZ6(+Kk*#X7+ z{8+b;9k|T@uRap^J<%0LvV(=3nC`MaPe{RP3cWi2VCJHY@>WQ64>$P?6MUcsBBD0E zhzQ=b)SNa1u11D9$|y&xXou!bp}usl$B5x>(#AM_yH|iKxXLJsYnWh0ntyT45UppH zzasPrX|cvJ5@O9`SmtM##`+0{z9U>dg>`~Z2a!~?gV+g-GuNcs!KDstW5X<%YbIOF z@ou2bkaMtO~eabamdSk90Q$YheyOL8re<2G6Dl4FG|Yq*XEZ{;gidrX;`WHgB# o+@KtaJ=2(?7h>lWLnYhK;FpP0yQ)If$D1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter4/boolean1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter4/boolean1/nbproject/genfiles.properties new file mode 100644 index 0000000..2bdf6b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/boolean1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=977d53d6 +build.xml.script.CRC32=c9f7a845 +build.xml.stylesheet.CRC32=8064a381@1.79.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=977d53d6 +nbproject/build-impl.xml.script.CRC32=a4722fe1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter4/boolean1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter4/boolean1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter4/boolean1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter4/boolean1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter4/boolean1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/boolean1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter4/boolean1/nbproject/project.properties b/PrjJava/OCA7/Chapter4/boolean1/nbproject/project.properties new file mode 100644 index 0000000..c5f80b2 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/boolean1/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}/boolean1.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.7 +javac.target=1.7 +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=boolean1.Boolean1 +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/PrjJava/OCA7/Chapter4/boolean1/nbproject/project.xml b/PrjJava/OCA7/Chapter4/boolean1/nbproject/project.xml new file mode 100644 index 0000000..6586d32 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/boolean1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + boolean1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter4/boolean1/src/boolean1/Boolean1.java b/PrjJava/OCA7/Chapter4/boolean1/src/boolean1/Boolean1.java new file mode 100644 index 0000000..5845351 --- /dev/null +++ b/PrjJava/OCA7/Chapter4/boolean1/src/boolean1/Boolean1.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package boolean1; + +/** + * + * @author andad + */ +public class Boolean1 { + + /** + * @param args the command line arguments + */ + static boolean a; + static boolean b; + static boolean c; + public static void main(String[] args) { + // TODO code application logic here + boolean bool = (a = true) || (b = true) && (c = true); + System.out.println(a + ", " + b + ", " + c); + boolean b1 = false; + boolean b2 = true; + boolean b3 = true; + System.out.println(b1=true); + System.out.println(b2=true); + System.out.println(b3=false); + } + +} diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build.xml new file mode 100644 index 0000000..9de3173 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayList2. + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build/classes/arraylist2/ArrayList2.class b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/build/classes/arraylist2/ArrayList2.class new file mode 100644 index 0000000000000000000000000000000000000000..0db7dfec2d92abbe5a5b366a081a215b96282df1 GIT binary patch literal 1494 zcmZux*-{fx5Ir{pW(cE5WD_^s69Ps-TmW&w-2iG7aQBjoVRSN+noKPC6u-b{eL&GF z%SX%a@yQ4E+?j+V3RU#Nf%BMF;(~^Y?YM-?8fIeXRIn@RdsW9Z9oLn5BZix}rQx=Qj6mCz(SZUT>o0B#^G=SLIs-oznp2}w`F~qdp#>l0d)Rt*`(kYe@gX1RW>nh~VU3boyxR literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/manifest.mf b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/build-impl.xml new file mode 100644 index 0000000..37e19b6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/genfiles.properties new file mode 100644 index 0000000..aa437d7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=48bad013 +build.xml.script.CRC32=42a30cd0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=48bad013 +nbproject/build-impl.xml.script.CRC32=5d50b75e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/project.properties b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/project.properties new file mode 100644 index 0000000..17c47ac --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/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}/ArrayList2.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.7 +javac.target=1.7 +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=arraylist2.ArrayList2 +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/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/project.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/project.xml new file mode 100644 index 0000000..fcb898e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayList2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/src/arraylist2/ArrayList2.java b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/src/arraylist2/ArrayList2.java new file mode 100644 index 0000000..f3397b0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList2/src/arraylist2/ArrayList2.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arraylist2; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; + +/** + * + * @author andad + */ +public class ArrayList2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + List l = new ArrayList(); + l.add("xx"); l.add(" x"); l.add("Xx"); + Comparator c = Collections.reverseOrder(); + Collections.sort(l, c); + for(String s : l) System.out.println("<" + s + ">" + " "); + } + +} diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build.xml new file mode 100644 index 0000000..5830d3a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayList3. + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build/classes/arraylist3/ArrayList3.class b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/build/classes/arraylist3/ArrayList3.class new file mode 100644 index 0000000000000000000000000000000000000000..69d570aa8a057b3728970b3eeeb1010a0150da8a GIT binary patch literal 1204 zcmZuw-BQy~5dKaZ2!sGFr3F#>Q?#W(RQxZZfS}d1I8z4)y*iXw4yFl{ri?s_PvEs) z2}vWAE}(;5_Hx-f~X z)TT5{V@8@r7p~x{6xTW_@4AK?xT)fnirWnBbHWk+JVP{{Sz}O^+)az2*A$LbtXDTI z?>XPF$O)i%;a8$N+((*(xrrAh&3|nzOW66NNK6lH1~Fns80MB zJJ$kro(goAd|rN2;5$K!D(vSVgd9b0*y4=rN=FQFq8fAEAna;~iMET|>RZpK7OQTLM^O8Z`<#yd#eJxj+&zy(} z7nTf*FS)i&420{@29=uY5q6?kIb4=R?GVR2Qt4*hAmWH0ZA9JTwW9TwYS0rUE{YQv z{YUY^n`&}BHHXq(&9|zQ=GG}W*$v(0SIvJg9llx#Fg6jmy_P`lOKk0fS07<0C>cjvB$s?10(0{AYS@?p; z`aYs&_6wBt*zi8u4$&ULi)>6gfZEg#(2+evCqrTC5E{cf43N^r@C{1wBlPJ{=zjnA zrzD|3k{Cw^$w885NDkp5&LNHSSi~^$7=ek=fZ!;i + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/genfiles.properties new file mode 100644 index 0000000..9dc93f9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=40a95c35 +build.xml.script.CRC32=6c987207 +build.xml.stylesheet.CRC32=8064a381@1.79.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=40a95c35 +nbproject/build-impl.xml.script.CRC32=e4b234e1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/project.properties b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/project.properties new file mode 100644 index 0000000..264766e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/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}/ArrayList3.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.7 +javac.target=1.7 +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=arraylist3.ArrayList3 +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/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/project.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/project.xml new file mode 100644 index 0000000..cd192f9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayList3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/src/arraylist3/ArrayList3.java b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/src/arraylist3/ArrayList3.java new file mode 100644 index 0000000..0ab890d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayList3/src/arraylist3/ArrayList3.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arraylist3; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +/** + * + * @author andad + */ +public class ArrayList3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + List list = new ArrayList<>(); + list.add(new Integer(30)); + list.add(10); + //Arrays.sort(list); + Collections.sort(list); + for (Integer i : list) { + System.out.println(i); + } + } + +} diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build.xml new file mode 100644 index 0000000..1a78aef --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayListSublist. + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build/classes/arraylistsublist/ArrayListSublist.class b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/build/classes/arraylistsublist/ArrayListSublist.class new file mode 100644 index 0000000000000000000000000000000000000000..2f95cbc078eeeb864370c337bc305fe77ce96c99 GIT binary patch literal 973 zcmah|+iuf95IyUpahjT5()$HyS}sXlYT9y7DU?V^mCQv7DgvH1i50eTY~(md{TMz1 z9*7DOAHYW;&e{fGpyFMDOu2F(kgbI+PhiYdf%ml6X?W2K+3@Kp zx?xlL2QpInJaA^?x2h|!>dGjRN51OD-Cjd)&YpI-wCbs&%G4dH0)d(G8~0GYmyR!k zwo{KI6|}1fwT#+KHhD%^!02uYjHefSvGN_An@NrCmO!B%_M)cuSZSfte^PH~HVfmJ zVDf}HN$?9MAf$;+3tQNx-Qe5QhZ`1d;+DR6+rk~(HF3{E6+0>iC?|fzp4=rsk7c zpEVA>W-KszB0^We*2`9l!po=nl47fs*ScZ*X9PGalg&;OOqKWdD}Og~*L$>{0P_N~S{RIp-I1ik|Fn9BF@lcT?y)4e~ks zGiy9R38Vau^<#jnnBZFE$>A=z53ThfJ|^KwuDQfHhAG-s3cxgGcpAnm=IGIvKVS$M z?zOKlUiFc2?PB&ALk3>j#oWNi7R_ViGtdw_%kXdpeH5P9>&F-&@)IokGtQk*uOQEq yGhAn>at;fa=YO@pUvZJ&#u6Ukd?IT(rDk-2_&j5aj0)n$iC9YNyugToi$4MOh}ePv literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/manifest.mf b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/build-impl.xml new file mode 100644 index 0000000..ef1ae9c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/genfiles.properties new file mode 100644 index 0000000..92f8513 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=545b448d +build.xml.script.CRC32=04b0c53d +build.xml.stylesheet.CRC32=8064a381@1.79.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=545b448d +nbproject/build-impl.xml.script.CRC32=f9bffbae +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/project.properties b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/project.properties new file mode 100644 index 0000000..8583832 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/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}/ArrayListSublist.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.7 +javac.target=1.7 +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=arraylistsublist.ArrayListSublist +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/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/project.xml b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/project.xml new file mode 100644 index 0000000..caea75f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayListSublist + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/src/arraylistsublist/ArrayListSublist.java b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/src/arraylistsublist/ArrayListSublist.java new file mode 100644 index 0000000..247e473 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/ArrayListSublist/src/arraylistsublist/ArrayListSublist.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arraylistsublist; + +import java.util.ArrayList; +import java.util.List; + +/** + * + * @author andad + */ +public class ArrayListSublist { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + List s1 = new ArrayList(); + s1.add("a"); + s1.add("b"); + s1.add(1, "c"); + List s2 = new ArrayList(s1.subList(1, 1)); + s1.addAll(s2); + System.out.println(s1); + } + +} diff --git a/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build.xml b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build.xml new file mode 100644 index 0000000..ac88d27 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Arraylist4. + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build/classes/arraylist4/Arraylist4.class b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/build/classes/arraylist4/Arraylist4.class new file mode 100644 index 0000000000000000000000000000000000000000..9fe5f07c7b8b969ad54271fc756f0506d51f0f0d GIT binary patch literal 937 zcmZuvU2hUm5IvWrEZ|y@3bod1t5u<^tk7CNAWcjY6OxUZ)YPa?7ueu!7HF2m1b>Hr zL?39PiSgMVWjuGGwJ7^AGk50BIp@youixK(0N6%7jYX`R*hnLW^(1a;e=CVi?Qf@W z2X}Q;)TU%&D-9d>Ox!n77D&`pPlbB|MzM4#5Z~{&J%Nm?dftm+x9J71Wz%OS=k{CD zKa_#e=V>w?eozB}Wmg7)9QkSx?l{lR!W!YaQuPE1#rN)!{3sn?_Bzf%7^q&S7SYL| zLx80@Wr3LV1@e=|VW|8Gv`ZEu7iRU0j!!j}<~7v+r{5z;`k+4yTHbS|Uzqu;ysX7q z$RJB?k?>i5PODO>Sa9%wVYOP-VZ{XfHg+sL#IA)$cr1|p_t_?%Sa=GO=jRS>rsZYx z$ZLh9knJ`bisxQ2Db-5v^mH3@3S8!S^3fplxN~HvijWKOWLK|ipgwUD z{1qCs9Zz2^Hl`Deb~mLx9m_0&fO)L(e6D;(?AgY#fs6cE^%nz2jx6mZo*a5Xzp!-z z@g*wfXcJL#5lf7%$pu_So~INFSY}2ye}+LgVD~#>Z%<&jb}l}~!W%o6h@7FlX&X9g zenrx@$4HHl{)r1?Seng%X1flPHjgB+Gej@o3f8cKOi4 R#* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/genfiles.properties new file mode 100644 index 0000000..d03edd7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=30888c07 +build.xml.script.CRC32=173cdb82 +build.xml.stylesheet.CRC32=8064a381@1.79.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=30888c07 +nbproject/build-impl.xml.script.CRC32=6de8ac77 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/project.properties b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/project.properties new file mode 100644 index 0000000..a86dc0f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/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}/Arraylist4.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.7 +javac.target=1.7 +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=arraylist4.Arraylist4 +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/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/project.xml b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/project.xml new file mode 100644 index 0000000..0622e7b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Arraylist4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/src/arraylist4/Arraylist4.java b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/src/arraylist4/Arraylist4.java new file mode 100644 index 0000000..e403757 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/Arraylist4/src/arraylist4/Arraylist4.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arraylist4; + +import java.util.ArrayList; + +/** + * + * @author andad + */ +public class Arraylist4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + ArrayList al = new ArrayList(); + al.add("111"); + al.add("222"); + al.add(0,"222"); + al.add(0,"111"); + System.out.println(al.get(al.size())); + } + +} diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/build.xml b/PrjJava/OCA7/Chapter5/ArrayList/List1/build.xml new file mode 100644 index 0000000..05a8f9a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/List1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project List1. + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/list1/Apple.class b/PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/list1/Apple.class new file mode 100644 index 0000000000000000000000000000000000000000..412be24f0fc536900d3f9131b6ce9851f32b6a55 GIT binary patch literal 252 zcmYjL!4APd5Pd_nRH^s^M;tWbNF*Y0YB&)0ZEaXttyK9hCy9d(@KItG2b0XqoA=&i z=J~om01VJ@QAEu_-GNWAM=DYIm{4qY)&y&sZY04ERU+r-LnO16h%__JFpY&?i%gmM zM_Tz#od~s1t5e<&CdZ?eLxQ_Z&si*I$}GB}(RzDv5gsg*2-QC~p<$Fji)0%tqP>iB rv{2v=O%NxqaJLx++znIe-auCd1vp&o59y=K*!vn#fy)!0`nbF|J4-LX literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/list1/List1.class b/PrjJava/OCA7/Chapter5/ArrayList/List1/build/classes/list1/List1.class new file mode 100644 index 0000000000000000000000000000000000000000..5bab6634a91f05e562a686deddeec001fd22724b GIT binary patch literal 1177 zcmb7CT~8B16g|_HZa)@^t*xjC1(bduR6u8n$b_8J@Q+@2ze*^kf^owsuamXUl!$jQOAJ zfx>*lu?PNcts%CqV6^n$%<}gXa^=RU{;X?5-*$rMdO#xK3X9Wk3Wa}JF8Y6&ic_%% z+au1Se&4a`hh$AQ?XIi+p~q@Brg>-LrH)aZyR35>zAA`?85FuDF&;LkusWSLQ`Pzm z##Bfk$ho#%;rkfkIoj>kn!abd-B2*?b*XdihGzw(6;jRK&}&;SZTYHH@DDp8yooeS zg>?8ofmQ}~P3&Rc#8W&Y=H!2lJWpRpu89Z8nYbq=i`+Orz*Sh7q=<*3qdOgi{HW8Q z_~X{8)%NR^4;-n1{e@L=zFuREa~I*5g5yY7n6&e})wnD1R=+`g((6hpmB7&&6`3I()($fF{ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/manifest.mf b/PrjJava/OCA7/Chapter5/ArrayList/List1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/List1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/build-impl.xml new file mode 100644 index 0000000..44073b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/genfiles.properties new file mode 100644 index 0000000..fcd67c5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5017a2cd +build.xml.script.CRC32=7052c8bb +build.xml.stylesheet.CRC32=8064a381@1.79.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=5017a2cd +nbproject/build-impl.xml.script.CRC32=128653ee +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/project.properties new file mode 100644 index 0000000..5e0c07a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/List1/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}/List1.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.7 +javac.target=1.7 +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=list1.List1 +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/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/project.xml new file mode 100644 index 0000000..716a64e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/List1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + List1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/ArrayList/List1/src/list1/List1.java b/PrjJava/OCA7/Chapter5/ArrayList/List1/src/list1/List1.java new file mode 100644 index 0000000..84655f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/ArrayList/List1/src/list1/List1.java @@ -0,0 +1,44 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package list1; + +import java.util.ArrayList; +import java.util.List; + +/** + * + * @author andad + */ +class Apple { +} + +public class List1 extends Apple { + + /** + * @param args the command line arguments + */ + public static void basket2(List list) { + list.add(new Apple()); + } + + public static void basket1(List list) { + list.size(); + } + + public static void basket(List list) { + list.add(new Apple()); + } + + public static void main(String[] args) { + // TODO code application logic here + List a = new ArrayList(); + basket(a); + basket1(a); + basket2(a); + + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Aray17/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Aray17/build.xml new file mode 100644 index 0000000..cca2250 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Aray17/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array17. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Aray17/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Aray17/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Aray17/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/build-impl.xml new file mode 100644 index 0000000..133ff8e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/genfiles.properties new file mode 100644 index 0000000..bb70a79 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9b492644 +build.xml.script.CRC32=d8bfdfec +build.xml.stylesheet.CRC32=8064a381@1.79.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=9b492644 +nbproject/build-impl.xml.script.CRC32=8fe23d9f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/project.properties new file mode 100644 index 0000000..650b5ff --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Aray17/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}/Array17.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.7 +javac.target=1.7 +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=aray17.Aray17 +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/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/project.xml new file mode 100644 index 0000000..4a62c4b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Aray17/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array17 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Aray17/src/aray17/Aray17.java b/PrjJava/OCA7/Chapter5/Arrays/Aray17/src/aray17/Aray17.java new file mode 100644 index 0000000..68bdb07 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Aray17/src/aray17/Aray17.java @@ -0,0 +1,51 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package aray17; + +/** + * + * @author andad + */ +public class Aray17 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] forArr = {1, 2, 3, 4}; + + //int[] forArr = new int[6]; + forArr = new int[6]; + for (int i = 0; i < forArr.length; i++) { + forArr[i] = 0; + + } + + for (int i = 0; i < forArr.length; i++) { + + System.out.print(forArr[i] + " "); + + } + + System.out.println("\n--------------"); + + int[] enhancedForArr = {1, 2, 3, 4}; + + for (int i : enhancedForArr) { + + enhancedForArr[i] = 0; + + } + + for (int i : enhancedForArr) { + + System.out.print(enhancedForArr[i] + " "); + + } + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array1/build.xml new file mode 100644 index 0000000..8d6e4d5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array1. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/build/classes/array1/Array1.class b/PrjJava/OCA7/Chapter5/Arrays/Array1/build/classes/array1/Array1.class new file mode 100644 index 0000000000000000000000000000000000000000..135542b6ac7a732189765869fd9860e29a112414 GIT binary patch literal 691 zcmZuvZA;rw7(KU5n>MCet?{+K)YsI=!f@=1o3IIkL0N@Lzxe4khI*wSe58HQB8hSVu$0hK@~v;wKfT z_(&jcH@gDbad_?vOtnH>esn5(17>Dgp(h7j8L1@xpVZ^nC-+Ej<(Wv3YOM>M9z6a{t4R4@SPM~gN9iWS&Zg5dLGkQV6=!OzFSyM$vV!Z literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/build-impl.xml new file mode 100644 index 0000000..56ce72b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/genfiles.properties new file mode 100644 index 0000000..5a109ab --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=75815323 +build.xml.script.CRC32=cf4654ff +build.xml.stylesheet.CRC32=8064a381@1.79.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=75815323 +nbproject/build-impl.xml.script.CRC32=4dc4b6ef +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/project.properties new file mode 100644 index 0000000..1ba4c65 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array1/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}/Array1.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.7 +javac.target=1.7 +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=array1.Array1 +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/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/project.xml new file mode 100644 index 0000000..4a09e87 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array1/src/array1/Array1.java b/PrjJava/OCA7/Chapter5/Arrays/Array1/src/array1/Array1.java new file mode 100644 index 0000000..4f75679 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array1/src/array1/Array1.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array1; + +/** + * + * @author anda + */ +public class Array1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int [] x = new int[5]; + byte b = 4; + char c = 'c'; + short s = 7; + x[0] = b; + x[1] = c; + x[2] = s; + System.out.println(x.toString()); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array10/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array10/build.xml new file mode 100644 index 0000000..25cc6d8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array10. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array10/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array10/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array10/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/build-impl.xml new file mode 100644 index 0000000..1733ef8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/genfiles.properties new file mode 100644 index 0000000..e0a096b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a33382b6 +build.xml.script.CRC32=b7d5b572 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a33382b6 +nbproject/build-impl.xml.script.CRC32=883a5a24 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/project.properties new file mode 100644 index 0000000..531bfce --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array10/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}/Array10.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.7 +javac.target=1.7 +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=array10.Array10 +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/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/project.xml new file mode 100644 index 0000000..a8cc081 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array10 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array10/src/array10/Array10.java b/PrjJava/OCA7/Chapter5/Arrays/Array10/src/array10/Array10.java new file mode 100644 index 0000000..33281b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array10/src/array10/Array10.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array10; + +/** + * + * @author anda + */ +public class Array10 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array11/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array11/build.xml new file mode 100644 index 0000000..ad38f26 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array11/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array11. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array11/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array11/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array11/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array11/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array11/build/classes/array11/Array11.class b/PrjJava/OCA7/Chapter5/Arrays/Array11/build/classes/array11/Array11.class new file mode 100644 index 0000000000000000000000000000000000000000..a395cc469c8cb90fa7bd43bb36254878ba3b738f GIT binary patch literal 596 zcmZut!D`z;6r8nWDOO}hv18Y5+9Y)@PHHSdPi;z|6bc44D!3R#PHRWFYiubfav}Hr zP;*Eilzu=zs&ph9j6?RY@9n&|GxOfxe-D2Eyv3n~A{r$;L({@@yfCqA;-!G`K}9M( z6VTd60|EV0d>IOCc`6Fe=d)p$e3Qc|k*XJuZ=Y z<%|Q>a*lOaz`V+urkqr7_l^cMpmWdJDS*p`$$Nt@mr*blkMALV<>eA@BL{6*%lu;p)ef~*Ojq$zt+X^&i(+_mV_Jg8R_5;JI_+E}{gmt1tf`bQDc^kv%^XO_5Z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/genfiles.properties new file mode 100644 index 0000000..129af28 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ab200e90 +build.xml.script.CRC32=2956cf76 +build.xml.stylesheet.CRC32=8064a381@1.79.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=ab200e90 +nbproject/build-impl.xml.script.CRC32=89124dc1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/project.properties new file mode 100644 index 0000000..07d455d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array11/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}/Array11.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.7 +javac.target=1.7 +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=array11.Array11 +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/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/project.xml new file mode 100644 index 0000000..3dca104 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array11/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array11 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array11/src/array11/Array11.java b/PrjJava/OCA7/Chapter5/Arrays/Array11/src/array11/Array11.java new file mode 100644 index 0000000..954beaa --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array11/src/array11/Array11.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array11; + +/** + * + * @author andad + */ +public class Array11 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] a = { 11, 12, 13, 14 }; + int[] b = { 0, 1, 2, 3 }; + System.out.println(a[(a=b)[3]]); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array12/build.xml new file mode 100644 index 0000000..a60ce62 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array12/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array12. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array12/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array12/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/build/classes/array12/Array12.class b/PrjJava/OCA7/Chapter5/Arrays/Array12/build/classes/array12/Array12.class new file mode 100644 index 0000000000000000000000000000000000000000..a33a2d45290452af71dc9f3581b8a44df4dca68b GIT binary patch literal 803 zcmZuu%Wl&^6g?ArW*pi;xN6>K|Se*6NV*6 z#j%?0?lqt1zD79OK2 zv1Or#ZQAue@(iWFjNR^O;3t=$&TNtdLxy5j=SSliL#_JHmU&J4;0ov4T~Ft($A#+&>3Y&|J)^;zs^5 N(&iUM7+EUa%|Bewo`3)V literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array12/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array12/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/build-impl.xml new file mode 100644 index 0000000..c3852cd --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/genfiles.properties new file mode 100644 index 0000000..8114f93 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b3149afa +build.xml.script.CRC32=51a2473b +build.xml.stylesheet.CRC32=8064a381@1.79.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=b3149afa +nbproject/build-impl.xml.script.CRC32=8a6a75ee +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/project.properties new file mode 100644 index 0000000..b945f7e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array12/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}/Array12.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.7 +javac.target=1.7 +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=array12.Array12 +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/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/project.xml new file mode 100644 index 0000000..6f1decc --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array12/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array12 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array12/src/array12/Array12.java b/PrjJava/OCA7/Chapter5/Arrays/Array12/src/array12/Array12.java new file mode 100644 index 0000000..c03d9cd --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array12/src/array12/Array12.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array12; + +/** + * + * @author andad + */ +public class Array12 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + + int[] scores1 = {1, 2, 3, 4, 5, 6}; + int[] scores2 = {0, 0, 0, 0, 0, 0}; + System.arraycopy(scores2, 2, scores1, 3, 2); + for (int i : scores2) { + System.out.print(i); + } + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array13/build.xml new file mode 100644 index 0000000..f4a161b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array13/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array13. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array13/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array13/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/build/classes/array13/Array13.class b/PrjJava/OCA7/Chapter5/Arrays/Array13/build/classes/array13/Array13.class new file mode 100644 index 0000000000000000000000000000000000000000..4074b368b438d0ab0e147e1a539413d0107efbfb GIT binary patch literal 1113 zcmZuv%Tg0j5IvX7WWq4KLIR?I@kv4g5l~b>lpsizK`mopS*|Y0R2-Z_4<;)qlYv7(haM39{-jYBdp4b%7Rw@Nspf~H3?PvAU zmR)-#w_HZT*-Bozo3iF8zZKNHcg~JLe^%CNa&LMzz1*}5EL4(CSzs{!HoGl%W!jbH zVmjy5oN{r&Z&Z+;RAtX(1qAy=Pb5}9}X^(o_vP70aS*_aTg1}__gsy*|<4mYE122ZWN)sgzi6_ng ziD(Yg-jOm@ReusXuOIg;RJ6SnSMI2%Y^&=BS=R6ixLl#O5={lTLAZiGF0=Y|fO~`i zo)LO!T0yH%96}uU=_t>jAG9#YZ>tHw5H8T`#4s*0qAveLfJorA@eLi>q!te3l6qLn zC4*r-m)uAlEd}PZs5bfuiBwdZnb$uf_!Y*RLxhI)20Ftgj|RFLus&*H|MhlZ9jDhPWF*k_mz|BAUW%H{5 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array13/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array13/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/build-impl.xml new file mode 100644 index 0000000..f8b0f83 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/genfiles.properties new file mode 100644 index 0000000..82bcd5f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=bb0716dc +build.xml.script.CRC32=cf213d3f +build.xml.stylesheet.CRC32=8064a381@1.79.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=bb0716dc +nbproject/build-impl.xml.script.CRC32=8b42620b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/project.properties new file mode 100644 index 0000000..098f559 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array13/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}/Array13.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.7 +javac.target=1.7 +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=array13.Array13 +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/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/project.xml new file mode 100644 index 0000000..f7271de --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array13/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array13 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array13/src/array13/Array13.java b/PrjJava/OCA7/Chapter5/Arrays/Array13/src/array13/Array13.java new file mode 100644 index 0000000..f97881a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array13/src/array13/Array13.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array13; + +/** + * + * @author andad + */ +public class Array13 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + // variabila locala initializata cu null + String[] dataArr = new String[4]; + dataArr[1] = "Bill"; + dataArr[2] = "Steve"; + dataArr[3] = "Larry"; + try { + for (String data : dataArr) { + System.out.print(data + " "); + } + } catch (Exception e) { + System.out.println(e.getClass()); + } + } +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array14/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array14/build.xml new file mode 100644 index 0000000..36af719 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array14/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array14. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array14/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array14/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array14/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array14/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array14/build/classes/array14/Array14.class b/PrjJava/OCA7/Chapter5/Arrays/Array14/build/classes/array14/Array14.class new file mode 100644 index 0000000000000000000000000000000000000000..a94b47906716954c824065dd8b07f12e093d5517 GIT binary patch literal 695 zcmZuvTWb?R7(KI>Y!kQkk|wP-QPXPORLtV#L8u1A3j|UltOP=yCUJ=qlTF!fgueHe z_~NrZD2VpKM}LKXz&}vDo!Jzm;=;_C?|irO&Cb_fACCasLN$jB)*Y0xDC0s77jel! z#leO^=B|oVQWr42YFog1FnJydEHqUVKADbtVf;+?Mr4+olfE3aWvsM)LR!fSwJ)&L zlyNK%Zrt|o&v1u@#!^KBMX%c&%2(1K$!OpQNvxv5j&3A|Tn#S8SQ!skCjXyM0YgcO z>vkDCA0)E>a#!x9?Hv>aa=~O8_ru3ZYjjWA*K|i04(6ENZ8+F;aT!+}Y`M4!kK_HL zS77n4$X0I{_LEaoaIl|*W6GFJ=_t%5QWO6v$4NL;D90Q*pVl}{3pjf^XvDj)yhgQ+ z3T*xi{TZMabKJAEe4-%Q+aDm_rtTc~OiH>q!?QaJAkNdu;w%=(=;SXfWDy_PpJ8-N z`%|uCTCI*{w}Or(g62Dz*N)!9GVhh_*Ql8FGGRrtrJLm%9fziP^ZWau!TpC2IZ0^xs#1b + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/genfiles.properties new file mode 100644 index 0000000..56b8f89 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=837db22e +build.xml.script.CRC32=a04b57a1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=837db22e +nbproject/build-impl.xml.script.CRC32=8c9a05b0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/project.properties new file mode 100644 index 0000000..3bab4f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array14/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}/Array14.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.7 +javac.target=1.7 +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=array14.Array14 +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/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/project.xml new file mode 100644 index 0000000..78172ff --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array14/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array14 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array14/src/array14/Array14.java b/PrjJava/OCA7/Chapter5/Arrays/Array14/src/array14/Array14.java new file mode 100644 index 0000000..4ab0821 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array14/src/array14/Array14.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array14; + +/** + * + * @author andad + */ +public class Array14 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + + int ia[][] = {{1, 2}, null}; + System.out.println(ia.length); + for (int i = 0; i < 2; i++) { + for (int j = 0; j < 2; j++) { + System.out.println(ia[i][j]); + } + } + } +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array15/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array15/build.xml new file mode 100644 index 0000000..f5d79c5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array15/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array15. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array15/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array15/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array15/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array15/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array15/build/classes/array15/Array15.class b/PrjJava/OCA7/Chapter5/Arrays/Array15/build/classes/array15/Array15.class new file mode 100644 index 0000000000000000000000000000000000000000..18455d1feaf9daba1061fbf2d1b337c8dd4d5a63 GIT binary patch literal 687 zcmZuu(M}UV6g|^jI&E2?w6qjatRT<=anll?AST4br$tRl`XEo!x~T*0F4=BL2w%cy z;DaW{_yPVC#521jrs6)_JNN9p=iD>%`~Jr-0Q=Z0K;mf*&vIDH<2mXDyuiA|hQv#O z?4b^H{6@fPG`j-!+wik5u;A&ye?J-Z{OCmWhD1tU*jK}@inOU8Ks)}T#{!F + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/genfiles.properties new file mode 100644 index 0000000..812d6a1 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8b6e3e08 +build.xml.script.CRC32=3ec82da5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=8b6e3e08 +nbproject/build-impl.xml.script.CRC32=8db21255 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/project.properties new file mode 100644 index 0000000..bc8c572 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array15/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}/Array15.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.7 +javac.target=1.7 +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=array15.Array15 +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/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/project.xml new file mode 100644 index 0000000..14d07c5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array15/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array15 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array15/src/array15/Array15.java b/PrjJava/OCA7/Chapter5/Arrays/Array15/src/array15/Array15.java new file mode 100644 index 0000000..3dff4a2 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array15/src/array15/Array15.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array15; + +/** + * + * @author andad + */ +public class Array15 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String str="111"; + boolean[] bA = new boolean[1]; + // variabile locale de tip obiect sunt si ele initializate, + //bA este pes stiva, iar fiecare elemet se aloca pe heap + if (bA[0]) + str = "222"; + System.out.println(str); + + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array16/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array16/build.xml new file mode 100644 index 0000000..7493374 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array16/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array16. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array16/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array16/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array16/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array16/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array16/build/classes/array16/Array16.class b/PrjJava/OCA7/Chapter5/Arrays/Array16/build/classes/array16/Array16.class new file mode 100644 index 0000000000000000000000000000000000000000..0d5a28b9b01e7f48f3c198dd328d9c06d6140239 GIT binary patch literal 842 zcmaJ<+iuf95Iq|^v1457=2jr3btxC8q%q~vA~ixPs6~|msT33`>eD8%!d8hLxeii4 zgb#s-R06~Y@KK0aJ5tp);=!{sXLe@J9PgjMKYjyvf!78Wu$G05bqx;;C|J|6A zJks%4#}nx~1}fOp@Ki&UAyXH=h~6+LPNmJDz6<&u!(v1D-p9$P>xG|qcSuOC5%l=5 z%|jvM8K_2|#Tmm=gNGqM-`;WelXH(6jkxd`O3q2+lz-vwkoyC-6@|hd?8Sq4IH1z} zoHPRy^c^vz#6Fo5@{Cq6347k5kX+2!n40Wt;x-mFY?-LRWmvvG?d?Pi`(DTZ6VI?M z&2#E*Q)AmUNx7FAUYXdzF0FlS4+iV9U9)@Y^`a|K>-;S8Mx z9v_hu89p9+exG5>nWM!GXhxU{SDd5Df6{ssB!V&&oSPS^K|W@Gl@NnAmh^`7cZ%}} zwXsf8Ezqk1QeaYEvKB=younhun-^f;;`9>PObnXHk#8m!kVk={EQ%-*B8$I5rN;-n zSL*3sMn|!XW=FLO%@5VGwc4pSza#Y%O6LM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/genfiles.properties new file mode 100644 index 0000000..91da616 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=935aaa62 +build.xml.script.CRC32=463ca5e8 +build.xml.stylesheet.CRC32=8064a381@1.79.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=935aaa62 +nbproject/build-impl.xml.script.CRC32=8eca2a7a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/project.properties new file mode 100644 index 0000000..a9064d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array16/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}/Array16.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.7 +javac.target=1.7 +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=array16.Array16 +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/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/project.xml new file mode 100644 index 0000000..77fe7de --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array16/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array16 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array16/src/array16/Array16.java b/PrjJava/OCA7/Chapter5/Arrays/Array16/src/array16/Array16.java new file mode 100644 index 0000000..75545ac --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array16/src/array16/Array16.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array16; + +/** + * + * @author andad + */ +public class Array16 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 0; + int[] iA = {10, 20}; + iA[i] = i = 30; + System.out.println("" + iA[0] + " " + iA[1] + " " + i); + } +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array2/build.xml new file mode 100644 index 0000000..8a595bb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array2. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/build/classes/array2/Array2.class b/PrjJava/OCA7/Chapter5/Arrays/Array2/build/classes/array2/Array2.class new file mode 100644 index 0000000000000000000000000000000000000000..a6aa2cd80c63c85a87ecf52f65b0e6cc703ee71b GIT binary patch literal 915 zcmaJ<+iuf95Iq}THc8z!q)l3&K)5>zt)YaA6odqocz{qU1tNt$Z5%6XN$kjVkoq^g z@eB{C1c(pdANUo*tlbJis`_DO=gireGvodF`|A$?ckv*LIg~QEj4K>hv(Qjd=2{xp zmA|3P%`9w`IVv1g2J?~hW%QUqv&$_8eJkjC42uovd)uQy#|vMJPM?r`BXC8(B|@p< zBT$dt$$iBZVJHqZohPxYQ<;H~K10#oZS08;!s!dY=QN{G`n`JGMua`OxO76AA>|4( zyITzN%}BWKUy5PekE6)3%5jTEW5_mxQRsTlq*6DRbly6l~g!kz; z6;7(%qDQ1&lloF%YN=!wD00X%@~ox6Bx}Z?g&du&gn%>1Qj%`vz_jepTG(qm+l1Pw~U z0(np~)$Tb8v6N!cj-q0mdx#aRl9;m;?LeQPf)vL&j`PZ|aa@>C<`~ivh)t;CF?I@# K>Rwd0ap@0eHoKhw literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/build-impl.xml new file mode 100644 index 0000000..93340af --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/genfiles.properties new file mode 100644 index 0000000..751a26b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6db5c749 +build.xml.script.CRC32=4d8b21fa +build.xml.stylesheet.CRC32=8064a381@1.79.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=6db5c749 +nbproject/build-impl.xml.script.CRC32=68dda4bf +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/private/private.xml new file mode 100644 index 0000000..6d601cc --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Array2/src/array2/Array2.java + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/project.properties new file mode 100644 index 0000000..84c999b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array2/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}/Array2.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.7 +javac.target=1.7 +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=array2.Array2 +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/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/project.xml new file mode 100644 index 0000000..681214f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array2/src/array2/Array2.java b/PrjJava/OCA7/Chapter5/Arrays/Array2/src/array2/Array2.java new file mode 100644 index 0000000..a196b6f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array2/src/array2/Array2.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array2; + +/** + * + * @author anda + */ +public class Array2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + char [] ca = {0x4e, '\u004e', 78}; + System.out.println((ca[0]==ca[1]) + " " + (ca[0]==ca[2])); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array20/build.xml new file mode 100644 index 0000000..1c90f45 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array20/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array20. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array20/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array20/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/build/classes/array20/Array20.class b/PrjJava/OCA7/Chapter5/Arrays/Array20/build/classes/array20/Array20.class new file mode 100644 index 0000000000000000000000000000000000000000..7de0e43c54889f429f9ec7e7e7a343922a5bb2fc GIT binary patch literal 649 zcmZuvT~8B16g{_FI(FUKFI$va5c#kW!xDXjkQfsZlAfP@%+fPaQ}9?&ye5`%F!J2Us(Gv}T=v%jv-F95v2Qx`Ls%cFruE}EEESWtK@ z$Zea@Bs&79wbm76Uq$Z&L9uPZ;PqtG3*vXWHzZPNM}0l)>e$%$2FxZO%vexv>p0dY z&o}*-(|L-w&)E~7!)ZxJIB(VtxTegrGetYEUctDBje`rjO%_r7&C@;ty zkY4B{x_`8tYdE-h+KI z;Ne4Yyu--nESzW7&miB^be>}_1wFW2ds71Las}j3z&#>%^A|Xj1y)P$cH^hJ{{xw4 z7pHKXoo3@JDmH9xF#hbwx8Ijm-Qj*YEEYJf;6Yk-oyukAizt!D l8jLEb!V-6u=zxC`^EEb9Ctg728f8(Kl`9g2GPc);e*mcUd!qmV literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array20/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array20/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/build-impl.xml new file mode 100644 index 0000000..98684c9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/genfiles.properties new file mode 100644 index 0000000..43b7b71 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0e4c3e64 +build.xml.script.CRC32=bfc07cd7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0e4c3e64 +nbproject/build-impl.xml.script.CRC32=23e81f45 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/project.properties new file mode 100644 index 0000000..ad2d340 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array20/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}/Array20.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.7 +javac.target=1.7 +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=array20.Array20 +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/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/project.xml new file mode 100644 index 0000000..3e2177c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array20/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array20 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array20/src/array20/Array20.java b/PrjJava/OCA7/Chapter5/Arrays/Array20/src/array20/Array20.java new file mode 100644 index 0000000..29575b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array20/src/array20/Array20.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array20; + +/** + * + * @author andad + */ +public class Array20 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int size = 10; + int[] arr = new int[size]; + System.out.println(arr.length); + for (int i = 0 ; i < size ; ++i) + System.out.println(arr[i]); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array3/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array3/build.xml new file mode 100644 index 0000000..dc71df2 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array3. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array3/build/classes/array3/Array3.class b/PrjJava/OCA7/Chapter5/Arrays/Array3/build/classes/array3/Array3.class new file mode 100644 index 0000000000000000000000000000000000000000..e078661d3ced6c7b30084811ca0c550565e46a8c GIT binary patch literal 863 zcmZuv?{Csj6g`guh0-}JgU#uj)2T4FRh_?QOmKP(V*i-?_|d(VmV<~`fV9` zDn0?T$!9NC*)odc(T?3p-7aYc(hCG?^-s>B{3>l<27UV=iM*h{o65+j&%(-#V*$Yv zYr0OrI0#2k*L~@!hDsB$ZN+cm0_Lgus?}}@EdDR~V&wTfH!`t_ErDDVcE7|XwqfhI zW8yCEnH(X5`z9XXp^ir;9^;9?+_`HBluwD@bPnBa!tu%B&<%P5TlMLV8&l9pC!A0r z2`BRqSg21YGUJTezszDh>cr_3)ol0oXV#UH@I9M~_GHX4on<+S6L-K(ha+}goiyi# z_FJwcp@b_3l&z$fJP!-#LzU!nr`1^(ZDS24pP>3O5NaK?Wkxo=pwDd_Lwrk*FVf~y z(1gW*bCQ4x78n&#MU99mPWXB=^qW@3`3ddgF|y4ua#o&Z4Bct!<-!;RhhXu;cNp}g qQ;lV+fUFvM7s + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/genfiles.properties new file mode 100644 index 0000000..57f7950 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=65a64b6f +build.xml.script.CRC32=33cff2f9 +build.xml.stylesheet.CRC32=8064a381@1.79.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=65a64b6f +nbproject/build-impl.xml.script.CRC32=742aaa8f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/project.properties new file mode 100644 index 0000000..a5a6350 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array3/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}/Array3.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.7 +javac.target=1.7 +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=array3.Array3 +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/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/project.xml new file mode 100644 index 0000000..e20ca45 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array3/src/array3/Array3.java b/PrjJava/OCA7/Chapter5/Arrays/Array3/src/array3/Array3.java new file mode 100644 index 0000000..0056be3 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array3/src/array3/Array3.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array3; + +/** + * + * @author anda + */ +public class Array3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s = "JAVA"; + s = s + "rocks"; + s = s.substring(4, 8); // 9 is not inclusive + s.toUpperCase(); // attention s is not modified, s != s. + System.out.println(s); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array4/build.xml new file mode 100644 index 0000000..92b805c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array4. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/build/classes/array4/Array4.class b/PrjJava/OCA7/Chapter5/Arrays/Array4/build/classes/array4/Array4.class new file mode 100644 index 0000000000000000000000000000000000000000..fd6b4860c191918e0d806a50ebdf40d6a807bea9 GIT binary patch literal 872 zcmZuv+int36kUe_hRe_vD6Qz!V(W#AEtS^#fHi5GG%>+Tf|3}Y4ltopVTKHYN#Fev zUwkzBKogDq026=6#LGI+7fNR`d!Kzdd+ohu|NQ&y9Kbdn#b97nM=pw6Skti{LlCPm z1aMoO?nH1`>3cEcQP5G;Q4$D0wjJAlBB1394T0dH+qMMeYqn!OANHD-_ewUq^rUKT zOLiO5vz2|}4Eo3RKxIqMlczi7{jsXDOi$X5z*7Eg?L@wp<*sx(<+|_LPN%A1gw5|M z^Q6~df%Fw=Z0*?f1{TAKx-VPrp2_|gR!3GKR(FS9%Q~`EZ}AE4rh+n%z?{IsWmp~e z4QyajVEJ=hEdviwVQ)Eugl_5BG4K$(Y+-7`sroOPCsxa!a@9`Ji_a z5Kel>6Hns{=zY~qm%k}Pr#qFJebh4vl6H)jZy%*qJi z5%g4qVua`ju@3?9>EADftU)2KAwro(h&WLqC9%x+8di`+mG(Z&aaTF!$FYkgMgyt` g=47cu*u!<61a8nuK>LHZ4pSt5W1Y?wIs>@*A2hGL5&!@I literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/build-impl.xml new file mode 100644 index 0000000..1048c1b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/genfiles.properties new file mode 100644 index 0000000..0d57663 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5ddcef9d +build.xml.script.CRC32=9360cdb1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5ddcef9d +nbproject/build-impl.xml.script.CRC32=22ef801f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/private/private.xml new file mode 100644 index 0000000..5c0b30a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Array4/src/array4/Array4.java + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/project.properties new file mode 100644 index 0000000..b977e49 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array4/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}/Array4.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.7 +javac.target=1.7 +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=array4.Array4 +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/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/project.xml new file mode 100644 index 0000000..d2964f1 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array4/src/array4/Array4.java b/PrjJava/OCA7/Chapter5/Arrays/Array4/src/array4/Array4.java new file mode 100644 index 0000000..9a3f985 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array4/src/array4/Array4.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array4; + +/** + * + * @author anda + */ +public class Array4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String[] horses = new String[5]; + horses[4] = null; + for(int i = 0; i + + + + + + + + + + Builds, tests, and runs the project Array5. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array5/build/classes/array5/Array5.class b/PrjJava/OCA7/Chapter5/Arrays/Array5/build/classes/array5/Array5.class new file mode 100644 index 0000000000000000000000000000000000000000..d92c6f3eca3f0b7077efd2dc3d2e8817ee2e276c GIT binary patch literal 814 zcmaJ<*>2N76g?9!lelhLlBQ(|bYXKEQbP+*K}ZA%2`OrkY(=v2G)b)B%CRHYLFzZ~ zHSmy1Ed2mJ3USA-RE1Rd;jU-SJ$F36|9rm$aD8mUl!Hw=o^=rO48;*rm=)(s;6cs3dMi7N&nRVv+hD8imd0-0YG z)$~(vCeb2E#Q7`xZRXlUGZ8_=uxa(Xr{c4)LlKQ_CryHA+|I^`WK0LEH?$cF13_~7 z{SJfS#It1RzYnB@m7M-SGMZRLnV|g+N5jNEnhab2j_S;UaO5W@o}tCSc4Tm1!p3us z7bXsI#IU*`onif&A5gsuXifF-at^)1=O{L1G)HL;<61@;3ei{5qM^q$R?6AT WN0Q&7tc5+?#vKyGaF_A|?)?SB#j;-j literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array5/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/build-impl.xml new file mode 100644 index 0000000..44a3a47 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/genfiles.properties new file mode 100644 index 0000000..10d0e78 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=55cf63bb +build.xml.script.CRC32=ed241eb2 +build.xml.stylesheet.CRC32=8064a381@1.79.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=55cf63bb +nbproject/build-impl.xml.script.CRC32=3e188e2f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/private/private.xml new file mode 100644 index 0000000..e592061 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Array5/src/array5/Array5.java + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/project.properties new file mode 100644 index 0000000..94ecbd9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array5/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}/Array5.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.7 +javac.target=1.7 +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=array5.Array5 +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/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/project.xml new file mode 100644 index 0000000..10c7476 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array5/src/array5/Array5.java b/PrjJava/OCA7/Chapter5/Arrays/Array5/src/array5/Array5.java new file mode 100644 index 0000000..c9010b4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array5/src/array5/Array5.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array5; + +/** + * + * @author anda + */ +public class Array5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + byte[][] ba = {{1,2,3, 4}, {1, 2, 3}}; + System.out.println(ba[1].length + " " + ba.length); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array6/build.xml new file mode 100644 index 0000000..26f43c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array6. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array6/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/build-impl.xml new file mode 100644 index 0000000..872d4fb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/genfiles.properties new file mode 100644 index 0000000..45afce9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4dfbf7d1 +build.xml.script.CRC32=6fe96bb7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4dfbf7d1 +nbproject/build-impl.xml.script.CRC32=1b019c7f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/private/private.xml new file mode 100644 index 0000000..5cf505b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Array6/src/array6/Array6.java + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/project.properties new file mode 100644 index 0000000..0fed13e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6/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}/Array6.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.7 +javac.target=1.7 +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=array6.Array6 +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/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/project.xml new file mode 100644 index 0000000..3eb41b0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6/src/array6/Array6.java b/PrjJava/OCA7/Chapter5/Arrays/Array6/src/array6/Array6.java new file mode 100644 index 0000000..8c730c6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6/src/array6/Array6.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array6; + +/** + * + * @author anda + */ +public class Array6 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] array1; + int[] dats = new int[4]; + char[] letters = new char[5]; + array1 = dats; + //array1 = letters; // compile error + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6_1/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/build.xml new file mode 100644 index 0000000..69daf5f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array6_1. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6_1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6_1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6_1/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/build-impl.xml new file mode 100644 index 0000000..2c65358 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/genfiles.properties new file mode 100644 index 0000000..685fb57 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=dc6a917a +build.xml.script.CRC32=e5dc54fa +build.xml.stylesheet.CRC32=8064a381@1.79.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=dc6a917a +nbproject/build-impl.xml.script.CRC32=a0cc8190 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/project.properties new file mode 100644 index 0000000..373a73d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/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}/Array6_1.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.7 +javac.target=1.7 +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=array6_1.Array6_1 +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/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/project.xml new file mode 100644 index 0000000..b7931a1 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array6_1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array6_1/src/array6_1/Array6_1.java b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/src/array6_1/Array6_1.java new file mode 100644 index 0000000..f13374d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array6_1/src/array6_1/Array6_1.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array6_1; + +/** + * + * @author andad + */ +public class Array6_1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[][][] a = new int[4][3][2]; + + System.out.println(a.length); // 4 + System.out.println(a[0].length); // 3 + System.out.println(a[0][0].length); //2 + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array7/build.xml new file mode 100644 index 0000000..67dedc7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array7. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/build/classes/array7/Array7.class b/PrjJava/OCA7/Chapter5/Arrays/Array7/build/classes/array7/Array7.class new file mode 100644 index 0000000000000000000000000000000000000000..c8929b1c7f78f16a13f1a290a571ede8aee914b4 GIT binary patch literal 582 zcmZutT}#4H7=F%n=5%VBmVJMC5m|z}CL*mTyz3`kttsJx%_~p3g zGUP1JcN>#Y#|>^pXGoobHSUUGO9Y;*zneU~^X?^D1c7)uF)yM}Cz+A(e1=k`Z4JbO zFo(kLn|2s@e!m{sh@elz;y+^s_DG+gjoR&N%DU2guF~ub+-^u7toKLYXJXjnNziq# zJh^x}UaBS)GSHD^$j{Z{ooHd<_sCL_j@e&-^9vqZpbU*3Qyv9OYSNve%B09BYKO02 zFVWbbI}tTANK>AP0Ti=TrLce;btL(jgfxmKpFwfdf@)jZ4BSz*so|)+>2SSiJDkUr zeWOp)jp`|%+ms@D5eAm9k7ZO*LJcdC?QtxPJQm5qz#a;eF~TKLB)mdsPMi`{;xJ;Z LQq8bNXa(zEFhgr* literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array7/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array7/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/build-impl.xml new file mode 100644 index 0000000..ac85c43 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/genfiles.properties new file mode 100644 index 0000000..3d45a27 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=45e87bf7 +build.xml.script.CRC32=11adb8b4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=45e87bf7 +nbproject/build-impl.xml.script.CRC32=07f6924f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/project.properties new file mode 100644 index 0000000..5078af4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array7/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}/Array7.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.7 +javac.target=1.7 +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=array7.Array7 +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/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/project.xml new file mode 100644 index 0000000..4c5bb21 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array7/src/array7/Array7.java b/PrjJava/OCA7/Chapter5/Arrays/Array7/src/array7/Array7.java new file mode 100644 index 0000000..c08508a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array7/src/array7/Array7.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array7; + +/** + * + * @author anda + */ +public class Array7 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String[] x = {"anda"}; + int[] a [] = {{1, 4}, {1}}; + Object c = new long[4]; + Object[] d = x; + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array8/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array8/build.xml new file mode 100644 index 0000000..7f6ec38 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array8. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array8/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array8/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array8/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array8/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array8/build/classes/array8/Array8.class b/PrjJava/OCA7/Chapter5/Arrays/Array8/build/classes/array8/Array8.class new file mode 100644 index 0000000000000000000000000000000000000000..5d10106004a6b65fddb637e5a2b9015b83c8a75a GIT binary patch literal 1158 zcmaJ>Sx*yD6#nikoid#YwnM>+iYU@Dg%NN;S!7X!rf8EIlBT{~+6fMJ%XDhOAM#m! zD2W(-_djVoccugpV%wZ^?peR{-JAaW{q;M51?=cZVMfEO4hb_t*eV6YM>;iR;l4kB zIm}0~pyL4^YIvk0E(+p!9L1v0PlR|X!b_)>iiTx|$g^&`*rdp3au)y?{Uu+=e|?%-?<%;%{`AFE!yjWTB0@$?lu`xnM&c1f8chV zHxKNR@43x`rC<#A4yZ7BNti+63k+(<=bkSPb0jKxVa+qdOFpl@-{tK9frd%ifY%PY z9ZHR4D*3F))Jv_dS9P{r0X!ChniV(r#HgeZKqjd7|Z0d7gGArssGGn_5aC_ z`mOL18O+SZ#^T~>;2v(%n@k1oQ~_~^QIgl_Y?EfB)#+of&tynQlZ*sT1J}tm!UT-r z2Au|Q6Sv4CigzemA{{@0R6d4WuzFC=np}ZQ!6c$EsmXBAEEN`DoDhK`Dki9{KtNaC zZ~KGBi^{i=Z?Uqh7t4wXwOCe7XvM-b%^29Vavu@<0zDDy!61EtI03j~$+o4~+){1c z!(d{lhpRm#!jznB=O~s7Vo8Bg4pvRmG|+65R!Y-%ig4y>*$Uwj>yL+6`sOlio_kB; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/genfiles.properties new file mode 100644 index 0000000..edab0f8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3d0ebe35 +build.xml.script.CRC32=f5c61366 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3d0ebe35 +nbproject/build-impl.xml.script.CRC32=b68bc95f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/private/private.xml new file mode 100644 index 0000000..81d79ff --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Array8/src/array8/Array8.java + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/project.properties new file mode 100644 index 0000000..7ae9ff6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array8/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}/Array8.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.7 +javac.target=1.7 +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=array8.Array8 +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/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/project.xml new file mode 100644 index 0000000..eacf56a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array8 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array8/src/array8/Array8.java b/PrjJava/OCA7/Chapter5/Arrays/Array8/src/array8/Array8.java new file mode 100644 index 0000000..0945cb5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array8/src/array8/Array8.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array8; + +/** + * + * @author anda + */ +public class Array8 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Array8 a3 = new Array8(); + a3.start(); + } + void start() + { + long[] a1 = {1, 2,3}; + long[] a2 = adjust(a1); + if (a1==a2) System.out.println("a1==a2"); + System.out.println(a1[0] + a1[1] + a1[2] + " "); + System.out.println(a2[0] + a2[1] + a2[2]); + } + + long[] adjust(long[] a3) + { + a3[2] = 4; + return a3; + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Array9/build.xml new file mode 100644 index 0000000..ce796e3 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array9/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array9. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Array9/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Array9/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/build/classes/array9/Array9.class b/PrjJava/OCA7/Chapter5/Arrays/Array9/build/classes/array9/Array9.class new file mode 100644 index 0000000000000000000000000000000000000000..e17546954e5ef50c85d570099b1313c71545a624 GIT binary patch literal 663 zcmZutU279j5IuLlZnE9lZPHC_wc6UKsfO-@P%4$82rY%wEkpvLPd9N%w_e@aaUqZ zz>&0P+*}M#o?>*up1_?Rd+z7)ExEHpskW9i~oW~dKz71Y?UNx z^3;Ekn_ZR}swfty)K8jc>YefjD(?HOG>PK=ZYCop{13@fNuLGE|DloaUO+n`Yrd7L z-rFN}p36#~Z*D5Rm8m(fASKov+{1=M&B1*Ap~1>Li- zm(D<~$we9txt7tG32!<^H1dx*L&`})HRPP-yv8gnAkQ<>fD16{hnsDz!{G9>PXjj& z$-BVFrxmp3qpuL3^K_B7m4gm!`p%SqIeI`5^SD7Idwj{F7VUv6zuO(%l|jdFt)OET zf{w*N(l3}n$F+>0`S_@DwWn_zp0WB7)rMzmZJU?SJo5|m4~F=3{WFu-DF9URUdyP# z!w#x=PP>nlyqz_2b|}99H)kDS5hcEu{DoT71}i#FeNGyRUW}9e_@&Fn@nq1 F{sSTMeWm~a literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/Array9/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array9/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/build-impl.xml new file mode 100644 index 0000000..921b6af --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/genfiles.properties new file mode 100644 index 0000000..4952ca0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=351d3213 +build.xml.script.CRC32=8b82c065 +build.xml.stylesheet.CRC32=8064a381@1.79.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=351d3213 +nbproject/build-impl.xml.script.CRC32=aa7cc76f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/project.properties new file mode 100644 index 0000000..39bf489 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array9/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}/Array9.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.7 +javac.target=1.7 +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=array9.Array9 +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/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/project.xml new file mode 100644 index 0000000..7ab6b2c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array9/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array9 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Array9/src/array9/Array9.java b/PrjJava/OCA7/Chapter5/Arrays/Array9/src/array9/Array9.java new file mode 100644 index 0000000..b8859aa --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Array9/src/array9/Array9.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package array9; + +/** + * + * @author anda + */ +public class Array9 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] x = {7, 6, 5, 4, 3, 2,1}; + //int y = 0; + for(int y:x) + { + System.out.println(y); + } + + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/build.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/build.xml new file mode 100644 index 0000000..91e36b6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayCompare. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/build/classes/StartTest.class b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/build/classes/StartTest.class new file mode 100644 index 0000000000000000000000000000000000000000..f2d3501537a803e37deb9283d5c68fd7a6c2248b GIT binary patch literal 524 zcmZut%TB^T6g>ll(o*Fm_W{gho0@KScYCZ9l>Ldnri=)8B8}C#{+RGlbOpi+2cgXLIH-3Z3{ctWvI;6 zJE0Puh;{5)*vA2bG3#U~&w1DVp%|zI$bA|q5zzY4mji{OZ&Z45K;Wd1AlpR%*ht%&aulLL);VE5fca3>c-{o_HlpM^tys zg74YY-As^Dc)Jv&uZ^27Q{;JuNNGJhFEDf#d{KU}A!PJ7BVYy>*z)g#|<4faf@N_WId}5+u5-^hHjZQwY;1ny^yl&DIK?wkzz^5GFB*` zjyt%^kdVw->t#bYbwje#Aw7##hOw+1MZLv6KOKY&NE~ZAvbe`EOc&eFk4pJlWPW?k zD*H650J2^4F%8kDQCgyMj9A#O`xZfp+aP)(ocnP;Jxom0YF2fJVa90lGN+)U;n2mT zv6cRhTl3xUc^UeR(?kluYqD^Mwj$9kHSJ+6oahNcIDkxg>vy*e-*&=%qYdIlX}z?b z-oiM}(yGf}1jIxS$zHNd(u{O;@&N2(;O-+C3qT$Hbk;)x5*Q$>1A`bMgf6orRQi~J zciOjjQBm_nHJUF*WBFo?=Zjp+=l+3jd_v?al;Q!@-e?oCspIbMw6TAtniH;UV zJYY0&rkzs{oS)J8$0?goAe*=VjbtB{+mAUa{|PnVQu(h5c|-awhJyxEVH0GH5Pt{_ wj3P-b&fyux=oG;@!c9aD@em5fd5#qQ5#bo;xNu0$7L<+>m1Dg~o(L}e0^6bn-T(jq literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/build-impl.xml new file mode 100644 index 0000000..4a399f5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/genfiles.properties new file mode 100644 index 0000000..dec7a17 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=31197226 +build.xml.script.CRC32=ae9c577e +build.xml.stylesheet.CRC32=8064a381@1.79.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=31197226 +nbproject/build-impl.xml.script.CRC32=a8f82e6b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/project.properties new file mode 100644 index 0000000..14287ff --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/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}/ArrayCompare.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=arraycompare.ArrayCompare +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/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/project.xml new file mode 100644 index 0000000..4ae4d7a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayCompare + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/src/StartTest.java b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/src/StartTest.java new file mode 100644 index 0000000..eafa3cb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/src/StartTest.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * + * @author anda + */ +public class StartTest { + + + + public static void main(String[] args) { + System.out.println(Integer.MAX_VALUE); + } + + } diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/src/arraycompare/ArrayCompare.java b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/src/arraycompare/ArrayCompare.java new file mode 100644 index 0000000..cd422a4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCompare/src/arraycompare/ArrayCompare.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arraycompare; + +/** + * + * @author anda + */ +public class ArrayCompare { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] arr1 = {1, 2, 3, 4, 5}; + int[] arr2 = {1, 2, 3, 4, 5}; + System.out.println("arr1 == arr2 is " + (arr1 == arr2)); + System.out.println("arr1.equals(arr2) is " + arr1.equals(arr2)); + System.out.println("Arrays.equals(arr1, arr2) is " + + java.util.Arrays.equals(arr1, arr2)); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build.xml new file mode 100644 index 0000000..126adfe --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayCopy1. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build/classes/arraycopy1/ArrayCopy1.class b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/build/classes/arraycopy1/ArrayCopy1.class new file mode 100644 index 0000000000000000000000000000000000000000..b541c310a8343bd9ec4d6cacbc914d087b5b56b6 GIT binary patch literal 791 zcmZuv%Wl&^6g?9^CNVAv4Q?op((-iEq*g%6Ca4msR4I~EBL!8mx|$d(xFmMuI7r#^ zC2Uy30uVy|03`l{Phds4<5ZMNu{?91Sya4?FTY7SZZbo=At(sJbML zflq@Z4W})J!ZGEZyH6Na`k4sc^u#2m!%^k17>s^0OM~zrlC;Ygbao{J6C6d32PPik zk%`B!IkrvIvBO|3or0lqLERgigh6%*>d&WHIA$pQt7fR%|Bbt->2#MsU8#YR%&4Qa z2uF$Yg4D@Kqfm@V!D@c_Wtc&m$RyIurWV+OMqgMy1&}@{(q1CZA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/genfiles.properties new file mode 100644 index 0000000..a36563f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ccffd20f +build.xml.script.CRC32=b7ab0e7f +build.xml.stylesheet.CRC32=8064a381@1.79.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=ccffd20f +nbproject/build-impl.xml.script.CRC32=38cd458b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/project.properties new file mode 100644 index 0000000..6a877eb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/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}/ArrayCopy1.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.7 +javac.target=1.7 +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=arraycopy1.ArrayCopy1 +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/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/project.xml new file mode 100644 index 0000000..1e86cd9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayCopy1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/src/arraycopy1/ArrayCopy1.java b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/src/arraycopy1/ArrayCopy1.java new file mode 100644 index 0000000..ea7c64c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy1/src/arraycopy1/ArrayCopy1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arraycopy1; + +/** + * + * @author andad + */ +public class ArrayCopy1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] scores1 = {1, 2, 3, 4, 5, 6}; + int scores2[] = null; + System.arraycopy(scores1, 2, scores2, 0, 2); + for (int i : scores2) { + System.out.print(i); + } + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build.xml new file mode 100644 index 0000000..9ec3bae --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayCopy2. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build/classes/arraycopy2/ArrayCopy2.class b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/build/classes/arraycopy2/ArrayCopy2.class new file mode 100644 index 0000000000000000000000000000000000000000..be76396d7e88cee66d3b30be059f4dce0262ed12 GIT binary patch literal 793 zcmZuvO>fgc5Pchay^e87XmCUMC^USfY0{`g$|VSaDj_1JF;Y+^tEY{zf=d!dj)Rmt zzk~~CH~>Obe*l;Mjs65qlv$^uREp)@*?BuN`{wQb`t$P`z!Ow07`ScW4%V_X-L-HJ z>jEW#`wYg@a1jb}Uc7izhymQ5-*l;MbBrF_snlpkb$AV>XrH;Kbhzp0L6A&nNr$+%C2 z3Jby*#Ke!{V6x4SIiT2ccZXrAn@Ioto*bui1PTHUgVl|uu^+q)746&woh`+{hJY#X zz{W#7vhf&YfejlKY%(|tyI{y)PmWjvKcDn|Jt4BG+PUxmeN3r zrc}|HZ--I+HK~)3Mu8lXf`#<(%P<2Ut02;?OeL@mPB*N+3`ifCG-t`HlVxOi5}$S#qW#Z}}8QOPG%RFHM^#*yV|y6frO^|;}BhHyP$x}KRg+_rgS z?QQa^#(yAF?bMDNy4K(hcl1vv)*QaoFup=_jBn6Ca`yS`RMF6&Xso5>3uLdO1c&Zm z1qH?@;GO!fzsTMlaqFxFN7Q{~1Z} Ln|2rtrO>Uv^XQ;@ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/build-impl.xml new file mode 100644 index 0000000..4e47199 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/genfiles.properties new file mode 100644 index 0000000..5feb788 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d4cb4665 +build.xml.script.CRC32=c5e68d06 +build.xml.stylesheet.CRC32=8064a381@1.79.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=d4cb4665 +nbproject/build-impl.xml.script.CRC32=299bc70b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/project.properties new file mode 100644 index 0000000..03ccf82 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/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}/ArrayCopy2.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.7 +javac.target=1.7 +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=arraycopy2.ArrayCopy2 +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/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/project.xml new file mode 100644 index 0000000..a502f24 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayCopy2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/src/arraycopy2/ArrayCopy2.java b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/src/arraycopy2/ArrayCopy2.java new file mode 100644 index 0000000..cfad094 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayCopy2/src/arraycopy2/ArrayCopy2.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arraycopy2; + +/** + * + * @author andad + */ +public class ArrayCopy2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] scores1 = {1, 2, 3, 4, 5, 6}; + int [] scores2 = new int[5]; + System.arraycopy(scores1, 2, scores2, 0, 2); + for (int i : scores2) { + System.out.print(i); + } + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build.xml new file mode 100644 index 0000000..f83268f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayIndexOutOfBoundsException. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/arrayindexoutofboundsexception/ArrayIndexOutOfBoundsException.class b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/build/classes/arrayindexoutofboundsexception/ArrayIndexOutOfBoundsException.class new file mode 100644 index 0000000000000000000000000000000000000000..ce5934d7185a9265f4cfcb063dbc34c9a408eb8f GIT binary patch literal 1078 zcmah{T~8BH5IwhFw=4@qz7$0)pi(}hB9ACW4J5>3P1cYYo^H37ve@o6+pVF$$Y*>I zqDJ5SQO0u@Ds427&F<_yGjnFkk0yShrvyZ(#tl5_1EX$9)SA@X#O&SrjZJ zu_&=5u`G~z>iJ%@DUd8I?g^w`1ywDOD|xSZA#JP%IP<%@XBMPZigEEiB9R09>Y?`1t^`9v8$bViXmcI}G zyB3(`LR(yUAO$K1o8KXxinM|@y>tq3!k+|&`OUhZQPRVmSiLC&+;IG2Y-M+ zN_?rc9z4mi%g)=Gd2i?A^X(l#8#Na;HcKd=;$X|cHiHw3H07aSsCXm(#9I+pVXJ2n zslro+;+a&^oHJDGf1ewD2K!16NWAVzCGN7=7s&(nqnVu!c+}^K%<;Tvn@5>4v^}0A zd@9vIOmt@S(ASw7q+$|?v5{J}Zl}Gm2qcfLe@Zk + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/genfiles.properties new file mode 100644 index 0000000..89bd0c0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=31cf81d8 +build.xml.script.CRC32=2ec6ce9d +build.xml.stylesheet.CRC32=8064a381@1.79.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=31cf81d8 +nbproject/build-impl.xml.script.CRC32=d5faddff +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/project.properties new file mode 100644 index 0000000..f244d97 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/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}/ArrayIndexOutOfBoundsException.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.7 +javac.target=1.7 +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=arrayindexoutofboundsexception.ArrayIndexOutOfBoundsException +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/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/project.xml new file mode 100644 index 0000000..b712d3e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayIndexOutOfBoundsException + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/src/arrayindexoutofboundsexception/ArrayIndexOutOfBoundsException.java b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/src/arrayindexoutofboundsexception/ArrayIndexOutOfBoundsException.java new file mode 100644 index 0000000..b3ec27b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayIndexOutOfBoundsException/src/arrayindexoutofboundsexception/ArrayIndexOutOfBoundsException.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arrayindexoutofboundsexception; + +/** + * + * @author andad + */ +public class ArrayIndexOutOfBoundsException { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try { doSomething(); } + catch (MySpecialException e) + { System.out.println(e); } + } + static void doSomething() + { int[] array = new int[4]; + array[4] = 4; + doSomethingElse(); } + static void doSomethingElse() { + throw new MySpecialException("Sorry, can't do something else"); + } +} + +class MySpecialException extends RuntimeException +{ + String message; + MySpecialException(String msg) + { + this.message = msg; + } +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build.xml new file mode 100644 index 0000000..6bb95aa --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayNull. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build/classes/arraynull/ArrayNull.class b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/build/classes/arraynull/ArrayNull.class new file mode 100644 index 0000000000000000000000000000000000000000..a5c4cd93ef595f91ba9acd2c4422b11d19355f40 GIT binary patch literal 545 zcmZut%SyvQ6g`uqjg7IbeffUWRjXhYE-Qivf*7h$>B6q2HPk72$TSi9S-MaV5#0Jw z;+<41LT7OwXYM)o@%8=o0pJLG7Iai|sA0v#s)aSIo7iB;9*a=KCk%R{*<~=!qC1bF z;EK>|CqdtnH@xo?QgWjK_q$vQmH&c9d@sffRhLW2Ct>3I&Z&yp6tze!;38zGHG1xd zKXS+C;n3;CQiQ`++KkH~(aUqb85n2KdKU~r8Z zjmB-Wi#jrNZS^$JiD8mmpv)o9$Y=In!Jg9Z9NBCN+OR0Lrv+G~2*_axc|sKVlEgIf t1^wM}pP?OmLVtlVlgXz&%P>$OQZ<#UO(`g#NK}Jlmr)`?+Jtfql^+_?ZZ!Y^ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/build-impl.xml new file mode 100644 index 0000000..a856597 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/genfiles.properties new file mode 100644 index 0000000..94704fb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c2b6473b +build.xml.script.CRC32=27a41121 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c2b6473b +nbproject/build-impl.xml.script.CRC32=e963f523 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/project.properties new file mode 100644 index 0000000..bfdda66 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/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}/ArrayNull.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.7 +javac.target=1.7 +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=arraynull.ArrayNull +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/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/project.xml new file mode 100644 index 0000000..f1c72a4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayNull + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/src/arraynull/ArrayNull.java b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/src/arraynull/ArrayNull.java new file mode 100644 index 0000000..fe623c9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayNull/src/arraynull/ArrayNull.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arraynull; + +/** + * + * @author andad + */ +public class ArrayNull { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] a = {}; + System.out.println(a instanceof Object); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build.xml new file mode 100644 index 0000000..449ce05 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayOfSizeZEro. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build/classes/arrayofsizezero/ArrayOfSizeZEro.class b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/build/classes/arrayofsizezero/ArrayOfSizeZEro.class new file mode 100644 index 0000000000000000000000000000000000000000..5891c338f5f13635be269ba4ded17ee090b964a8 GIT binary patch literal 678 zcmah{U279T6g{)M%_i$=(|p;qYEAu0eds>;*eVoJC@e;Z1ZS6`uYRF6FdswqwQlYfP;30VZDM|xE7RiTb(G>13y9EX{;c z^?z*B?O33^J4!CB2K{VqM(U-u#u|V1+P3l`0$dZ=_>Zp;WmJ50LTuumkNY7W;GsbE z(qV6StVa12s(&)e)szR8&AHKBjH9#YHD}2=k&;u+TQ4-O(gOZ_Ta@r1yzc(i03BY9 z&nx42)(VkJOz(^#vxuwUy7c%Q;uC>`>x`v>3~_@vTohm#Rb~~ephm|2yvJ(Ca^K** zJ%<}#3fOl6tg+{MA<|kDqK*dnG6kBHv#wfyyga2h`?cNg!Do19@Z4(9JHwJi+h0(! Z@}lrpgGanVpAF_stWrkcCOHSIzX7c?gZTge literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/build-impl.xml new file mode 100644 index 0000000..417dd67 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/genfiles.properties new file mode 100644 index 0000000..185e934 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=50959d0d +build.xml.script.CRC32=f36f632d +build.xml.stylesheet.CRC32=8064a381@1.79.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=50959d0d +nbproject/build-impl.xml.script.CRC32=d399e19a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/project.properties new file mode 100644 index 0000000..9d11401 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/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}/ArrayOfSizeZEro.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.7 +javac.target=1.7 +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=arrayofsizezero.ArrayOfSizeZEro +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/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/project.xml new file mode 100644 index 0000000..f32fb94 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayOfSizeZEro + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/src/arrayofsizezero/ArrayOfSizeZEro.java b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/src/arrayofsizezero/ArrayOfSizeZEro.java new file mode 100644 index 0000000..7b1c9a3 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayOfSizeZero/src/arrayofsizezero/ArrayOfSizeZEro.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arrayofsizezero; + +/** + * + * @author andad + */ +public class ArrayOfSizeZEro { + + /** + * @param args the command line arguments + */ + static int[] x = new int[0]; + + static { + x[0] = 10; + System.out.println(x[0]); + } + + public static void main(String[] args) { + // TODO code application logic here + ArrayOfSizeZEro f = new ArrayOfSizeZEro(); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/build.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/build.xml new file mode 100644 index 0000000..def0f60 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayTriple. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/build-impl.xml new file mode 100644 index 0000000..5f5fcfe --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/genfiles.properties new file mode 100644 index 0000000..8dc06b1 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e206906a +build.xml.script.CRC32=e957021f +build.xml.stylesheet.CRC32=8064a381@1.79.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=e206906a +nbproject/build-impl.xml.script.CRC32=557f5d52 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/project.properties new file mode 100644 index 0000000..3abcbc3 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/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}/ArrayTriple.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.7 +javac.target=1.7 +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=arraytriple.ArrayTriple +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/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/project.xml new file mode 100644 index 0000000..2d4ce1b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayTriple + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/src/arraytriple/ArrayTriple.java b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/src/arraytriple/ArrayTriple.java new file mode 100644 index 0000000..8d3ca85 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayTriple/src/arraytriple/ArrayTriple.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arraytriple; + +/** + * + * @author andad + */ +public class ArrayTriple { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + //String[][][] arr  ={{ { "a", "b" , "c"}, { "d", "e", null } },{ {"x"}, null },{{"y"}}, { { "z","p"}, {} } }; + //System.out.println(arr.length); + //System.out.println(arr[0][1][2]); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build.xml new file mode 100644 index 0000000..0bb110e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ArrayindexoutvoundsException1. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build/classes/arrayindexoutvoundsexception1/ArrayindexoutvoundsException1.class b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/build/classes/arrayindexoutvoundsexception1/ArrayindexoutvoundsException1.class new file mode 100644 index 0000000000000000000000000000000000000000..db1a6eab34c599f24db18f8a8778a224c5e63b7b GIT binary patch literal 749 zcmbtS!EVz)5PfSq-o&^xBu!{(2u*=1rBW?~;1Y_25J;5_MoJaQ>S^Pw!j{C2oK4l< z`3SC@IKu%XRP_V;GkgJ*v4cPrhzpiHGy7(C=FQBWegAR_;2t&{6tGglHLN;l;5tW> z;|7EMP{m3=VldmAJqGJZGLQ_5zKZ3G*|;y$J<%T#Qt^{WjCvwf+4(1E=~rsXu;Ys~ z6~`(b$fIPY50hCun98F_PP9tmyWZnJy-$C6J5+QmRLoFs@B0VhPi6tUh#|D;(*b44rHD|CkuYyICDXvN0E2t2M7HV{BiCU@=?!fql P7Dt^`$#<0y1Is@ETym@H literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/build-impl.xml new file mode 100644 index 0000000..d6514ba --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/genfiles.properties new file mode 100644 index 0000000..7356e6b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=cb6d59db +build.xml.script.CRC32=6e275351 +build.xml.stylesheet.CRC32=8064a381@1.79.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=cb6d59db +nbproject/build-impl.xml.script.CRC32=d4ff73f2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/project.properties new file mode 100644 index 0000000..320884a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/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}/ArrayindexoutvoundsException1.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.7 +javac.target=1.7 +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=arrayindexoutvoundsexception1.ArrayindexoutvoundsException1 +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/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/project.xml new file mode 100644 index 0000000..b445245 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ArrayindexoutvoundsException1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/src/arrayindexoutvoundsexception1/ArrayindexoutvoundsException1.java b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/src/arrayindexoutvoundsexception1/ArrayindexoutvoundsException1.java new file mode 100644 index 0000000..0e4f183 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/ArrayindexoutvoundsException1/src/arrayindexoutvoundsexception1/ArrayindexoutvoundsException1.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arrayindexoutvoundsexception1; + +/** + * + * @author andad + */ +public class ArrayindexoutvoundsException1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int a[] = {1, 2, 3, 4,5 ,6}; + int i = a.length; + + while(i>=1) + { + System.out.println(a[i]); + i--; + } + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build.xml b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build.xml new file mode 100644 index 0000000..b69d4c6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Declare2Array. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build/classes/declare2array/Declare2Array.class b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/build/classes/declare2array/Declare2Array.class new file mode 100644 index 0000000000000000000000000000000000000000..0e92be12ffc4cf9b88f4f6957d2d2cf9ef064b1a GIT binary patch literal 505 zcmaJ-O-sW-6r4>qNn5M^ZvCK$f>Ny-sK<&RiXa4YsPxj)HVt)4n!=h29{f?B1P|W4 z_@l(Pu}}nY5A$~3dpk4i=hxdifKxPb;HWw%IjA|PGuUS`mdQDT**fSm@XOgKWGHwt z4sYkvVW{rJFrrS`n*}233nevQGxS zahbp$PQoC;4ovzJeGD)yLFf>3sWPh8;ValnI?fR4F_1?##dHBVtPsmmcXjdjnM4ih z9b3)^48v=i9h3Wn-16JJW7- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/genfiles.properties new file mode 100644 index 0000000..6fc7402 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a399d01e +build.xml.script.CRC32=786091ce +build.xml.stylesheet.CRC32=8064a381@1.79.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=a399d01e +nbproject/build-impl.xml.script.CRC32=5055ed30 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/project.properties new file mode 100644 index 0000000..2967292 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/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}/Declare2Array.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.7 +javac.target=1.7 +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=declare2array.Declare2Array +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/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/project.xml new file mode 100644 index 0000000..d307217 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Declare2Array + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/src/declare2array/Declare2Array.java b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/src/declare2array/Declare2Array.java new file mode 100644 index 0000000..38d2688 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/Declare2Array/src/declare2array/Declare2Array.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package declare2array; + +/** + * + * @author andad + */ +public class Declare2Array { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[][] a = new int[2][4]; + a[0][0] = 1; + a[0][1] = 2; + + a[1][0] = 3; + a[1][1] = 4; + a[1][2] = 5; + a[1][3] = 6; + // compile time correct but at runtime throw NPE + + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build.xml b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build.xml new file mode 100644 index 0000000..44717dc --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project DoubleArray1. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build/classes/doublearray1/DoubleArray1.class b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/build/classes/doublearray1/DoubleArray1.class new file mode 100644 index 0000000000000000000000000000000000000000..3de402ce2e53e996d59aaf5d276f31d3c7518068 GIT binary patch literal 611 zcmZ`%T}$IY6g|^Uk~T)G)<&zYU%Lyf730UFvaqZOg+w-2pN4ZqyTlmWZXo?<7zD$`Qkgdmg34iZ~Y6`_4%Q zerDi^Mh=Ax8SGley%1Nz8Hlj&_(?3o{!u0=;yw*2|D(*n1Uc(;nhd5NrExDfmCDWB zXN_Go)`EcoL$1>_ux4Q$8wNHlY~d?I^}qHQW+WjR_C>5y@gF^^a|?BfvPA_ED~}kGs@cbJ=jfFHYw^E zX<>@a*0_Q4G@&A9P$EWMPN^?Pd0&4*&TVl0(QN0r*XEkn)^yKrXqsXSVhWyri+qD0 s@ZCG`4ScHx56!+*qQNs3kIA$?NNW%{1Q6_0d{c4ZO8|W5$BLDyZ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/build-impl.xml new file mode 100644 index 0000000..337da24 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/genfiles.properties new file mode 100644 index 0000000..9753355 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=bb71bd15 +build.xml.script.CRC32=8964a86e +build.xml.stylesheet.CRC32=8064a381@1.79.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=bb71bd15 +nbproject/build-impl.xml.script.CRC32=54215deb +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/project.properties new file mode 100644 index 0000000..85f5496 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/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}/DoubleArray1.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.7 +javac.target=1.7 +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=doublearray1.DoubleArray1 +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/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/project.xml new file mode 100644 index 0000000..aae9ec7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + DoubleArray1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/src/doublearray1/DoubleArray1.java b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/src/doublearray1/DoubleArray1.java new file mode 100644 index 0000000..f4bf0a8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/DoubleArray1/src/doublearray1/DoubleArray1.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package doublearray1; + +/** + * + * @author andad + */ +public class DoubleArray1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + + int a[][] = new int[3][]; + a[1] = new int[]{1, 2, 3}; + a[2] = new int[]{4, 5}; + System.out.println(a[1][1]); + } +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build.xml b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build.xml new file mode 100644 index 0000000..6671637 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project InitialiseArray. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build/classes/initialisearray/InitialiseArray.class b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/build/classes/initialisearray/InitialiseArray.class new file mode 100644 index 0000000000000000000000000000000000000000..a840c5ffbbf4e5c8dcbf81db319757741f20fd96 GIT binary patch literal 756 zcmaix+iDY06o&sjr`^PP(VBWn8Zmgds|q0?6jCjW3B-W1GY)ar9Li)O^xh}& z#%sM$klF|E-Usnk@bK@nD3yW(v)5s-wdVWReEIolAHZ!?)9`RkqLjjUTu5UD7bVIP zs{-C#J=V#60lQM|2sq8j^GG1m(&OmiY}Ak9$ErVMW~ns^)v%*tZQ{eElf2MVfikOg zqSa7OBNfMLx4!WwZkTwTgGWk_1&WnkYg@fi^`ROM>Om6g@nGG2SZKZ*tW)uTBXh@; z30Pr+puJv`XV|zYuoxsNe7UK1=0Fk!fpjpL#bNY78|wT&AUDjneMl^DSg$E@$;V|} zk+|yP8Y%)S|4|~4{fqyoza53ikyNldO`;L;CNo|X4z%h?eTza9%8k^B%gD`V98C+z z9aA*qmYhnn+CdpEf17zM@D>X^Q;h1gg4SL82=Q)yo#yGylRi$+_YVqa7a65+5*cPp z^H&bCX`gwYVYTdgrP}@*WNIb3=LWAW@%GoZ_pod3E$_|;I4*0twzubY?W}5doov6| zb+chR=sL$FH`#gpu+w1KFj%YP26EJrCrp7}9%oSG+D{|EGM+Lr$ZK$jwuCHBQ7-}M i=V)C#VMl@Z0p%3wS?n|ttsjsQ%i=pb1gDrio&60LS)5G( literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/build-impl.xml new file mode 100644 index 0000000..52d7532 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/genfiles.properties new file mode 100644 index 0000000..30b5ccf --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3f8e373b +build.xml.script.CRC32=347a0499 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3f8e373b +nbproject/build-impl.xml.script.CRC32=5b12dd3d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/project.properties new file mode 100644 index 0000000..1eb06a7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/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}/InitialiseArray.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.7 +javac.target=1.7 +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=initialisearray.InitialiseArray +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/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/project.xml new file mode 100644 index 0000000..3fda5ce --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + InitialiseArray + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/src/initialisearray/InitialiseArray.java b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/src/initialisearray/InitialiseArray.java new file mode 100644 index 0000000..f61586b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/InitialiseArray/src/initialisearray/InitialiseArray.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package initialisearray; + +/** + * + * @author andad + */ +public class InitialiseArray { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + char cA[][] = new char[3][]; + for (int i=0; i + + + + + + + + + + Builds, tests, and runs the project LargeArray. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/LargeArray/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/LargeArray/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/LargeArray/build/classes/largearray/LargeArray.class b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/build/classes/largearray/LargeArray.class new file mode 100644 index 0000000000000000000000000000000000000000..1c77b80020cb810113304ab1cba99219c18a1145 GIT binary patch literal 583 zcmZuuO-sW-5PjRGjcudV^vmyWr7D_(M@109g9H^S_26k+V_iuTiK*bv(u0DCdh+1! z@hrY=g(A2MvomjI-n?Nyzn@i7X~DWn$XIj6ix@ z1uEVVNLE+s0>)l=?g`{w6?li8cEgKKWWy(7yJ1uMbr~rg|AIz*scr-+t}mmOC!Swp4*Yxq9Ya$y@38GH5xqI8s4tt2>UxBq;oorlN~56iA#M2xMzvCu(~8 zN=wQ2M{Hapg7RKTz%NCidDK9(I^0^<=Bi zIi}{A%01cUUWG2lUs%Ar) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/genfiles.properties new file mode 100644 index 0000000..33edd20 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=27533a53 +build.xml.script.CRC32=33f7296e +build.xml.stylesheet.CRC32=8064a381@1.79.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=27533a53 +nbproject/build-impl.xml.script.CRC32=30c50b91 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/project.properties new file mode 100644 index 0000000..c19de8c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/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}/LargeArray.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.7 +javac.target=1.7 +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=largearray.LargeArray +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/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/project.xml new file mode 100644 index 0000000..35a5d35 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + LargeArray + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/LargeArray/src/largearray/LargeArray.java b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/src/largearray/LargeArray.java new file mode 100644 index 0000000..6a59ddf --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LargeArray/src/largearray/LargeArray.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package largearray; + +/** + * + * @author anda + */ +public class LargeArray { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + long[] foo = new long [3000000]; + foo[2999999] = 500; + System.out.println(foo[2999999]); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build.xml b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build.xml new file mode 100644 index 0000000..c1e35fb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project LastElementArray. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build/classes/lastelementarray/LastElementArray.class b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/build/classes/lastelementarray/LastElementArray.class new file mode 100644 index 0000000000000000000000000000000000000000..2428879471b7e8c211716bd25ee66765c2e4de64 GIT binary patch literal 707 zcmaiy-)a*<6vn^V-DXYPHciu{)x_E~Qr4xosOU|rAfh0we<0GEUQLoAPP>1~c2nr1 z^u{|MKra-$$OHIHB7U=}NTuMyoSFTdnRC8#W`6woJ_GO&cWPL`S{3WKQNvAiTy$OB z5~%FyR2NSLZ2#`Qfb%>XD}j2XQ}t$=3|0PK4r7v)C>zOmU*_8UUqGk$picz)Q7lgi z6{|$0h0Jq#7Dfaw=HQtDy9}L3oeH%5gXmD6$}pDcBpejEPA9u%YMD=;*aPzK~HHWYc`4UTPz>^>6BXCYy%}To)T2Ze!C$&%+k_0=@qV7g+wQ z_U-UcjfzWXaK_3LwlAB~(VCa0v+y13Dp;M832SebF)m{P_tsu5$%cv4|xSbNCa3+MFK;vvbtHzzTwy zGk)+Db}-xPoMXwL&L858pL9RMGpuX&m~1xV0o$c*Qs62YXw$Cob*-b%=jEe=9dz*s o8>O1fc}CQ+%#*8ZegiAi<5N|WD~k-&YBzqOA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/genfiles.properties new file mode 100644 index 0000000..c4bafdb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2022305d +build.xml.script.CRC32=ae2a8a05 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2022305d +nbproject/build-impl.xml.script.CRC32=252fa4e1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/config.properties b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/private.properties new file mode 100644 index 0000000..e9ed2c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=\ 1 +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/project.properties new file mode 100644 index 0000000..068f90c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=LastElementArray +application.vendor=andad +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}/LastElementArray.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=lastelementarray.LastElementArray +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/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/project.xml new file mode 100644 index 0000000..7e9c8c0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + LastElementArray + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/src/lastelementarray/LastElementArray.java b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/src/lastelementarray/LastElementArray.java new file mode 100644 index 0000000..5f5256f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/LastElementArray/src/lastelementarray/LastElementArray.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package lastelementarray; + +/** + * + * @author andad + */ +public class LastElementArray { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + if (args.length != 0) { + System.out.println(args[args.length - 1]); + } + int i = args.length; + if (i != 0) { + System.out.println(args[i - 1]); + } + int i1 = args.length - 1; + if (i1 > 0) { + System.out.println(args[i1]); + } + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/build.xml b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/build.xml new file mode 100644 index 0000000..87c1149 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SizeArray. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/build/classes/sizearray/SizeArray.class b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/build/classes/sizearray/SizeArray.class new file mode 100644 index 0000000000000000000000000000000000000000..ffec044421b86394a216e6d88bb511b46fffe8ae GIT binary patch literal 1115 zcmZuwTTc@~7(LT&yQMC-LW^io5XH7!s-UP8t59Qt7B#8Cs82(?!Nu(*+pP&c`%8TB zSszLw2|vL2OZ){siDz~}TIoK_d~?3r`OeJ#`1Ab`z!DxsF^Cx**P{qvMlGp6q><4v z8%5Yh=9D!b!GhYeYPk``O)TnI(s4^5ylT}fH!l!OrMCpMLcL-N3>K}L`K(plHl3Gp z+a?k#*2~h~l8&X$$DroEvzh|&V$=F)O2?6V*%GZaW#w3`Dy^D8BK5YoD?iArEo(d3 zlIvKtot$bWm>WCmVxn|*=o{&gN2hHyUDed9*>WvA>oqJAX46DB(Y?kA*>taj)wAvM zEYe?cW%>Q4Yxd$l&x3R3_j)A+lCouNE z7V9m`u9%L2732)8;y#s`R7T#w13c8RW?&r!7Vjamz|d*E=i9qxnc4(pr9y>L9mDyq zT>4E{LTRt*npGy$Tc?s*_3R7Yk;|JhWmVmy>g&Cb4L%szXqYvYPo_4GCGEJ^<5`$A z-`V}-(mM$G&}n?ct^1I`XzFZXR`j*)W+$LG6jz(?tZUwrj$4?*0Dlwp1;F7k%r(YS zmb>5{%IrgY_1q&|!yY(*QQC$dfH)F7^iKyhC2r?3QdVs*|eFTe{&AG#Ta9N9M z6Q7Zoi))K3q1o|J8``T+n)q_`>l;D`2s2inZ6ne~Uo6_jxy&K0HjFm<6$K57!UeB% z91*rnvgI`QG|?xxkd7-l Rrnw5v|J$4CD%}BG`wJKe0L1_R literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/build-impl.xml new file mode 100644 index 0000000..9d355f4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/genfiles.properties new file mode 100644 index 0000000..5d8a859 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7de41458 +build.xml.script.CRC32=5897fc09 +build.xml.stylesheet.CRC32=8064a381@1.79.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=7de41458 +nbproject/build-impl.xml.script.CRC32=d80775a8 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/config.properties b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/private.properties new file mode 100644 index 0000000..cab7849 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=a b c +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/project.properties new file mode 100644 index 0000000..146e354 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=SizeArray +application.vendor=andad +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}/SizeArray.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=sizearray.SizeArray +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/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/project.xml new file mode 100644 index 0000000..270a7bd --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SizeArray + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/SizeArray/src/sizearray/SizeArray.java b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/src/sizearray/SizeArray.java new file mode 100644 index 0000000..dd9e527 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/SizeArray/src/sizearray/SizeArray.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package sizearray; + +import java.util.ArrayList; + +/** + * + * @author andad + */ +public class SizeArray { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + ArrayList list = new ArrayList(); + for(String s :args) + { + list.add(s); + } + System.out.println(list.size() + " " + args.length); + + + + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build.xml b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build.xml new file mode 100644 index 0000000..9ce5ab8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TripleArray1. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build/classes/triplearray1/TripleArray1.class b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/build/classes/triplearray1/TripleArray1.class new file mode 100644 index 0000000000000000000000000000000000000000..c444c06a302df5d706326bf459bad70b24ba18e7 GIT binary patch literal 839 zcmZ`%ZEMp|7(KU1nzY7lYu4)AeA#^KHeFojD-%J4eF{3r7=(Vh?Ly6Ho06qs{j@)z z|3yD22=xc-M~UYq1vjaIb8nvWJkNPvlC$4Ge*xIRi!v6lYGTdAiiz76?pU~M;hu&2 z78(}TEo@lWwD6#WhuA8^#Um5jCYl1pm(d_fUkPZ9^+N&uO?(sz%z4oud^_s5!{k7= zdt|C!+>yOQnMBH-l6v|+IuTg*(j*%8LYX9TyzL%j#_P=3rDR`51A%&@)wg(I*yJ9+-!ZUlrR z+C+yqA}A|95@X^MF*LDb<1wC?cxvMro(nAfcXokuCEm4*yoJ#h>lvm zohWwqxtf#<3T2<`bFwxs(gNmC1@*YsT4UB)v5I;A6zVB}Uk?t?MOrRz!Q0sQ0r53+ z*LW5)(ng){b{>E$xJs*pC0rw;lFv}49Pq`Qpb%)r1X`dKC(r|}YWRU(E&72`HGRHL zSxd1cvcgwvo}uR%WyO#W3=$NY(w9_ZF^}Y_v~8twS%qsPeBb+q%BI%Tn@00H=KfAm jfyV9}oU+@`sAbdC^Nz8M75Yw5!FAl=JOVdq7jWwjKl!n$ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/build-impl.xml new file mode 100644 index 0000000..b144204 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/genfiles.properties new file mode 100644 index 0000000..1401574 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d68df838 +build.xml.script.CRC32=31ac8e6c +build.xml.stylesheet.CRC32=8064a381@1.79.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=d68df838 +nbproject/build-impl.xml.script.CRC32=25e40c2d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/project.properties new file mode 100644 index 0000000..a766175 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/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}/TripleArray1.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.7 +javac.target=1.7 +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=triplearray1.TripleArray1 +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/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/project.xml new file mode 100644 index 0000000..5ca2bed --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + TripleArray1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/src/triplearray1/TripleArray1.java b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/src/triplearray1/TripleArray1.java new file mode 100644 index 0000000..d6d53dd --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/TripleArray1/src/triplearray1/TripleArray1.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package triplearray1; + +/** + * + * @author andad + */ +public class TripleArray1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String[][][] arr = {{ { "a", "b" , "c"}, { "d", "e", null } },{ {"x"}, null },{{"y"}},{ { "z","p"}, {} } }; + System.out.println(arr[0][1][2]); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/build.xml b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/build.xml new file mode 100644 index 0000000..0e6ce86 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project arrayadi. + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/build/classes/arrayadi/Arrayadi.class b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/build/classes/arrayadi/Arrayadi.class new file mode 100644 index 0000000000000000000000000000000000000000..5d28e724d8b3e1a33eae53c7548ce4b381cdf7a5 GIT binary patch literal 603 zcmZuv*-FDe6g|_VNgJbfv8_wpedq!W=%XTtAQXZXDt+nGv<-D6i=?Sg{3?A=5cLE6 zDDh5ODWZ9}%eiyUITPmd>-7V`5e^J!DC#Jsv5GYV>)6my*0IT;od{n z_AS5XmdpL2)s8~p507Ih9uDR5KVt^no5WP)tJ`fd80}yj_MHnMy)6EyG$gSJ9Vv!H zx2a>x#5Q(x?3&oaK1248F^0_CO{;h7^rK%;doqd~k7R=}4GL51BCxK=cSPvi1V@7>^B#S`3<4pxT@spu9+3 z8cSFvL@qx-Avz+_-;uEEiuPu->&l^$YEevPwAK?8**Bh{PD@pmbD1r20_4ft3P}}^ hMM=I2?9;Popd8B=rxM7}lzgIw9BoL~E7T`Y_y#*zb&~)9 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/manifest.mf b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/build-impl.xml new file mode 100644 index 0000000..ae3f6f9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/genfiles.properties new file mode 100644 index 0000000..098a7c0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=abb3d8e5 +build.xml.script.CRC32=79088a15 +build.xml.stylesheet.CRC32=8064a381@1.79.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=abb3d8e5 +nbproject/build-impl.xml.script.CRC32=f10752d3 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/project.properties new file mode 100644 index 0000000..6f125c0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/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}/arrayadi.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.7 +javac.target=1.7 +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=arrayadi.Arrayadi +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/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/project.xml new file mode 100644 index 0000000..27640df --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + arrayadi + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Arrays/arrayadi/src/arrayadi/Arrayadi.java b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/src/arrayadi/Arrayadi.java new file mode 100644 index 0000000..fe35da0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Arrays/arrayadi/src/arrayadi/Arrayadi.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package arrayadi; + +/** + * + * @author andad + */ +public class Arrayadi { + + + + public static void main(String[] args) { + // TODO code application logic here + + int [][] myArray = new int[4][]; + myArray[0] = new int[3]; + myArray[0][0] = 5; + //myArray[0][5] = 4; + myArray[0][2] = 6; + + System.out.println(myArray[0][0]); + System.out.println((myArray[0][1])); + + } +} diff --git a/PrjJava/OCA7/Chapter5/Chpater5_2/build.xml b/PrjJava/OCA7/Chapter5/Chpater5_2/build.xml new file mode 100644 index 0000000..1402cba --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Chpater5_2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chpater5_2. + + + diff --git a/PrjJava/OCA7/Chapter5/Chpater5_2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Chpater5_2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Chpater5_2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Chpater5_2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Chpater5_2/build/classes/chpater5_2/Chpater5_2.class b/PrjJava/OCA7/Chapter5/Chpater5_2/build/classes/chpater5_2/Chpater5_2.class new file mode 100644 index 0000000000000000000000000000000000000000..33bb320932f04d9de3149d449524cba85f02c111 GIT binary patch literal 928 zcmZuvS#J_i6#gy)9hRvqEyY??aH%Y|D7I<^O_anX!6iYP7$3|9CNLEkG7KiZ`%8TB z**?&yv9BinBomkKLZhKD$=tKv^PTgZ`{VbQLjc!M4&nsTI?e@f9v5_648n_a5FV^6 z?UElEC9^@~kXJdEmA0W{Q%6Byp=|Xm_l|&;$?ghxD|XWq2v@D1`DECwo6d7t@6Z#g z+6~#+m5!zCBd6DGTLXbawbAZN*L1dD7YmhtYKi5#(&`DUWL{PG9kmAX-*njY}?MjWO%XW%Ep_=vOk8`u_h3#*+Zvc-nUeb;s4m13eG?n z5rN2YXdPD!Tt$(c9}nFdTAilp7$kPfz&5V4zm$O+*wS&+zz%L1D50n{R*uh|dkXPs zea~#TQ?A;(fopcjxIJVbK4HeP3(rW4OL9!vC3PX!e$nrnPDKtl+Hxj4%OI(dOzAZR zHZrr}*&9dGvAW;2Cu<<-V-BYA1@yk^ro-jM=auH}G}CdA#v-4e`aIwQ5aAi6RiG4< zzT5%Cr*SyOb7AZ>uteRMBw!hFS^=yeL65rpneSDjeCYoMPc^TLnsz&xKm355WR7Pb zpUfqTwS8z`;eB}kUp`qJVPOP4=I1d&V1(d4LL(UOJ>uh^?+Rao!e1v2i0&h5fVfd& zCU6p`vC6fc!d?0v&{F-ScqfE1qpKW_-7vmJ=|crcYJz#-_}VXobes{ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/genfiles.properties new file mode 100644 index 0000000..659f591 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c9e977bf +build.xml.script.CRC32=8852e667 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c9e977bf +nbproject/build-impl.xml.script.CRC32=edac736a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/config.properties b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/private.properties new file mode 100644 index 0000000..90e239c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=eyra vafi dramur kara +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/project.properties new file mode 100644 index 0000000..cf68681 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/project.properties @@ -0,0 +1,77 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Chpater5_2 +application.vendor=anda +auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml +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}/Chpater5_2.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=chpater5_2.Chpater5_2 +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/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/project.xml new file mode 100644 index 0000000..e2e6d83 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Chpater5_2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chpater5_2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Chpater5_2/src/chpater5_2/Chpater5_2.java b/PrjJava/OCA7/Chapter5/Chpater5_2/src/chpater5_2/Chpater5_2.java new file mode 100644 index 0000000..b0ed13f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Chpater5_2/src/chpater5_2/Chpater5_2.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chpater5_2; + +/** + * + * @author anda + */ +public class Chpater5_2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String[] horses = new String[5]; + horses[4] = null; + for(int i = 0;i + + + + + + + + + + Builds, tests, and runs the project ReverseString. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/ReverseString/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/ReverseString/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/ReverseString/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/ReverseString/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/ReverseString/build/classes/reversestring/ReverseString.class b/PrjJava/OCA7/Chapter5/Strings/ReverseString/build/classes/reversestring/ReverseString.class new file mode 100644 index 0000000000000000000000000000000000000000..ad4dacfb6446462a555047dae5f55b42abdaefb7 GIT binary patch literal 1490 zcmaJ>*-{fx5Ir{unMoMH1i=jy_avfGQCvV=a6^MzaKZg1xx(NuiIa(?5BlU!Sbl)d zLRF}eDnGz4@LPOP&z+(IEhnngm79* zBPK@UID;{*IUB8wfd5Q%W-sJSRbxv>8f5P^m0vmT{n?4F=^t4 zftvBGBfk*V-t?1;UgCqNBEJ`(r$&()R=+bP z=*royx>1`iC~ry@9BPuea#1?>q-X1MQyKAR?W#b3j-ixSRn;I*_De1SobW&mSonUh5%`jZ|I&K72F3{8nQ1fjkn=eY&RUT0ZBI?NdviNdRR)W$E4$!PB@sMW9!T@#(Bm&l26BxK{;STcJVamc?u;LAuTwi$u(j90( zK5gK>g$J0n@DPtIY(pQN{%wGcK##|GV&N&CS?I@hfldFqU8vbkNqH7_pwGf{u(anW zSSaeqC9oNZDe^wRry>cjfo=ck&Z;VJ7UopZU!}^wt@?`5L%M-I z4fgGFcEYXHeD+t#dGfzGwXQ+8He9YT;L62Y9K@B2-2rsQYf%dr7478cgw4RML#(5k zu6pC^5hd(YdhJkgtR3af__M)SbF!kvS?Qf;C6UxbnzJ93m5Opp0teU2uqI%$BZS(Q z8ef}l#ccZJ#?&)~dR3DS$9WZq2E`-khuF!_c`N@AVVHVcD4BX5f}M>IEJDvDJGhId zEO)`ZEwcpig+d6sxkdwJC-zXb8V=ZteLTgmA1P{hS#&T>gu3_32u&{_yo5+@0d2`> z9mat=%tgeO5vL`#g!V~V25I1HMM`7+pO6{sucKoToy+K&Uc!b2BI9(`3@ri$_$YV@lKj|!x|IiLGJCSGQuGu-ivA8?IS~nsZSvC3quBu l7&t0^BGYS->7l>8ZVyN!k;%=(p-U7k#P;xXjJgnx{{b=xPXhn| literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/ReverseString/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/ReverseString/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ReverseString/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/build-impl.xml new file mode 100644 index 0000000..0658c98 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/genfiles.properties new file mode 100644 index 0000000..06307de --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1b4451c9 +build.xml.script.CRC32=1fbb4ceb +build.xml.stylesheet.CRC32=8064a381@1.79.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=1b4451c9 +nbproject/build-impl.xml.script.CRC32=5b086df5 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/project.properties new file mode 100644 index 0000000..eacb2c9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ReverseString/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}/ReverseString.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.7 +javac.target=1.7 +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=reversestring.ReverseString +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/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/project.xml new file mode 100644 index 0000000..80a8dc5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ReverseString/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ReverseString + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/ReverseString/src/reversestring/ReverseString.java b/PrjJava/OCA7/Chapter5/Strings/ReverseString/src/reversestring/ReverseString.java new file mode 100644 index 0000000..1ebabd4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ReverseString/src/reversestring/ReverseString.java @@ -0,0 +1,60 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package reversestring; + +import java.util.Scanner; + +/** + * + * @author andad + */ +public class ReverseString { + + /** + * @param args the command line arguments + */ + static String pa; + static char revpa; + static String rev = ""; + + /** + static boolean isPalin(String str) { + int end = str.length(); + if (end == 0) { + return true; + } + int start = 0; + while (start != end) { + if (str[start++] != str[end--]) { + return false; + } + } + return true; + } + * */ + + public static void main(String[] args) { + // TODO code application logic here + Scanner ob = new Scanner(System.in); + System.out.println("Enter an string:"); + pa = ob.nextLine(); + String a = new String(pa); + System.out.println(a); + + for (int i = a.length() - 1; i >= 0; --i) { + revpa = a.charAt(i); + rev += revpa; +// madam, mom sunt palindroame + } + //System.out.println(rev); + if (pa.equals(rev)) { + System.out.println("This is palindrom"); + } else { + System.out.println("This isn't palindrom"); + } + + } +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/build.xml b/PrjJava/OCA7/Chapter5/Strings/StrEqual/build.xml new file mode 100644 index 0000000..c36a30d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StrEqual/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StrEqual. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StrEqual/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StrEqual/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/build/classes/strequal/StrEqual.class b/PrjJava/OCA7/Chapter5/Strings/StrEqual/build/classes/strequal/StrEqual.class new file mode 100644 index 0000000000000000000000000000000000000000..32ed3e262ee957b6eb86c2e655a173e5024b4957 GIT binary patch literal 928 zcmZuw+fEZv6kTUJbV?bZOu2}t3yPX3sekl(ETAX^+ zl0j3(zSe&kO?Bia0>yfwV()EN2Gxd&ceJp@R2}Ju0^_CE^<()?Rs$KfHSUM)t+bSk z+dB9^uz-=Q=$cmoHA2=#QWFsG1qK^Rw%+W?lavvg7sxlFZrt*o`I%Ik2MQCA1_ z{QaoT!;KY!P3ccFAUy*s`80Rqe9AkfJ z`4mH+(dT5(V12}Z7IPGr%BMZ0pNf;;GzmTZH3C4W9B>(^b literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StrEqual/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StrEqual/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/build-impl.xml new file mode 100644 index 0000000..c96c0ab --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/genfiles.properties new file mode 100644 index 0000000..a5ef1c1 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a047abce +build.xml.script.CRC32=3c9e74ed +build.xml.stylesheet.CRC32=8064a381@1.79.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=a047abce +nbproject/build-impl.xml.script.CRC32=7a31252e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/project.properties new file mode 100644 index 0000000..7a7bd12 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StrEqual/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}/StrEqual.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.7 +javac.target=1.7 +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=strequal.StrEqual +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/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/project.xml new file mode 100644 index 0000000..069aa30 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StrEqual/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StrEqual + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StrEqual/src/strequal/StrEqual.java b/PrjJava/OCA7/Chapter5/Strings/StrEqual/src/strequal/StrEqual.java new file mode 100644 index 0000000..0ec1935 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StrEqual/src/strequal/StrEqual.java @@ -0,0 +1,41 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package strequal; + +/** + * + * @author anda + */ +public class StrEqual { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s1 = "hi"; + String s2 = new String("hi"); + String s3 = "hi"; + + if (s1==s2) + { + System.out.println("s1 and s2 are equal"); + } + else + { + System.out.println("s1 and s2 are not equal"); + + } + if (s1==s3) + { + System.out.println("s1 and s3 are literal constants"); + } + String x = "test"; + System.out.println(x.length()); + + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String1/build.xml b/PrjJava/OCA7/Chapter5/Strings/String1/build.xml new file mode 100644 index 0000000..376b94e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String1. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String1/build/classes/string1/String1.class b/PrjJava/OCA7/Chapter5/Strings/String1/build/classes/string1/String1.class new file mode 100644 index 0000000000000000000000000000000000000000..a2a2a4f5a287f13e0b8492a2003881c097b5f1f8 GIT binary patch literal 1063 zcma)5+fEZv6kVr<&QJz{;i@POsI`ScMZ8i30mYCMF{!~2d^v3gJfxi=?bP6B>BEp< z;s^Lq#&tSX!17?5p1t?l_qEfXzs`ODSj3wohH%%!y&j}+KZ!IlNz7nYYgw($nV2^* zrR|)72TAnm@C7X&>L+7j(ZnMIj}1H#NGvN)1uFvabY@qeYs0U&0{sQ$xo?}bl3RZ- zOI0Fv!7t0|uBaZMNQ2)rwmen2L6rYgV0x<24=W9QcjEsreOkpvp2> zaxA>YCTFV%OkND`j3lv9z+a{W2F^S0l#bkTa0x1YX#{SKqxwxcMj}p>pL<8X1Mcq1 z8p*y;gBUL%U + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/genfiles.properties new file mode 100644 index 0000000..541a47b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=08801287 +build.xml.script.CRC32=7355aee8 +build.xml.stylesheet.CRC32=8064a381@1.79.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=08801287 +nbproject/build-impl.xml.script.CRC32=d6d48d1b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/project.properties new file mode 100644 index 0000000..96175b8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String1/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}/String1.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.7 +javac.target=1.7 +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=string1.String1 +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/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/project.xml new file mode 100644 index 0000000..65855f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String1/src/string1/String1.java b/PrjJava/OCA7/Chapter5/Strings/String1/src/string1/String1.java new file mode 100644 index 0000000..7ffdd32 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String1/src/string1/String1.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string1; + +/** + * + * @author anda + */ +public class String1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String x = "abcd"; + System.out.println(x.toString()); // no effect + System.out.println(x.indexOf(-1)); + String s = "abc"; + s.concat("s"); + System.out.println("string-ul s nu a fost modificat: " + s); + s = s.concat("d"); + System.out.println("string-ul s a fost modificat: " + s); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/build.xml b/PrjJava/OCA7/Chapter5/Strings/String10/build.xml new file mode 100644 index 0000000..1cd86af --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String10. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/String10/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/String10/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/build/classes/string10/String10.class b/PrjJava/OCA7/Chapter5/Strings/String10/build/classes/string10/String10.class new file mode 100644 index 0000000000000000000000000000000000000000..4b503df088479ef0724bd55e4da4fb032250762b GIT binary patch literal 895 zcmZuwU2oD*7=8{d6iT3O=M>CbfQ$G0<9VM`e*gLT3&1{3Ojsx;v0-8pca^x8#Qh|;l=&b92PG5R zC@b;Mz>a~6K;qczd*L$y%_+46^cRDVQedg!_2t>9*OtLMx9u}xHwGQoZ@Gb|{Ao}R z&%L2QwlNF?uivfhR-03!&QU$r>kF(n?;98HXSeFR{q8hhk5;)sS2fQ`3kYWH**?Pb zC5MVrf!MI7#GZiJ9E^gFeB~*i3;!Tg)K&`%SQJPXU(+eR9DR~S162#Vs9D&bYknDqk^r>9hye4G0p6hcmd_Ouq;z|Hscdx1 z^{{|(sfv8Etvjdc!SZt;m0H+9n(V1x45S~6luPug)Fc-1?H>@|qI8Bb5d|$Q)3zoB zu#u&gLJoOGRP$G8h*Q_>Sff0KHimwp^jX=C+leuZBmFy)>tm#-cE&KN3Oe=GqD>?@ zAj?5HBFrO$6|7;EcyI8pP~a!97J)dJEMj(*^%^S77YHMbEmqv*RT=iIGp0rTw`l3i K-)40Tcm4uMoVbtx literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/String10/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String10/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/build-impl.xml new file mode 100644 index 0000000..7e4c14e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/genfiles.properties new file mode 100644 index 0000000..d0c936d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=72f5e406 +build.xml.script.CRC32=8e5a9bb6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=72f5e406 +nbproject/build-impl.xml.script.CRC32=213e01a3 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/project.properties new file mode 100644 index 0000000..f6a1a1e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String10/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}/String10.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.7 +javac.target=1.7 +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=string10.String10 +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/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/project.xml new file mode 100644 index 0000000..c2a8566 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String10 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String10/src/string10/String10.java b/PrjJava/OCA7/Chapter5/Strings/String10/src/string10/String10.java new file mode 100644 index 0000000..55cb93e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String10/src/string10/String10.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string10; + +/** + * + * @author andad + */ +public class String10 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s = " Java Duke "; + int len = s.trim().length(); + String s1 = s.trim(); + String s2 = s.replaceAll("\\s+",""); + System.out.println(len); + System.out.println(s1); + System.out.println(s2); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/build.xml b/PrjJava/OCA7/Chapter5/Strings/String11/build.xml new file mode 100644 index 0000000..48e0bf9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String11/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String11. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/String11/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/String11/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/build/classes/string11/String11.class b/PrjJava/OCA7/Chapter5/Strings/String11/build/classes/string11/String11.class new file mode 100644 index 0000000000000000000000000000000000000000..33f042f04c61146feb1d3e693a36da9c2d870f81 GIT binary patch literal 937 zcmbVK%Wl&^6g?BWnZ|W!>O6oxDbFNL8bUWnL2QsJ7HL6B71Xerq*icA;^H_+{1B{R z(Mllk0elqYj2%HkSYg@YnRD(v_uOm$`1$oafIaM4NMTFj)*`koByc;0JGiTN_blAU z1Bs$UNg(;e8+qYV0i#%I3z*OR6IWol>5bgO$*}7NN2)s@;xzr98njj5>GKpc!#Cbo zAln>=fj8>c>$TQ&)1cH)c_V>B@pbc5y;rq?8uh1qBPykWzE1uJEg;A^^LZpfJ`;g- zD^$I=2kI=cB9UXO5@i9aFm#T%uLfIQQ62b{WD?3CKr#v=a$eI>xjV2P{EQ;l!I_d@vs;&Vi& zxh5mf#x?HkH~`DY@RY&|93o5>4Hz(qoqR*$*fB0(HXY-@F%G|AVaGAfkvxZt_a7n6 zPcVr^K;;itnWZY#-&Cb~h0@*(Xm4fO2eMpqJm=}^I@WQ6-)a?)v4-c^Knt7bVJq@q zjy*CX$2Jza%+}CWwmT|DtGM JgL(;U{sLC0uRQ<& literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/String11/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String11/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/build-impl.xml new file mode 100644 index 0000000..5330703 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/genfiles.properties new file mode 100644 index 0000000..cb5671d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7ae66820 +build.xml.script.CRC32=a04c2dc6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=7ae66820 +nbproject/build-impl.xml.script.CRC32=2befefb4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/project.properties new file mode 100644 index 0000000..de22dc8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String11/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}/String11.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.7 +javac.target=1.7 +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=string11.String11 +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/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/project.xml new file mode 100644 index 0000000..c5e2f68 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String11/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String11 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String11/src/string11/String11.java b/PrjJava/OCA7/Chapter5/Strings/String11/src/string11/String11.java new file mode 100644 index 0000000..fd62153 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String11/src/string11/String11.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string11; + +/** + * + * @author andad + */ +public class String11 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s = new String("Foo"); + String t = "Foo"; + String u = "Foo"; + + System.out.println(s.equals("Foo")); + System.out.println(s == "Foo"); + + System.out.println(s.equals(t)); + System.out.println(s == t); + + System.out.println(t.equals(u)); + System.out.println(t == u); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String12/build.xml b/PrjJava/OCA7/Chapter5/Strings/String12/build.xml new file mode 100644 index 0000000..5fa9cf0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String12/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String12. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String12/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/String12/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String12/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/String12/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String12/build/classes/string12/String12.class b/PrjJava/OCA7/Chapter5/Strings/String12/build/classes/string12/String12.class new file mode 100644 index 0000000000000000000000000000000000000000..5cdfb13e32bdff89fd8a967bf8367b365a36e9b9 GIT binary patch literal 585 zcmZuuOHaZ;5dO9W3Z=X$z8|Ou(8NYPV!W8>rBM?M7f%Z`xTFtLiitl<51M%J2l%6m zvn_@Y+{4VyeBaD`v-|z?`32w%2RbrnWU-RND%NzYV?)EHhAoE7x$s4F!JxLVHd){{`Q?-KucY8b(GM*(<(W96!)a*$V3V(ERYISFq4z=>Q@EIDd z2Ybw)x#eM57(<(XzF;$6}g6 zdy*uVUcqcF@6qm|i8TF;JPL@8EZH1I7I{WKefR + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/genfiles.properties new file mode 100644 index 0000000..25a659a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=62d2fc4a +build.xml.script.CRC32=d277f756 +build.xml.stylesheet.CRC32=8064a381@1.79.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=62d2fc4a +nbproject/build-impl.xml.script.CRC32=349ddd8d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/project.properties new file mode 100644 index 0000000..21f9307 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String12/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}/String12.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.7 +javac.target=1.7 +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=string12.String12 +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/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/project.xml new file mode 100644 index 0000000..1c13afe --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String12/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String12 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String12/src/string12/String12.java b/PrjJava/OCA7/Chapter5/Strings/String12/src/string12/String12.java new file mode 100644 index 0000000..7478538 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String12/src/string12/String12.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string12; + +/** + * + * @author andad + */ +public class String12 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String String = "aaaaa"; + System.out.println(String); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/build.xml b/PrjJava/OCA7/Chapter5/Strings/String13/build.xml new file mode 100644 index 0000000..6f101bd --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String13/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String13. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/String13/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/String13/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/build/classes/string13/String13.class b/PrjJava/OCA7/Chapter5/Strings/String13/build/classes/string13/String13.class new file mode 100644 index 0000000000000000000000000000000000000000..7c116ac9ebcaa7f1d11b85fd2790da5d6de7322f GIT binary patch literal 1347 zcmZ`(OK%fb6#lL~Gk5F`#BnlEmjF(9*?GB6zy$|Vh+F!=353*<0^M9YBWJ+&q<*x@ z9wa1oU3FDeEMVO(jMN8Z-G9J8>8kX*wow!e*7)3W&i&4JUiSR+-|sH~EaG+)aeQne z8^Hn=qd1QX61gZ$?fgWa7qz%#W6DO}#*(%!M{xzqTKm+-Rf%g7D+1PKzu~u+1;VNH zrhrihwmpH7qTle=I`y*G{6>{)^u&unMb$P{)7SREX|#9zmcUrC)o%KYYIZTRF;JFB zRabsP;7ICj@t*o#WooKX9o#SJRH4d_fG7~CnpMs64jcizi4PM9$dw?dd5Rg#`X18? zMCyBm9o4+nq#n9UVyof((7Oqhvt+tMcX>hJ&_-KT?ysudUKbK4B?=N}1fm;3r&;l? z`?_JG`aR9->K%+>oTX-SStaqAgU@kY;tK~~;wyopZ#THo@oU?ju4z-%I$kT8PdfM- zHyjkPN}6gAYzsj9)|lPFP2AGPI?GH7jJDpMr$B5!$IbFRuhKr?>KA*^wbyEUbuKpO z5bO45=m(iwY^zPYr|R6&SdaFgo5S7Jpc;qkriO>Fw`Zx{U9Z6==H3MuiWv-q3GH_9 zrr7aRdI(6wM5-|C-zTuV?>ef+pT&XF`ZHNdbIB8_JMWLjBu4q?(Vr05KE^3sS{a^P z3C!u|5Wn`Wk5F1Yr-P%^ojw2`B0(#Hk8q4028*9zAWGlMc&PXr!ZTeMJpO>W^&D1Q zc41G47qm3A>>@%yJi1EEtkynQlYg39;aIh_WyFHgmZ^mm+b-pexRW;%M&3$TFLE-R zvt8SjPjEJ2x%T;7WRM|YlGP>YAyVhf2ex?j`c=Z5dkSehgAvYIG`cvPllxVEoT&vZG!lSo(@hhN@w^BNyZ2={)j1RA#y$<(4v(NX))@=6cGU;5z?BI&xJncAn@EGXDegR2`N8 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/String13/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String13/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/build-impl.xml new file mode 100644 index 0000000..55f9dc6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/genfiles.properties new file mode 100644 index 0000000..53513a7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6ac1706c +build.xml.script.CRC32=fc614126 +build.xml.stylesheet.CRC32=8064a381@1.79.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=6ac1706c +nbproject/build-impl.xml.script.CRC32=3e4c339a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/config.properties b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/private.properties new file mode 100644 index 0000000..c7dc77a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=1 2 3 +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/project.properties new file mode 100644 index 0000000..52789ad --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=String13 +application.vendor=andad +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}/String13.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=string13.String13 +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/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/project.xml new file mode 100644 index 0000000..54fe32a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String13/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String13 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String13/src/string13/String13.java b/PrjJava/OCA7/Chapter5/Strings/String13/src/string13/String13.java new file mode 100644 index 0000000..a5aa3d4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String13/src/string13/String13.java @@ -0,0 +1,45 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string13; + +/** + * + * @author andad + */ +public class String13 { + + /** + * @param args the command line arguments + */ + // TODO code application logic here +//What will be the output of the following program when it is compiled and run with the command line: +//java TestClass 1 2 3 + public static void main(String[] args) { + String s = 'b'+63+"a"; + System.out.println(s); + + System.out.println("Values : " + args[0] + args[1]); + String Boolean = "Boolean"; + System.out.println(Boolean); + String myStr = "good"; + + char[] myCharArr = {'g', 'o', 'o', 'd'}; + + String newStr = ""; + + for (char ch : myCharArr) { + + newStr = newStr + ch; + } + + boolean b1 = newStr == myStr; + + boolean b2 = newStr.equals(myStr); + + System.out.println(b1 + " " + b2); + //String s = 63 + new Integer(10); + } +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String2/build.xml b/PrjJava/OCA7/Chapter5/Strings/String2/build.xml new file mode 100644 index 0000000..b25d444 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String2. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String2/build/classes/string2/String2.class b/PrjJava/OCA7/Chapter5/Strings/String2/build/classes/string2/String2.class new file mode 100644 index 0000000000000000000000000000000000000000..8b563e5176a3260520350fb2ce97b6bfcf7285b2 GIT binary patch literal 869 zcmZuvTW=CU7(K&nmv!ic0>%4QTZPtkm8vfqA2jias0oC`_%y(TP6N9H78C!K8bcGC z_yhb=#gaczwd*HR0Lk;Gw;tW1$&9?Q@I);Jn8q{!uU&>igY zwG{Zi1X7Vy^wRXH9M2*nk5PKJqMRaf4)Gb`4ibokK6H( VN&>{_4r?~<@~d!+z`dB%{r^WOv)%vz literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/String2/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/String2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/build-impl.xml new file mode 100644 index 0000000..627b4db --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/genfiles.properties new file mode 100644 index 0000000..791192e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=10b486ed +build.xml.script.CRC32=0ba126a5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=10b486ed +nbproject/build-impl.xml.script.CRC32=d5acb534 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/project.properties new file mode 100644 index 0000000..9f6262f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String2/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}/String2.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.7 +javac.target=1.7 +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=string2.String2 +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/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/project.xml new file mode 100644 index 0000000..4e18ec7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String2/src/string2/String2.java b/PrjJava/OCA7/Chapter5/Strings/String2/src/string2/String2.java new file mode 100644 index 0000000..95d329e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String2/src/string2/String2.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string2; + +/** + * + * @author anda + */ +public class String2 { + + /** + * @param args the command line arguments + */ + private String title; + public String getTitle() + { + return title; + } + public static void main(String[] args) { + // TODO code application logic here + String2 str = new String2(); + //str.getTitle(); + System.out.println("The title is " + str.getTitle()); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String3/build.xml b/PrjJava/OCA7/Chapter5/Strings/String3/build.xml new file mode 100644 index 0000000..5bfe53e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String3. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String3/build/classes/string3/String3.class b/PrjJava/OCA7/Chapter5/Strings/String3/build/classes/string3/String3.class new file mode 100644 index 0000000000000000000000000000000000000000..33ef5fce4d88e96f97d27731497a2b71df350f4b GIT binary patch literal 1327 zcmaJ=T~iWa6n+n!xZ<(A$>C?>#i4HqFA90Ei!TJvvq32SOv96f~$T{zFE4;NUq v0c96ycvW0fafuH+Ds&amT}jzS=}J`WA_Lz)m + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/genfiles.properties new file mode 100644 index 0000000..dd9f490 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=18a70acb +build.xml.script.CRC32=95225ca1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=18a70acb +nbproject/build-impl.xml.script.CRC32=d484a2d1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/project.properties new file mode 100644 index 0000000..1f60d86 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String3/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}/String3.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.7 +javac.target=1.7 +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=string3.String3 +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/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/project.xml new file mode 100644 index 0000000..945df70 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String3/src/string3/String3.java b/PrjJava/OCA7/Chapter5/Strings/String3/src/string3/String3.java new file mode 100644 index 0000000..e1b0f52 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String3/src/string3/String3.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string3; + +/** + * + * @author anda + */ +public class String3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s1 = "abc"; + String s2 = s1; + s1 +="d"; + System.out.println(s1 + " " + s2 + " " + (s1==s2)); + + StringBuilder sb1 = new StringBuilder("abc"); + StringBuilder sb2 = sb1; + sb1.append("d"); + System.out.println(sb1 + " " + sb2 + " " + (sb1 == sb2)); + String x = "airplane"; + System.out.println(x.charAt(1)); + //System.out.println(x.charAt(20)) run time exception StringIndexOutofBoundsException + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/build.xml b/PrjJava/OCA7/Chapter5/Strings/String4/build.xml new file mode 100644 index 0000000..3cf0ff0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String4. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/String4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/String4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/build/classes/string4/String4.class b/PrjJava/OCA7/Chapter5/Strings/String4/build/classes/string4/String4.class new file mode 100644 index 0000000000000000000000000000000000000000..ecd73078567474692e583a8761baf6cb5ae4ce8e GIT binary patch literal 877 zcmaJ<>uwT37(D|E%Vo6%O0lIC>UF7Yp^Da&$`6~EG{H-PAu;~Y0XDb|?2=_M@qK&& z{Xr8=d;p)sr!bz`C8?IiP3HS{&UZOyzL}rDzx@F40FP5JP)=Y=$Bh)CC@XVQnOn-- zPT~&kCSaye!M2WjI(7u&N48`8O@XLc=?G}YZr>7EYT1tUVmj(t-fP(%63MpQo*Z_h zXRG}j)cgeY7W8*DU^wj;1=zHOb#kFq+H&R`yH1Vqvsurzl`SU^aw z6RxfzUZ`iF$JG}|wcV-Lv!2;XqA_RRQw0XD;Hp4u|6Q$C6DVA4@^oqs`<7>57kkQ7 z4b-r&Qn3ETE57(vX*y zzf58WTS)VPsV@Sd#!I`zU6o$Y$F|QPz69ZA+IRpO$nf6?6OcuYyChbSC!&f!^JT{9 zo0;gZqip1PvG~6E9nm*u(26s}c4mmrpdV^qk(k4qgtJNFYg!nbA$88WPF|2jBZp3w yG*(eU0Z(u(P*M-sh!&Wq;gI+mwdgp&I*L46nh#)uSd?`oY!cHLzs~FkN`C-Tz`9oe literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/String4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/build-impl.xml new file mode 100644 index 0000000..c3baa8a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/genfiles.properties new file mode 100644 index 0000000..92827dc --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=20ddae39 +build.xml.script.CRC32=fa48363f +build.xml.stylesheet.CRC32=8064a381@1.79.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=20ddae39 +nbproject/build-impl.xml.script.CRC32=d35cc56a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/project.properties new file mode 100644 index 0000000..f34b32a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String4/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}/String4.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.7 +javac.target=1.7 +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=string4.String4 +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/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/project.xml new file mode 100644 index 0000000..988d7d4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String4/src/string4/String4.java b/PrjJava/OCA7/Chapter5/Strings/String4/src/string4/String4.java new file mode 100644 index 0000000..291a585 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String4/src/string4/String4.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string4; + +/** + * + * @author anda + */ +public class String4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int a = 1_000; + String b = "1_000"; + int c = a + a; + String d = a + b; // int and string = string + System.out.println(c + " " + d); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String5/build.xml b/PrjJava/OCA7/Chapter5/Strings/String5/build.xml new file mode 100644 index 0000000..9a34212 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String5. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String5/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/String5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/build-impl.xml new file mode 100644 index 0000000..565fd90 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/genfiles.properties new file mode 100644 index 0000000..84a9d0d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=28ce221f +build.xml.script.CRC32=64cb4c3b +build.xml.stylesheet.CRC32=8064a381@1.79.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=28ce221f +nbproject/build-impl.xml.script.CRC32=d274d28f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/project.properties new file mode 100644 index 0000000..34619d5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String5/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}/String5.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.7 +javac.target=1.7 +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=string5.String5 +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/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/project.xml new file mode 100644 index 0000000..27195b3 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String5/src/string5/String5.java b/PrjJava/OCA7/Chapter5/Strings/String5/src/string5/String5.java new file mode 100644 index 0000000..889482b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String5/src/string5/String5.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string5; + +/** + * + * @author anda + */ +public class String5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String b = "beekeeper"; + b.substring(1,7); + b = "w" + b; + //b. + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/build.xml b/PrjJava/OCA7/Chapter5/Strings/String6/build.xml new file mode 100644 index 0000000..2d3e4d5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String6. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/String6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/String6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/build/classes/string6/String6.class b/PrjJava/OCA7/Chapter5/Strings/String6/build/classes/string6/String6.class new file mode 100644 index 0000000000000000000000000000000000000000..e46157c37f6cb884dd6de9bae7703f984af42874 GIT binary patch literal 887 zcmZ`%*>2NN5Ir|Z?JS07X#$kJEOlCFD21}5w3MKtND)N}^Xm+&3% zU?d*+06q$Ft`jMgfFJJ6oLSDycz*u+{sX`k8d)sjY8uxvxQ>-HZe(#2x3aj6Ri&9} zRFzy)&$@!|DDAG&Hgwc<+!N4tY|jpN1(Ig9BamwNN0z{1%l53-W4CJsZ)MjZQf&D> z>2zdZD|-s2!ht;!D6~dlV0-=TT6-evEaXbt6R4Q)TgURFtU1!_Pu=yHNCthTmj2-u z5GRUoE>9ra_QyfbI$sNVyr|SvmLsi}3j#Fkc-Y5m5HOKP$;UNB@ zG;^WOHQRBM$9J<(-aNxUR} MiOmUIrk%i*-_ZZHU;qFB literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/String6/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String6/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/build-impl.xml new file mode 100644 index 0000000..60e5c90 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/genfiles.properties new file mode 100644 index 0000000..951906b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=30fab675 +build.xml.script.CRC32=1c3fc476 +build.xml.stylesheet.CRC32=8064a381@1.79.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=30fab675 +nbproject/build-impl.xml.script.CRC32=d10ceaa0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/project.properties new file mode 100644 index 0000000..9ee121f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String6/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}/String6.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.7 +javac.target=1.7 +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=string6.String6 +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/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/project.xml new file mode 100644 index 0000000..8584b03 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String6/src/string6/String6.java b/PrjJava/OCA7/Chapter5/Strings/String6/src/string6/String6.java new file mode 100644 index 0000000..cd4a6d4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String6/src/string6/String6.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string6; + +/** + * + * @author anda + */ +public class String6 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String x = "mama"; + + System.out.println(x.lastIndexOf("m")); + System.out.println(x.lastIndexOf(6)); + System.out.println(x.lastIndexOf("a")); + System.out.println(x.length()); + System.out.println(x.toUpperCase()); + System.out.println(x.charAt(-1)); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/String8/build.xml b/PrjJava/OCA7/Chapter5/Strings/String8/build.xml new file mode 100644 index 0000000..acc525f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project String8. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String8/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/String8/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String8/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/String8/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/String8/build/classes/string8/String8.class b/PrjJava/OCA7/Chapter5/Strings/String8/build/classes/string8/String8.class new file mode 100644 index 0000000000000000000000000000000000000000..6802e9694c9751c5e43b8f497bcd64f9df6e03a0 GIT binary patch literal 1293 zcma)5+fvg|6kVqYNeDqopx^~H-Z14>X}zH3qM&#ymzgrmfKO@3lwg~bG{wQu-_d7% zD2~kd0e+OYPtu2$GHBb`yJzpU)>(U}{r%_XF8~>=s2ISQf^iuWDg;b+V+tu5_f$x{ zKFxEQhYSz*RXo5$1&)MzO=QxW=67~bqh2~n8HV0`U=`o5Sk=&xjBB(O8S}Ic1~u>1{i40> zaQ|A<+7y@6Fo*<=Y!!+O@za;^?t+Y`8lGX1Vfb`^vF?<2Y@fEoZ5nfP2IaJ|U}#vv za~@u3SjJ28q2U!4+JPAY(%d1{-mhEb8mIHBhSzvQPWgRP2ew~xJXgb8x%`Fje#N1Av(^dkHywY?GgJvg?1mr3os7ya6DcabnsiFmBliLhEB|BL6y{hd8 zhYX|tM(CJ^rUonsiBq$EiDMgu4?ixD+`xdr`DN12c!$tb8MF3pFWjb}^3Pz|x zWVQy8-oR%)meXS^#}Kyk*b&6l@8~*)v~>hoR~qOZpZEe<{0dQMKy9F>0j&km%Mp|3 zAufc72Krj*di)3aNr{^lz)jzTLUDjjgET+_ajK?igblL3Pv$?7bw1EoWExj-E#!X0 zbr>{~gb%bQgEkaLh13jEx1%D64#PV_-c#;A + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/genfiles.properties new file mode 100644 index 0000000..166a8cb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=400fff91 +build.xml.script.CRC32=c2eb114a +build.xml.stylesheet.CRC32=8064a381@1.79.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=400fff91 +nbproject/build-impl.xml.script.CRC32=debc25d6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/project.properties new file mode 100644 index 0000000..a0e4986 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String8/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}/String8.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.7 +javac.target=1.7 +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=string8.String8 +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/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/project.xml new file mode 100644 index 0000000..a5723cb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + String8 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/String8/src/string8/String8.java b/PrjJava/OCA7/Chapter5/Strings/String8/src/string8/String8.java new file mode 100644 index 0000000..9fa632f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/String8/src/string8/String8.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package string8; + +/** + * + * @author andad + */ +public class String8 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String str1 = "abc"; + String str2 = "abc"; + String str3 = new String("abc"); + + System.out.println("str1 == str2 ? " + (str1 == str2)); + System.out.println("str1 == str3 ? " + (str1 == str3)); + System.out.println("str1 equals str3 ? " + (str1.equals(str3))); + System.out.println(System.getProperty("java.version")); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringAddObject/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/build.xml new file mode 100644 index 0000000..b13e20c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringAddObject. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringAddObject/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringAddObject/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringAddObject/build/classes/stringaddobject/StringAddObject.class b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/build/classes/stringaddobject/StringAddObject.class new file mode 100644 index 0000000000000000000000000000000000000000..4ea9ff97e5ba250b29aaa5663e008dffed7ce2a8 GIT binary patch literal 924 zcmaJ<+iuf95Ivi?aS{wINt2cW4dLpfO--O&q#z_f;>i@Gph$?PO}q+QId)`kkoXUN z1RhceBtC$TLd@C)*A&$c5)N6$ZAoxuMNX zZEjU@8+T0DCOQnICo+)gDMQijj2Mg;p(hwtT^Wdj#cV91w|wjqQgg!z_eVUE+CK&j z^+CoAZ8uht45r-k!ttS)C})`X&phvS;tz;;#$~|JwBNgj{3CaK9!!tZ21#QcO^K@h zpD+UpwScVdFKZ$0=Obxj>c@zzIt&-lM7)%Gfc1Yg?P)p-7S5A6C1PcwYheew3>#Ue zwCMRl`ksg^^suLmW8p6PChl3Z^L>U^eD?edYZ+xKJ_ijy#Y)WR4#I_EXrz&ZBIg$(9g>-FiH z8z&Y1={Q0g`hDuJ0H#+@_5yhh{TcmNx<_DNlJF|oQUY37qqCJJ;38_|RZzz|A-ec8 ziu9_1$INA~YK4QZD1L|W?g%S8OO$#`m`jwGsATvqVHuwF+oFyj<^pjWXuw1hEo|Ts mHWLlqv=2p^lvlt*ifxh#1N*pyEkaE6ahXm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/genfiles.properties new file mode 100644 index 0000000..d6205d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=308c3643 +build.xml.script.CRC32=fee70d9a +build.xml.stylesheet.CRC32=8064a381@1.79.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=308c3643 +nbproject/build-impl.xml.script.CRC32=40800185 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/project.properties new file mode 100644 index 0000000..2873320 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/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}/StringAddObject.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.7 +javac.target=1.7 +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=stringaddobject.StringAddObject +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/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/project.xml new file mode 100644 index 0000000..51d2b32 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringAddObject + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringAddObject/src/stringaddobject/StringAddObject.java b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/src/stringaddobject/StringAddObject.java new file mode 100644 index 0000000..0ae6be6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringAddObject/src/stringaddobject/StringAddObject.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringaddobject; + +/** + * + * @author andad + */ +public class StringAddObject { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Object o = null; + String s1= null; + String s = "test"; + System.out.println(o + s); + System.out.println(s1+s); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build.xml new file mode 100644 index 0000000..e743ac9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringBuilder1. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build/classes/stringbuilder1/StringBuilder1.class b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/build/classes/stringbuilder1/StringBuilder1.class new file mode 100644 index 0000000000000000000000000000000000000000..c35771a0476a98b30c79480f79bd416b3d18711f GIT binary patch literal 767 zcmaJ<+fLg+5IvKGI5Fl@n*>rWDNrDgLR9ex>H|o9vH&Rvg!;5jR$-B2M~;KUXTbwV zt<(?bM^&A5EQJtMKkRtUoH=v$^5^f*-vADAV8X;l1Iq=hn8;wYfU=HjMO5+0#5y(% zY#R7X$RDdf#oq|o+U^x0cN(@OVa`>7JR5X98C?p`XT)~Hmhi7cq;#Hwx%gJ~301cr zM=I!e1Le16^tI7U(vvhjV%e@x0ij&`;ogaR(eOpkNm)n9SP^wt$a$wsAg)v<`cick zH=E%gYRT_P`*g-1}^kE6)1M}HZRJ~>`zIBReuj#GOtpvR;<%WFOXEzI%1 zrZNHZ_`tCU8xAA7`36~*11i6exv{e^$hmcU>KXa#Cm8i-6h?wJa!hpC!vf2cu!O}# WygU?Ow8V9ju`*Y*rzOrasQd$vFR%3g literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/build-impl.xml new file mode 100644 index 0000000..2a61329 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/genfiles.properties new file mode 100644 index 0000000..e64b91e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e50d9e52 +build.xml.script.CRC32=20692988 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e50d9e52 +nbproject/build-impl.xml.script.CRC32=21eba863 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/project.properties new file mode 100644 index 0000000..318d7b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/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}/StringBuilder1.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.7 +javac.target=1.7 +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=stringbuilder1.StringBuilder1 +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/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/project.xml new file mode 100644 index 0000000..c5ef948 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringBuilder1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/src/stringbuilder1/StringBuilder1.java b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/src/stringbuilder1/StringBuilder1.java new file mode 100644 index 0000000..5efdf49 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder1/src/stringbuilder1/StringBuilder1.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringbuilder1; + +/** + * + * @author anda + */ +public class StringBuilder1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + StringBuilder s = new StringBuilder("abcd"); + s.append("s"); + System.out.println(s); + // object is modified. spre deosebire de String unde obiectul se pierde + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build.xml new file mode 100644 index 0000000..2ea33aa --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringBuilder5. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build/classes/stringbuilder5/StringBuilder5.class b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/build/classes/stringbuilder5/StringBuilder5.class new file mode 100644 index 0000000000000000000000000000000000000000..741d951a8a6470f3580213107ad6285112c776b7 GIT binary patch literal 1331 zcmaJ=-A)rx5dKbocH3qJY=MG;p!id0m&%_~3W$K!Vksah zil3%Anc*biTmAF*m#}j1@$~hlpLwpD4PcJ*dz{?oWS)~$5DQ3$u!toQ%OV~y2#dO@ zJIf5-*!Vt!Z_O%d4Ba{1)bh2ms@Z#rYLF(JvknzwU$J#AHvShC21&Tsp*xjmsRW%C5m(~GcdA*+v6BKRh40| z&C;w(WxZ8(isIkVpCR`m7uFd$5!L+Gvd-Sgomz0z51`-X2Jcpj0ZFS!9qqgo0tT8V~YnTyTq7n#qF??ctm z$^^)&@p(5;=vH!@mffM*YD$@wEKCfF$t$wE5=&y$nQ& z4v>^2&WQUbPQX6b&4WaRx>CXwI!g@)T*VMcK@8&>X?XB&dgLPUw_#828@w;$C-7}1 z;-U+`3qc6D5DQ#?ffCETKumvW|Xo2ZX6&mx9#_{npE;yj4|1E0}2>i_@% literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/build-impl.xml new file mode 100644 index 0000000..5f17c72 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/genfiles.properties new file mode 100644 index 0000000..615839d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c543aeca +build.xml.script.CRC32=8fb34cad +build.xml.stylesheet.CRC32=8064a381@1.79.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=c543aeca +nbproject/build-impl.xml.script.CRC32=d3a01614 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/project.properties new file mode 100644 index 0000000..520a3d7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/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}/StringBuilder5.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.7 +javac.target=1.7 +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=stringbuilder5.StringBuilder5 +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/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/project.xml new file mode 100644 index 0000000..345738a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringBuilder5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/src/stringbuilder5/StringBuilder5.java b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/src/stringbuilder5/StringBuilder5.java new file mode 100644 index 0000000..593f511 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilder5/src/stringbuilder5/StringBuilder5.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringbuilder5; + +/** + * + * @author andad + */ +public class StringBuilder5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + + String s = "blooper"; + StringBuilder sb = new StringBuilder(s); + sb.append(s.substring(4)).delete(3, 5); + StringBuilder sb1 = new StringBuilder(); + float f = 123.99f; + double d1= 125.9999; + sb1.append(3); + sb1.append("null"); + sb1.insert(sb1.length(),s); + sb1.append(f); + sb1.append(d1); + System.out.println(sb1); + System.out.println(sb); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build.xml new file mode 100644 index 0000000..c122aba --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringBuilderDelete. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build/classes/stringbuilderdelete/StringBuilderDelete.class b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/build/classes/stringbuilderdelete/StringBuilderDelete.class new file mode 100644 index 0000000000000000000000000000000000000000..4961d70f5ff8b8bb1bc0d14d5e63ce4f326c58f7 GIT binary patch literal 1179 zcma)5+iuf96r4>=oCNnm(v;p(Xba@lHbA+z6bTSgr2v(RiV#muvT|KHb`(2Ed=>~& z2_!y%k3!7aE=ij{@Uoh7ygO&koa5hre*6Nkg=bkzU`@x3ED~7Dz`#v~ZlzJmpp1$N zs#(;quF!@$Hg(i>+!jdqO@aBwvH8iYJEm*Z4}zZUTF?8o)0Vw$fz*!e+QF_svRpY7 z&|Y|LDKOQrUHPWpY0BO^v*|FCYj`cwIW&8=isPgf9NE4=rQwIH&4{%v9T~{8m0pH9 zRnPIP*S;lCDvzn!9?vLEX@{i)+jEtQ^PP}V??~S_EsE6J{Z6;xkzMPUHt)}tKaRf$ z`!stNmFF+`ERa3$`n{HXWvj;L&NvqJv8hxTn8p=>tLGKP-Wr(1lz}_ADY#F$R z`vxB1p^ire9^;9DZR{9$3ff=#PYVU6hXvm@k7X;Msb;q;-L}BS1*TTU92ic2gzMn5 zAIJ{(!0VH-5IwTJ`abt1pa;_I(Cc*IMScj(l*gHQBOl5;`;e3ADjJ6)DO@CxQ%*V3 zwSuE?5%(BITO?2{@9m8jI&A?f{2eCvn{d^Y;Y1oSC&M$xXctK$V7ht&QT>U;hZ7{f zL;J#90(qY5e*sxEzL^P8cpnAKGU9+S7js#>nPje5{RXWzz@_&J~h>vEo_l(4rQl8DXSw71+G!F@?wQ&0;_)kfyMyB literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/build-impl.xml new file mode 100644 index 0000000..9832c0a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/genfiles.properties new file mode 100644 index 0000000..05e82be --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0c4c0497 +build.xml.script.CRC32=13392553 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0c4c0497 +nbproject/build-impl.xml.script.CRC32=c63a7d1c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/project.properties new file mode 100644 index 0000000..cd494a3 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/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}/StringBuilderDelete.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.7 +javac.target=1.7 +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=stringbuilderdelete.StringBuilderDelete +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/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/project.xml new file mode 100644 index 0000000..0682066 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringBuilderDelete + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/src/stringbuilderdelete/StringBuilderDelete.java b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/src/stringbuilderdelete/StringBuilderDelete.java new file mode 100644 index 0000000..804b9f8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringBuilderDelete/src/stringbuilderdelete/StringBuilderDelete.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringbuilderdelete; + +/** + * + * @author andad + */ +public class StringBuilderDelete { + + /** + * @param args the command line arguments + */ + private StringBuilder sb = new StringBuilder(); + + public void logMsg(String location, String message) { + sb.append(location); + sb.append("-"); + sb.append(message); + } + + public void dumpLog() { + System.out.println(sb.toString()); + sb.delete(0, sb.length()); + + } +//Empty the contents of sb here     } + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringEquals/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringEquals/build.xml new file mode 100644 index 0000000..a14754f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringEquals/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringEquals. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringEquals/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringEquals/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringEquals/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringEquals/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringEquals/build/classes/stringequals/StringEquals.class b/PrjJava/OCA7/Chapter5/Strings/StringEquals/build/classes/stringequals/StringEquals.class new file mode 100644 index 0000000000000000000000000000000000000000..d1066ee7d3fead15e2ed7524eb7cdcfbb4f14688 GIT binary patch literal 918 zcmZ`%+iuf95Iq~aaS|NbCT&9+XnNt|v~f~yl~52B3KWpif)o@9c-pvD;*v{A93(!4 zAAo0gXeE&N06vL_!dW}2dZCszJ2QLsoSE7Eee~lOfP2_TAc1@giw2ew(6Fq`iZa*Z zxPhAq+=6AGU|>}s`q1ln{v!d+Dl`Q2YJb-in5=m{cW2aXx`WrU*pQa3kONP} zs@V6ew5{o?6t<2ijs^tZ2?gw zP!3vTOaBK)fK)Y{Bj83;AX)dN^L|_I2Xz_92qfzL(ZF%HJXQSk$&yNn#Ka|-O0wzf z3QV2lRoiPOim*+TP&Tk`;x_IWxNCC2_XV;Sc6^HMWpmGUe1Tc(eCew9XgIPnfbdkM z@Rk6lEeDUupj$5roYBcjKMj4i%ZuxeltL)r^~3mE$f)Zw-0 zR<+Q;65@O_>We_A(a$6m3`zN$F#Y5;jMf(5~pD|ywzreJ$13tj7ShV%f$%N^NFpAqz<$Q;cJ3vgyYf$nf zRtU^6nx*_4y(`FK9?Mw38dk8*SN;G6Z1MuPU + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set platform.home + Must set platform.bootcp + Must set platform.java + Must set platform.javac + + The J2SE Platform is not correctly set up. + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. + Either open the project in the IDE and setup the Platform with the same name or add it manually. + For example like this: + ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) + or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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: + + ${platform.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/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/genfiles.properties new file mode 100644 index 0000000..e0b15db --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c7b42578 +build.xml.script.CRC32=896707cd +build.xml.stylesheet.CRC32=8064a381@1.79.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=c7b42578 +nbproject/build-impl.xml.script.CRC32=a0f4241f +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/private/private.properties new file mode 100644 index 0000000..79325cb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/project.properties new file mode 100644 index 0000000..9748261 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringEquals/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}/StringEquals.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=stringequals.StringEquals +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=JDK_1.8 +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/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/project.xml new file mode 100644 index 0000000..4f25c27 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringEquals/nbproject/project.xml @@ -0,0 +1,16 @@ + + + org.netbeans.modules.java.j2seproject + + + StringEquals + + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringEquals/src/stringequals/StringEquals.java b/PrjJava/OCA7/Chapter5/Strings/StringEquals/src/stringequals/StringEquals.java new file mode 100644 index 0000000..57055e9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringEquals/src/stringequals/StringEquals.java @@ -0,0 +1,47 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringequals; + +/** + * + * @author andad + */ +public class StringEquals { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + char ch; + String a = "abcd"; + String b = new String(a); + if (a.equals(b)) + { + if (a==b) + { + ch = b.charAt(0); + } + else + { + ch = b.charAt(1); + } + } + else + { + if (a==b) + { + ch = b.charAt(2); + } + else + { + ch = b.charAt(3); + } + } + System.out.println(ch); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringMethods/build.xml new file mode 100644 index 0000000..954e318 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringMethods/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringMethods. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringMethods/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringMethods/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/build/classes/stringmethods/StringMethods.class b/PrjJava/OCA7/Chapter5/Strings/StringMethods/build/classes/stringmethods/StringMethods.class new file mode 100644 index 0000000000000000000000000000000000000000..7d52889da34ff2065c62410a261e84eb6980664b GIT binary patch literal 1343 zcmaJ=T~`uO6x~-oW}qo;3d^vfGQ%+Ot28LfEX%@=qO`D=0d6`jW~K&k)z7L2a`n&; z=ts5Mcc6r&D<00>=bU@@-Dlt7*Y6)c0nFfi9Op2u<5mn4$m*DkV+zx8c4ig2tA0`f1sxA`JXCN|$0Hp}8XjwSA`rc2yLMwiAe0{46bLVQRVmP4 zuwA*cl7YCT&FvekB$C#hrE zuE1b=yRc{NTiKfB?sPWggG()chcsu7X$uH;%%kT7`s!0E+*V;)g&7rQ1>!}o=~v{k z9q8^6GokJ`a2`VfCl}qSm9l)9a-=UcEE{-=XXJ30tQdHX7a9r%RjVZ4{aP>Y$x5TARQytJNQX>blZ`~%B-_hw@G%;kTUrj?@8W2CA)r@0x4}1|waIjs zw@bU0UzDGk(yhq+Scy*(+}}$npnX&q)cB;~bV)s+X1i7SdHsVbtc_ytXRclHmGC|c{NB>C~?Y^k( zcmCLoQTkW0=y}hHzv7Ql;|d1(H&(ws2=)0fUSO8xD!4{&euwxPw3Cd{plD#2*l2IS zMOtXw5e2z6Y;2xpwcGIxy7vIWdz elqf`=EV)MzCd)9=L=keuFh-?;cZ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StringMethods/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringMethods/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/build-impl.xml new file mode 100644 index 0000000..f6ba48c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/genfiles.properties new file mode 100644 index 0000000..7fc20a9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=12e2e6eb +build.xml.script.CRC32=a4a2766f +build.xml.stylesheet.CRC32=8064a381@1.79.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=12e2e6eb +nbproject/build-impl.xml.script.CRC32=d42760e5 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/project.properties new file mode 100644 index 0000000..e9f4ef2 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringMethods/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}/StringMethods.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.7 +javac.target=1.7 +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=stringmethods.StringMethods +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/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/project.xml new file mode 100644 index 0000000..13a1ef9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringMethods/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringMethods + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringMethods/src/stringmethods/StringMethods.java b/PrjJava/OCA7/Chapter5/Strings/StringMethods/src/stringmethods/StringMethods.java new file mode 100644 index 0000000..3312d37 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringMethods/src/stringmethods/StringMethods.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringmethods; + +/** + * + * @author andad + */ +public class StringMethods { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + //String s = 'asdf'; compiler error + String s = "Anda are mere"; + System.out.println(s.contains("me")); + System.out.println(s.indexOf('m')); + System.out.println(s.substring(7)); + //System.out.println(s.charAt('a')); run exception and execution is halted + String s1 = s.replace("Anda","Adrian"); + System.out.println(s1); + String s5= s.valueOf(true); + String s2= s.valueOf("14.10"); + System.out.println(s1); + System.out.println(s2); + String s3="I"; + String s4=s3.concat(" am ").concat("good ").concat("boy"); + System.out.println(s4); + //System.out.println(s.endsWith("e")); + //System.out.println(s.endsWith(null)); // throw NPE + //System.out.println(s.contains(null)); // Throw NPE + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringOperations/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringOperations/build.xml new file mode 100644 index 0000000..b719230 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringOperations/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringOperations. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringOperations/build/classes/stringoperations/StringOperations.class b/PrjJava/OCA7/Chapter5/Strings/StringOperations/build/classes/stringoperations/StringOperations.class new file mode 100644 index 0000000000000000000000000000000000000000..f154e311727c9e816873f354bcf188c3ac0db915 GIT binary patch literal 923 zcmah{U2hUW6g>l!1-c4SK->BOR_)SivGrSOUr3rXA=U)#Lwy>y6PRW{aCb4$f29v= z;)6fHA7#9EmsqMz+=tmSXXc)B=gj>4_5BBc$Ji_35^fZ5vxr-07SJl;Hr7hGgS(9G zF5bn zpOLv}tV4mdei#MX8~GCz$VmHM*cl|m;UA()(yr8=K*M_9Kb0S4$C2J>wy&F5%V0!e zOBXB)7^%ZHH}X%lKxyDl16%EDZngfm`4(50xQwzuO?oG?X)D=uwJn>WZU#ykcwk}+ z9RWf3p^0tm7**E|K0?1_SkBsythD+s71V;(uO} z;+(L7L)VeBjye3iqr6cxPM*O5vj@x?ftondrc4`Fuh*XQN&BGQ>htb1mP;2S|J{VH zzb8W~uUQuqqXm;5E`J#az8)GYH0#h`(0^g$8^o7n`3jBsgfvklY^EEqgc{9?sG~s) z7k@^MjLX14)7)Fc&ql&E9F^VxtDZfbQ%xQ(ZK-yVSFO&8%sjuTI cJ&V=Ey^%T)bB*?8so`a;kUw1p%`>?E8)T}{jQ{`u literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringOperations/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StringOperations/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringOperations/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/build-impl.xml new file mode 100644 index 0000000..5e775ac --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/genfiles.properties new file mode 100644 index 0000000..1ca282e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9d7da29c +build.xml.script.CRC32=66669ddc +build.xml.stylesheet.CRC32=8064a381@1.79.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=9d7da29c +nbproject/build-impl.xml.script.CRC32=05976395 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/private/private.xml new file mode 100644 index 0000000..583b56b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/anda/StringOperations/src/stringoperations/StringOperations.java + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/project.properties new file mode 100644 index 0000000..3692a7c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringOperations/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}/StringOperations.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=stringoperations.StringOperations +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/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/project.xml new file mode 100644 index 0000000..fd565ca --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringOperations/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringOperations + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringOperations/src/stringoperations/StringOperations.java b/PrjJava/OCA7/Chapter5/Strings/StringOperations/src/stringoperations/StringOperations.java new file mode 100644 index 0000000..f3fff3b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringOperations/src/stringoperations/StringOperations.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringoperations; + +/** + * + * @author anda + */ +public class StringOperations { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String string1 ="anda cea mica si rea"; + System.out.println(string1.contains("a")); + System.out.println(string1.length()); + System.out.println(string1.replace('a', 'c')); + System.out.println(string1.toUpperCase()); + + + + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool1/build.xml new file mode 100644 index 0000000..031f6ea --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringPool1. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringPool1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringPool1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/build/classes/stringpool1/StringPool1.class b/PrjJava/OCA7/Chapter5/Strings/StringPool1/build/classes/stringpool1/StringPool1.class new file mode 100644 index 0000000000000000000000000000000000000000..83815432df211eca2a27b40fa2b03a30c6cd4d39 GIT binary patch literal 953 zcmZ`&TT|0O7(JV$-BN=ykklP3bETdE6KPot(MFjVzJZ>!th@!}V1C!oivMhz9zRqX5i ziPK8n`1=Br)%_&)!&WDXf`v*gwYRmsM!>f6LxC~(b#+f2s7j#1)=A1*+EB$ULKOZH zX7Pav$kFL9Wi0X9onFc!kJ0NYFjz}e1oE}08#laXzCO+H8Itpw zmyL@Uq6oX{oq*sN|C{Yb*AJRrEMV+1dl@S>?&ARosIaLd9@=<>Rd%wmhIQ8eM-uk_ zgZzAF&ub*-T&L$Kq*;Dc*`~4yy`F0Gn5xt9!luBS+pkHf&vn9?*N{u1Q{+*%Kam+{ zXw}~DQ(USMbxE$+gFR1$1+t@=1-x9#eO0Ps8a6*b{TL8hPR_&JRk#YSnVBPqPic6B zb2fF_aA@1T1QamJ-2jRhqemD2fQby(iepqAbMq^#mq*Ar*+a-O$02fC&cLem8Tr|{ z50KVJSmq%v=r$&Fn<+K|flWeZ2|PvUs~G1mFp;)i?!nVDk=B$k$s8(;5-!m)IEuK; p*<{@auF$e*0V^<$F@uc6HHquLUkHimW5)Xe1_N4(8w?t_`3sj;#s&ZY literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StringPool1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/build-impl.xml new file mode 100644 index 0000000..b845af4 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/genfiles.properties new file mode 100644 index 0000000..669ab9f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=097c795b +build.xml.script.CRC32=e194b76b +build.xml.stylesheet.CRC32=8064a381@1.79.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=097c795b +nbproject/build-impl.xml.script.CRC32=9fb0a38f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/project.properties new file mode 100644 index 0000000..54981f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool1/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}/StringPool1.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.7 +javac.target=1.7 +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=stringpool1.StringPool1 +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/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/project.xml new file mode 100644 index 0000000..783218d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringPool1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool1/src/stringpool1/StringPool1.java b/PrjJava/OCA7/Chapter5/Strings/StringPool1/src/stringpool1/StringPool1.java new file mode 100644 index 0000000..10e2481 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool1/src/stringpool1/StringPool1.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringpool1; + +/** + * + * @author andad + */ +public class StringPool1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String val1 = "fax"; + String temp = "x"; + String val2 = "f" + "a" + temp; + String String = "anda"; + System.out.println(val1==val2); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool2/build.xml new file mode 100644 index 0000000..ad0836d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringPool2. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringPool2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringPool2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/build/classes/stringpool2/StringPool2.class b/PrjJava/OCA7/Chapter5/Strings/StringPool2/build/classes/stringpool2/StringPool2.class new file mode 100644 index 0000000000000000000000000000000000000000..07af07a27381981f2626db7d24e7f23034caa5ac GIT binary patch literal 802 zcmZ`%%Wl&^6g?9=nZ&pxBqX6NrKRQJqz^+`7O{!MDlL^#WdW;6u+k|`Y&i~yAA%JN zSQLo`AHYXZ&N!85M6s-SoO|v$_g?$g?;k$_Jj1?&BJLHjUc`oj``9dD3lAJT#3PBv z5}rWext{3sg@EO?`T}+*dK(CoyLu8F&BlWuIZ=ab>$qH5pw}4l+ZPj3`mNCd}kC7{|u@pHzW- zU_f$4vt%Z))JxUy-Jy!J(j;mUEs3^((~D-wFnFm=7nLi;?U{TRB{&p2RUe{=)8MYO zX0D5E>`3go*n>|Y7fUKg@ihy(TnicKVu@#WPQXo+c`KoUTSQFq7g(^lZ&Y*Ls&%+i(Us^N_R%-wceg)5 z+Mi)t=O`Fmi#k99d9F3yZquVq#Rk^V%zWB&EmRpd{55jwbShwltU3!X)49o$g*#;U e$X#F+w#2f;%KU|pSiN9y5zP@becojxhqXWM#G%mu literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StringPool2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/build-impl.xml new file mode 100644 index 0000000..206319e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/genfiles.properties new file mode 100644 index 0000000..2dd74a5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1148ed31 +build.xml.script.CRC32=19632c94 +build.xml.stylesheet.CRC32=8064a381@1.79.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=1148ed31 +nbproject/build-impl.xml.script.CRC32=c428d10b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/project.properties new file mode 100644 index 0000000..02473eb --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool2/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}/StringPool2.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.7 +javac.target=1.7 +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=stringpool2.StringPool2 +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/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/project.xml new file mode 100644 index 0000000..cefb6d1 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringPool2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool2/src/stringpool2/StringPool2.java b/PrjJava/OCA7/Chapter5/Strings/StringPool2/src/stringpool2/StringPool2.java new file mode 100644 index 0000000..6ef7fe5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool2/src/stringpool2/StringPool2.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringpool2; + +/** + * + * @author andad + */ +public class StringPool2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String temp = "hawoo"; + String ejava = "hawaii"; + String guru = ejava.replace('i', 'o'); + System.out.println(guru==temp); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool3/build.xml new file mode 100644 index 0000000..52c3449 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringPool3. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringPool3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringPool3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/build/classes/stringpool3/StringPool3.class b/PrjJava/OCA7/Chapter5/Strings/StringPool3/build/classes/stringpool3/StringPool3.class new file mode 100644 index 0000000000000000000000000000000000000000..d307f85f132b7f576e301ee2c6ea839584c8fc1d GIT binary patch literal 807 zcmZ`%QBTuQ6#j18?Xpq?#x_7vQ4u>p3gL0a7Zaa~lFX2ZPj|DKg{~c4OX45WCm-|y z5>5O8{wU$Q9Wk3|Z*%WC-#PdD&N=O`-`{@%*u$=k3hqhVpF-V+fz=8g;GvC2Skvxf ziFJu50_A669A?i2Ot*O`V7*A*2LiKx7zeNNekVxZs7^$r>L*ePb2&%M4iiLlKdAXOTxz@gM zRiLC}y8<)qOm$E8)u5lq~a4^l?q37`wJWCrF5MPV% z4EJ&YI=DsK86{vAbMz{hN0o@a`~@Z#u=4}P+p2j1%l~8Te?w_=>l38)8J2mDa^ast z($qR8v`zyh?h7oa##P4}5f6)n?&^q}(He7XtTW!Aat$lYXt0qb;!PNrV5-Ej#BIJ1 T5_c{c8G{T$y3ZBD2JT(~*w>~C literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StringPool3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/build-impl.xml new file mode 100644 index 0000000..ab12b89 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/genfiles.properties new file mode 100644 index 0000000..ad6df89 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=195b6117 +build.xml.script.CRC32=f81ea7fe +build.xml.stylesheet.CRC32=8064a381@1.79.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=195b6117 +nbproject/build-impl.xml.script.CRC32=f2a0ff77 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/project.properties new file mode 100644 index 0000000..5ed4c4f --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool3/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}/StringPool3.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.7 +javac.target=1.7 +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=stringpool3.StringPool3 +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/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/project.xml new file mode 100644 index 0000000..4ccfdcc --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringPool3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool3/src/stringpool3/StringPool3.java b/PrjJava/OCA7/Chapter5/Strings/StringPool3/src/stringpool3/StringPool3.java new file mode 100644 index 0000000..5d8e5f0 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool3/src/stringpool3/StringPool3.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringpool3; + +/** + * + * @author andad + */ +public class StringPool3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String guru = new String("guru"); + String guru1 = new String("guru"); + System.out.println(guru==guru1); + System.out.println(guru.equals(guru1)); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool4/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool4/build.xml new file mode 100644 index 0000000..c993d98 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringPool4. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/StringPool4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/StringPool4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool4/build/classes/stringpool4/StringPool4.class b/PrjJava/OCA7/Chapter5/Strings/StringPool4/build/classes/stringpool4/StringPool4.class new file mode 100644 index 0000000000000000000000000000000000000000..c935d821e6d7a945938421fe9793d41eb07d1f9b GIT binary patch literal 832 zcmZ`%%Wl(95Ir|`e3R6r#ZA(*yjq@4QxYC!6@-K;u|VlV3hJV)Zh{qDoH#f(5 z1dAZC-~;$5%DHx=CITGm-kCEq=gf@r>-UeJ03PE>2}N8l;6@Q!*e>BFZk2EwcM7W}>RnSkNePXx^U@Qo+1((y;$VKVG_(JR#ph&Y|FuYwa5`P!d>X8hKl z2yApFapaE%<1h^NTHVw>)^?kOL*Px~F=<7F{o*Uv}$rC0So> zY@@(Gihgq7&alMOrq|*vc;|P%Lwrrc%RH?Vv~h{Hoh4uetMrPv42Os={sMzPpy}i~ zPVV3vjK=O1<`j9Fv&*rjkdE~U() + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/genfiles.properties new file mode 100644 index 0000000..d673fb6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2121c5e5 +build.xml.script.CRC32=33fd1d2b +build.xml.stylesheet.CRC32=8064a381@1.79.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=2121c5e5 +nbproject/build-impl.xml.script.CRC32=73183403 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/project.properties new file mode 100644 index 0000000..397c54d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool4/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}/StringPool4.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.7 +javac.target=1.7 +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=stringpool4.StringPool4 +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/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/project.xml new file mode 100644 index 0000000..65d9018 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringPool4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringPool4/src/stringpool4/StringPool4.java b/PrjJava/OCA7/Chapter5/Strings/StringPool4/src/stringpool4/StringPool4.java new file mode 100644 index 0000000..fb8c517 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringPool4/src/stringpool4/StringPool4.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringpool4; + +/** + * + * @author andad + */ +public class StringPool4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String eJava = "OCA"; + String guru = "OCA"; + System.out.println(eJava.equals(guru)); + System.out.println(("a" + "b" + "c") == "abc"); + System.out.println(("a" + "b" + "c").intern() == "abc"); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProc2/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringProc2/build.xml new file mode 100644 index 0000000..71f4534 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProc2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringProc2. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProc2/build/classes/stringproc2/StringProc2.class b/PrjJava/OCA7/Chapter5/Strings/StringProc2/build/classes/stringproc2/StringProc2.class new file mode 100644 index 0000000000000000000000000000000000000000..496e6246809cf174ed1cd7ada997722cca4afdeb GIT binary patch literal 917 zcmZ`%+iuf95Ivil9b?*DnzZF!px^|kY0BM!K14#QWYJ1NfrzJ#yG>mscI7w~h|l0l z;DJ^k_y9f%F>6POBNac)?wma{bM~zN{QdD8z!qL=$lz)o*Kl3M4Fzi&ZsL}P+gMj| zN5fqhDrz#XtGK7&zKRDLbZjUv8FEe6bHi5*X`|L*$h7=@!LVq%o_I4J_C)ZO_XdQN zY~SI74i8+JPryug=#Cgx?NJ!GUjI1oorc+t_Iq+~QNtm3J%+0B!9LfE~&c^I`q3DZ%K{?@rvDiJ3UhUKpW=$AWR*uT%yU`0C_`#6Vw5E}$ zip{c;w#J57liu@frro3WX&v%_JE4@dVziQCrYBU8JC>Is!Ig6c*E(3kBK?{2OMy&6 zkz$E5lU7D+wtfosH99U+%tfG%CEDvT0Tom!%VQZUgvjDAP@}W%H>67G%r9iR>B8qT zWZU17dnZ9<0)9M$ItBCdOf6zwh{2!GyQPb#Scup&K~-dFV3|ZLp-yp|#JtC9LSUD& NOT=NgOfiKk{{W>0&mjN+ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProc2/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/StringProc2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProc2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/build-impl.xml new file mode 100644 index 0000000..ad89cab --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/genfiles.properties new file mode 100644 index 0000000..14b1684 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ce1d110d +build.xml.script.CRC32=eccd578f +build.xml.stylesheet.CRC32=8064a381@1.79.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=ce1d110d +nbproject/build-impl.xml.script.CRC32=135032c9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/project.properties new file mode 100644 index 0000000..caa8a4b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProc2/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}/StringProc2.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.7 +javac.target=1.7 +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=stringproc2.StringProc2 +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/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/project.xml new file mode 100644 index 0000000..a9aa408 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProc2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringProc2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProc2/src/stringproc2/StringProc2.java b/PrjJava/OCA7/Chapter5/Strings/StringProc2/src/stringproc2/StringProc2.java new file mode 100644 index 0000000..cfa900b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProc2/src/stringproc2/StringProc2.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringproc2; + +/** + * + * @author anda + */ +public class StringProc2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.format("%b", 123); + System.out.format("%c", 'x'); + System.out.printf("%d", 123); + System.out.format("%s", new Long("123")); + + + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProces1/build.xml b/PrjJava/OCA7/Chapter5/Strings/StringProces1/build.xml new file mode 100644 index 0000000..e8b9bf5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProces1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StringProces1. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProces1/build/classes/stringproces1/StringProces1.class b/PrjJava/OCA7/Chapter5/Strings/StringProces1/build/classes/stringproces1/StringProces1.class new file mode 100644 index 0000000000000000000000000000000000000000..c5b74506ec04a026d6cc326bf191a042ff034564 GIT binary patch literal 860 zcmaJ=?M~BB7=F$+R#wXx0|pL(qM{v)O*T*zV`5B9mQ*B}!KlB^YBP#kw{)G+8}J^u z0)FccNHp;Ryb6DM5k`DYw?v49HaX}0e4h8C{qg7PcK}s9&|zRf!{R7R9WgAa5DX0^DnSv0pQrmYf+2G&qAP)13^9RusA7@YWqhD`%^ zanHaO?hDLaG6jLmzt*2O4qPWBqjm8-w0+szaX&DEOL@(vhI-AX=?qT&V=r{ujOz3i z+5pV!ly|v|kiEOI%_(U@T>Z+s`*Oaho(Na{Jz?4<^zep_M3coh> z#K1iu&2yYunYZ9QvT_3PIdW%sCL?1S6O@fX0J4~*mckUKX;I0a5GNc^`i9u6Z2SZX zd-WJ2hgjs5JVfRTG)kk#NFAO2qNKk(I{m3w;!rGk@_=YMa%7spEZ=2X*RT*V=LYEX d&M;2rPce(D + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/genfiles.properties new file mode 100644 index 0000000..dbb9c59 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5f7e24c6 +build.xml.script.CRC32=a1cf3d6b +build.xml.stylesheet.CRC32=8064a381@1.79.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=5f7e24c6 +nbproject/build-impl.xml.script.CRC32=64b81a53 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/project.properties new file mode 100644 index 0000000..9e60261 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProces1/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}/StringProces1.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.7 +javac.target=1.7 +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=stringproces1.StringProces1 +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/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/project.xml new file mode 100644 index 0000000..6263d39 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProces1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StringProces1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/StringProces1/src/stringproces1/StringProces1.java b/PrjJava/OCA7/Chapter5/Strings/StringProces1/src/stringproces1/StringProces1.java new file mode 100644 index 0000000..1f7a460 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/StringProces1/src/stringproces1/StringProces1.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringproces1; + +import java.util.Scanner; + +/** + * + * @author anda + */ +public class StringProces1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Scanner sc = new Scanner("123 A 3b c 3,45, 82 L"); + while (sc.hasNext()) { + if (sc.hasNextInt()) + System.out.println(sc.nextInt()); + else + sc.next(); + + } + + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/Stringliteral/build.xml b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/build.xml new file mode 100644 index 0000000..d351af2 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Stringliteral. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/Stringliteral/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/Stringliteral/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/Stringliteral/build/classes/stringliteral/Stringliteral.class b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/build/classes/stringliteral/Stringliteral.class new file mode 100644 index 0000000000000000000000000000000000000000..4fe988656591db7338fbc629a403db881d02c94a GIT binary patch literal 801 zcmaJ<%Wl&^6g}glb{;M%NfT&8O9BOwCe##`L2Qs%xqy_a3s_CkQE>62*bWl^zz^^P z>|s$P7JLBz1mcWc1XdB2H8c0zbI(1#p6@@uegp6T`!!T?t%9v8wsF0JUJZTRsNp7d zD!66gwuL(a=0h*^(nkWN!SG0+{5U#R0u9#-)zf7#Q}Lmk`9zv-G?)I7j6EHngXQ#< zmk4aRNg8|M!uL`YOW&FP9Ze`2NG}xV3|_h?@~w1y87|IAldP$X7nEuJBQ0Pg`?~vu zLY=uUusTiU{Plr6%`90M2-K$0GM=j^Ugo=CW>3r5sG&|;s**I%S{T~c#Yn(XZ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/genfiles.properties new file mode 100644 index 0000000..dc5758d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=14be69ae +build.xml.script.CRC32=5460320d +build.xml.stylesheet.CRC32=8064a381@1.79.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=14be69ae +nbproject/build-impl.xml.script.CRC32=af3f912c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/project.properties new file mode 100644 index 0000000..8161fb5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/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}/Stringliteral.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.7 +javac.target=1.7 +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=stringliteral.Stringliteral +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/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/project.xml new file mode 100644 index 0000000..2231d4e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Stringliteral + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/Stringliteral/src/stringliteral/Stringliteral.java b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/src/stringliteral/Stringliteral.java new file mode 100644 index 0000000..0f62a4c --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/Stringliteral/src/stringliteral/Stringliteral.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stringliteral; + +/** + * + * @author andad + */ +public class Stringliteral { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s1 = "testString"; + String s2 = "testString"; + if (s1 == s2) { + System.out.println("equals!"); + } + if (s1.equals(s2)) + System.out.println("metoda equals"); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/build.xml b/PrjJava/OCA7/Chapter5/Strings/SubList1/build.xml new file mode 100644 index 0000000..99bdb76 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/SubList1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SubList1. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/SubList1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/SubList1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/build/classes/sublist1/SubList1.class b/PrjJava/OCA7/Chapter5/Strings/SubList1/build/classes/sublist1/SubList1.class new file mode 100644 index 0000000000000000000000000000000000000000..f43a6b2fa0854a00daca0c21bf01cddea7ab63f2 GIT binary patch literal 933 zcmZ`%Yj4s}7=BI*w6Km12I!afG7j(oPmCc5}FeJqenG+YFfl+qJ_(2C?4gGo(7+&|+B8ZP$7cjZMpcZI}*Oin=#2 zoW9}PT%Q?J;RiclSkr^ZbnGB(YQ4zRxzMIkW5aeCD)smJiSfzM9K#)Hz0kMaQ9Fh* z{1H!H;ARklCc|oy7=^Z@@v2l*2=*CrJumVH)-#(ow)_`zkE1A9MS+UOh;ibv?;EE) zn}Hb;nhN&OBH5&Wz?C}+?&2O#yszK^9!hwmpp63wj};u^h@o(f9`!co^wK=B22?&j z2TkxqV>o0e*U#`zV%v>(d@$Vw4%&f4a7lquz1wY^AHw>qV$84OIS#?wo*Pd!Lzu^o z!|>lAf!3Un4p)97Y&r*|e`Ut;$fotfB}M~P%52|yVY(z3XKi)7)+pOJ=0cjpI$w-boE zT1-um7Vt(bW@bXFC`}=Y;2~;?+*uJ5f+_)S p6J!hP^cJdkijBCfS^`bhD#gp>+rTAitVQfDlf-#mA&-Eoe*ins##aCU literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/SubList1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/SubList1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/build-impl.xml new file mode 100644 index 0000000..2dc1f7d --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/genfiles.properties new file mode 100644 index 0000000..8d392b6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1d5e4be9 +build.xml.script.CRC32=404716a9 +build.xml.stylesheet.CRC32=8064a381@1.79.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=1d5e4be9 +nbproject/build-impl.xml.script.CRC32=cb493831 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/project.properties new file mode 100644 index 0000000..b8e87f8 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/SubList1/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}/SubList1.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.7 +javac.target=1.7 +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=sublist1.SubList1 +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/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/project.xml new file mode 100644 index 0000000..82faeae --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/SubList1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SubList1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/SubList1/src/sublist1/SubList1.java b/PrjJava/OCA7/Chapter5/Strings/SubList1/src/sublist1/SubList1.java new file mode 100644 index 0000000..cc2bf2a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/SubList1/src/sublist1/SubList1.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package sublist1; + +/** + * + * @author andad + */ +import java.util.*; + +public class SubList1 { + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + List s1 = new ArrayList(); + s1.add("a"); + s1.add("b"); + s1.add(1, "c"); + List s2 = new ArrayList(s1.subList(1, 1)); + s1.addAll(s2); + System.out.println(s1); + } +} diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/build.xml b/PrjJava/OCA7/Chapter5/Strings/ToString1/build.xml new file mode 100644 index 0000000..a11edfa --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ToString1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ToString1. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/tostring1/Super.class b/PrjJava/OCA7/Chapter5/Strings/ToString1/build/classes/tostring1/Super.class new file mode 100644 index 0000000000000000000000000000000000000000..785a0cc27e9e46b3fd8b7461a7ecd74d8c724991 GIT binary patch literal 364 zcmZ8c%}T>S5dJ2KO^h{dV;{g{D`+Tst9TJS1wEwnzKKiS60?$Sd@el+9(({FN}OGb z6&H5CneS)V{rr0W0C0|Ri~z$3qY!C`BSP;|HOgEO{K<4l2(I~qacLbWsGE*lQ+<- rlOwKH2Kv}{)fo`ufG1-1kgE-!GFr_~y%z=#yJ+$!>i~q^lAqGaKqjYR5OSu`jfW!ai$s|?PgeA~ znh{!E9nW;4qVb#HH0~|DV?s^m0b#@MbT7m=5riTd2a6W&s7!>42%G-byVZ=2NX87% zTv8@Dy*N#V@}n~R>i>Wb4UUWZs1v;ZG2f>u9LdDR23js&!za*@g^r6|>@m=ii&)rq zaezZs<+j>Or!ryn#B?g75#hjJa)CRk9Gx$|Rv`9$rsaemAWpT>GOMUK_`-r}R!WKq zA80N~6RfFe3R%Kdk-+D{g&gYRPM_c0=AU3z8DunJyUJ0(JMq4+HLW1~ky*h@TKGw&w6V?ly>(V64kEh+PTfi|<>Dom>50UmOm@F>H3{1;fgqFn$0 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/ToString1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ToString1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/build-impl.xml new file mode 100644 index 0000000..fc9d403 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/genfiles.properties new file mode 100644 index 0000000..2cb1bfa --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5915482a +build.xml.script.CRC32=15481c36 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5915482a +nbproject/build-impl.xml.script.CRC32=05bcf3de +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/project.properties new file mode 100644 index 0000000..c0f5edd --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ToString1/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}/ToString1.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.7 +javac.target=1.7 +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=tostring1.ToString1 +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/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/project.xml new file mode 100644 index 0000000..ab7e25b --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ToString1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ToString1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/ToString1/src/tostring1/ToString1.java b/PrjJava/OCA7/Chapter5/Strings/ToString1/src/tostring1/ToString1.java new file mode 100644 index 0000000..e78d932 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/ToString1/src/tostring1/ToString1.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package tostring1; + +/** + * + * @author andad + */ +class Super{ + public String toString() + {return "4";} +} + +public class ToString1 extends Super{ + + /** + * @param args the command line arguments + */ + public String toString(){ + return super.toString()+"3"; + } + + public static void main(String[] args) { + // TODO code application logic here + System.out.println( new ToString1() ); + } + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/toString2/build.xml b/PrjJava/OCA7/Chapter5/Strings/toString2/build.xml new file mode 100644 index 0000000..9d7ad05 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ToString2. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/toString2/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/toString2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/build-impl.xml new file mode 100644 index 0000000..502e0ff --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/genfiles.properties new file mode 100644 index 0000000..4230b17 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4121dc40 +build.xml.script.CRC32=ae76eda2 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4121dc40 +nbproject/build-impl.xml.script.CRC32=2ca57b84 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/project.properties new file mode 100644 index 0000000..5771374 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString2/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}/ToString2.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.7 +javac.target=1.7 +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=tostring2.ToString2 +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/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/project.xml new file mode 100644 index 0000000..9630998 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ToString2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/toString2/src/tostring2/ToString2.java b/PrjJava/OCA7/Chapter5/Strings/toString2/src/tostring2/ToString2.java new file mode 100644 index 0000000..4026ac9 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString2/src/tostring2/ToString2.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package tostring2; + +/** + * + * @author andad + */ +public class ToString2 { + + /** + * @param args the command line arguments + */ + static int si = 10; + public static void main(String[] args) { + // TODO code application logic here + ToString2 ts = new ToString2(); + } + + + public ToString2(){ + System.out.println(this);} + public String toString(){ + return "TestClass.si = "+this.si;} + + +} diff --git a/PrjJava/OCA7/Chapter5/Strings/toString3/build.xml b/PrjJava/OCA7/Chapter5/Strings/toString3/build.xml new file mode 100644 index 0000000..9d112df --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ToString3. + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/toString3/manifest.mf b/PrjJava/OCA7/Chapter5/Strings/toString3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/build-impl.xml new file mode 100644 index 0000000..65a69a6 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/genfiles.properties new file mode 100644 index 0000000..b1ab06e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=49325066 +build.xml.script.CRC32=71b3bf11 +build.xml.stylesheet.CRC32=8064a381@1.79.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=49325066 +nbproject/build-impl.xml.script.CRC32=345203b2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/project.properties b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/project.properties new file mode 100644 index 0000000..466305a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString3/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}/ToString3.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.7 +javac.target=1.7 +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=tostring3.ToString3 +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/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/project.xml b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/project.xml new file mode 100644 index 0000000..c642d5a --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ToString3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter5/Strings/toString3/src/tostring3/ToString3.java b/PrjJava/OCA7/Chapter5/Strings/toString3/src/tostring3/ToString3.java new file mode 100644 index 0000000..d7752c7 --- /dev/null +++ b/PrjJava/OCA7/Chapter5/Strings/toString3/src/tostring3/ToString3.java @@ -0,0 +1,46 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package tostring3; + +/** + * + * @author andad + */ +interface I { +} + +class A implements I { + + public String toString() { + return "in a"; + } +} + +class B extends A { + + public String toString() { + return "in b"; + } +} + +public class ToString3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + B b = new B(); + A a = b; + I i = a; + + System.out.println(i); + System.out.println((B) a); + System.out.println(b); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/build.xml b/PrjJava/OCA7/Chapter6/Chapter6_4/build.xml new file mode 100644 index 0000000..131ac4b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Chapter6_4. + + + diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Chapter6_4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Chapter6_4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/build/classes/chapter6_4/Chapter6_4.class b/PrjJava/OCA7/Chapter6/Chapter6_4/build/classes/chapter6_4/Chapter6_4.class new file mode 100644 index 0000000000000000000000000000000000000000..3a4b3d8b098d8dcb8a1be9329450e6d8955cbff0 GIT binary patch literal 1325 zcmZuwO>Yxd6g|)5@l4Es6FW{YG;R23aDt7CNezud+9c&8t&>3AMrymLUYwCL;CRe< zT$DY3fMvIAkjjdxbx^Bj#R9Qm!;(dR0&F5wgyFn#)Dn`B@4N4wcR$a2e%$$U6TlgK z6Gajk6IlbNdXU2>QJh9T3Jqt}GH&8ir3)s`nmA|RvnVWN)G}eBsPv?X^CqTL+~)?q zFfc6;nRM!oKP8~0N0$V`v+jy55Gy%#d!eF{tx2aYFp&PSbWQ#&b2VA7=E}b3)T>2RPB@e~3Z3G+U6??6 zRaQvs5zi=BAk>rs`^&zpT%VVXpfB=c;J84v?6$m$ebG_<$Nul@lxoGo00x;NE71FX zYX)X4%;HM}7c5-FB@34^XW=V+O}^IcTFt#_p@eyo=GiL(deyUSPB8d>qM4RcTd_S0 z3s_{WbqiOZru8UQ3s-STAh{=ZJGxq2zGhea9Z-3_>Dy~;z-{p$*`>~Lb5}^MPl9c^ zM*0&$LpxysqoJH?Y&e>Djv z<8AFo+iku$`U4$gqhZ%cSaz?vyJ~E+$2m;j?LHcE9W;+4=;yydeIf9DVUX)VS~+S# zt&eR$+z*aZTq6N!;Sl#$*8zv|0j(Yk;X@(}78?lD20HOj$@m-E{BH=4Y56vEZE7g9 zc?Yq~(AZGEd`lB|-@M2yWH$?8t)M6MWcUsqW|Mk;B9e-<5t%ST1v6!|VccUnEK;e8xztehzVLaoNJSVn=<9N+e#q>CIM#t$f%p67hL7$_%3o?vj^iy?S z(U+Vs{}x7wg>Zs+7FGud18D=J;$QT2V5*(y;Cuk4MJ#3=N+e!_Kb_%Y3<}}oTivl4 AmH+?% literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/manifest.mf b/PrjJava/OCA7/Chapter6/Chapter6_4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/build-impl.xml new file mode 100644 index 0000000..7632d30 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/genfiles.properties new file mode 100644 index 0000000..3f94fc4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=022c58bd +build.xml.script.CRC32=92bfa652 +build.xml.stylesheet.CRC32=8064a381@1.79.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=022c58bd +nbproject/build-impl.xml.script.CRC32=38447d4f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/config.properties b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/private.properties new file mode 100644 index 0000000..6c6346e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=RED Green YeLLow +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/project.properties new file mode 100644 index 0000000..ad009fa --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Chapter6_4 +application.vendor=andad +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}/Chapter6_4.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=chapter6_4.Chapter6_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/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/project.xml new file mode 100644 index 0000000..f795bc7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter6_4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Chapter6_4/src/chapter6_4/Chapter6_4.java b/PrjJava/OCA7/Chapter6/Chapter6_4/src/chapter6_4/Chapter6_4.java new file mode 100644 index 0000000..a61bdab --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_4/src/chapter6_4/Chapter6_4.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter6_4; + +/** + * + * @author andad + */ +public class Chapter6_4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String o = "-"; + String[] sa = new String[4]; + System.out.println(args[0]); + for(int i = 0;i + + + + + + + + + + Builds, tests, and runs the project Chapter6_7. + + + diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/CC2.class b/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/CC2.class new file mode 100644 index 0000000000000000000000000000000000000000..31700dc8b1d471a39a1f8ece39b74e3a97547971 GIT binary patch literal 383 zcmZWkO-sW-5Pg#-*&1WN)QdN7et-o9dr-UtJq0h3US*SR=}OI(bW{9Wo(dlP0sbg) z5=)7=?9R-4``!%m_5JY);0gx;TIdP%1qKBFR_EH@5n3mwV}cu*i6V4kovX+4HC4rv zOy|rDVw1`FSQfg%8`8Biy(IMFY$g|071z(BVH9275X8hJwwz80!TnpN7FL^lDX`Bt zF=dgd2VHe-v-;viu4D)o9-;HM5#g{&Y=;nz8hlcwe79q842L(YjsxBZ9!H+n~A9R!SkT{b(l`J7Q@{%7nrjI=R^EOc4E$FIY+gYFMNWJBWs literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/CC4.class b/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/CC4.class new file mode 100644 index 0000000000000000000000000000000000000000..b3beada5a9b739cff125946bd034178df422d53c GIT binary patch literal 401 zcmZWkO;5r=5Pehnfwe*f!Lv8?U=MyBG+r7_NE$B~u4XBVtf^g6TEpMsMB>38;Eys+ zi)l1&GBf+$%zLx@`Stz*;0%W@8t6JWaL^;zH!4;6Euk?u9uv$^PbHxpsZ>4`uM?R) zib=vuC(^M<#v)TC{vpkLu9gHpisxdH%k1*$DhR{#Yl1V?qr8~S*l{o{jcLU(B)E60 zST1s<)1`wxTqt(G9_$w^Q9O7KC8h_FXCOl}Q=!^s*9b z5yF8>i2i~cWrk@jn&e0*m)G#{%yMm#fDrBQ+Mp`2+IM{^r3 zHkt|*5t{8sZ!DgLI}y>)^>w16VJ8nFk|9giHaxSKAE!wuZ&jA8ymCCtq#Rf%5E>gZ z5h^RY`(P|X&H2|>{WMr6#SskttL&KI$S80vGIIGQz6&RBpjU1T*j$VG(7_h>&d&n2 wQDOw_Fxkk-r;IZ4A7XutNDHFFix#i%GTuX(yUhPziNjwK73}9;RjvkV-w8@xiU0rr literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/SubException.class b/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/SubException.class new file mode 100644 index 0000000000000000000000000000000000000000..c8a7cb3b9b810a1517299dbba7cec8528a046be9 GIT binary patch literal 286 zcmX^0Z`VEs1_omW0WJn+23~dsK6VCvMg}&U%)HDJJ4Oa(4b3n{1{UZ1lvG9rexJ;| zRKL>Pq|~C2#H1Xch>%Zya$-(cVo@fD4;5r7$;d2bWRUbp&PXgMNi8yqH`fm?O>(VB zPAw?O%+IrCWZ(+UFD*(=b;|@9B8V)hmz7wS$iu+Gz{7;(24RpY{hY+SbbYw7 z42ld)KtF&0BM<^j0FrD#o<5k*z`&}toq=&9P=JYn9Z0ePg&7!l7&yQrh|S8t$-o7q M85y{NBohM<08WoRp8x;= literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/SubSubException.class b/PrjJava/OCA7/Chapter6/Chapter6_7/build/classes/chapter6_7/SubSubException.class new file mode 100644 index 0000000000000000000000000000000000000000..18e83b2aa17abe09d606fcac7be027c33891a530 GIT binary patch literal 299 zcmX^0Z`VEs1_omW0WJn+23~dsK6VCvMg}&U%)HDJJ4Oa(4b3n{1{UZ1lvG9rexJ;| zRKL>Pq|~C2#H1Xch>%Zya$-(cVo@fD4;5r7$;d2bWRUSm&PXgMNi8yqH`fm?O#&j< zisaOSlFa-(YeojH;QZ2}4W(U46It)85lPL1(+Dvfg~GHn1O+Zfdfo}*sKhk3|v5(k%1dX IGBNM~05fPplmGw# literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/manifest.mf b/PrjJava/OCA7/Chapter6/Chapter6_7/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/build-impl.xml new file mode 100644 index 0000000..272ea06 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/genfiles.properties new file mode 100644 index 0000000..67936cb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1a18ccd7 +build.xml.script.CRC32=e0f2252b +build.xml.stylesheet.CRC32=8064a381@1.79.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=1a18ccd7 +nbproject/build-impl.xml.script.CRC32=2912ffcf +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/project.properties new file mode 100644 index 0000000..935861f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/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}/Chapter6_7.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.7 +javac.target=1.7 +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=chapter6_7.Chapter6_7 +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/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/project.xml new file mode 100644 index 0000000..ae6f860 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Chapter6_7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC2.java b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC2.java new file mode 100644 index 0000000..507f360 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC2.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter6_7; + +/** + * + * @author andad + */ +public class CC2 extends Chapter6_7 +{ + void doStuff() throws SubSubException + { + + } +} diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC4.java b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC4.java new file mode 100644 index 0000000..0cbfcf7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC4.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter6_7; + +/** + * + * @author andad + */ +public class CC4 extends Chapter6_7 { + void doStuff(int x) throws Exception + { + + } +} diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC5.java b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC5.java new file mode 100644 index 0000000..84faf16 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/CC5.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter6_7; + +/** + * + * @author andad + */ +public class CC5 { + void doStuff() + { + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/Chapter6_7.java b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/Chapter6_7.java new file mode 100644 index 0000000..e409987 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/Chapter6_7.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter6_7; + +/** + * + * @author andad + */ +public class Chapter6_7 { + + /** + * @param args the command line arguments + */ + void doStuff() throws SubException + { + + } + + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/SubException.java b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/SubException.java new file mode 100644 index 0000000..549c8a1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/SubException.java @@ -0,0 +1,13 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter6_7; + +/** + * + * @author andad + */ +public class SubException extends Exception { +} diff --git a/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/SubSubException.java b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/SubSubException.java new file mode 100644 index 0000000..5749334 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Chapter6_7/src/chapter6_7/SubSubException.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package chapter6_7; + +/** + * + * @author andad + */ +public class SubSubException extends SubException { + +} diff --git a/PrjJava/OCA7/Chapter6/Excecise64/build.xml b/PrjJava/OCA7/Chapter6/Excecise64/build.xml new file mode 100644 index 0000000..53020bc --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Excecise64. + + + diff --git a/PrjJava/OCA7/Chapter6/Excecise64/build/built-jar.properties b/PrjJava/OCA7/Chapter6/Excecise64/build/built-jar.properties new file mode 100644 index 0000000..0a92a04 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/build/built-jar.properties @@ -0,0 +1,4 @@ +#Sat, 07 Jan 2017 17:18:17 +0200 + + +D\:\\PrjJava\\Excecise64= diff --git a/PrjJava/OCA7/Chapter6/Excecise64/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Excecise64/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Excecise64/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Excecise64/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Excecise64/build/classes/excecise64/BadFoodException.class b/PrjJava/OCA7/Chapter6/Excecise64/build/classes/excecise64/BadFoodException.class new file mode 100644 index 0000000000000000000000000000000000000000..7d657fb2d8cb682e20ea0df5f48fe666997ad5ec GIT binary patch literal 220 zcmX^0Z`VEs1_omWUM>b^1}=66ZgvJ9Mg}&U%)HDJJ4Oa(4b3n{1{UZ1lvG9rexJ;| zRKL>Pq|~C2#H1Xc2v=}^X;E^jTPBDj>Xew`mY<*ET9KSuP?DLSrZmTEt6Rl~F;w)cBy0_)srN2?_diIvinWJ5$Tl=%@Gv zKH~!zP4wN5GOjblQj}!oT-IKD?c4eF``ZryOQ>7O;*yEW7HnKGa5aMpswQd{uHm|g z8x|JfT1aWqO#`r<{a~xE!wD+S zje9?qo2y~CsYQB`9|l@O_O}=$e}aTSwi!vU{ap6qj99cl#@kk2TdN4nR8EeYdK;Ua z|E&VnC^(~9&2Z57)T*z0kUOevQI})m6mkMa%MZ1ljX9hbD5+5g+<(h4uw-KycLb)_ z*t#;mok7qpYj*=HHtuQ#Q)5Huo{jr>ATafp&R8*^YQ0~%(A4e&$v6=xE0GD>#Y^L(sv9A=?CP3mx;L2C~DJ9qaipgL?Hf z=J_hKe5gPYLN|`<6mKqf!986&fY{?9foZN2F=)f#*&Y&*$7$X&m_dPvc5aiM;O;ny zuSkA|-S~pEGqDe2@6gBOdr!uS1*FNGZh#NR;T znSpaAEInTmb>I!|npmtk<~}l?F!>#+jRROebpn%d0=iONio+B@&kQc`K2Pa|v9gLp V%e3oI?2IOW4t)3gFY=tg!XMY}T7{{N9U)J8(wPPo7X_~OS6(_}Z1Ep0{1ahKSDvcc@TNW(`G+u9$P1d`X zy@ux411G)&hl&H@0zxeU3GO|ja^oxT6)OJEu4AuFno~!f9nZ}3HqZQKrhYdRR*7On z_rJOFDFsTL!c^UDmJ4@kmC}o6MD?-gJ&2|@fBEq_#JMh_jzz2G+MUX7qgkw0s?s(e z7z4M^GWrA4vA49%;Pwrnz8`cu8pE`1c9Tc_YbReG|E-&- zp7q+X0++{+uHrjZ4ZMBlIp-_FFYJ61=?LI6t2p~|oT@&4bbng$e|NKYb%w$ ay10h|aRg4z$WX+)9V56VYw-M!*ZU94Sk5*8 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Excecise64/dist/README.TXT b/PrjJava/OCA7/Chapter6/Excecise64/dist/README.TXT new file mode 100644 index 0000000..8580fa6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/dist/README.TXT @@ -0,0 +1,32 @@ +======================== +BUILD OUTPUT DESCRIPTION +======================== + +When you build an Java application project that has a main class, the IDE +automatically copies all of the JAR +files on the projects classpath to your projects dist/lib folder. The IDE +also adds each of the JAR files to the Class-Path element in the application +JAR files manifest file (MANIFEST.MF). + +To run the project from the command line, go to the dist folder and +type the following: + +java -jar "Excecise64.jar" + +To distribute this project, zip up the dist folder (including the lib folder) +and distribute the ZIP file. + +Notes: + +* If two JAR files on the project classpath have the same name, only the first +JAR file is copied to the lib folder. +* Only JAR files are copied to the lib folder. +If the classpath contains other types of files or folders, these files (folders) +are not copied. +* If a library on the projects classpath also has a Class-Path element +specified in the manifest,the content of the Class-Path element has to be on +the projects runtime path. +* To set a main class in a standard Java project, right-click the project node +in the Projects window and choose Properties. Then click Run and enter the +class name in the Main Class field. Alternatively, you can manually type the +class name in the manifest Main-Class element. diff --git a/PrjJava/OCA7/Chapter6/Excecise64/manifest.mf b/PrjJava/OCA7/Chapter6/Excecise64/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Excecise64/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/build-impl.xml new file mode 100644 index 0000000..6812658 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Excecise64/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/genfiles.properties new file mode 100644 index 0000000..0540de7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=13acb325 +build.xml.script.CRC32=6516eb01 +build.xml.stylesheet.CRC32=8064a381@1.79.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=13acb325 +nbproject/build-impl.xml.script.CRC32=fb63ebb8 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/config.properties b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/private.properties new file mode 100644 index 0000000..5a5a5fd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=biofood +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Excecise64/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/project.properties new file mode 100644 index 0000000..d2122a5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/project.properties @@ -0,0 +1,77 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Excecise64 +application.vendor=andad +auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml +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}/Excecise64.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=excecise64.Excecise64 +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/PrjJava/OCA7/Chapter6/Excecise64/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/project.xml new file mode 100644 index 0000000..34d413a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Excecise64 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Excecise64/src/excecise64/BadFoodException.class b/PrjJava/OCA7/Chapter6/Excecise64/src/excecise64/BadFoodException.class new file mode 100644 index 0000000000000000000000000000000000000000..7d657fb2d8cb682e20ea0df5f48fe666997ad5ec GIT binary patch literal 220 zcmX^0Z`VEs1_omWUM>b^1}=66ZgvJ9Mg}&U%)HDJJ4Oa(4b3n{1{UZ1lvG9rexJ;| zRKL>Pq|~C2#H1Xc2v=}^X;E^jTPBDj>Xew`mY<*ET9KSuP?DLSr#NBtcOWo2`qJVte(!tJvH5zy%7;>EOjif)_mO=$hWdR zlJQ}?n@)9nxNC@u-Bd=yCvuYIQ%k^$j#M<`CaF&1nSkF-=F>>+ zX(PB~B9We{yLWCH#Q*^o9b5}=9XA{_1MHwA;11^T@PHZtE}4BzozdD4WZ$TtNeHa$ zAL&_xpJ6o&O-%o!;CX;>%i=NwYX zQ7Jjz6k^0z)CA6j3q@DV|WNazqa&S*taY^It*ReInEJ*=@vg^@BstP`)&0uFL7 z9IU!L9_LJwQF=sc4pnZ2)&~^6!G3iD_lHsOG8LRw4`DH_PK^x`8`Rj!sz#|t literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Excecise64/src/excecise64/Excecise64.java b/PrjJava/OCA7/Chapter6/Excecise64/src/excecise64/Excecise64.java new file mode 100644 index 0000000..7ca8379 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Excecise64/src/excecise64/Excecise64.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package excecise64; + +/** + * + * @author andad + */ +public class Excecise64 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try { + //System.out.println(args[0]); + //checkFood(args[0]); + //checkFood("junkfood"); + checkFood("biofood"); + } catch (BadFoodException e) { + System.out.println("This is junk food"); + } + } + + private static void checkFood(String food) throws BadFoodException { + if (food.equals("junkfood")) { + throw new BadFoodException(); + } else { + System.out.println("This is bio food"); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/build.xml new file mode 100644 index 0000000..37e5763 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project AritmeticException1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/build-impl.xml new file mode 100644 index 0000000..11776bf --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/genfiles.properties new file mode 100644 index 0000000..5adba8d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4306e3ea +build.xml.script.CRC32=5da919fd +build.xml.stylesheet.CRC32=8064a381@1.79.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=4306e3ea +nbproject/build-impl.xml.script.CRC32=1b4ace6c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/project.properties new file mode 100644 index 0000000..0929eea --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/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}/AritmeticException1.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.7 +javac.target=1.7 +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=aritmeticexception1.AritmeticException1 +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/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/project.xml new file mode 100644 index 0000000..f72f388 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + AritmeticException1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/src/aritmeticexception1/AritmeticException1.java b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/src/aritmeticexception1/AritmeticException1.java new file mode 100644 index 0000000..7d67967 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException1/src/aritmeticexception1/AritmeticException1.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package aritmeticexception1; + +/** + * + * @author andad + */ +public class AritmeticException1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build.xml new file mode 100644 index 0000000..d012985 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project AritmeticException2. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build/classes/aritmeticexception2/AritmeticException2.class b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/build/classes/aritmeticexception2/AritmeticException2.class new file mode 100644 index 0000000000000000000000000000000000000000..c7a9e2058bf95966ae32b2810481ef08883335cd GIT binary patch literal 1149 zcmZuwZBr6a6n-uscO`rQ(+DvW1kq9wO)RysX=-dldV%pvQ_Z^V=ql_oxb*Ui{A?d; zrVsVKA5}ejQCJ&bcF(!bIrq8eJm>E3KRFVD}ua{9s;91o)-tlrr}* ziOBaTR|Q%@JFxH_;#`Gee1{bnMVx-LlYlW?=V}n+m>|N7EZL+@g6@hs0 z8$xH;+4KA`{T{ZeFwKXZDE$rV{b{Trg%WP@l1-B*jUC2! zY4db+(py(pk{*R2Uy3$>x0oUyzd^31Fz}b@0g2lbUt*>z Rk$xqSp`DE|DXX^R{sB;W^w + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/genfiles.properties new file mode 100644 index 0000000..e0d4ff6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5b327780 +build.xml.script.CRC32=3287b20c +build.xml.stylesheet.CRC32=8064a381@1.79.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=5b327780 +nbproject/build-impl.xml.script.CRC32=d259f3a6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/project.properties new file mode 100644 index 0000000..4220144 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/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}/AritmeticException2.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.7 +javac.target=1.7 +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=aritmeticexception2.AritmeticException2 +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/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/project.xml new file mode 100644 index 0000000..a9b5518 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + AritmeticException2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/src/aritmeticexception2/AritmeticException2.java b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/src/aritmeticexception2/AritmeticException2.java new file mode 100644 index 0000000..2fab2aa --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException2/src/aritmeticexception2/AritmeticException2.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package aritmeticexception2; + +/** + * + * @author andad + */ +public class AritmeticException2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int k = 0; + try{ + int i = 5/k; + } + catch (ArithmeticException e){ + System.out.println("1"); + } + catch (RuntimeException e){ + System.out.println("2"); + return ; + } + catch (Exception e){ + System.out.println("3"); + } + finally{ + System.out.println("4"); + } + System.out.println("5"); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build.xml new file mode 100644 index 0000000..02b25a3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project AritmeticException3. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build/classes/aritmeticexception3/AritmeticException3.class b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/build/classes/aritmeticexception3/AritmeticException3.class new file mode 100644 index 0000000000000000000000000000000000000000..86f33c8651e05d651785c8ad60dda672d64d83bb GIT binary patch literal 772 zcma)4%Wl&^6g^`*oyNE{r1X&{(3V$|F7Tquq(}&XgcJ%=P+72=m?2Dv?Z}-V_z1p( zby;ED$S`2&}cA_s8mu3MVQVg#(+JWYjGLsBFZPD|2W8VK^Rg zj0KhkRzX=@qGb^xKI$+Z93EQ_cL93V+l?Bhke5h$2^irVL z{@1y`-758WJ9D#R2a>--{yA)$HgNWN3c1n=RQ5hYoD}p0&I<(?AmBbI1F(dPJXNub z8j<|+d$>i?rrWFe2d(Dh;3J&6>wbmz36*Cb;2oYYw1PD>n9@a_dXqcga)DN{POe3^ tL42zyx6L@9iA$(+b;ztRy3Df5ox>X-=lmq)N~{ZZAhD4@XQQ~W`3rTPsMi1h literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/build-impl.xml new file mode 100644 index 0000000..207d402 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/genfiles.properties new file mode 100644 index 0000000..9ad2d41 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5321fba6 +build.xml.script.CRC32=179dd4a3 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5321fba6 +nbproject/build-impl.xml.script.CRC32=955718e0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/project.properties new file mode 100644 index 0000000..5529b8c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/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}/AritmeticException3.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.7 +javac.target=1.7 +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=aritmeticexception3.AritmeticException3 +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/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/project.xml new file mode 100644 index 0000000..bb4c11d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + AritmeticException3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/src/aritmeticexception3/AritmeticException3.java b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/src/aritmeticexception3/AritmeticException3.java new file mode 100644 index 0000000..9b48bc3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/AritmeticException3/src/aritmeticexception3/AritmeticException3.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package aritmeticexception3; + +/** + * + * @author andad + */ +public class AritmeticException3 { + + /** + * @param args the command line arguments + */ + + public static void main(String[] args) { + // TODO code application logic here + int i = 0,j= 10; + try{ + j/=i; + System.out.printf(""); + } + catch(Exception ex) + { + + } + + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build.xml new file mode 100644 index 0000000..e6c1fd6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project BlockstaticException. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build/classes/blockstaticexception/BlockstaticException.class b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/build/classes/blockstaticexception/BlockstaticException.class new file mode 100644 index 0000000000000000000000000000000000000000..1c2291b86247bdea148b97d7d15ae5f9e95c2dcc GIT binary patch literal 537 zcma)2Jx>Bb5Pf?bU&kQ|ic;EvBwS$$vCv3$(E>wbwYP3?;n*|BV*FcbVPfGA@JAVE zPZSd=++=oU-h8~5dH;BQ18|I%2N!!~h94afXwTY}}_xmWK z^h2a6w`M4%ajG=8TtIt3)mwC4m|n`8R(-z zvH#UTzDijcTc{CYhr48U_|IVT*C46F4mFif|6%PAjeXV1GaUa3jwWx}S;p>V + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/genfiles.properties new file mode 100644 index 0000000..c498df4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=26b21bca +build.xml.script.CRC32=bb73c283 +build.xml.stylesheet.CRC32=8064a381@1.79.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=26b21bca +nbproject/build-impl.xml.script.CRC32=81771015 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/project.properties new file mode 100644 index 0000000..6537186 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/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}/BlockstaticException.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.7 +javac.target=1.7 +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=blockstaticexception.BlockstaticException +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/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/project.xml new file mode 100644 index 0000000..6a07364 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + BlockstaticException + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/src/blockstaticexception/BlockstaticException.java b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/src/blockstaticexception/BlockstaticException.java new file mode 100644 index 0000000..5cfe8a5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/BlockstaticException/src/blockstaticexception/BlockstaticException.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package blockstaticexception; + +/** + * + * @author andad + */ +public class BlockstaticException { + + /** + * @param args the command line arguments + */ + //static int k = 0; + static float k = 0; + static { k = 1/k;} + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build.xml new file mode 100644 index 0000000..e57249f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ClassCastException1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build/classes/classcastexception1/ClassCastException1.class b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/build/classes/classcastexception1/ClassCastException1.class new file mode 100644 index 0000000000000000000000000000000000000000..8921cb4d47b3950276954c961b8dc0640dc039a7 GIT binary patch literal 745 zcma)4%Wl(95Iy5KxowiR=_@VomPeZuiKv1VK`e+ss$|+lt8Q4`xR-D%*G9He(a&N9 zVu4umQHXP$2scs}crkP5%$YL}`S+h6KLI>Prw)aCb==1Tg)N0`g@+1{6dns|uWW4d z*Mdr?dn)h;$(a!>1vWN^$Aaywy~hy`4F7zOWlifJn9|isf|bdVgQ|vD7kt=S|HX9Qq~;} z&rO(9RanxxmIxBc5gyLMZ?1Af*vs~3b*B9V_2XomhUT4hD{tPg!86yqi8;(GJZWMF zyMo1XAlG*Wa2+{A$(Xbf?EdG;W{M~K3YJT~gE%)MlM2+Oj>hKbqr2@v_u4I{j6Swe zD N>Nb4(J7jyf`xo4BrEmZM literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/build-impl.xml new file mode 100644 index 0000000..7aa756d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/genfiles.properties new file mode 100644 index 0000000..936045c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8c9f351b +build.xml.script.CRC32=c2e9e53e +build.xml.stylesheet.CRC32=8064a381@1.79.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=8c9f351b +nbproject/build-impl.xml.script.CRC32=fb511ac3 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/project.properties new file mode 100644 index 0000000..b90660c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/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}/ClassCastException1.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.7 +javac.target=1.7 +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=classcastexception1.ClassCastException1 +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/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/project.xml new file mode 100644 index 0000000..1650b11 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ClassCastException1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/src/classcastexception1/ClassCastException1.java b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/src/classcastexception1/ClassCastException1.java new file mode 100644 index 0000000..3d8d4ea --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException1/src/classcastexception1/ClassCastException1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package classcastexception1; + +/** + * + * @author andad + */ + +public class ClassCastException1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Object i = Integer.valueOf(42); + Long s = (Long) i; + Byte b = (Byte)i; + //String s = (String)i; + String s1 = (String)(Object)i; + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build.xml new file mode 100644 index 0000000..bfd4b0b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ClassCastException2. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/classcastexception2/Child.class b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/build/classes/classcastexception2/Child.class new file mode 100644 index 0000000000000000000000000000000000000000..9f0a32a0308b4e67d345ffd0bf036a96bc3406d5 GIT binary patch literal 500 zcmZ`$%TB^T6g>k-p%y_9d8w&8(8L;DVl<}FRbxmn?1wVKm@*~p;N!D&p@|DWz>hNC zf^mg2$(=dpp8J~l`u_L?aEd(>S(NhFL^+3wi7iwOY#XRCWY46M`kW!%?hF_*Za5MQ zMNcYmGoKDcbjybUF=a3Gc`)FSOzqv<%gW<4$BS>N1%9 za31;MS|(}gZlZKadG)6}y5|qvf`OcYx`hUs42PG>mMYd<`N9tGY&{Y7BB8w~Wk2%R z_9MZy80{NqS=hlYL*w5*7@DhmJst_A8A?eDPQcaJ=|9sHQ+khZPL8U#@W{~VMN;X$ zrkYb4s*(Z;t%jg z8E1=;gWbcv&U-U&W_SDb{qYIl0(&|VC?!zVp((8Bh$^fmuuF(vN>}<g?%^rkjyFUAC)__n6 z&1ns!)8iDqJ)U`%eIwPmiXmg3sman35H3#oHM+PG?#!lv-_drhZ9uLSW()^uXCSV;K93_!KmKjz2!e$Z1`~uq3 z91(MYC}ZsQ)LdER_}>5yx#tlV9wUcZV7tF8#U?XgHHAF3*f`7lHVVOU=BeLMMN{-z!;b4BSvG0J}pXu;k}G1C8Hx-@#AOdgC;)s1N>3O zyJ1XBv`ub%PtUpMw*B~gdk1iY9Sb>>3s^-ZkE(?=)J&|K*kH&VOC|LQL$=i(Fc{r% zBp6DbRN`_z9g66h4+BCfUg+~+z$2OD-=Lw#GG=Ice!%0{=dl(KzL;qlszbNOBcXJM z!Rm+e$QKtfsZ;MJ)Gkraf2ao&e#dQ?$eXC!*hGV2|4cbj#hNQ$IN^<>$HG}ubW$_t zp2v}IH!Y}my%`Z_9Cft zUz638E>ryjW-w<7DNv+qErh8HsieB?v2$Mw4zzu|U}=GPDDVd#_;6$W*c~ gFrEm=z@oT%It-J)*@w$I0?J-1x + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/genfiles.properties new file mode 100644 index 0000000..e0dbffb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=94aba171 +build.xml.script.CRC32=adc74ecf +build.xml.stylesheet.CRC32=8064a381@1.79.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=94aba171 +nbproject/build-impl.xml.script.CRC32=32422709 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/project.properties new file mode 100644 index 0000000..f79f3a3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/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}/ClassCastException2.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.7 +javac.target=1.7 +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=classcastexception2.ClassCastException2 +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/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/project.xml new file mode 100644 index 0000000..901e15a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ClassCastException2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/src/classcastexception2/ClassCastException2.java b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/src/classcastexception2/ClassCastException2.java new file mode 100644 index 0000000..8a7c1f1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ClassCastException2/src/classcastexception2/ClassCastException2.java @@ -0,0 +1,41 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package classcastexception2; + +/** + * + * @author andad + */ +class Parent { + + public Parent() { + System.out.println("An instance of the Parent class was created!"); + } + +} + +final class Child extends Parent { + + public Child() { + super(); + System.out.println("An instance of the Child class was created!"); + } +} + +public class ClassCastException2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Parent p = new Parent(); + Child ch = new Child(); + //ch = p; //This statement is not allowed. + p = ch; + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build.xml new file mode 100644 index 0000000..8d06eee --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CustomException1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/customexception1/CatEx.class b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/customexception1/CatEx.class new file mode 100644 index 0000000000000000000000000000000000000000..e681f25b88234bd0cf72ac06cd89f30e946de62b GIT binary patch literal 277 zcmZvWPiw+J5XIlb{LwU4Q4p`asfUK*(b9|PDR@!5uj$gR#B7Nh@oRY!dhi4Ip^CG? z-kgEA^M1@e=KA-00Wd~8L=DXV&jDHl|6S$Ed=P4b;hNx1^`|7X5|ztEx!cHMB{mt8 zPNGwhtwo`%zeCr2t39Egq~+e|ojj)U$0(h@#ZzHs#|a@^>as}XT-l7UqOV(V5D{E> zgx=$igsxqRGm(GAv;S1Qz~R$v5jO|0`t0J$1K#KiIx%n%u=U&0fs GgXjh>wmMn> literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/customexception1/CustomException1.class b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/customexception1/CustomException1.class new file mode 100644 index 0000000000000000000000000000000000000000..0de5dc2197322d54539949f0e10a389bd8ef374d GIT binary patch literal 668 zcmZuv%TB^T6g|VMP(cL*6`#b7x{w%`8aIe>QFQ?!F|LN%z$mn&6ea$ZD-um)??)NW z)K?-lnK^UMeVltc^Y;Gy3g7@`69!fcteS{uTr&~VxNcxWAaSHz6&wphw|ANXv8s3D z2+Uc^buNazmg6^Mt4k(ldA95}rLVO8MaF`T8VGDz_HYn*J!fP){Xlu{ex(``wIAY; zrF&Aj0>$lX>sH>&N>{q=N1hgo``gnkrIAF69ZpRX_VAyhDudccpgfiFx4yvq@6ea6 zTgMJK%P-aF_}+v5vnV6M`_f+oLN~)OwVelR%B#~ hY?cwau@drFAQrgz)XoePxfYoPR^SD4E%O{f=>sIAk&FNU literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/customexception1/DogEx.class b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/build/classes/customexception1/DogEx.class new file mode 100644 index 0000000000000000000000000000000000000000..96929cdbcf908f1d57b5caeb1f3aaa301f553410 GIT binary patch literal 277 zcmZvWPiw+J5XIlb{Atr@#Detd&GyhB9xGm~o`M&}`x=+HC1xci#jn+q;K2{j4<(%q z_2vw`o%dt*F~8UI1;7w(9}P4;v^<0accgMvjtPza>xy7c^hOfGSmknF?bfnbigm`M z6YE4|D^V!p|Dj!O)q(I5C)J_UJ9$jxzEnCNM4vjH9zO{FLRUp1XUb&wHGTgQ-y(nw zhtR$Mk??GmqD~>avS!4>)fp&<_I(9;?e32=Gv=nH@aB=a=xr HY9aUoGA24; literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/build-impl.xml new file mode 100644 index 0000000..e151b75 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/genfiles.properties new file mode 100644 index 0000000..6fe28eb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9bd68411 +build.xml.script.CRC32=f75ca05c +build.xml.stylesheet.CRC32=8064a381@1.79.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=9bd68411 +nbproject/build-impl.xml.script.CRC32=1ea93eef +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/project.properties new file mode 100644 index 0000000..877c294 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/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}/CustomException1.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.7 +javac.target=1.7 +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=customexception1.CustomException1 +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/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/project.xml new file mode 100644 index 0000000..60a1b07 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CustomException1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/CatEx.java b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/CatEx.java new file mode 100644 index 0000000..513096a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/CatEx.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package customexception1; + +/** + * + * @author andad + */ +public class CatEx extends Exception{ + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/CustomException1.java b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/CustomException1.java new file mode 100644 index 0000000..afbfa62 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/CustomException1.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package customexception1; + +/** + * + * @author andad + */ +public class CustomException1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws CatEx{ + // TODO code application logic here + + try { + + throw new DogEx(); + + } catch (DogEx e) { + throw new DogEx(); + } finally { + + throw new CatEx(); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/DogEx.java b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/DogEx.java new file mode 100644 index 0000000..1e234c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException1/src/customexception1/DogEx.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package customexception1; + +/** + * + * @author andad + */ +public class DogEx extends Exception{ + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build.xml new file mode 100644 index 0000000..9f3be2a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CustomException2. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/customexception2/CustomException2.class b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/customexception2/CustomException2.class new file mode 100644 index 0000000000000000000000000000000000000000..097e87f0ae8f3d59a89f0bf311ee9b8898c1a3bc GIT binary patch literal 935 zcmZuvQE$>v6#gzSS}NO+32q9LZBE(TD4;$;d|A5qz@`by664dQHmtL>q!e|($mjXs z5>4E@f53lZ{8}c1u{QUfd%vFZo$s8}-+zDn0`MF!HKehoU|mBjv>Pcr#-@rV8lIx8 zVoSlcif0OT6zmElo3?8QuLR=dtz&`2p7+5LSZvv@bvW#GEdNM$93t74XG-T-`gVA~ z0u#ZBJrLMvnZrTg^{g+Z)emgXt?PRcV2ptVse96P1@h(htyB3)>W*}~dOPrKx7!F) z3uej9G8r|-<|abMq#>vDyA-f=3#Gt(JCNqb1KE$%vJ z(Qi7ZmKjVD9-a8!=h2)d9NTAu!0K_b-jMEBEwnxTEn6P2@s{kdg(F?lFm?AsCx`RO zl_z>X9v4cu!~ZONVq9z%_}B2H(+b+T?F)$W=yQg9G6FNW%X50&@YDu9DeNz`e<|Zt^zu6xg$JO GmUjX5UOXxQ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/customexception2/E2.class b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/build/classes/customexception2/E2.class new file mode 100644 index 0000000000000000000000000000000000000000..280dfe7eef90d1c2bd994730ef727380dd145941 GIT binary patch literal 282 zcmZvW!4APt5Jm4$EmbPS-VzIfC9x4!jSaDX>Ls4gC)JAIvXWT%03Ri$B~~VxnL8(U zCi8sV9{>iZ*vO(}p=`k=m?IUaXiUg9TPuPw(Hlu{Jr&4#d|1nHDb{-?RZsh3zY?KJ z<}Wm&tvV6vo*$ngeUKMl9wViLes|g*66}SJLtoBRa-cp*J=343vlD0Gz(9^r`*Ywg t?V*7T|DObL@-}yqRhN50a_t-F$|3`ctC>O + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/genfiles.properties new file mode 100644 index 0000000..2688d80 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=83e2107b +build.xml.script.CRC32=d4fa4c1d +build.xml.stylesheet.CRC32=8064a381@1.79.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=83e2107b +nbproject/build-impl.xml.script.CRC32=f9211df0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/project.properties new file mode 100644 index 0000000..9cefeeb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/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}/CustomException2.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.7 +javac.target=1.7 +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=customexception2.CustomException2 +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/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/project.xml new file mode 100644 index 0000000..9c37cbe --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CustomException2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/src/customexception2/CustomException2.java b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/src/customexception2/CustomException2.java new file mode 100644 index 0000000..954deb6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException2/src/customexception2/CustomException2.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package customexception2; + +/** + * + * @author andad + */ + +//in file Test.java +class E1 extends Exception{ } +class E2 extends E1 { } +class CustomException2 { + public static void main(String[] args){ + try{ + throw new E2();// subclass of E1 + } + catch(E1 e){ + System.out.println("E1"); + } + catch(Exception e){ + System.out.println("E"); + } + finally{ + System.out.println("Finally"); + } + } +} + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/build.xml new file mode 100644 index 0000000..3887eef --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CustomException3. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/build-impl.xml new file mode 100644 index 0000000..7462b0b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/genfiles.properties new file mode 100644 index 0000000..5680e18 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8bf19c5d +build.xml.script.CRC32=ca67e822 +build.xml.stylesheet.CRC32=8064a381@1.79.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=8bf19c5d +nbproject/build-impl.xml.script.CRC32=a4590305 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/project.properties new file mode 100644 index 0000000..1605108 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/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}/CustomException3.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.7 +javac.target=1.7 +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=customexception3.CustomException3 +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/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/project.xml new file mode 100644 index 0000000..add1b1b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CustomException3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/src/customexception3/CustomException3.java b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/src/customexception3/CustomException3.java new file mode 100644 index 0000000..c0561f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException3/src/customexception3/CustomException3.java @@ -0,0 +1,42 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package customexception3; + +/** + * + * @author andad + */ +class MyException extends Exception { +} + +public class CustomException3 { + + /** + * @param args the command line arguments + * if I add throws exception the code will compile + */ + + public static void main(String[] args) throws MyException{ + // TODO code application logic here + CustomException3 tc = new CustomException3(); + try { + tc.m1(); + } catch (MyException e) { + tc.m1(); + } finally { + tc.m2(); + } + } + + public void m1() throws MyException { + throw new MyException(); + } + + public void m2() throws RuntimeException { + throw new NullPointerException(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build.xml new file mode 100644 index 0000000..231a3d5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CustomException4. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/customexception4/CustomException4.class b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/customexception4/CustomException4.class new file mode 100644 index 0000000000000000000000000000000000000000..511b5c18ed0bc6a5f01c0cf9c177edeb783533ca GIT binary patch literal 985 zcmah{U2hUW6g>l!1*FhYsfvILwUpMDMe7^Hm&V2i`VncG7@vl9LZ{sivg~U6i+rvR zHqpes`v?3t#yblFH6-q4=k7iC%$;-Zou9wI{Q$6w-4yOY*HB3zqHHyZH9SpVJ%t)J z5~yp~)Uc)D8AH4+9qGSfh}Jhx8De|x2f>i-NJkt7c29UGyk`-T>$oPjPPr$QKL%s| znH(~#b*KQYNd^tgG@j!HLuOw( z+_J9pp5>YsIu$fcJ)tvH{@ZefrRmP2-nlUSJIPMYJonRRxHH7=)zB9;r;*s literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/customexception4/CustomException5.class b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/build/classes/customexception4/CustomException5.class new file mode 100644 index 0000000000000000000000000000000000000000..7079c8b3525c372b3b9eb3d3b78856eb614d5dc0 GIT binary patch literal 310 zcmX^0Z`VEs1_omW0WJn+23~dsK6VCvMg}&U%)HDJJ4Oa(4b3n{1{UZ1lvG9rexJ;| zRKL>Pq|~C2#H1Xch>%Zya$-(cVo@fD4;5r7$;d2bWKi}=E-fy}&rPjJPAw?O%+E8? zcLoc%!URmM85y{O^Gl18Q{6H_#)+aSFwx6OEKB5JU}0coWKbk%93z7;NWFeeVqUsF z+!h7}1}322K!6d5fo1_|HXutMNP|RJwYD=bZUi!z7}$X%8(5Hsfdk0qfhb_$WZ(kw K7#X<1s(1i|kw_c> literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/build-impl.xml new file mode 100644 index 0000000..28b4652 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/genfiles.properties new file mode 100644 index 0000000..092f9c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b38b38af +build.xml.script.CRC32=93b7949f +build.xml.stylesheet.CRC32=8064a381@1.79.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=b38b38af +nbproject/build-impl.xml.script.CRC32=ed405d8f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/project.properties new file mode 100644 index 0000000..52681f9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/project.properties @@ -0,0 +1,80 @@ +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}/CustomException4.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +file.reference.poi-3.15.jar=D:\\POI3.15\\poi-3.15\\poi-3.15.jar +file.reference.POI3.15-poi-3.15=D:\\POI3.15\\poi-3.15 +file.reference.PrjJava-JunitFirstTest=D:\\PrjJava\\JunitFirstTest +includes=** +jar.compress=false +javac.classpath=\ + ${file.reference.POI3.15-poi-3.15}:\ + ${file.reference.poi-3.15.jar}:\ + ${file.reference.PrjJava-JunitFirstTest} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.7 +javac.target=1.7 +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=customexception4.CustomException4 +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/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/project.xml new file mode 100644 index 0000000..41c484e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CustomException4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/src/customexception4/CustomException4.java b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/src/customexception4/CustomException4.java new file mode 100644 index 0000000..f9adc74 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/CustomException4/src/customexception4/CustomException4.java @@ -0,0 +1,42 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package customexception4; + +/** + * + * @author andad + */ +class CustomException5 extends Exception +{ + +} + +public class CustomException4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try + { + throw new RuntimeException(); + } + catch(NullPointerException ex) + { + System.out.println("Null Pointer Exception"); + } + catch(Exception ex) + { + System.out.println("Null Pointer Exception"); + } + finally + { + System.out.println("Finally block "); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/OutFile.txt b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/OutFile.txt new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build.xml new file mode 100644 index 0000000..43ce1c3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/built-jar.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/built-jar.properties new file mode 100644 index 0000000..575ea51 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 05 Jul 2016 18:19:58 +0300 + + +C\:\\Users\\anda\\Exception1= diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/classes/exception1/Exception1.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/build/classes/exception1/Exception1.class new file mode 100644 index 0000000000000000000000000000000000000000..ef672d02e8dc1d32422142cb82e693877169c065 GIT binary patch literal 1182 zcmZuw+foxj5IwUAnXoJu6GBu(;ypwlqJm0Llt>f}7YT($`80%aSxk0Qn~lO3`3w(9 zl~n1wf8tN5J(~bgvJcajIo*A_d*|oxZ{Gntz*`+rq&V(!jE6CyBY;UA8q(dkhp8~` z>jZkpF|F(wjz>BSq{4Wt?cFP&`cC9KyJTLc)vf^2eJ(XTORWp>XEG(O0DET43Cq9dG zN!Vt(;JKDh&%?lZ)icb1c0T0M`XzSX*qKb+CKdgnCRoam* z!(c00Tg+_2Kn|}AyvCA&H&~*vbleBSz**ka?LAqf2{t?R_p-6;I$xUGjwL(qE86nY zWLmRUTWm{PIH-EEd~Pwcaw*ERn12V`bTjaZ+FptNlz?=p%aEv4q`kv1(TT@7YOU!| zdfk-XvaD8xNxL0Pj-7)NChR%QKalnlp~s{?4FpGw&LOhWBpJ!BR0HhLzmC%x@|^>? zNV?Gk;1VvA)s10XA&(0Fg)Rh1uCx3xw5?+Vwj#j>x*7=OkH910I=a7NX88y`$1t`U z=#BK%(LY|t0Es#-(ES;%Z{Z{&QaGrF8vEGy6`WwzIPxnBzR%&d*6GX_xpYncfCFZ@B>Fb{c{hl zHU%GYsd7TgAhwm(DRmf51Dow#TiG zZW?hl7Fi1_3Bxs$XtQdAt29T8TaopklC(Ipc}?3n6!_bbwQn~!v`Xxj8ZKC@+T?1| zwA!Y{Y|^+w@FweYv?8+`aW$xXr6miwTq<9Vt2w3{nzO1t(wj}S!c|tQ@tVrIw%H=_ zDr+_m)e8N)db1W(h5~VwA5?i;ScpYZgJDn!Dx+C&^z@!Mu^ z2U2}PbeKf*fZ$l9{t9tXq7u=G)l*21o#iF!C!NVTyh`Ih4}jP3I&o8UeBYoMA^aQ@ zbV&mDrR*6z`)Ba(hkU1)IK^c43FMIf1XI6aGxr43X9(<{A{d%E!R*Zw%n>=kE3`hu z&E(I=+8>YUtb54e>vV_(O_P=D*mkHF!oyWs0gXK5)jXETE0qveX>^Tn%SaNRCi(@1 zE}~FL<1%@EjZhxq?-QpI^`J2!gx%&a2b!9 hzIYv + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/genfiles.properties new file mode 100644 index 0000000..b74f454 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=43359896 +build.xml.script.CRC32=48d52399 +build.xml.stylesheet.CRC32=8064a381@1.79.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=43359896 +nbproject/build-impl.xml.script.CRC32=ce6d9577 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/project.properties new file mode 100644 index 0000000..7b76a0c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/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}/Exception1.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.7 +javac.target=1.7 +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=exception1.Exception1 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/project.xml new file mode 100644 index 0000000..a2dd6f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception1/src/exception1/Exception1.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/src/exception1/Exception1.java new file mode 100644 index 0000000..3b7f498 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception1/src/exception1/Exception1.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception1; + +import java.io.FileWriter; +import java.io.IOException; +import java.io.PrintWriter; + +/** + * + * @author anda + */ +public class Exception1 { + + public static void main(String[] args) { + + PrintWriter out = null; + try { +// do risky IO things + out = new PrintWriter(new FileWriter("OutFile.txt")); + } catch (IOException ex) { +// handle just FileNotFoundException + System.err.println("Caught IOException: " + ex.getMessage()); + } finally { + System.out.println("Caught finally"); + } + } +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build.xml new file mode 100644 index 0000000..c63a1cd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception10. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/exception10/Master.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/exception10/Master.class new file mode 100644 index 0000000000000000000000000000000000000000..8a547e482e8b3b15987a750fd40fc9305bc86289 GIT binary patch literal 424 zcmZWlO;5r=6r4v3#e#f^dh*~6Otct}8ZSmp6%QEh+jhYvwQI`O__Oq6;=v!_k21am z6cabuH<|Zl=56-#>-_`38TNg+=v1-eq3dCnP`OZ zvRN=TxyoiN@UMSt3lDqD$GXU4IaGFGZIyFkeRY&kA&}sA{9i?AZNhJ(xr`0rVA)bS zuxTT0hPud--+efQ!yjQ!31ri`ddvbwVk{rMfnJy6DpxxO8rb4mUkTu&#*CP6bBHw` eGqXCUQ+i=2VPkFou{vvOgEcN2ntWSJeft~ho>8U% literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/exception10/Slave.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/build/classes/exception10/Slave.class new file mode 100644 index 0000000000000000000000000000000000000000..dd60f65bb31bfcf3c791ca50d393974c4d6f1ba5 GIT binary patch literal 921 zcmZuv%W@Jy6g@qIX&5JlXQGB+qR~KNLSlR@u-sU2HKjyKBaUJMC2U&Q z!reHwC3Xbn9(z46d?H{LOLc+RQ~%HvSa7_a`+V4KxWOyc=rEIZ{HE&ERp9CUI2jAy zdIN!s;~q8Le(3qVz1?!HqegCpQeEZs1Qv^LoOf!Z${p2fmuq3*_1YC(%5aYaax-TK ze?>G|1#PW-0arlqBt1hMiwexwLe+d!NS!lmqktQ{@YL!=kybYv5_>l8VPE3DjR$y07Y(|Y z)v2mM=mrAGsm7Tzf&6TW7GI3qpw;m|90Y;?ALAoMx_nN57*5*j`Q?}Fdq_D~b=lst zYyO*Nm--si;iKh>=bKcjV~sz_;tvB%2;B+J^W2pg1>>d7Q;1_O3|!$n7bR^haIK*P zAc+)X0%>HJ(d17=n~Ztke24M+6y^zH&S%JKdd~R@xpjj0F|h{GNh+9;b^(%{46}>O z=Xr9C%FD=Ng>xaQxk_w`Ba0kytU&A%qk-$VO1xl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/genfiles.properties new file mode 100644 index 0000000..b4d442e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=180e717e +build.xml.script.CRC32=fcb5f91a +build.xml.stylesheet.CRC32=8064a381@1.79.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=180e717e +nbproject/build-impl.xml.script.CRC32=7b753a07 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/project.properties new file mode 100644 index 0000000..5a9b72f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/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}/Exception10.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.7 +javac.target=1.7 +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=exception10.Slave +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/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/project.xml new file mode 100644 index 0000000..ed8a254 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception10 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/src/exception10/Master.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/src/exception10/Master.java new file mode 100644 index 0000000..cbef512 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/src/exception10/Master.java @@ -0,0 +1,20 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception10; + +import java.io.FileNotFoundException; + +/** + * + * @author anda + */ +public class Master { + public String doStuff() throws FileNotFoundException + { + return "a"; + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception10/src/exception10/Slave.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/src/exception10/Slave.java new file mode 100644 index 0000000..95f8307 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception10/src/exception10/Slave.java @@ -0,0 +1,65 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception10; + +/** + * + * @author anda + */ +public class Slave extends Master{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + String s = null; + try + { + s = new Slave().doStuff(); + + } + catch(Exception ex) + { + s ="'b"; + } + System.out.println(s); + } + + //public String doStuff() + //{ + // return "b"; + //} + + /** + public String doStuff() throws NumberFormatException + { + return "b"; + } + * */ + + /** + public String doStuff() throws FileNotFoundException + { + return "b"; + } + * **/ + /* + public String doStuff() throws FileNotFoundException, NumberFormatException + { + return "b"; + } + */ + + public String doStuff() throws StackOverflowError + { + return "b"; + } + + + + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception11/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/build.xml new file mode 100644 index 0000000..252eb42 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception11. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception11/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception11/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception11/build/classes/exception11/Exception11.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/build/classes/exception11/Exception11.class new file mode 100644 index 0000000000000000000000000000000000000000..fc8d0366c01c7d7bbfb359951f04e997d3aadf45 GIT binary patch literal 1568 zcmZuxX;afs6g`jDCWN?^rQ!k+6m`=cDsYfBS{W+pH9-FKIB&%G~y{{Hv{U<$7c3}e#3F-)oDs)lR5xQ-hdZW>5o zQpYXzy=@?gX(in;a2NM9+}H8Iz(Gvwc&I#Qbj)gaq~o!Hex;pLE>AQ()$mLpb;t3X z@SZ>-n_Cq~&iWN8aJcArakrbh{9(baH!+h&QpBiR0#?jpvEjPQzT<^5h@43qEk6kuCBG4r z<(#9KIMOjF6fUcpOdQ7v6X(=&5hnyjqe{D?)$rWJJc8eWj%UB7Pt+5(VzYmcXfQYL#wFA!ZjN3{~mLfDNoz>suX6zoM9A2^krUP<))o zeS~3Y{k<%Q|EWq_8=G(|+5_SE`DIR9NPeYVdXR##wLUWvhO=~r=@cXpV+0N?e8GeHZ#eK1skI$wX?+{L6WcKO*+$*3B1~$f!>M?#Ixt1Q + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/genfiles.properties new file mode 100644 index 0000000..b80e230 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=101dfd58 +build.xml.script.CRC32=1dc87270 +build.xml.stylesheet.CRC32=8064a381@1.79.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=101dfd58 +nbproject/build-impl.xml.script.CRC32=4dfd147b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/private/private.xml new file mode 100644 index 0000000..09da151 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Exception11/src/exception11/Exception11.java + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/project.properties new file mode 100644 index 0000000..3fac90f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/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}/Exception11.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.7 +javac.target=1.7 +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=exception11.Exception11 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/project.xml new file mode 100644 index 0000000..9a98d10 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception11 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception11/src/exception11/Exception11.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/src/exception11/Exception11.java new file mode 100644 index 0000000..6fda5db --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception11/src/exception11/Exception11.java @@ -0,0 +1,46 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception11; + +/** + * + * @author anda + */ +public class Exception11 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + x(); + } + + static void x() { + try { + y(); + } catch (IllegalStateException e) { + System.out.println("IllegalStateException in x(): " + e.getMessage()); + } catch (Exception e) { + System.out.println("Exception in x(): " + e.getMessage()); + } + } + + static void y() { + try { + System.out.println("Before call to z()"); + z(); + System.out.println("After call to z()"); + } catch (NullPointerException e) { + System.out.println("NullPointerException in y(): " + e.getMessage()); + } + } + + static void z() { + throw new IllegalStateException("Exception generated by z() method"); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/build.xml new file mode 100644 index 0000000..345ee32 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception12. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/exception12/Exception12.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/build/classes/exception12/Exception12.class new file mode 100644 index 0000000000000000000000000000000000000000..802cabb207d33a5599b03b44b68b2dee2b776872 GIT binary patch literal 845 zcmZ`%O>fgc5Ph3CapJnPX-Gl>rIgP!ftrRBD&m4bieylwKn3Eo4J)&d*pcI)@{71| zDTfw;#1G&{A>KMslZs-?yEEfA^WMzv?>|3&0eFCpgCaI;Tyv1YMiHC1ZX!1v+{7&# zw;kL;)5exS{*exK@>n3-+}ango<#4Iz>2R!^#;!HSBHHyN^}(NbiAi?dzS@=QilT7=3D=R{3N}B3xlIqa3@sA1trx#7)zIvujqpJ)0 zw++~ZgC&95e|ogha?!?J7j-mj+;g!FkFw`Hrv+`?cd>(pKxwg9+AxXd8NJWrL=AZ+ z(ZuvK)vP0Lk7G+XJSB%5(3IkASil|`(10_ynq4#D(!4ImqXHER6h<;0E4sWH8D0$Y zWWh;biK|P`<1V=8S|<=kG%{G`nool+F3@(T0IXn@UJ)g%F=CR(u!sj5KaqKJf~@}y zR=bt$93yv({1;gMQJP!9CDaD{*BeAiQ^DytQUD&u0B*C3)wbd8^l q%xjxyK0JV#fQQ_TfL!}K3SVg~s^2`VNx)3Ku`ZL-rBg)RU|TekhiScu}&*PfmjeC9`VG&Z$t7ToL-ia2~xzK^Em{ zFjb|@)A49Rpk-~lK@sfhf4j=Ufa__oC=+ob>p|?s|G1VpFklk88@Cg@*7h!*i-gDU zTWIZ%LumXP_0qtvhsm+SRlu1zn@1m@_lCAOb{f#Z7N4C}1GZsv1?(`QHR5w-G)8pK fdgG*_mAZ{|u%g#e9lO|Lk;~l%XODNcQTBcTO21Q5 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/build-impl.xml new file mode 100644 index 0000000..508072e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/genfiles.properties new file mode 100644 index 0000000..37ddb79 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=08296932 +build.xml.script.CRC32=e53fe98f +build.xml.stylesheet.CRC32=8064a381@1.79.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=08296932 +nbproject/build-impl.xml.script.CRC32=166566ff +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/private/private.xml new file mode 100644 index 0000000..cd24f3c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/private/private.xml @@ -0,0 +1,10 @@ + + + + + + file:/E:/PrjJava/Exception12/src/exception12/Exception12.java + file:/E:/PrjJava/Exception12/src/exception12/Utils.java + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/project.properties new file mode 100644 index 0000000..1499e74 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/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}/Exception12.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.7 +javac.target=1.7 +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=exception12.Exception12 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/project.xml new file mode 100644 index 0000000..dba089d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception12 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/src/exception12/Exception12.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/src/exception12/Exception12.java new file mode 100644 index 0000000..eaac2ca --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/src/exception12/Exception12.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception12; + +/** + * + * @author anda + */ +public class Exception12 extends Utils{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args){ + //public static void main(String[] args) throws Exception{ + // TODO code application logic here + try + { + Utils u = new Exception12(); + System.out.println(u.getInt(args[0])); + } + catch(Exception e) + { + + } + } + + int getInt(String x) + { + return Integer.parseInt(x); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception12/src/exception12/Utils.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/src/exception12/Utils.java new file mode 100644 index 0000000..48c6b84 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception12/src/exception12/Utils.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception12; + +/** + * + * @author anda + */ +public class Utils { + int getInt(String x) throws Exception + { + return 7; + } +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception13/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/build.xml new file mode 100644 index 0000000..2890ac9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception13. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception13/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception13/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception13/build/classes/exception13/Exception13.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/build/classes/exception13/Exception13.class new file mode 100644 index 0000000000000000000000000000000000000000..61b53ef48d06af8394c59a03515ec6cd2ada7e53 GIT binary patch literal 499 zcmZ{h&q~8U5XQgFpGK2tqp58@daE7`l9N=th@OHTDh2VhjZ55;CX%M&Yk9Gt-~;$j z;%pm84)roK`_0a8KW2Y^KfeKl=-V*Sv2b8RLq~6jN%oh#8OpXHq4FcNREcqwI`orS@5T@ML3<1%CD4j!W^ zf8{~Svm_Xmh0K!S>Oo#4gzz`C8MGv4ut)i#h{cUmHoOM?Q~_PIU@`Rmao}Q4wY~c7 zyUA3F;7|qX?qHV`HGEFD y)v)sg?O_T114fNdI|qD1bQ%~3ZFrS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/genfiles.properties new file mode 100644 index 0000000..2dee305 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=003ae514 +build.xml.script.CRC32=044262e5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=003ae514 +nbproject/build-impl.xml.script.CRC32=20ed4883 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/private/private.xml new file mode 100644 index 0000000..4a0c1b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/E:/PrjJava/Exception13/src/exception13/Exception13.java + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/project.properties new file mode 100644 index 0000000..c00d0e6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/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}/Exception13.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.7 +javac.target=1.7 +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=exception13.Exception13 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/project.xml new file mode 100644 index 0000000..73641e0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception13 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception13/src/exception13/Exception13.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/src/exception13/Exception13.java new file mode 100644 index 0000000..fead7b4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception13/src/exception13/Exception13.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception13; + +/** + * + * @author anda + */ +public class Exception13 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Exception13().go(); + } + void go() + { + go(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/build.xml new file mode 100644 index 0000000..a7a37e4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception14. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/build/classes/exception14/Exception14.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/build/classes/exception14/Exception14.class new file mode 100644 index 0000000000000000000000000000000000000000..ad74e06fc75bc98b25e90dfa0de5fc5b76d3323d GIT binary patch literal 767 zcmZ`%T~8B16g{&oopxD1Y-ww;sQ6jXxFPTc;l;?)A|y2=#HZ;xDTD29vuut0BA@XA z5=r<0{wU*_ZPP-~hn@Q|_nvd^-TD3J*A0M8yme7RQ)0!1gQh(mOFSvzDOQVk=HfYC zNW2s%?3l=;y8^k^+L1v1ef&iWECeRfABX*pPCltlkC}21hpKm^5@X|WGM}E9Gl52+ zzlVB|nmF3n@;^-dZ36a{i3Dn`&%vqsru?3Yx_&!NOw`@Bgo4=BTUV2A+pCf;;Vb`W z6_{(MD*U>y2ALMlCg5~q0k<6wlThy&t9o$)x3Trk@_TSGD^UNBU=Iy@U71Rq07$&@ z@ER@3iihEe#F~e7ydlT5_@HyD!}Lz7eSVheKGz!$c`=^U#Qq^Ska7=N^*QN?@NQZ_ z4s216>#MeIt!T16tn#;(_`87|I5}o{dW?KpK|8a41#v;g!5q&*mh>=B-y0QR0gH@E zcz`l9wt2v6hqitV=lBY_OXPpR3x1+dmX|1AWQ{HXXUJ+{YxICB`Ii~j3EyC@nbFh; yHIE`HSjzh9tgBgYeiF{U#KR(8Zhg$YNjs8G-l=r^fWgO`=gjxz3o_dwAN>U=*OY(& literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/build-impl.xml new file mode 100644 index 0000000..685f6ae --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/genfiles.properties new file mode 100644 index 0000000..162e505 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=384041e6 +build.xml.script.CRC32=cfa1d830 +build.xml.stylesheet.CRC32=8064a381@1.79.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=384041e6 +nbproject/build-impl.xml.script.CRC32=a15583f7 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/private/private.xml new file mode 100644 index 0000000..77ab9b1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/E:/PrjJava/Exception14/src/exception14/Exception14.java + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/project.properties new file mode 100644 index 0000000..b6a7291 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/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}/Exception14.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.7 +javac.target=1.7 +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=exception14.Exception14 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/project.xml new file mode 100644 index 0000000..7d68b8b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception14 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception14/src/exception14/Exception14.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/src/exception14/Exception14.java new file mode 100644 index 0000000..4a415fb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception14/src/exception14/Exception14.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception14; + +/** + * + * @author anda + */ +public class Exception14 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try + { + new Exception14().go(); + } + catch(Exception e) + { + System.out.println("ouch"); + } + + } + + void go() + { + go(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build.xml new file mode 100644 index 0000000..ca914df --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exsception15. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/exception15/Exception15.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/exception15/Exception15.class new file mode 100644 index 0000000000000000000000000000000000000000..5477dff48a60d930171c6516727a1e8eb0fac39f GIT binary patch literal 685 zcmZuuO>f#j6r2Tvff$lPA))zhn-o&17K(C8)Jxl(+$IuHE;%jk3YLP6jH$@aqK8(> zA-(rURh@MrAX0tU-8b*eyf@E({@&dKI7YJo8!v2Z=COtC9CixW#h#6Q8!rX2XFAaF zdx3PLc`aal2)`&x%b9mt^Tw&O?#-BZ(0P`kR6nzPAGsVN0y)Mby#fA|8$b}apG zpXDeSh#mzB?QjzL>Rg+t*XDAqlXs@SgBlYaFm|PunMdBzrD4=+$nbp5xJuMS>r|^J>U*p)D$h_RFT>F)$&0FFR1(xu literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/exsception15/Exsception15.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/build/classes/exsception15/Exsception15.class new file mode 100644 index 0000000000000000000000000000000000000000..50e8e77d87af82c3e01033fbcfe56d9dfa49db9d GIT binary patch literal 792 zcmZ`%%Wl&^6g}glapJnKgd~KtghGL|AS_g|Dq@4m$^oRHNQl+MjFM>`J92CUU&OjB zS_vdRfR93)aVnCEvhdu;+UB05s^py{ImG9v}iJ4;ssouruzdomc4 z#Bq|ui9wOch@)!PfC#MhQyHB0-61u0XDG7sDdq2nK8{%R$H{qAF$qEpm2`jSGfK+l&bbQ%4d0_L%VsR#aufd(;(D3%BbN+-q&PZ!+`U%VfAd>EYqd_m(vev=hQiOLEXG;po1b` N_P_K6Cz~bPe*mO*p2z?I literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/build-impl.xml new file mode 100644 index 0000000..a005eef --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/genfiles.properties new file mode 100644 index 0000000..4793a08 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e68d2c60 +build.xml.script.CRC32=08e54c03 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e68d2c60 +nbproject/build-impl.xml.script.CRC32=9e7940ea +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/private/private.xml new file mode 100644 index 0000000..4fa0c3a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Exsception15/src/exsception15/Exsception15.java + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/project.properties new file mode 100644 index 0000000..f6f398a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/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}/Exsception15.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.7 +javac.target=1.7 +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=exsception15.Exsception15 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/project.xml new file mode 100644 index 0000000..8a00059 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exsception15 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/src/exception15/Exception15.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/src/exception15/Exception15.java new file mode 100644 index 0000000..f9f2b59 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/src/exception15/Exception15.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception15; + +/** + * + * @author andad + */ +public class Exception15 { + + /** + * @param args the command line arguments + */ + // public static void main(String args[]) throws Exception{ or + public static void main(String args[]) { + try { + Exception e = null; + throw e; + } catch (Exception ex) { + System.out.println("hi"); + } + } +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception15/src/exsception15/Exsception15.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/src/exsception15/Exsception15.java new file mode 100644 index 0000000..4056f69 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception15/src/exsception15/Exsception15.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exsception15; + +/** + * + * @author anda + */ +public class Exsception15 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try + { + new Exsception15().go(); + } + catch(VirtualMachineError e) + { + System.out.println("ouch"); + } + } + + void go() + { + go(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build.xml new file mode 100644 index 0000000..5679722 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception16. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/exception16/Exception16.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/exception16/Exception16.class new file mode 100644 index 0000000000000000000000000000000000000000..913d24bc689fd04ea020f07a7da5aec39ff4b8e8 GIT binary patch literal 624 zcmZ{hT}uK%6o%i?)y;KF)BNh&>O#9{i69W8nC_uR02Pq|~C2#H1Xch>%Zya$-(cVo@fD4;5r7$;d2bWRUbptw>HSD9OyvGc?opt#pO) ztQi@&g7Zs@l2hF>L52t*$?0V!mL>8qurRPPGKk~Q&&VJQQl+1hn3t{(Hd4an06^BEXewYD=bZUhQ2F|Y$kHlQ#A0}lfSm;|v|88{iZfHWfmH;`mv G-~j*?3q5!M literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/exception16/Tire.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/build/classes/exception16/Tire.class new file mode 100644 index 0000000000000000000000000000000000000000..e86c6c9358a517e06c3d77d4c78dea67a42423b7 GIT binary patch literal 328 zcmZXO%}&BV6ot=){zxrSeFJw2iH$LFgJDDBs?i06{j>}+q;^c55?+fHi3=Zqha%i5 zgbrf)@6O%setrQw;W|JQS3WvEB7*m#3S|a_=H2~-;0*Ot5;}=0Ccem4*L-(HY1a*C6pA`+Iv2c$qhi literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/build-impl.xml new file mode 100644 index 0000000..072fc6e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/genfiles.properties new file mode 100644 index 0000000..a031401 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=286759aa +build.xml.script.CRC32=d62bc8a5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=286759aa +nbproject/build-impl.xml.script.CRC32=cc45df0f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/private/private.xml new file mode 100644 index 0000000..60f27a4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/private/private.xml @@ -0,0 +1,11 @@ + + + + + + file:/E:/PrjJava/Exception16/src/exception16/MyException.java + file:/E:/PrjJava/Exception16/src/exception16/Tire.java + file:/E:/PrjJava/Exception16/src/exception16/Exception16.java + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/project.properties new file mode 100644 index 0000000..21ee090 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/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}/Exception16.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.7 +javac.target=1.7 +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=exception16.Exception16 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/project.xml new file mode 100644 index 0000000..dd9acda --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception16 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/Exception16.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/Exception16.java new file mode 100644 index 0000000..772e41d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/Exception16.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception16; + +/** + * + * @author anda + */ +public class Exception16 extends Tire { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Exception16().doStuff(); + } + + void doStuff() + { + System.out.println(7/0); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/MyException.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/MyException.java new file mode 100644 index 0000000..c5a0d88 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/MyException.java @@ -0,0 +1,15 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception16; + +/** + * + * @author anda + */ +public class MyException extends Exception { + + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/Tire.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/Tire.java new file mode 100644 index 0000000..cac9a41 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception16/src/exception16/Tire.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception16; + +/** + * + * @author anda + */ +public class Tire { + void doStuff() + { + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build.xml new file mode 100644 index 0000000..7333e5f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception17. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/exception17/Exception17.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/exception17/Exception17.class new file mode 100644 index 0000000000000000000000000000000000000000..37e5bd268a9679a48303f951a7eddd53722e92d5 GIT binary patch literal 682 zcmZ`%TT2^37(J7$8F#a-(RfMPS}*ky``{vd5U~_QS}254hy=u^F^+M{USu;V?ayi- z6fE=y^hcGRNhDFJ5Btq`Ip@sxeY1c5-uwpe2AcsSY7+GT1=O5*=HoeD1X#pNi6w#3 zTaz05PN3M>Y72OW*_jrYYMNAk>L;f*z~s zvUF!RdO!B}DVQje3d}c7nqSmc6~!v;MlGA0w7WmJP~}}pRR2>JkY`!T_Rr4+f{|)Z zVwrI(>*pQ)!MNTkqvFo)w!0<7Bz%E|N7@Qeg)gxZVim6>)>ZghrZL03tN26=Wn52``H6{&EXG$TJ(Q^tSidJT>}HlUkK{Ri J^YjZ?_y-rVg;@Xq literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/exception17/MyException.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/exception17/MyException.class new file mode 100644 index 0000000000000000000000000000000000000000..b09b19e976727f57c09701f32215818b838e60d0 GIT binary patch literal 285 zcmX^0Z`VEs1_omW0WJn+23~dsK6VCvMg}&U%)HDJJ4Oa(4b3n{1{UZ1lvG9rexJ;| zRKL>Pq|~C2#H1Xch>%Zya$-(cVo@fD4;5r7$;d2bWRUbptw>HSD9OyvGc?!tt#pO) ztQi@&g7Zs@l2hF>L52t*$?0V!mL>8qurRPPGKk~Q&&VJQQl+1hn3t{(Hd4an06^BEXewYD=bZUhQ2F|Y$kHlQ#A0}lfSm;|v|88{iZfHWfmH;`mv G-~j*@H$8d) literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/exception17/Tire.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/build/classes/exception17/Tire.class new file mode 100644 index 0000000000000000000000000000000000000000..ce230e5a7d2cf9e4b8158e1110f51f7340717e50 GIT binary patch literal 328 zcmZXO%}&BV6ot=){zxrSeFJw2iH&jL0>g&HRig_C`)L_uNbQ(9CA=0Z5*I!I4@J0B z2q8L)d*_@p-<`YN{rm!W!gYWqu6%TSL zQiO2e5~9B>TQ-h!QGCSj=|W}(w`lOv_B6mt!sY6*in$Yax4QwY>)7Y&)n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/genfiles.properties new file mode 100644 index 0000000..7ad448c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2074d58c +build.xml.script.CRC32=375643cf +build.xml.stylesheet.CRC32=8064a381@1.79.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=2074d58c +nbproject/build-impl.xml.script.CRC32=facdf173 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/private/private.xml new file mode 100644 index 0000000..52abff5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/E:/PrjJava/Exception17/src/exception17/Exception17.java + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/project.properties new file mode 100644 index 0000000..dc51a9a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/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}/Exception17.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.7 +javac.target=1.7 +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=exception17.Exception17 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/project.xml new file mode 100644 index 0000000..efd1f9d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception17 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/Exception17.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/Exception17.java new file mode 100644 index 0000000..e09492a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/Exception17.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception17; + +/** + * + * @author anda + */ +public class Exception17 extends Tire{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Exception17().doStuff(); + } + + void doStuff() throws ArithmeticException + { + System.out.println(7/0); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/MyException.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/MyException.java new file mode 100644 index 0000000..32b378d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/MyException.java @@ -0,0 +1,15 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception17; + +/** + * + * @author anda + */ +public class MyException extends Exception { + + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/Tire.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/Tire.java new file mode 100644 index 0000000..cfb41e0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception17/src/exception17/Tire.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception17; + +/** + * + * @author anda + */ +public class Tire { + void doStuff() + { + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception18/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/build.xml new file mode 100644 index 0000000..1686ce1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception18. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception18/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/build-impl.xml new file mode 100644 index 0000000..cf5bbaf --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/genfiles.properties new file mode 100644 index 0000000..aed5ca4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5892104e +build.xml.script.CRC32=9a9dbb4e +build.xml.stylesheet.CRC32=8064a381@1.79.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=5892104e +nbproject/build-impl.xml.script.CRC32=14454fa6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/project.properties new file mode 100644 index 0000000..1a16b08 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/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}/Exception18.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.7 +javac.target=1.7 +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=exception18.Exception18 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/project.xml new file mode 100644 index 0000000..6550963 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception18 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/Exception18.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/Exception18.java new file mode 100644 index 0000000..6addc02 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/Exception18.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception18; + +/** + * + * @author anda + */ +public class Exception18 extends Tire{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Exception18().doStuff(); + + } + void doStuff() throws MyException + { + System.out.println(7/0); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/MyException.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/MyException.java new file mode 100644 index 0000000..18d875e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/MyException.java @@ -0,0 +1,15 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception18; + +/** + * + * @author anda + */ +public class MyException extends Exception { + + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/Tire.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/Tire.java new file mode 100644 index 0000000..5b63d96 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception18/src/exception18/Tire.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception18; + +/** + * + * @author anda + */ +public class Tire { + void doStuff() + { + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build.xml new file mode 100644 index 0000000..969a17b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception19. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/exception19/Exception19.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/exception19/Exception19.class new file mode 100644 index 0000000000000000000000000000000000000000..deab32c7f73922e7d38efaae628cdf946a498721 GIT binary patch literal 679 zcmZ`%T~8B16g|@}9e2A*p?tLXiJ%rA+z_4`3@-!|lSYj-O^8p^GL#|vLAJ9-f0jN# zqKQ9%A7wn#n${A1*gN;0IrrR;+3R25e*)OUvj7qeiDrNj8qRF^xQlxM?&E>PLxIXm zlNx&SMKem_uGTQp_cJt=Bs}Z1R;P zUk@llxIt(GMiEcJbK&_F#8)~cRB0Bb5Pfr>avpM#!cfwo1sh{!Bs4~=lSXs>a%^DDacj;yBR`9Zgn}R7k21~@ zG&Ig6Z|1$3dC7czZ+8H0kVJ6N4sjNuLkLE?)b*I)4lXl-cW-8j&`EWvCe3oHsuwve zSUFEkE{jZ7+VX?w)eHSj=%wm2S8ug8<@K$2T0Q)-J3{nqnkrY1+L|Osv*D}!kTE>? zgo}Uf30=D-3R%v@pDX%s_yrrp$qtMGGqLA@f3*RvS#S_C1}p&38#z> F;vX1~J$?WH literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/exception19/Tire.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/build/classes/exception19/Tire.class new file mode 100644 index 0000000000000000000000000000000000000000..7a2fbf9dbed5abf79aaccfdee5889ae4b9c99e36 GIT binary patch literal 328 zcmZXO%}&BV6ot=){zxrSeFJw2iH&h(Fl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/genfiles.properties new file mode 100644 index 0000000..597abf6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=50819c68 +build.xml.script.CRC32=7be03024 +build.xml.stylesheet.CRC32=8064a381@1.79.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=50819c68 +nbproject/build-impl.xml.script.CRC32=22cd61da +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/project.properties new file mode 100644 index 0000000..9fda708 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/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}/Exception19.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.7 +javac.target=1.7 +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=exception19.Exception19 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/project.xml new file mode 100644 index 0000000..8cc59d2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception19 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/Exception19.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/Exception19.java new file mode 100644 index 0000000..5e72e40 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/Exception19.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception19; + +/** + * + * @author anda + */ +public class Exception19 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + new Exception19().doStuff(); + } + + void doStuff() throws RuntimeException + { + System.out.println(7/0); + } + + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/MyException.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/MyException.java new file mode 100644 index 0000000..a853f29 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/MyException.java @@ -0,0 +1,15 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception19; + +/** + * + * @author anda + */ +public class MyException extends Exception { + + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/Tire.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/Tire.java new file mode 100644 index 0000000..911a98e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception19/src/exception19/Tire.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception19; + +/** + * + * @author anda + */ +public class Tire { + void doStuff() + { + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/build.xml new file mode 100644 index 0000000..6cb74e8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception6. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/build/classes/exception6/Exception6.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/build/classes/exception6/Exception6.class new file mode 100644 index 0000000000000000000000000000000000000000..a2c1c8da51b13dd7dc1c1aed37eafe5aee225944 GIT binary patch literal 968 zcmZuvT~E_c7=F$MbaaIwb3;K{L6m_=6_gv48zb>zsBr{iOia3R!VYvTDQ615$ZNb1 zqlsL2=Z`Wzr{E~jCVfAj_xt?%{p|;UWvtj3!qgz9ajSqC8@F-ChJ)Dx>IKYMm@nY2 zg#{ZnrYzjEuqZI_SVc;&3FPZ@TLOJg<83KWYN$xQ=yqB%+4Nf>Eu)P%@WU-XQAR&E z_UX1d5EyI7!$9t96-O)Hv!1xhbRAzs0@eDv#;*Ut_d-9~@tQhO(ax$Vmy?GAm5i?! zZG!z|huO>ji4_=XYCqW9@b}YJIGY7ez|!p`{;0Ho-Hf|QAlH>?zSK**vS|8nFpQFg z`wkvpNuc;#hGFc!iIZ^K!m@*hc;sLbB^KX~Bk3|@+ttaD+X~}gkHyzjSDNFB~BgqI%vDEyOCBMnQ@F?!2fktWN(3)T?&j`1iftS%78Ow%5Ivu&n}e#HjfUp z?C`d6m+`W^21EX`#zSGjLMA+J}dXAaam9;W!ThWPG)JcL;&=?FEC zT#)zApFkW_$l(gkjZ~XNyoF1n+$~<9#xyo1~oy2U)^JzDWDAHD;ze;J0m>MSF5_LV5W=TEj zOXN>Ds_DAQ-fD~(!?m>kHDbqUpWt6a{=J18O$#?|4#c-}K9I{G^A*0setUxADP@sa M$PBd_Z8^Aq01{lz9RL6T literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/build-impl.xml new file mode 100644 index 0000000..7e1ca0a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/genfiles.properties new file mode 100644 index 0000000..a4ea12a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7b4f3c64 +build.xml.script.CRC32=82755bbc +build.xml.stylesheet.CRC32=8064a381@1.79.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=7b4f3c64 +nbproject/build-impl.xml.script.CRC32=552213c8 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/project.properties new file mode 100644 index 0000000..21e3274 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/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}/Exception6.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.7 +javac.target=1.7 +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=exception6.Exception6 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/project.xml new file mode 100644 index 0000000..19c9c3a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception6/src/exception6/Exception6.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/src/exception6/Exception6.java new file mode 100644 index 0000000..13f6c91 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception6/src/exception6/Exception6.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception6; + +/** + * + * @author anda + */ +public class Exception6 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try + { + System.out.println("Hello World"); + throwit(); + System.out.println("done with try block"); + } + catch(Exception ex) + { + System.out.println("catch RuntimeException"); + } + finally + { + System.out.println("Fin executing"); + } + } + public static void throwit() + { + throw new RuntimeException(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build.xml new file mode 100644 index 0000000..dea7b0e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception7. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/exception7/Exception7.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/exception7/Exception7.class new file mode 100644 index 0000000000000000000000000000000000000000..de50b41f3d0d4fa0925eeb2ea4b71d13e674a507 GIT binary patch literal 650 zcmZuu%Sr<=6g_Ec$BtuLAAR_?KC6PWaN(ljMihj>2bF@jN^2M+)0r}+qMxOU78Lvd zKT5orietenlH7alJ?Ea}^Xu&cz#g_ujG}B{#zX?M8O&i`-xf?PV#&a=feJ(VK>AW0 zG9;^84TjWFa4Q&cj`YP@x7`%s6>oZ!nRJ2{_ZmEuI{rzf)SY}_C^_P(B|1t5{=R+u zd#w>&n@gXeSiN!X`6IVI?z?tfh0=FxksJ?QBAEIIW-vPQ1B{GZ)M6YDEhfm<)wK1IEo7Trsd}VGZjRHn3@+YGDg2!yPdvLq7I#-n}Gq5}%=NL=Ti u`$#&kNbU46(nC5X%TgIoB+U}0QI1H9gGNkZiZGMtrcoeT`frL8D18Hmn~K^1 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/exception7/Percentage.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/build/classes/exception7/Percentage.class new file mode 100644 index 0000000000000000000000000000000000000000..269bf9f6f63fa6c4d6ab5db09d405c488aa38b8f GIT binary patch literal 626 zcmZuuO;6iE6r6S9n7AfMDIo=y^3_91Pr#x+ zjLrlaJ#`VNQyrzrht5}(1uD@pR9gbGeJz9IeR*mIXh2{lRC+KrP-wPj!R@Cbj_gIb zOm#Z`{z#rn4=z>&*7Lj*%Ovb{<5-0<-pRtz33Yb=Dmz&9u!i+~V#C7>$^!NO`Vy#3 z>Ann)RG93!fxNfzGh+>sgePg4YfCJm{4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/genfiles.properties new file mode 100644 index 0000000..8f158a1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=735cb042 +build.xml.script.CRC32=ac4e256b +build.xml.stylesheet.CRC32=8064a381@1.79.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=735cb042 +nbproject/build-impl.xml.script.CRC32=ecc09077 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/project.properties new file mode 100644 index 0000000..3389fe4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/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}/Exception7.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.7 +javac.target=1.7 +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=exception7.Exception7 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/project.xml new file mode 100644 index 0000000..c9cc633 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/src/exception7/Exception7.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/src/exception7/Exception7.java new file mode 100644 index 0000000..210633b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/src/exception7/Exception7.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception7; + + + +/** + * + * @author anda + */ +public class Exception7 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + // how to catch illegalargumentexception + Percentage percentage = new Percentage(121); + System.out.println(percentage.getValue()); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception7/src/exception7/Percentage.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/src/exception7/Percentage.java new file mode 100644 index 0000000..4480689 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception7/src/exception7/Percentage.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception7; + +/** + * + * @author anda + */ +public class Percentage { + private final int value; + + /** + * A percentage value must be between 0 and 100 inclusive. + * + * @param value + * the percentage value + */ + public Percentage(int value) { + if (value < 0 || value > 100) { + throw new IllegalArgumentException(Integer.toString(value)); + } + this.value = value; + } + + public int getValue() { + return value; + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception8/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/build.xml new file mode 100644 index 0000000..f14b42d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception8. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception8/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception8/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception8/build/classes/exception8/Exception8.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/build/classes/exception8/Exception8.class new file mode 100644 index 0000000000000000000000000000000000000000..a6e27ea2adbaf5797cb2b38bf4491ca60c373b4c GIT binary patch literal 862 zcmZuvTW=CU6#fP%1BgJO6t%RaEw#{M*V-2q$dTKV4C$tF?}cRxr*E~ir<{I0pc7u70CIEO46MtrG|uz2 zvaKUwOQ$D1!ex|{orPpbv|Qio%IC_|oSxLOZ|Er}sA38&iEBtQtV}#FJlS`tPv;+@ z38^w{KK0+ponh&T^7L6xj2@P@56apPq^z0qh#@oS^L6K3b~VRt5__m|+(}{|7RTKr z4seelKX+=hl1ih|Fw?n$HJ%yy-n!mEXod%s+4iqaaZFyX&PGk+j)qzeX#1{Dp!spM za;;-pktR|p1~l$m(A2b + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/genfiles.properties new file mode 100644 index 0000000..2f4f75c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0bba7580 +build.xml.script.CRC32=cc44adb7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0bba7580 +nbproject/build-impl.xml.script.CRC32=b8cc18f7 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/project.properties new file mode 100644 index 0000000..a2522c5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/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}/Exception8.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.7 +javac.target=1.7 +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=exception8.Exception8 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/project.xml new file mode 100644 index 0000000..209492d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception8 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception8/src/exception8/Exception8.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/src/exception8/Exception8.java new file mode 100644 index 0000000..f8c37bd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception8/src/exception8/Exception8.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception8; + +/** + * + * @author anda + */ +import java.util.Calendar; +import java.util.GregorianCalendar; +import static java.util.Calendar.*; + +public class Exception8 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + // MissingFormatArgumentException exception + //System.out.printf("num is %.2f\n" + Math.PI); + //String.format("%s", "anda"); + //java.util.UnknownFormatConversionException + + Calendar c = new GregorianCalendar(1995, MAY, 23); + String s = String.format("Duke's Birthday: %1$tu %1$te,%1$ty", c); + System.out.println(s); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/build.xml new file mode 100644 index 0000000..6e861bb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception9. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/build/classes/exception9/Exception9.class b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/build/classes/exception9/Exception9.class new file mode 100644 index 0000000000000000000000000000000000000000..bdbc177b529ba70cad0974218b02dab1b910924c GIT binary patch literal 1286 zcma)4+fEZv6kVq+ooStNDNqCy1iZ9Rs9d#DML|%Kf|?Q%WMaw9U{84`y=a?CaY5ti6Bz`SBCLB$k5+Bd%aH2oK@`v|&t22^Dwc zJ+5FP2o-S^lPacy^iQjp3E&>?2a&`B6|)Lb3LXlGU4d|VM}My;EWNOm$T%glur({- zPniYNc_iSC#?}RV3wF*BXi1v|W3`;$FiLCshDA#_ZD)0BT`!qZuNi&Lwn^Zww6T{p zijHX)l8HrEB)TuJn+1VL^v%WEvYa4tXPwJUmbrRqi{R~-qzZ&Gj-GwDq8BTjkO&2Q zgOal|PI+^az5-lNxSGJTawULBmrlDp=C+49^9?XB#e2b({&bo+G~4 z*fFwBLy@)ZlKr7N5x-t68iky|Xta*O+F)ZBOtn{#Sk)m*a{K}v(TjnMsOurKzv~!z zu7_P_C$(9bcH$)g9KslSo(WYN8qFL>Q3hFDfX>TWT*m-cHq2FLPm)|pKFJIs{C81H z@FrPk8a{zIq~O6-{{0oBhHlDQH2^*6r53<7T&IP}VusOP+73?Pd3^%!5q!sJ3j6sx zhVl)*Q>e5D&eDwm!McF@#4E1-JG91>kn8$_bbWUrV0e!QZ#M$N(?qxRa5}efhp-AU fqLk!tV=iJ}r95XCZsiCho~WB?8?|BDJQ(>4plb%T literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/build-impl.xml new file mode 100644 index 0000000..91215ac --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/genfiles.properties new file mode 100644 index 0000000..da41b8f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=03a9f9a6 +build.xml.script.CRC32=e27fd360 +build.xml.stylesheet.CRC32=8064a381@1.79.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=03a9f9a6 +nbproject/build-impl.xml.script.CRC32=012e9b48 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/project.properties new file mode 100644 index 0000000..d8ea8c2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/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}/Exception9.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.7 +javac.target=1.7 +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=exception9.Exception9 +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/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/project.xml new file mode 100644 index 0000000..f993932 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception9 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exception9/src/exception9/Exception9.java b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/src/exception9/Exception9.java new file mode 100644 index 0000000..57d5fdf --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exception9/src/exception9/Exception9.java @@ -0,0 +1,43 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception9; + +/** + * + * @author anda + */ +public class Exception9 { + + + static String s = ""; + public static void main(String[] args) { + + try + { + s +="1"; + throw new Exception(); + } + catch(Exception e) + { + s +="2"; + } + finally + { + s +="3"; + doStuff(); + s +="4"; + } + System.out.println(s); + + } + + static void doStuff() + { + int x = 0; + int y = 7/x; + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/build.xml new file mode 100644 index 0000000..696d184 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CatchRuntimeException. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/build-impl.xml new file mode 100644 index 0000000..0a511a2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/genfiles.properties new file mode 100644 index 0000000..1cea50f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5b300341 +build.xml.script.CRC32=0d370b98 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5b300341 +nbproject/build-impl.xml.script.CRC32=bfbe79dc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/project.properties new file mode 100644 index 0000000..08ad508 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/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}/CatchRuntimeException.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.7 +javac.target=1.7 +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=javaapplication237.JavaApplication237 +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/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/project.xml new file mode 100644 index 0000000..fa014e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CatchRuntimeException + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/src/javaapplication237/JavaApplication237.java b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/src/javaapplication237/JavaApplication237.java new file mode 100644 index 0000000..ec7b1b0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ExceptionSample/src/javaapplication237/JavaApplication237.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javaapplication237; + +/** + * + * @author andad + */ +public class JavaApplication237 { + + + public static void main(String[] args) { + + try { + System.out.println("try"); + } catch (RuntimeException e) { + System.out.println("catch"); + } finally { + System.out.println("finally"); + } + + } +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build.xml new file mode 100644 index 0000000..3a1bbc6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Excercise63_1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/excercise63_1/Excercise63_1.class b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/excercise63_1/Excercise63_1.class new file mode 100644 index 0000000000000000000000000000000000000000..7c93625e37c44860f9a138c2844577dd41e191f2 GIT binary patch literal 1028 zcmaJ<+fEZv6kTUpI%S+9474JMmWxm>QW3=q#>5y+NQ#n_5RDJybUYab=h954czN?T z`~hFp2QZq*yB}p-Gpz!Fn90oEXP-T5?Y;K?_51rz0L!>%z{GeS69&#iqEk6UkdZ^8!7~5^3iVjpuh(TWtxCsr0lkYTFkLx~H+woHAc$|& z!**n=CvMvDi8dCKs!SBnCqR)eVNA!8i5pnfanr;ttOyKjM4=N&zifwo(^Ii(>9}p; z4(+f2z@;Uji&GceN6gRAHa4<1vp`_2@bzn}0DR47M@>p~6 zEP*-H<3wp!+%-=HPP~)u+8WB-QIl&6WcX58aPR0O@Kzi{{^MJZsI`I(esge*xZ zIbs!vUF0)NJBbS^Z;9wR=qT}=lsLuPi?kzrb!g9Zj2bM5%h4@oo4^_`OLP0sKcesh z`4?920gOXStIdDrO^4V*mi{O~#z-{Ih9>_J@^4%wAsE%V)Cpk*Vt_PP=xQkc0ec_V AhyVZp literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/excercise63_1/Excercise63_1.rs b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/excercise63_1/Excercise63_1.rs new file mode 100644 index 0000000..b7357a3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/build/classes/excercise63_1/Excercise63_1.rs @@ -0,0 +1 @@ +Exercise63_1 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/build-impl.xml new file mode 100644 index 0000000..adb827f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/genfiles.properties new file mode 100644 index 0000000..cfdf2e4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=600d258c +build.xml.script.CRC32=23dd36ce +build.xml.stylesheet.CRC32=8064a381@1.79.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=600d258c +nbproject/build-impl.xml.script.CRC32=9f0a5f86 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/project.properties new file mode 100644 index 0000000..dbabb4b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/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}/Excercise63_1.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.7 +javac.target=1.7 +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=excercise63_1.Excercise63_1 +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/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/project.xml new file mode 100644 index 0000000..bd2615b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Excercise63_1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/src/excercise63_1/Excercise63_1.java b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/src/excercise63_1/Excercise63_1.java new file mode 100644 index 0000000..cc48987 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excercise63_1/src/excercise63_1/Excercise63_1.java @@ -0,0 +1,38 @@ +package excercise63_1; +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +class Excercise63_1 { + + public static void main(String[] args) { + + try { + + String reverseStr = reverse(""); + + System.out.println(reverseStr); + + } finally { + + System.out.println("Program completes"); + + } + + } + + public static String reverse(String s) { + + if (s.length() == 0) { + + throw new IllegalArgumentException("string can't be zero"); // runtime exception . unchecked exception + + } + + String reverseStr = ""; + + return reverseStr; + + } +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build.xml new file mode 100644 index 0000000..ff7c792 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Excersise6-2. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build/classes/excersise6/pkg2/Excersise62.class b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/build/classes/excersise6/pkg2/Excersise62.class new file mode 100644 index 0000000000000000000000000000000000000000..581c137cd49a29d83d6e71f508087fcd56cdc287 GIT binary patch literal 736 zcmaJfgc5PfTh+A(fxk|u4M7Tf@hn*)}LgpgWsK_DT84=JdZo;L2v-PW2H-Aw4s5JeVWC~c8rE%G zcW?u~jSUMO3pW`Ur~e7V+^$Sz@qob$w)Pk*53>Wou-KQWcs3agg?h<{31w>iEaJ%? zS5o6yvQiw%oMF8$UPVIXG8gy4@o~HzKKg^VcZhVvWy;VD_WMWtgog=F<8V+YnZ`S% zC|5Dj)GsO1Ts$WE`9Z;>UrE2Ig+tYrI3}HDhhh zdy9pSFl&|1xbptjcOA}^;hEMjp*1??bW60mNzpP*wnFSJ`c~;VuAxgETDy79k0mq+ X8Q7$ZL+Z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/genfiles.properties new file mode 100644 index 0000000..6e7d286 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=45c50075 +build.xml.script.CRC32=753919fe +build.xml.stylesheet.CRC32=8064a381@1.79.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=45c50075 +nbproject/build-impl.xml.script.CRC32=e82b10d9 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/private/private.xml new file mode 100644 index 0000000..310658f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Excersise6-2/src/excersise6/pkg2/Excersise62.java + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/project.properties new file mode 100644 index 0000000..9adb821 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/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}/Excersise6-2.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.7 +javac.target=1.7 +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=excersise6.pkg2.Excersise62 +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/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/project.xml new file mode 100644 index 0000000..7654c86 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Excersise6-2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/src/excersise6/pkg2/Excersise62.java b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/src/excersise6/pkg2/Excersise62.java new file mode 100644 index 0000000..622a647 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Excersise6-2/src/excersise6/pkg2/Excersise62.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package excersise6.pkg2; + +/** + * + * @author andad + */ +public class Excersise62 { + + /** + * @param args the command line arguments + */ + private int a = 0; + public static void main(String[] args) { + // TODO code application logic here + int age = 0; + label1: + while (age <= 21) { + age += 1; + if (age >= 16) { + System.out.println("get your driver's licence"); + continue label1; + } else { + System.out.println("another year"); + } + + } + + + } +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build.xml new file mode 100644 index 0000000..346d8b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exercise6-3. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build/classes/exercise6/pkg3/Exercise63.class b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/build/classes/exercise6/pkg3/Exercise63.class new file mode 100644 index 0000000000000000000000000000000000000000..3d064b0e994fc0a59aab32157850af1cb157a09b GIT binary patch literal 1350 zcmZ`&+foxj5IvK`Y_e`dVnF30tDuIUMn&<$MKOY+L8*#mY5BB-F|2NOQ=5&VZ&vvg z`T@L(55dwZdG|B?46D4HNrI6IKJ0W)PtQ50r+dHs`ur8ZIF@uIF&4uq9o;w`#~EaG zoW;2q&g(qBpy6T+6FOqJq~WrTy%YTpV*f>paJ(4UuU(l6RoIgzbAFO6sCwzuPx zge+UOE6|&Ml7D8su(FQjma>Jwx82gDqSSr)Li$z7kfQ0xA%f+XNONEp0D(jyu!_$Y ztx7|ahHFHeTPw;+V0$iaX)Snx6X{Oy(aw;7u=y?Ut7^DTxPn*ni*nvp@6gq*?TnIY z-~dtrFffb}4YLMrAgAG`fjP_zbT9c{$+ya8(JNOR8At_b;1+JPo_48!1q+P0HM8Pb zfi$1m=4o58;@3VYPMn}`oT6r^FeRaY-dIK1{QF~z+L2(w`kxV?h73L zZ0IX=w9{jOw_R!~-I+Lvqx=(-{5gRzSRGPad$`Neax}0fvk9?5Cxl+E(MHg~ zLHb5B0f%syyEyvL&n$KM4Q-fqBpLdIaQ-7AV|DDINk(bcv2StPKee^dKuHiqNl+Yp zWC6V>SrWwVVMK8Z6JPQ65dnH5PGEHsE%XYM0gydFiv+%*g7ec zu$fF9+B+n^Aoe&J--N!E4CPfUvNApJ9_AP9eY^>SsuP)kI`-AkRmcAP+tBaz-`~eR z5TPmc2nj)QjpW_rNs(y?$1y=Wg_8}rCUg7w&c|_rD#*?FAZ-enRtY9|352_UBCa7V Peh{oJUtpBSA!Pml5d$b> literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/build-impl.xml new file mode 100644 index 0000000..3d18e71 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/genfiles.properties new file mode 100644 index 0000000..3deee35 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ffc1954d +build.xml.script.CRC32=eda8039f +build.xml.stylesheet.CRC32=8064a381@1.79.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=ffc1954d +nbproject/build-impl.xml.script.CRC32=7f3c1dde +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/project.properties new file mode 100644 index 0000000..a00c667 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-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}/Exercise6-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.7 +javac.target=1.7 +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=exercise6.pkg3.Exercise63 +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/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/project.xml new file mode 100644 index 0000000..a144435 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exercise6-3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/src/exercise6/pkg3/Exercise63.java b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/src/exercise6/pkg3/Exercise63.java new file mode 100644 index 0000000..83ff34f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Exercise6-3/src/exercise6/pkg3/Exercise63.java @@ -0,0 +1,42 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exercise6.pkg3; + +/** + * + * @author andad + */ +public class Exercise63 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws Exception { + // TODO code application logic here + + try { + String reverseStr; + reverseStr = reverse(""); + System.out.println(reverseStr); + } finally { + System.out.println("Program completes"); + } + } + + public static String reverse(String s) throws Exception { + + if (s.length() == 0) { + throw new Exception("nu poate fi zero lunginea stringului"); + } + + String reverseStr = ""; + for (int i = s.length() - 1; i >= 0; --i) { + reverseStr += s.charAt(i); + } + return reverseStr; + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/build.xml new file mode 100644 index 0000000..b1a369e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Finally1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/build/classes/finally1/Finally1.class b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/build/classes/finally1/Finally1.class new file mode 100644 index 0000000000000000000000000000000000000000..75ae8163f6f6de78c91701b61f48293db46186f0 GIT binary patch literal 814 zcmZuvU31bv6g^8)QfO!?Ep2U;M*IR4(DAWV9~?W=87v*?@Z!@FSDG3UCIqFw$mjat z*Mq+Mqa4oy6*`*C?)}Kwd(S=DU%$Wq0Pq+O(^$lf6bjf~gp;esoWMYpNDUhz)Hgl)X}ilQPGL)_{`)Qp)38ij65ArlV*JC4FuL2Z@obJ z{`sT&!PMDfsh;!#fsNAZ#+iIC>%I)S^;R5tL3dBL5+kldfrO%ypToQuxvC#~VW5l1 zsH;2tr-neL6-)QsOW7aO;ba!>38Y)$Fmly_r)g&{3Dqxy0@)e7**Q~ge5Jz4X%v2#NI3^=oeyHw zqxj*F@Tmx1SU;vpF||^%M-e7OuBHX7z6SY}IA5AmZ%$!TjXah$ONZq)|GmY_pq~VU z)`9yHqdKjiU8sD4xEO!7xhKa-8yWic1b}6%FiIhdRc7?zZ!Big*0RO@9m9X}35lHX z8Rkb68pc;7XYumUrCb!) uzD3$9oH0X(NP|prL{Kk!>pZQ;s35h);QAk6nWQHG literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/build-impl.xml new file mode 100644 index 0000000..e7c6597 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/genfiles.properties new file mode 100644 index 0000000..6570ab2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=df81c3a4 +build.xml.script.CRC32=7e28d7b0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=df81c3a4 +nbproject/build-impl.xml.script.CRC32=8bd65874 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/project.properties new file mode 100644 index 0000000..bbcca00 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/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}/Finally1.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.7 +javac.target=1.7 +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=finally1.Finally1 +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/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/project.xml new file mode 100644 index 0000000..b9212c8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Finally1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Finally1/src/finally1/Finally1.java b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/src/finally1/Finally1.java new file mode 100644 index 0000000..fb07285 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Finally1/src/finally1/Finally1.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package finally1; + +/** + * + * @author andad + */ +public class Finally1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try + { + int x = 34; + int y = x/0; + } + catch(Exception ex) + { + System.exit(0); + } + finally + { + System.out.println("Oare se mai executa?"); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build.xml new file mode 100644 index 0000000..a4d3cb1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception4. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build/classes/exception4/Exception4.class b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/build/classes/exception4/Exception4.class new file mode 100644 index 0000000000000000000000000000000000000000..da2027fbb055496bb29f405222455a4b8c95e7f9 GIT binary patch literal 965 zcmZ`%T~8B16g|_HZo4i}3I(x%eA^aERqAI82{Dp1DQHr|i%-)!Sr@mv&33Esi+sjJ zBtG~9{88$eLZHUF$=*Bn%)RG+&Cg%oe*oCVt_cgv39Oh{#aaUETHiB}OCpbgi8wY) zY@(>emVuIi`vUQ*<2m83Ks1*>5{SL<-zkCdy5p(CUc0G+H?rvxN!R_BbdO} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/genfiles.properties new file mode 100644 index 0000000..bfb59d0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6b682428 +build.xml.script.CRC32=de03a612 +build.xml.stylesheet.CRC32=8064a381@1.79.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=6b682428 +nbproject/build-impl.xml.script.CRC32=fd9612f7 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/private/private.xml new file mode 100644 index 0000000..df780aa --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/D:/PrjJava/Exception4/src/exception4/Exception4.java + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/project.properties new file mode 100644 index 0000000..25641b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/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}/Exception4.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.7 +javac.target=1.7 +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=exception4.Exception4 +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/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/project.xml new file mode 100644 index 0000000..3273b80 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/src/exception4/Exception4.java b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/src/exception4/Exception4.java new file mode 100644 index 0000000..fb2898f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/IllegalArgumentException/src/exception4/Exception4.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception4; + +/** + * + * @author anda + */ +public class Exception4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + int x = 0; + int y = Integer.parseInt("-FF", 16); + try + { + x = Integer.parseInt("two"); + } + catch(IllegalArgumentException e) + { + System.out.println(e.getMessage()); + } + System.out.println(x); + System.out.println(y); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/build.xml new file mode 100644 index 0000000..5e514e9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project NPE1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE1/build/classes/npe1/NPE1.class b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/build/classes/npe1/NPE1.class new file mode 100644 index 0000000000000000000000000000000000000000..603b04c049a770c577448654632725cf0e00a929 GIT binary patch literal 716 zcmZuuTW=CU7(KHWwoqy>6etR{wHJY!Vm0xlmlsnL5-d&DkPx1Rb%TSjOJFhj-e2O2 z&-zdkqy7MYg@3?5(0DrorcDzknfWer=A1J#-+q7k3g98`B@jcw!D<}0v6jF(?l{*Tddu1JoNl0O1q6~FS}Yk2?sOeYE>ORAYnP;(u72Ich#QFgFiJ3A5*O0*i7I`X%4J8xXF2oxq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/genfiles.properties new file mode 100644 index 0000000..4da5e2e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2c9ca0d4 +build.xml.script.CRC32=f9b71db5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2c9ca0d4 +nbproject/build-impl.xml.script.CRC32=be106299 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/project.properties new file mode 100644 index 0000000..ddbf4cf --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/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}/NPE1.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.7 +javac.target=1.7 +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=npe1.NPE1 +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/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/project.xml new file mode 100644 index 0000000..29e39ba --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + NPE1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE1/src/npe1/NPE1.java b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/src/npe1/NPE1.java new file mode 100644 index 0000000..5021766 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE1/src/npe1/NPE1.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package npe1; + +/** + * + * @author andad + */ +public class NPE1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws Exception{ + // TODO code application logic here + + int ia[][] = {{1, 2}, null}; + for (int i = 0; i < 2; i++) { + + for (int j = 0; j < 2; j++) { + System.out.println(ia[i][j]); + } + + } + } +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE2/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/build.xml new file mode 100644 index 0000000..463ded7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project NPE2. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE2/build/classes/npe2/NPE2.class b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/build/classes/npe2/NPE2.class new file mode 100644 index 0000000000000000000000000000000000000000..e276f1f8ca3e661a7d87ef7f8408cebb35b86bb3 GIT binary patch literal 599 zcmZutO)mpc6g_u3Iyy#GQQuTq6p02)9~&W&OpsJ0V)a^+deY9w7~*eP5fb)(lsIoH zt%XVEex7^IefR78?E}CzR$Mrkb1*-M1s4_;U1U*qu;id3$nNS;C;Ng-b@f7EA4J!I zV8qv9aPrV;1o63Qv{@dD!@FRsc5-&OwIi@PnqpG!4*s9f&Sck2hR9eL?!p8n-3q+Clij<=H8|r%W5I2J( zZI;U!=?%l`VGucz^c8w52=eu)6O?-egI)G8f&v+OFAx;^!>5hgpqU6Js{iebC0^3u zk%0`vDAT&kYV<-su=WCZW?*56Hk%ebc#OR+0K>>L%b6{RGQ$;;na_QPby>{3!2V>$ zE7NuviWp^Vvu1I!h_TpN>3rHK5irR;r_&Y6T` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/genfiles.properties new file mode 100644 index 0000000..021c444 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=34a834be +build.xml.script.CRC32=a2538a7f +build.xml.stylesheet.CRC32=8064a381@1.79.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=34a834be +nbproject/build-impl.xml.script.CRC32=f9f96631 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/project.properties new file mode 100644 index 0000000..8a1bc87 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/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}/NPE2.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.7 +javac.target=1.7 +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=npe2.NPE2 +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/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/project.xml new file mode 100644 index 0000000..0263a7f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + NPE2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE2/src/npe2/NPE2.java b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/src/npe2/NPE2.java new file mode 100644 index 0000000..ef5f5a3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE2/src/npe2/NPE2.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package npe2; + +/** + * + * @author andad + */ +public class NPE2 { + + /** + * @param args the command line arguments + */ + public static int m1() throws Exception{ + throw new Exception("Some Exception"); + } + public static void main(String[] args) throws Exception{ + // TODO code application logic here + int[] a = null; + int i = a [ m1() ]; + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE3/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/build.xml new file mode 100644 index 0000000..0097b04 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project NPE3. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE3/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/build-impl.xml new file mode 100644 index 0000000..b3c5698 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/genfiles.properties new file mode 100644 index 0000000..83aa78c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3cbbb898 +build.xml.script.CRC32=94f00739 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3cbbb898 +nbproject/build-impl.xml.script.CRC32=72716796 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/project.properties new file mode 100644 index 0000000..abeeb6d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/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}/NPE3.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.7 +javac.target=1.7 +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=npe3.NPE3 +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/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/project.xml new file mode 100644 index 0000000..f7bf0d7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + NPE3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NPE3/src/npe3/NPE3.java b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/src/npe3/NPE3.java new file mode 100644 index 0000000..ccb0d7c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NPE3/src/npe3/NPE3.java @@ -0,0 +1,22 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package npe3; + +/** + * + * @author andad + */ +public class NPE3 { + + /** + * @param args the command line arguments + */ + + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build.xml new file mode 100644 index 0000000..6c5c46d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception2. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build/classes/nullpointerexception/NullPointerException.class b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/build/classes/nullpointerexception/NullPointerException.class new file mode 100644 index 0000000000000000000000000000000000000000..b4cf2cda04ead870ae9da7180a5045673552d1e5 GIT binary patch literal 712 zcma)4%TC)s6g`uKm>5GKAp!cJCI~(Y7F6n@ zAHYW;jvY{n$b!wCd(VBJI}eY4{{i@cZ5QL1FJJ*53UKhz#V34rv4}5;_SM0XgJl76 zDNw3k$SWCy(sY7`jkW3Q2;_IQ(RNQD>(`nBx&7!&2^8zvsH1+jrQ#FW3W=2JQCo&h z8SBJ;26OgYv+!2k^uw?hX=7EauG^|-b!37gg2w~!;00vITvuu%Q1wsW&XbNH;|`0K zN4N#tM%0hn>ZeX-S{T*gd$Od533v`xJgj2PLjkUXbq^cx9n?H*Vk8K2L(@}6tqAlrGvdiVmX^q#gfYVEYLb6ivN0ahj@4@MK zxloyoJx?!pNLu~FS`$nB1LOP{f|6TP%TOm7l#{dqzJl-A<{yaL)ICL+PeBhw>PaXA zFpU|$1(Z-Gk|h61iviU;WbTl?NA5)#yGMRlZ3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/genfiles.properties new file mode 100644 index 0000000..d0f34b6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5b010cfc +build.xml.script.CRC32=3a98a0e0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5b010cfc +nbproject/build-impl.xml.script.CRC32=df3b17f7 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/private/private.properties new file mode 100644 index 0000000..d706cca --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/project.properties new file mode 100644 index 0000000..2bb1924 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/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}/Exception2.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.7 +javac.target=1.7 +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=nullpointerexception.NullPointerException +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/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/project.xml new file mode 100644 index 0000000..2f1ce72 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/src/nullpointerexception/NullPointerException.java b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/src/nullpointerexception/NullPointerException.java new file mode 100644 index 0000000..9e5d64d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException/src/nullpointerexception/NullPointerException.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package nullpointerexception; + +/** + * + * @author anda + */ +public class NullPointerException { + + static String s; + + public static void main(String[] args) { + System.out.println(s); + System.out.println(s.length()); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build.xml new file mode 100644 index 0000000..0097b04 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project NPE3. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build/classes/nullpointerexception1/NullPointerException1.class b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/build/classes/nullpointerexception1/NullPointerException1.class new file mode 100644 index 0000000000000000000000000000000000000000..df2c153de7afc7bf479921b72234163b375806ea GIT binary patch literal 802 zcmb7C%Wl&^6g}5Y;3S*TF!d{-4WUyI?P}zXA z^%J%Q-iUSiHYLsWKko1AC@=cO2;`B#N!33r(;~q_FIUlvZ8e%s;`h>V7U_q^&boS{ z@Y_~v01xv4YN&g-65uMXdAJ_n2HJv~|KWn5dOZ3>)eO{oeUR%R|4KT}1wJQ|=fZ){Z@B;i zoZ>o|6fiC@tKc*iiP+{1#-dq1!#QsDNdi<+!kHO@Ds%8;Iyog6P>ro!akpBX!?&n? zfZJ)^{fN>Vk$1noSx&bQR3jVEV0V)&4J`Aq;+EL&5Nq(YQdWp87tu;}e!!9M+!UN8 H=wS6Xt?{iK literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/build-impl.xml new file mode 100644 index 0000000..b3c5698 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/genfiles.properties new file mode 100644 index 0000000..83aa78c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3cbbb898 +build.xml.script.CRC32=94f00739 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3cbbb898 +nbproject/build-impl.xml.script.CRC32=72716796 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/private/private.properties new file mode 100644 index 0000000..d706cca --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/project.properties new file mode 100644 index 0000000..7bcee77 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/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}/NPE3.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.7 +javac.target=1.7 +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=nullpointerexception1.NullPointerException1 +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/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/project.xml new file mode 100644 index 0000000..f7bf0d7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + NPE3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/src/nullpointerexception1/NullPointerException1.java b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/src/nullpointerexception1/NullPointerException1.java new file mode 100644 index 0000000..fcbc79e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NullPointerException1/src/nullpointerexception1/NullPointerException1.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package nullpointerexception1; + +/** + * + * @author andad + */ +public class NullPointerException1 { + + public static void main(String[] args) { + + printMe(null); + } + + static void printMe(Object[] oa) { + for (int i = 0; i <= oa.length; i++) { + System.out.println(oa[i]); + } + } +//Assume that it is called as such: printMe(null); + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build.xml new file mode 100644 index 0000000..71873b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project NumberFormat1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build/classes/numberformat1/NumberFormat1.class b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/build/classes/numberformat1/NumberFormat1.class new file mode 100644 index 0000000000000000000000000000000000000000..31d317a68c458d2fb71bef555203242cab971ffa GIT binary patch literal 1153 zcmaJ>T~8B16g|`KcFVE|7K_jdieN2Ytu0Ux5D}2rq##KN3Gr#DOI>Vto9)!pcYld5 zJmUiz6ZrxD4*!Ag;+vfB)a4*Nd$oA%Ro#cl}4b7fZC zuTtQ?vf!21yS$-lGLSG(Adwi%ve)t}_Ku^<@2V*y%dl__{R{(tmc(G>a=A=?et{vH z&*w9Xg{5U8wXlR`3lFhkVAaAJ9$8q&V*?u&o?w%zQB10s?qn@&$w^6>4oFJ=LL8Cz4beZrWm(x1D;czT@+X)Nb3UI)aqb(nZ<5 zP66IFg^`+xP{VCrCrZ5`TfvY@2Y{~Y&~X%GLJotfj&2@Oxgl9= zbg|-{L_zWDUiB-4>hA&NZetu4eI@bp>htbRwO1okcQ$f?$jsi{WkCxU^tc|^-Xl2| z*Yhip4=`p&$Q->u&pVx+U41)4v@~;p-g6adgPLw444KF@t$+mOo1_G8VHl&xU<@lX zZ(x#;hX}2a@0f~I#BH(ycj!$)yCSlP bfpPV_OCuv`t|XS$z@~u-jr=AF9m2hzy + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/genfiles.properties new file mode 100644 index 0000000..17ecb0c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6b804ddb +build.xml.script.CRC32=31a4ca5b +build.xml.stylesheet.CRC32=8064a381@1.79.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=6b804ddb +nbproject/build-impl.xml.script.CRC32=dee8ad88 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/project.properties new file mode 100644 index 0000000..ba1748b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/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}/NumberFormat1.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.7 +javac.target=1.7 +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=numberformat1.NumberFormat1 +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/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/project.xml new file mode 100644 index 0000000..f5486f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + NumberFormat1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/src/numberformat1/NumberFormat1.java b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/src/numberformat1/NumberFormat1.java new file mode 100644 index 0000000..7c47576 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/NumberFormat1/src/numberformat1/NumberFormat1.java @@ -0,0 +1,40 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package numberformat1; + +import java.text.NumberFormat; +import java.text.ParseException; + + +/** + * + * @author andad + */ +public class NumberFormat1 { + + /** + * @param args the command line arguments + */ + + public static void main(String[] args) { + // TODO code application logic here + try + { + String[] sa = {"111.234", "222.5678"}; + NumberFormat nf = NumberFormat.getInstance(); + nf.setMaximumFractionDigits(3); + for (String s : sa) { + System.out.println(nf.parse(s)); + } + } + catch(ParseException ex) + { + ex.printStackTrace(); + } + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build.xml new file mode 100644 index 0000000..58e34d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project OutOfMemoryError1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build/classes/outofmemoryerror1/OutOfMemoryError1.class b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/build/classes/outofmemoryerror1/OutOfMemoryError1.class new file mode 100644 index 0000000000000000000000000000000000000000..1b9c75e665d87363ea4cd56651b49f51eb32bb7a GIT binary patch literal 1176 zcma)5T~8B16g|`3cG|kgS1GMj1QBTwsED6@3qd6*U{WPPpO$vP#kSilTNB>>A-?g9 z4<*s)5AeVE7r-;y655auyUCrIGw0rW?wRz@*^l1~DiE5tE4H^Nprte00{W^`v;;bHcE#GPm3J-oow-{g(vx!v zW@+1WZFO#fy7$RG6d27pHP6{ATV=;RvRv13r?Xo%Z)XHST@i?<8VXlxcByE&2Iep?5SSQJy9E^%4J=`qf(*RGionQ!I7}1# z2DX!ZOHV!au*`Cs#{AJCJ*F=#C(zfhvz<>%LuR#VRf+QleXUY2T5n?*9sFmgUjRZq8DkeuS+0U>aQqbF z#J}!l4Edme9`20>0lkRv6hR;2M3^k%(D^3<*0p(ULHmWk=2syGb{4ps)swn5nNRAQ z$LD`%_3zMsBDiykP*Sf$_Jr$*qz1l0>c`NvI-+&lsKYp6;Rx>V)A%VNRmN@{j=y literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/build-impl.xml new file mode 100644 index 0000000..73248d8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/genfiles.properties new file mode 100644 index 0000000..c3ff9bd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9ed4b855 +build.xml.script.CRC32=213244d3 +build.xml.stylesheet.CRC32=8064a381@1.79.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=9ed4b855 +nbproject/build-impl.xml.script.CRC32=189e6860 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/project.properties new file mode 100644 index 0000000..a29fac3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/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}/OutOfMemoryError1.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.7 +javac.target=1.7 +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=outofmemoryerror1.OutOfMemoryError1 +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/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/project.xml new file mode 100644 index 0000000..7db0734 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + OutOfMemoryError1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/src/outofmemoryerror1/OutOfMemoryError1.java b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/src/outofmemoryerror1/OutOfMemoryError1.java new file mode 100644 index 0000000..a32542c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/OutOfMemoryError1/src/outofmemoryerror1/OutOfMemoryError1.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package outofmemoryerror1; + +/** + * + * @author andad + */ +public class OutOfMemoryError1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int len = 0, oldlen = 0; + Object[] a = new Object[0]; + try { + for (;;) { + ++len; + Object[] temp = new Object[oldlen = len]; + temp[0] = a; + a = temp; + } + } catch (Error e) { + System.out.println(e + ", " + (oldlen==len)); + } + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/build.xml new file mode 100644 index 0000000..7ece41a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Runtime1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/build/classes/runtime1/Runtime1.class b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/build/classes/runtime1/Runtime1.class new file mode 100644 index 0000000000000000000000000000000000000000..2af797b3d5e79142c9661274c019a37894c9cbd5 GIT binary patch literal 1416 zcmaJ>%Tg0T6g^D>6T3h$;$+ur$z5+Oghhc0-Ul{!usO9#! zffHc_(HFv?exKBlQ+jn;KZe2>#z+WfG(4)2vmu<*oAcF_<0ps^#x!ujz{M~kTIrI3 z%Lc9p)QnhJ%NrF4#JZ;if)|`QCD53#vTCwm&nowpoXrqvNjPblnU=1l_hm5XJ+krw ztqHe~^(r-CL2{ieUf@fvo7p12N*QY$0ew>uKQi=wyvSxvB$|<;Mb=lIT)c;MgSL>SC zft}=;7{`QxYbFv%3UsXB>E}FFurhOs>9kL|Dy{O4bX9cD%IBP{MMt70CUM=w6mIC% zO%o~HGH~0(H0}u0CFN4oR<`3lCG#$3H0d65@f=TPlBK{9Blj^w_s7({Lv^38;RhOS zD5bPkEXzMX?E3{Hi^PaLf zI8K3z5ua{3@hNuLqi0Im>_?5v{?G zlyYP`W8;KP7gWUFL3v$eKd@|#skWkRPi z@xN5+D*8){=Ut`z^Vo}R{F&=d6@;EaK0CRK^DX$U?)e1qp%mW5XH5xgz;3QhpMX7x za#u^KeMERzoF*?w?EPm{B|ajsir~yARJYU=VH_?ZR77nN;UelPVx}LfFQQ>ntkI7( zwV~PGD&FeH+ty+t85rHw9Qghkt*eOe?)IceJ`adDzkgI*+41i&U1tEg&H+{j{znDT z&gwcaLYp4Ys3lsoOp~6G^@1+E + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/genfiles.properties new file mode 100644 index 0000000..c9afa02 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=26704a69 +build.xml.script.CRC32=152bb718 +build.xml.stylesheet.CRC32=8064a381@1.79.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=26704a69 +nbproject/build-impl.xml.script.CRC32=5d45f839 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/project.properties new file mode 100644 index 0000000..00bc0e0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/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}/Runtime1.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.7 +javac.target=1.7 +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=runtime1.Runtime1 +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/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/project.xml new file mode 100644 index 0000000..4b41e77 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Runtime1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/src/runtime1/Runtime1.java b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/src/runtime1/Runtime1.java new file mode 100644 index 0000000..cb97c8d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Runtime1/src/runtime1/Runtime1.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package runtime1; + +/** + * + * @author anda + */ +import java.util.Date; +import static java.lang.System.out; +public class Runtime1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Runtime r = Runtime.getRuntime(); + out.println("Precesoare disponible " + r.availableProcessors()); + out.println("Max memory " + r.maxMemory()); + out.println("totalMemory: " + r.totalMemory()/1024); + out.println("Before memory: " + r.freeMemory()); + Date d = null; + for(int i = 0; i<1000; i++) + { + d = new Date(); + d = null; + } + System.out.println("After memory: = " + r.freeMemory()); + + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build.xml new file mode 100644 index 0000000..dd9e03e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project RuntimeException. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build/classes/runtimeexception/RuntimeException1.class b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/build/classes/runtimeexception/RuntimeException1.class new file mode 100644 index 0000000000000000000000000000000000000000..63f1edab21e7ed82def8516a33309b1a5172ae5d GIT binary patch literal 1008 zcmah|T~8B16g|@dyKGCTRH}eLTTu#PE8@ok%8N>TC~7Rh7!#A}GHD04yJXoa{34(6 zL5wEy;F~|ncxKB-Q4*VU@0~N}-Z}T)nP0!Z{Q$6phYm6*4dOaxY}{~g6SEG6P_{8= zW8T6o8w)n3E!=jHLdinKLRDbkk@j`8B9JW4Z3y%|2{x6$a83K_MW@|R;ks;iL`G_X zE4>XFYO_8D`=XZK6_}}o9Y4}-rS@F46Y0ROzU~6gPJqQ_=59;v3*^i1YFqMyta{RK zR_jry{pPYcJE8UjMtk;7qfM|3n>;FaL9D<~J(BMBn%s$Xu~rLr1gxkP1|M}K;M9Xo z=&Dt1D#`z&tzzV)F^sH*#We0>Ng(xHd0tR>6NKKTg?nk-$AdJck)?*Gfv*Zo+$u!j zexcz7?ly(5YF~QZenIUiw_}>ntW+vwpVfL=58Lj_PP0X6<7eA{>k=sazpnz>vkWgA zTgqk9o-@}?54t1lA=dYIBh}{6gAVD(J=a0?6^9XVBuci~^KP2+Fx$FgNFFCSTJ9Ov z=^#<$waf5M0!i>HA7ab695WWPjo4AkLA)6l~_oanztc8{1^8rozVo zo@(PNy)kl%m_UiF2~K~K+#(ApF`|gad~8N_p4z74h_P7z3dYF>uJNBj^1X%0x`io+ p1@QtM7qq}2^UE4_4i$e#>g^%YN5uHt_;q5&EEAWB6o@2H`~w*!+YtZ& literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/build-impl.xml new file mode 100644 index 0000000..e8ddcf4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/genfiles.properties new file mode 100644 index 0000000..55585ed --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ac595a77 +build.xml.script.CRC32=cd50d6e3 +build.xml.stylesheet.CRC32=8064a381@1.79.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=ac595a77 +nbproject/build-impl.xml.script.CRC32=f7acbf5a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/project.properties new file mode 100644 index 0000000..ef311c4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/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}/RuntimeException.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.7 +javac.target=1.7 +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=runtimeexception.RuntimeException1 +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/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/project.xml new file mode 100644 index 0000000..0937360 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + RuntimeException + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/src/runtimeexception/RuntimeException1.java b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/src/runtimeexception/RuntimeException1.java new file mode 100644 index 0000000..f6ddfcf --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException/src/runtimeexception/RuntimeException1.java @@ -0,0 +1,43 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package runtimeexception; + +import java.io.IOException; + +/** + * + * @author andad + */ +public class RuntimeException1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try + { + System.out.println("Hello World"); + throwit(); + System.out.println("Done with try block"); + } + catch(Exception ex) + { + System.out.println("caught"); + } + finally + { + System.out.println("Finally executiong..."); + } + } + + public static void throwit() + { + System.out.println("throwit"); + throw new RuntimeException(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build.xml new file mode 100644 index 0000000..d2a3054 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project RuntimeException1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/runtimeexception1/Lake.class b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/runtimeexception1/Lake.class new file mode 100644 index 0000000000000000000000000000000000000000..4408f190c8ee308b30d3609f199b03ddb1d4f603 GIT binary patch literal 553 zcmZut%TB^T6g|VMv{XS5M10~3T-X>FCSu$eT{UXNupe-O1GFV&>f^I?p@|DWz>hNC zwkVn~$;_R5?m1`fozJiL4*&<)F_1w?$1=)UR1B=3s$o?_jUjU^U8znOl8t7EA$98A z3WmHbU2zdOUE$yG?ud}0?e+Mm!+ja%Q!u6OVvnV# literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/runtimeexception1/RuntimeException1.class b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/build/classes/runtimeexception1/RuntimeException1.class new file mode 100644 index 0000000000000000000000000000000000000000..44028d483c6d1c14a61d549465c4d3290eb64f33 GIT binary patch literal 962 zcmZuvT~8BH5IwhFcPR_SB5f^2MOrLHS?hPe_+sG2MU6Ei#;4o5sY}~!vuqWA5zqJl z2`2skf0TM|i`!DzhdXoU%sn%6W`F-V`vu?;o+n|VC{aoxf}%cFCGJk4j5Pz5B-U|H z;=X|m2}|OEK;nh#xxq_;XnAcic;x z7JP9J1WLBw_X4-$IEM|V7r0%oYP}yuw!_F4$vevR1Ty7M_P+Y6thVx+RxR*dueqg* z3)U%&L6aP$SQvvtZcVNHCOetGf|+1jwMd=2qD`9!pU>0+)oAUi-e53^JQbvFlu963 z>-PPIv*T(RGLt=3H}ohbW-v?ivJSd{iK<5PqoF5RBp#aF-eXn^p-qV=CZ6IM#~Qs1 zhvvq%4>tu?F4qhx{%=EIZp84mzV9>wf$485aQs@!rTiBXYTpk6r$hd3pK0fcyIt!Y z7Zq?_j_OddVNVys0`Z+I4 z_`oibDhgd}l^#fLkk~|?85zd2$kAWqS-=ex>FH)Fh!HcGktJVY;N|GC31;PK4J + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/genfiles.properties new file mode 100644 index 0000000..8c8c0b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c7ff4374 +build.xml.script.CRC32=9a8393ab +build.xml.stylesheet.CRC32=8064a381@1.79.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=c7ff4374 +nbproject/build-impl.xml.script.CRC32=56a71d49 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/project.properties new file mode 100644 index 0000000..d983c99 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/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}/RuntimeException1.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.7 +javac.target=1.7 +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=runtimeexception1.RuntimeException1 +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/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/project.xml new file mode 100644 index 0000000..6277f00 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + RuntimeException1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/src/runtimeexception1/Lake.java b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/src/runtimeexception1/Lake.java new file mode 100644 index 0000000..14d3007 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/src/runtimeexception1/Lake.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package runtimeexception1; + +/** + * + * @author andad + */ +public class Lake { + + void waterSkiing() throws RuntimeException { + System.out.print("Skiing:"); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/src/runtimeexception1/RuntimeException1.java b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/src/runtimeexception1/RuntimeException1.java new file mode 100644 index 0000000..5cb4c19 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException1/src/runtimeexception1/RuntimeException1.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package runtimeexception1; + +/** + * + * @author andad + */ +public class RuntimeException1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Lake lake = new Lake(); + try { + lake.waterSkiing(); + } catch (RuntimeException e) { + System.out.print("RuntimeEx:"); + } catch (Exception e) { + System.out.print("Ex:"); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build.xml new file mode 100644 index 0000000..d32a397 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project RuntimeException2. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build/classes/runtimeexception2/RuntimeException2.class b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/build/classes/runtimeexception2/RuntimeException2.class new file mode 100644 index 0000000000000000000000000000000000000000..e928bde16000f02ef2dc0d39261a0bdcdc779891 GIT binary patch literal 733 zcma)4O;6iE6r4?*m;|SUkEE1B%QpceEYTws7d}p=t(uBUPaCre3$Y!U4T7HqhgRYM z_x`A=vknRY^?(oi{N}wkZ+7fIfA8)Ae8O58MZ9w{Q^I@9mNAD9EG6e*_(KsxJgqg0vSK9VvAcs;<#V zyzPJQBL@Ryhvbpeu|U1?GdPo%((lN)?Ke%TNx>vqQC)B;=?Kl?UXOTc&MF znfwp6K&5G9czz_inQr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/genfiles.properties new file mode 100644 index 0000000..71b3b79 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=dfcbd71e +build.xml.script.CRC32=1be00168 +build.xml.stylesheet.CRC32=8064a381@1.79.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=dfcbd71e +nbproject/build-impl.xml.script.CRC32=483b4b65 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/project.properties new file mode 100644 index 0000000..fc47215 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/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}/RuntimeException2.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.7 +javac.target=1.7 +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=runtimeexception2.RuntimeException2 +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/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/project.xml new file mode 100644 index 0000000..a65e8e4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + RuntimeException2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/src/runtimeexception2/RuntimeException2.java b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/src/runtimeexception2/RuntimeException2.java new file mode 100644 index 0000000..d233a01 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException2/src/runtimeexception2/RuntimeException2.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package runtimeexception2; + +/** + * + * @author andad + */ +public class RuntimeException2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try + { + RuntimeException ex = null; + throw ex; + } + catch(Exception ex) + { + System.out.println(ex); + } + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build.xml new file mode 100644 index 0000000..41e5b28 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project RuntimeException3. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/runtimeexception3/MyException.class b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/runtimeexception3/MyException.class new file mode 100644 index 0000000000000000000000000000000000000000..c6e48df11aa13797a514e508c49063378a898a6a GIT binary patch literal 303 zcmX^0Z`VEs1_omW0WJn+23~dsK6VCvMg}&U%)HDJJ4Oa(4b3n{1{UZ1lvG9rexJ;| zRKL>Pq|~C2#H1Xch>%Zya$-(cVo@fD4;5r7$;d2bWRUkMD$Og&%uP+LNKP#%$;{6) z*7vP+g>kGI8MuP;ON)|I-7-N&i3LGa!xb3oWhIs+@-VP4ure~p;x&trK^UY~KPNFS zT_0`$g8~B+&{H752*f~hfHWJBr4OV*BCJ~585lPL8B7f9K#~nC$iu(^Wb;52FmN(( M0eOrJ++bBa0JOqIc>n+a literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/runtimeexception3/RuntimeException3.class b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/build/classes/runtimeexception3/RuntimeException3.class new file mode 100644 index 0000000000000000000000000000000000000000..c1eaf33616e157d6e8868b7b52b855c8ec8e8f80 GIT binary patch literal 989 zcma)4T~8B16g|_H-LftgY2DTeEl{APh>h@w@x|ziZ8emT7@xMwrVMU($-4F97x~PK zB$B|pKT18bZQ6zs*vGB`0~&L8y?wRkC~-r;Mm@=9ZIzyB~#I<{3Nj1 z3y-danBgD(U~K`0}P3*0q`f;d;dgt*`$f%}YFoXjA@wJK!+ z7V&^Mk0oSTr7m9+Q^e{O67MgOZ0`I(ir?IKSgpz0Xsg`r%>|NtdM2-HF_w8Xivni_ zo~X9 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/genfiles.properties new file mode 100644 index 0000000..295576a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d7d85b38 +build.xml.script.CRC32=d2118d16 +build.xml.stylesheet.CRC32=8064a381@1.79.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=d7d85b38 +nbproject/build-impl.xml.script.CRC32=f49f84be +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/project.properties new file mode 100644 index 0000000..559a793 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/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}/RuntimeException3.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.7 +javac.target=1.7 +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=runtimeexception3.RuntimeException3 +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/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/project.xml new file mode 100644 index 0000000..5d7cb3b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + RuntimeException3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/src/runtimeexception3/RuntimeException3.java b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/src/runtimeexception3/RuntimeException3.java new file mode 100644 index 0000000..51c1455 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/RuntimeException3/src/runtimeexception3/RuntimeException3.java @@ -0,0 +1,42 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package runtimeexception3; + +/** + * + * @author andad + */ +class MyException extends Exception { +} + +public class RuntimeException3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws MyException{ + // TODO code application logic here + RuntimeException3 tc = new RuntimeException3(); + try{ + tc.m1(); + } + catch (MyException e){ + tc.m1(); + } + finally{ + tc.m2(); + } + } + + public void m1() throws MyException { + throw new MyException(); + } + + public void m2() throws RuntimeException { + throw new NullPointerException(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build.xml new file mode 100644 index 0000000..47b759a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TheMostSpecificException. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException.class b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException.class new file mode 100644 index 0000000000000000000000000000000000000000..4e2c25190355a97f01024e96502a096c690827ae GIT binary patch literal 324 zcma)1yH3ME5S&dM8yrI-sF5fTf)sI)5|jp!%Atvs{&Fn%kmHN&3y;sDLZaXU_$b6) z2-KXkx3i;}(eCHh`v-s#`Z3zri?AP|M+h%XW!#w1K0BWif-8H=gkEMUzF999T<2<0 z3UiQIt;)Hoji0w<;0n_aPBT~V(l)MHu{L)`^RwoaGqy^nFW0~Lf)LN_y4E}~KJh3o zcq*pZ*7PSFKBz~PAV7z3@}FeFp|_-^s_xUgsO^*A5yxoBrT&qW#7PeYrP4jq8N7jB Z1+);!A8yD5JA#uR0d^6~MCfi*$u|*@PJjRa literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException1.class b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException1.class new file mode 100644 index 0000000000000000000000000000000000000000..9979de108bd13ac34360537372dda8fb7e45206f GIT binary patch literal 343 zcma)1Jx{|>3_Q1KQbHgVdnE=C9|IL)q+&s3N?BTUe|;FmsLiXAR|G$csZs}i06z-h zl)_v~w$GOm4YYPb+REnXnpACH=?fqi86LG-gcnRxI6{3v4= z!81+TPA4;M`u+3y1)ztM7eZo9SGc zcIvE|PfQ`zyd?vlNlECWKI4TeeYs>S&tm!2^3sdTyTiAK9lpII#3Q#VEI&%M@^qZ> zP+g;~>tA{EV%8=>fCk}WuhoR}eRMcOO`orVH1&Y?P*GQV#Wb!zK<^4_h_r?qvW)}9 P$)5m+h; literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException3.class b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/MyException3.class new file mode 100644 index 0000000000000000000000000000000000000000..473c143b11472d9fbb61501ebeaefcc20a7e2d71 GIT binary patch literal 344 zcmX^0Z`VEs1_omW0WJn+23~dsK6VCvMg}&U%)HDJJ4Oa(4b3n{1{UZ1lvG9rexJ;| zRKL>Pq|~C2#H1Xch>%Zya$-(cVo@fD4;5r7$;d2bWKj1h$wSZOCCGs$^Ft9Q* zs1ju~k?M>X6d0I*z6SwDAO_k1q}hNheIN}IVb$8sz_<~}U}9hgl5Ai>Q3ehmn+KwR Qfs=s?$YW&S2CL!$0QcKgr~m)} literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/TheMostSpecificException.class b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/build/classes/themostspecificexception/TheMostSpecificException.class new file mode 100644 index 0000000000000000000000000000000000000000..d4afa537207c045813d1697542a82bdc44ce20d0 GIT binary patch literal 1240 zcma)6Sx*yD7(KV0GQ(IFscb5%EQJCC6j6c51L}jeXwrtn_%sYxI@p zkwo78QR=zFHY7CRq4(R)x1D>ZfBydZ4IqyV6CKFvm@$!1a@K@~tU7Y-n8Un*1rrt) z4J_$cHjvk`BG9(s`fm7AAeo)n5zw}RJt@#taDBPm^mb*vZ0}a-=_v$`UEQ(kuCgzj zT3B%#0{KE%kzUXU8#U>;pIt|OcVsPe1K%oFWRZc=Md0;iU|qoQ4vR9Z1bYJJm7mo# z&vt!*zU-&Mf&JCCsXJq;x^%3j@eI!eQlqZ|U+Q>~#u~V5CSHFutki>VBz~f0n;4uAB4%CXc3hb)MSiW(Q-$#tbtb1rjKL)6=lIUih#>l%kirXQn`%wZ*x$!O^{@&Zf{HAS4o zbr*@ua>yCtEozIblH-5K9P=z}(B7nci=}AMS*|d^>_I$a&pB$3@R%Cc!Vrcj4QyeA gbp`8zQSF}^Psf;!aR?nxN;)R^n=}cTA|!$7|7w~Rz5oCK literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/build-impl.xml new file mode 100644 index 0000000..b6e57c4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/genfiles.properties new file mode 100644 index 0000000..b31f6af --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=da08fce7 +build.xml.script.CRC32=0db72e66 +build.xml.stylesheet.CRC32=8064a381@1.79.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=da08fce7 +nbproject/build-impl.xml.script.CRC32=c0e7af4e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/project.properties new file mode 100644 index 0000000..2bb8013 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/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}/TheMostSpecificException.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.7 +javac.target=1.7 +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=themostspecificexception.TheMostSpecificException +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/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/project.xml new file mode 100644 index 0000000..1f4d6a5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + TheMostSpecificException + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/src/themostspecificexception/TheMostSpecificException.java b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/src/themostspecificexception/TheMostSpecificException.java new file mode 100644 index 0000000..2c7ae30 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TheMostSpecificException/src/themostspecificexception/TheMostSpecificException.java @@ -0,0 +1,51 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package themostspecificexception; + +/** + * + * @author andad + */ +class MyException extends Throwable { +} + +class MyException1 extends MyException { +} + +class MyException2 extends MyException { +} + +class MyException3 extends MyException2 { +} + +// exception has already been caught +public class TheMostSpecificException { + + /** + * @param args the command line arguments + */ + void myMethod() throws MyException{ + throw new MyException3(); + } + + public static void main(String[] args) { + // TODO code application logic here + TheMostSpecificException et = new TheMostSpecificException(); + try { + et.myMethod(); + } + catch (MyException3 me3) { + System.out.println("MyException3 thrown"); + } + catch (MyException me) { + System.out.println("MyException thrown"); + } + finally { + System.out.println(" Done"); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/build.xml new file mode 100644 index 0000000..bd3152b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ThorwNPE. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/build-impl.xml new file mode 100644 index 0000000..6e409c4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/genfiles.properties new file mode 100644 index 0000000..bf817b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2ff21a49 +build.xml.script.CRC32=ab6eaeb5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2ff21a49 +nbproject/build-impl.xml.script.CRC32=e3f1244e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/project.properties new file mode 100644 index 0000000..6831477 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/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}/ThorwNPE.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.7 +javac.target=1.7 +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=thorwnpe.ThorwNPE +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/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/project.xml new file mode 100644 index 0000000..9a239ae --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ThorwNPE + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/src/thorwnpe/ThorwNPE.java b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/src/thorwnpe/ThorwNPE.java new file mode 100644 index 0000000..64b24b9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/ThorwNPE/src/thorwnpe/ThorwNPE.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package thorwnpe; + +/** + * + * @author andad + */ +public class ThorwNPE { + + /** + * @param args the command line arguments + */ + static{ + //throw new NullPointerException(); + } + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/build.xml new file mode 100644 index 0000000..f108dcc --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Throw1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/build/classes/throw1/Throw1.class b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/build/classes/throw1/Throw1.class new file mode 100644 index 0000000000000000000000000000000000000000..ea4e24c66e59541d79cd5706698532e5d44aaf73 GIT binary patch literal 902 zcmZuvU2hUW6g>l!h3(QJwZ(pD0l#Qb)>^-*z8FoKpf!OsQJ;qGhE9cDvMh=}!(ZWZ zeP|O+^xYq2JhLd!q&wO9xcA(1&)hq||9t-mU>iFoER+mfP2rk}7_O&r12KXtAYR_s7f3w!4_txyy7JuDgKoXC3}%P-c-OG2lowZ@!aqS zf#beZ`cAVWy;UvILI!gJ`A9A`X~dK+7D{>5a2RUbT?5+|?%}?GrE!JOFZeyzGw{H| zL+yTK;W3_2=j8TdAr@*nQ|3&~1hNz8UhBwp!vE2_Kzrk8mZp4uO{WMNpZlTPWl#M9 zX(ok!!v;(WJrYOyDYJml)1VH!H};>YLxOEOh@Q(XJ0F3gvNr?ixF}+lPf&j`@Q#?{ zJkOKORdAizJcT%p+*!`a$e6_i?yV63IV|v$#zicWL8)kCJ z6Bv~fq@I3-S?9*A{5p;}@>pSf96Cb@DbAN*Vwub<$fLk{4Xe0--Dc$58wWdt$-F literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/build-impl.xml new file mode 100644 index 0000000..ed6c475 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/genfiles.properties new file mode 100644 index 0000000..f728eaa --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=59c6f7c2 +build.xml.script.CRC32=1e6afc42 +build.xml.stylesheet.CRC32=8064a381@1.79.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=59c6f7c2 +nbproject/build-impl.xml.script.CRC32=8c6fb09c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/project.properties new file mode 100644 index 0000000..521441a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/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}/Throw1.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.7 +javac.target=1.7 +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=throw1.Throw1 +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/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/project.xml new file mode 100644 index 0000000..d8f476a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Throw1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throw1/src/throw1/Throw1.java b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/src/throw1/Throw1.java new file mode 100644 index 0000000..b7753ec --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throw1/src/throw1/Throw1.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package throw1; + +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; + +/** + * + * @author andad + */ +public class Throw1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws IOException { + // TODO code application logic here + try{ + InputStream i = new FileInputStream("in.txt"); + System.out.println("File to open"); + int c = i.read(); + } + catch(Exception ex) + { + ex.printStackTrace(); + throw ex; + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throwable/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/build.xml new file mode 100644 index 0000000..c93c36d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exception5. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throwable/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throwable/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throwable/build/classes/exception5/Exception5.class b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/build/classes/exception5/Exception5.class new file mode 100644 index 0000000000000000000000000000000000000000..17958309defa9b53f7665f72a693eb36e756eb34 GIT binary patch literal 916 zcmZuw+fUO_9RAK))=>(B;WlsRE?&k!s^WNon26DYWT8=lewXvReBYP$_n+@S0jy)ggoW}nW^l{EZ4;Ub?%-|;6%)&- zrm$jQHHCWy)(qGJqR)3nAi3rFUi4T%t1Rye=ud-pQXpOTeEFi+Y07ZVX||ck)C1RP z?>nKV;!#qM4!k3Qd|mck*^Ruwui4LHca!5fj^_*HDsStD&PT^?JATV zB#i9XUEHmjov_8}i~s2rm~BLk`(fAV4xo@5X$zQfKO0k9ZhJ(|Yy`c~mCrpzB^?*l z))XoWY0O)g#T=Jiz}!0sgHMXAf%_I7;2|}N!eayL79OF-=)K}L))CJocG;IMsmWN4 zF<}JeFV?(l9!fWwNHva+BH7`BpvQ}mJYHbGqHYn@lTL^73>QzP1&ppLY7&AZcNdzBMesC1e>*BZoYzRP!%d zjduGK3H>u>en5M32L1dLQ<>y97|Nz-zo1lCzB!Sb+x>UHdVVsPlShg3!TB3JOIR6L zZGfl>lerwB=lK+HlhjJMf- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/genfiles.properties new file mode 100644 index 0000000..9f1833f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=637ba80e +build.xml.script.CRC32=f038d8c5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=637ba80e +nbproject/build-impl.xml.script.CRC32=44749148 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/private/private.properties new file mode 100644 index 0000000..d706cca --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/project.properties new file mode 100644 index 0000000..1bf6259 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/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}/Exception5.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.7 +javac.target=1.7 +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=exception5.Exception5 +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/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/project.xml new file mode 100644 index 0000000..deb377e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exception5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throwable/src/exception5/Exception5.java b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/src/exception5/Exception5.java new file mode 100644 index 0000000..0854565 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throwable/src/exception5/Exception5.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exception5; + +/** + * + * @author anda + */ +public class Exception5 { + + /** + * @param args the command line arguments + */ + static int x = 1; + public static void main(String[] args) throws Throwable{ + + try + { + if (x==1) throw new Throwable(); + System.out.println("try"); + } + catch(Exception ex) + { + System.out.println("exec"); + } + // it is executed always with a single exception : System.exit(); + finally + { + System.out.println("fin"); + } + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build.xml new file mode 100644 index 0000000..1755996 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Thrownable1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build/classes/thrownable1/Thrownable1.class b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/build/classes/thrownable1/Thrownable1.class new file mode 100644 index 0000000000000000000000000000000000000000..2b48230792c174c65209ea99e7f664a205528e4e GIT binary patch literal 927 zcmZ`&OHUI~7(KT$bjmPLD7FO!?ZZbY*bz}S5EC()kQ6nPkPuhXaV&%FOfyWi{2O-V=G05-6x!$5HoQ@E|+jt)f{cX2O)l8zOW z6Ij)-mcV@t6%D3<=<@6e#J63~4W9@orIkYg^_lhDkKI#&#cFsQ_#ZtPSvL=c`W73uEY}mrl-^WNtPhsiw7iB{3j^0{Y{`K! zhd|OJvFBaeX@{=w$zm&Lu>br&Y6Yfip=H0{v)U0DZpXz1^g%rf6WeyPzn)(6JAv)I zaOEq=vr7~7D03e__ zUB`~%+5a#^EW>fH>L-pJj=5@Qr=ip0Sii$SpC{KhUz5O)G&)v`JoO-tyE(lrlbU2d zT^b>HKtA$(E(V_uiIS^RQ>c>(-gC4}N; zELr@MQlZ?rKurCFsqavZE}>psU?LU&3QfucJke~HI{ rn%vj0T+?t7ERfSBc|io~d25R=64fAH=RGe;{=D~7@!u}`<6 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/build-impl.xml new file mode 100644 index 0000000..18f487d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/genfiles.properties new file mode 100644 index 0000000..590dc0e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=52f88d24 +build.xml.script.CRC32=cb6f672d +build.xml.stylesheet.CRC32=8064a381@1.79.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=52f88d24 +nbproject/build-impl.xml.script.CRC32=04bcab14 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/project.properties new file mode 100644 index 0000000..cdc73a6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/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}/Thrownable1.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.7 +javac.target=1.7 +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=thrownable1.Thrownable1 +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/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/project.xml new file mode 100644 index 0000000..7e210f1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Thrownable1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/src/thrownable1/Thrownable1.java b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/src/thrownable1/Thrownable1.java new file mode 100644 index 0000000..067669d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable1/src/thrownable1/Thrownable1.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package thrownable1; + +/** + * + * @author andad + */ +public class Thrownable1 { + + /** + * @param args the command line arguments + */ + static int x = 1; + + public static void main(String[] args) throws Throwable{ + // TODO code application logic here + try + { + if (x==1) throw new Throwable(); + System.out.println("try"); + } + catch(Exception ex) + { + System.out.println("exec..."); + } + finally + { + System.out.println("fin..."); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build.xml new file mode 100644 index 0000000..46b6089 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Thrownable2. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/thrownable2/MyThrowable.class b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/build/classes/thrownable2/MyThrowable.class new file mode 100644 index 0000000000000000000000000000000000000000..2c3b260209c8d3b7612d675eaa5d201cd61bac63 GIT binary patch literal 291 zcmZ{fy>7xV6otKKQS0v^-8$R$96EYwv)T8Fug3>**N+@ND4Czjoc__b1=Pq5pNfgc5Pch`*~E35Hf_>`lC*rMAJi0%MI87#B`s2-N{G`YScyw)N3KKZ-{4Ph zE(eN0B6ofi;;mDNBh}J+c4ywcc{8)W|NQs`;0g9knAk9p!)6Y*a65}TChp>%#C?ee zCL}f_>JnQ5nWwJrM$ZI{`qr^P`bF^G5y&@O-#Hw49Vcw7&VZgmBj~EZu?k&%zH+9c zzI!TAX+-@nIP-PnvE82T4@l@K*B2<&-!)FuM`aI`-?Lj$==!|_oluZ_edc~E@SJx4 zEQskeg9>|0vT_Z9z(Olh-49JQj1|T8Z3~#MK6Ra8paH9+rihuq1XY?BXHQz6^XvV$Xt&N31bf;*3OrwPdV$9l02Bf^W5hPr|MhTV+VQ%8C1*Mw%)Eg**)G~g(T_3I|VXOiQi z(VqdK`@#PLPd2Tfo!h>IxZoy*MgB9f(?Xtm4J80eSf + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/genfiles.properties new file mode 100644 index 0000000..d784afb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4acc194e +build.xml.script.CRC32=3398fcd2 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4acc194e +nbproject/build-impl.xml.script.CRC32=5f24d990 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/project.properties new file mode 100644 index 0000000..e97e178 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/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}/Thrownable2.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.7 +javac.target=1.7 +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=thrownable2.Thrownable2 +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/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/project.xml new file mode 100644 index 0000000..eb0bdf1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Thrownable2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/MyThrowable.java b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/MyThrowable.java new file mode 100644 index 0000000..c9f3ce5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/MyThrowable.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package thrownable2; + +/** + * + * @author andad + */ +public class MyThrowable extends SomeThwonable{ + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/SomeThwonable.java b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/SomeThwonable.java new file mode 100644 index 0000000..f7ebe3f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/SomeThwonable.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package thrownable2; + +/** + * + * @author andad + */ +public class SomeThwonable extends Throwable{ + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/Thrownable2.java b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/Thrownable2.java new file mode 100644 index 0000000..b766e5f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Thrownable2/src/thrownable2/Thrownable2.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package thrownable2; + +/** + * + * @author andad + */ +public class Thrownable2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws SomeThwonable { + // TODO code application logic here + try { + m1(); + } catch (SomeThwonable e) { + throw e; + } finally { + System.out.println("Done"); + } + + } + + public static void m1() throws MyThrowable { + throw new MyThrowable(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/build.xml new file mode 100644 index 0000000..42eb335 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Throws1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws1/build/classes/throws1/Throws1.class b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/build/classes/throws1/Throws1.class new file mode 100644 index 0000000000000000000000000000000000000000..df43959654406e0119257c1f064239b24aae04cb GIT binary patch literal 784 zcmZuvTW=CU7(KIW8CbWLf?zM&i&t8;8{=b*iD_tJf^8E>Q{&S>H!zjmCClLD7x`Qt ztkFc@{ZYmTID6ml1adVd#w z-E`CB!{BMqytKOlG73#MIXw~ZY9HHS-{>S}s~agD3skCa>u2h{3VJH;1PznwxU*~b z3$7~9lqOh?bXD5nh|+(c0`m={+V5Vg{)ifH%f*dkn6|@xZTb6SYCCqVk8AJ+mZlV5 z4hCUrIo8rNNqrP;y)>;)ct~vd*v2D)eC=efcGP@zcp&lE#}n*Ow||5XC`@M@w$8$~ zxsqyp8kjJm_{ork@x^r#98nNMSwa=@;+H(Grm1k>Hub1xxjLiRL`-b*yLRwD!sUfb-@8nP2q948DjG zGcI#;#N9xdp2cb6EVA$o?q~S*FUS_ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/genfiles.properties new file mode 100644 index 0000000..fe60c96 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ecc7d150 +build.xml.script.CRC32=693a225a +build.xml.stylesheet.CRC32=8064a381@1.79.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=ecc7d150 +nbproject/build-impl.xml.script.CRC32=9c706742 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/project.properties new file mode 100644 index 0000000..d635333 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/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}/Throws1.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.7 +javac.target=1.7 +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=throws1.Throws1 +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/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/project.xml new file mode 100644 index 0000000..e044cb4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Throws1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws1/src/throws1/Throws1.java b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/src/throws1/Throws1.java new file mode 100644 index 0000000..413504e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws1/src/throws1/Throws1.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package throws1; + +/** + * + * @author andad + */ +public class Throws1 { + + /** + * @param args the command line arguments + */ + public static void methodX() throws Exception { + throw new AssertionError(); + } + + public static void main(String[] args) { + try { + methodX(); + } catch (Exception e) { + System.out.println("EXCEPTION"); + } + } +} + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build.xml new file mode 100644 index 0000000..f077e22 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Throws2. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/throws2/AnotherException.class b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/throws2/AnotherException.class new file mode 100644 index 0000000000000000000000000000000000000000..022ac65195d8a1327c64b69530e10190f1b5813d GIT binary patch literal 283 zcmZ`!J!=9%5PhTPow=MJ#3rOlnOJyW%7`GM)sZG*zg`w^!?`Q#n&fX;1uXId{85rw z4e1=1d2b$X9?apm{{irXc8n?-5t{Qf5fu237oUFHgFJ~#bzq>U@2oqXkT?Ud2ag!t8LZ7!$ErzEqpvG*=M zM1lY{!tJGFLdVb;@5S#^LgSiBhAZkjI0!yS!M1!ERXoB1y<^+cvAF@rzw^AWd@Bki#vS$!g zR@&W}(adVkm*WY*8`?gqc<}J(p+#^%bgGLHq1u0m2+r6n6`>XCRLyo@3zf~~B4Onz zG_gz~nQ6;!qEoDOPUwckIy3ux7|hgu@)N6Vp-uWu@ITEii`7)y3u1mX4L0&y3OJ|{ zI{yU;&(;zoGF=7tbLgSMkJ}<{j`MaI1-z|Ndp&@D8C2l$bW2g7&RARxXuxMiXqGPV E2ZcvDz5oCK literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/throws2/Throws2.class b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/build/classes/throws2/Throws2.class new file mode 100644 index 0000000000000000000000000000000000000000..4f6c8e4d4eb103a3e111a085a8d36915a26596ba GIT binary patch literal 721 zcmZuu%TC)s6g^`*F>y>19;LhsrL8DPM1m!#QdJcR$-p8Agu0rzRx*&-$T5#UV$BLv zB-ry&h%vEabMoQ*{Xd2K)2SQ5x@ zsZb?91kB~{hXU5G=x-oU_EZ?`oww^jd?4#BMn=8Jm#sq?EA4lKR?<`*fe|lh#?fVG zy?T(@O$xQ83I!&X|9B_zLRMQcY*cGWtir}-+DOI?Qpes&3k=s1>7VY(v$T(mF9Oc* zD?d0(R1|h>d=)U->l!wgsYU0pA8acw3Ry;cQCI}@Mu;aZ&HStHZ)Vc5=_>8 zBu-IhdO){=F^n_!fyaiiV`C!6!feh-O7IuE?H1Bzz|cLc<6Gn&S;d_ZvvFtoJc~Sj V{99h0Jo|s%Y@erfW~gUi_61>#fh+(3 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/build-impl.xml new file mode 100644 index 0000000..a98d303 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/genfiles.properties new file mode 100644 index 0000000..135a941 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=f4f3453a +build.xml.script.CRC32=11ceaa17 +build.xml.stylesheet.CRC32=8064a381@1.79.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=f4f3453a +nbproject/build-impl.xml.script.CRC32=9f085f6d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/project.properties new file mode 100644 index 0000000..4818508 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/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}/Throws2.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.7 +javac.target=1.7 +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=throws2.Throws2 +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/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/project.xml new file mode 100644 index 0000000..9b36d8a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Throws2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws2/src/throws2/Throws2.java b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/src/throws2/Throws2.java new file mode 100644 index 0000000..ede44c3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws2/src/throws2/Throws2.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package throws2; + +/** + * + * @author andad + */ +class NewException extends Exception {} +class AnotherException extends Exception {} +public class Throws2 { + + /** + * @param args the command line arguments + */ + + + public static void main(String [] args) throws Exception{ + try{ + m2(); + } + finally{ m3(); } + } + public static void m2() throws NewException{ throw new NewException(); } + public static void m3() throws AnotherException{ throw new AnotherException(); } +} + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/build.xml new file mode 100644 index 0000000..5aa3bcb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Throws3. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/throws3/Throws3.class b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/build/classes/throws3/Throws3.class new file mode 100644 index 0000000000000000000000000000000000000000..bbd23fe5496a5a24c0d4b51493c91b16f200162c GIT binary patch literal 468 zcmZutO;5s55S%TALMh)`MLmco)WjY*V!W7`m^6BTkTjlNv4KaRO-j+<s*0?@;Wi2`f`2PQPwsvH_<8#p2qu4O2b8$zyoJ|gJ1(Q`nk zxiSnMRtrCfhr*vT({!V;n2$s(RlgziWGa`0hMP>|=yln1h8gzRXdz@su)9z0OuPtZ zF2ad3NMadI`spDNPgvUeXUth5e@3YM*?OMGmgXQ@#pB>ksyx=_)Rl6#V4z4SZ)5Pj zg=0n4w$x^wP~XLQ^k>01Aq?bMUlST9rz3)UQ$0&Ul&DhP&!?HJ zhaxMu(@Uyc6eCe9Q*WBC9;+Flljw0>EoOr_P18#PO$ov6doEwKs!9fe$7){Z@=lpe z;qVVWpNKaRq6Lr8H+fu$@+JQF2<@Gi#Za<=GhYT zVaIzGFwGEweJy}C*I>BAvSZ~7j%Mbs;XEzT_~P8b){l04f8*~n4DI;61rBxf0iW{|36IV~yWJYPL}1-uMJig3gNn{lSA&v-c0SGa&sygX0P+ EZ{|WUjQ{`u literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/build-impl.xml new file mode 100644 index 0000000..2a47c56 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/genfiles.properties new file mode 100644 index 0000000..6c4513e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=fce0c91c +build.xml.script.CRC32=8f4dd013 +build.xml.stylesheet.CRC32=8064a381@1.79.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=fce0c91c +nbproject/build-impl.xml.script.CRC32=9e204888 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/project.properties new file mode 100644 index 0000000..b61737f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/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}/Throws3.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.7 +javac.target=1.7 +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=throws3.Throws3 +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/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/project.xml new file mode 100644 index 0000000..de74657 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Throws3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws3/src/throws3/Throws3.java b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/src/throws3/Throws3.java new file mode 100644 index 0000000..d4bad54 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws3/src/throws3/Throws3.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package throws3; + +/** + * + * @author andad + */ +class XXX { + + public void m() throws Exception { + throw new Exception(); + } +} + +class YYY extends XXX { + + public void m() { + } +} + +public class Throws3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + YYY obj = new YYY(); + obj.m(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws4/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/build.xml new file mode 100644 index 0000000..745a391 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Throws4. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws4/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/build-impl.xml new file mode 100644 index 0000000..36f653c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/genfiles.properties new file mode 100644 index 0000000..9de2f5a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c49a6dee +build.xml.script.CRC32=e027ba8d +build.xml.stylesheet.CRC32=8064a381@1.79.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=c49a6dee +nbproject/build-impl.xml.script.CRC32=99f82f33 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/project.properties new file mode 100644 index 0000000..544e4dc --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/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}/Throws4.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.7 +javac.target=1.7 +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=throws4.Throws4 +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/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/project.xml new file mode 100644 index 0000000..12c22f0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Throws4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws4/src/throws4/Throws4.java b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/src/throws4/Throws4.java new file mode 100644 index 0000000..635b833 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws4/src/throws4/Throws4.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package throws4; + +/** + * + * @author andad + */ +public class Throws4 { + + /** + * @param args the command line arguments + */ + class A { + + final static String value = "test"; + + A(String val) { + //this.value = val; + } + } + + + + public static void main(String[] args) throws Exception { + //new A("new test").print(); + } +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws5/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/build.xml new file mode 100644 index 0000000..a1d3061 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Throws5. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws5/build/classes/throws5/Throws5.class b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/build/classes/throws5/Throws5.class new file mode 100644 index 0000000000000000000000000000000000000000..78a129f1c982fdf3a9e3eb0aff1ac003a73b3580 GIT binary patch literal 1020 zcmaJ<+fEZv6kTU}nRc8~T5cjm3tkvdsET-_1;v1AQpDJXg!nYH6PVi0G{e-(r}zav z<3npC(RV*eU8k+I3i09Wz0W>-ueJ8h`SJ7XHvr4n&=AL*h9MX#=A&4^O%=B^gfJJu zqV!ABWTd&R;STObu&g0~dn#5`+!qLEZO8W41OmqVu0ZgaTd@S<1>3P+H0%48S2Fi& z%p?nL*{toFo-OaaWY9mfj|370|Il;a9j#u`9i#=^t@j%BzJQA4bzjjC2Xxg=kYD3Da@gIzxCukQl{JC-dWbjLJULO+*7bu~>Br6rkgej!x72LoyE)(wxZwV;B*s7>V ua~c&hla$F{#xf~$wj&bIP7v5j>TSfnGs{)db_Y%28si{yay!= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/genfiles.properties new file mode 100644 index 0000000..4bb09d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=cc89e1c8 +build.xml.script.CRC32=7ea4c089 +build.xml.stylesheet.CRC32=8064a381@1.79.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=cc89e1c8 +nbproject/build-impl.xml.script.CRC32=98d038d6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/project.properties new file mode 100644 index 0000000..5a15dd6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/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}/Throws5.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.7 +javac.target=1.7 +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=throws5.Throws5 +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/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/project.xml new file mode 100644 index 0000000..d89c534 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Throws5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/Throws5/src/throws5/Throws5.java b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/src/throws5/Throws5.java new file mode 100644 index 0000000..25a4320 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/Throws5/src/throws5/Throws5.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package throws5; + +/** + * + * @author andad + */ +public class Throws5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int j = 1; + try { + int i = doIt() / (j = 2); + } catch (Exception e) { + System.out.println(" j = " + j); + } + } + + public static int doIt() throws Exception { + throw new Exception("FORGET IT"); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build.xml new file mode 100644 index 0000000..6e77df9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TransferException. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/transferexception/TransferException.class b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/transferexception/TransferException.class new file mode 100644 index 0000000000000000000000000000000000000000..1fbb515daa9b5cd71d16e1e1e19a0c32f72d46dc GIT binary patch literal 858 zcma)4O>fgc6r4?*I58$|Q<@S!3Z)d>1ZqA`sE7*!DUyW{DU}eXZCK1A$Bt|V!GGcc zhZcdv58y{3W}VO!B?n~5``+x^nKy6u*YEE?0o=!32Q_TixZ30L=rLpq^^uyESKI*Yxh9 z4o6_?KaAVhanV87#d)-C+;VXnyEc3mchDACpQk7+aSpQ~op=*io}v9uS+0h>x@2s8 zPQ2*Ef6j^KoU4*U4rW60FDzh>Oi{$^u)Llb{>qG(V^g6@1!^OiW{N2``G{(KS3nuU zc<28NGoP#ATIn1^d|^<6%YU^1U7Tg?P72V#60D)}Sb`$_CD1jh|s{O-`ao9NcLXd%Q1Z78TdIa^8%L(gUtWsnY!h`!j>n XZMIJlR;F#T6c=!j#{@1F^_Twu4BokW literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/transferexception/Utils.class b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/build/classes/transferexception/Utils.class new file mode 100644 index 0000000000000000000000000000000000000000..b9cbd33c3419d3188d6802466097ee1af7e70f99 GIT binary patch literal 451 zcmZ`#!A`|l>4@>xTJ1PyBI&pizgEget;ik zoEC+Hag*KId2imE$$Wmje*hSv@4-gL#h!~Up?;#YGN%N4Fq{#bv+Pz9+L6-oa`_O; z{942*BSDlUBAtm`mH7|on0r+a_9K%EUEIlBJ}2_gs7!}9My17={pZq5v>|i{(Ly|l zFco?pPED@#d_0^Ghz)|j6u~?HH7i{7IG<+AJdqcw9LKBtk4ncT9MlN?e`X-~o4!}^ zLMA*+X9KOf-~bkHraTsS6R7c9=Pcw%9BYSfpx26a`K?!A16%xWt_rXXk29dbh*gP? knXwqLefNcfg^jdTNqZ}LEw! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/genfiles.properties new file mode 100644 index 0000000..f58ddbd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=defd6619 +build.xml.script.CRC32=26385908 +build.xml.stylesheet.CRC32=8064a381@1.79.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=defd6619 +nbproject/build-impl.xml.script.CRC32=53d02bde +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/config.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/private.properties new file mode 100644 index 0000000..4c35ba7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=1 +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/project.properties new file mode 100644 index 0000000..4ba423c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=TransferException +application.vendor=andad +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}/TransferException.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=transferexception.TransferException +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/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/project.xml new file mode 100644 index 0000000..6cdb423 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + TransferException + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/src/transferexception/TransferException.java b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/src/transferexception/TransferException.java new file mode 100644 index 0000000..a307661 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/src/transferexception/TransferException.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package transferexception; + +/** + * + * @author andad + */ +public class TransferException extends Utils{ + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws Exception { + // TODO code application logic here + Utils u = new TransferException(); + System.out.println(u.getInt(args[0])); + } + + int getInt(String s) + { + return Integer.parseInt(s); + } + + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException/src/transferexception/Utils.java b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/src/transferexception/Utils.java new file mode 100644 index 0000000..3bb2406 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException/src/transferexception/Utils.java @@ -0,0 +1,16 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package transferexception; +/** + * + * @author andad + */ +public class Utils { + int getInt(String s) throws Exception + { + return 7; + } +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build.xml new file mode 100644 index 0000000..4b5c67e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TransferException1. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build/classes/transferexception1/TransferException1.class b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/build/classes/transferexception1/TransferException1.class new file mode 100644 index 0000000000000000000000000000000000000000..bb5e1ec03dffe043699285077a674f0e7f9dcd82 GIT binary patch literal 1317 zcma)5{ZG?S6g_WWU28$u*oJ_BC^DunKKuqjLBQ!m5(o+L2h)v;C0)0a&gh>dCa_4N zzxziS&+8gC9U7bT_TBsLJLlYcUw{1k`VGK5UTH{TT0vez2-7MOn31blY38Jv*BHAa z&0Pie;<&Ft!vpC*l;)9&1uSZKjHNi16+BV!R6raFB#MW|2P1DA&Ov_Lb1mm!K_Iqh zIhMC15YA5S3Pe_``=-F z(=|Vq&6;Obo!R_O5L!DAku6l25r}3B1<550z6HJ|xiL%fY%^|2e~ud!#wv#82&A)b zI@SAv4flW&k{4_X#23qUP@cA3t-ED&-IB#*I>k-P-sngp!|gx&v{JY1ebd#^hm?*L ztV;7t#~Rjkj3c9C4A%vQTjw_Gw!Kxg9M5#m8^EdzpJGGDRSfI6iHw5hItqB9;H8ct zHUuCr{$K4B=xOo2E*+X>kK;6IHPhJ_n95$zuZ~bq7$-Bt-v47e?p2#tMxZa-nMi=t zMTDGko5<}?N1n-&o8@(Xzmo^GZ!ITp^f=L9RpnJ%>)c$h@L8k!H7Kkmf0bGN6rx1J4N^y zkrPA*P7phR@&%Cw;)4ySE!YGiOz$ImiqL5SWqgWs69yv~4~-$3{wLyUXY*jk(nQf zHqaFdYHQ|q`&eU$Qn5-d6%)t?=avKQT@7>})F1VN8ZN@^F`UQ85`9lBz literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/build-impl.xml new file mode 100644 index 0000000..f6c908c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/genfiles.properties new file mode 100644 index 0000000..892ac0f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6d87ab17 +build.xml.script.CRC32=9a43f0b8 +build.xml.stylesheet.CRC32=8064a381@1.79.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=6d87ab17 +nbproject/build-impl.xml.script.CRC32=7ce92c8b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/project.properties new file mode 100644 index 0000000..b7da2be --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/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}/TransferException1.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.7 +javac.target=1.7 +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=transferexception1.TransferException1 +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/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/project.xml new file mode 100644 index 0000000..030192f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + TransferException1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/src/transferexception1/TransferException1.java b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/src/transferexception1/TransferException1.java new file mode 100644 index 0000000..bf92bd1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferException1/src/transferexception1/TransferException1.java @@ -0,0 +1,44 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package transferexception1; + +/** + * + * @author andad + */ +public class TransferException1 { + + /** + * @param args the command line arguments + */ + static String s = ""; + + public static void m0(int a, int b) { + s += a; + m2(); + m1(b); + } + + public static void m1(int i) { + s += i; + } + + public static void m2() { + throw new NullPointerException("aa"); + } + + public static void m() { + m0(1, 2); + m1(3); + } + + public static void main(String[] args) { + // TODO code application logic here + m(); + System.out.println(s); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build.xml new file mode 100644 index 0000000..552025a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TransferExceptionOut. + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/transferexceptionout/MyException.class b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/transferexceptionout/MyException.class new file mode 100644 index 0000000000000000000000000000000000000000..59b9b7c58812297b55cf92ac26a899ccd9aa3fd3 GIT binary patch literal 363 zcmah_%TB{E5S&dz0-=yl1ZUvHLn4PBi+ZWx6u1=i?gkT#QX4rAg3scF#DNd!Mo!;?H9M=UgWjVRX%oB>1uE=A%r7y zB?)Pvw7h6%Q)w^7v}UGPm{QaeVU@?9Waw^GL)a^v6}q{WRz8&S&MBi!>+c>6+fyvRdxUX literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/transferexceptionout/TransferExceptionOut.class b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/build/classes/transferexceptionout/TransferExceptionOut.class new file mode 100644 index 0000000000000000000000000000000000000000..fd081fd78d2e9609a01628dcd1bec1adb425fedb GIT binary patch literal 1027 zcmZuvT~8B16g|^zJFqOYw0wvnmipC#vMRn|OpLLKv4}|tiQ#El7Fg`=lI_&UFY*~5 zgs9PXe~G`scxH>GB)glPyL0B=b3e}f{`>7GfOR~zVPo0GII0r2$8iUDZQR3sgVe@Q zw_#yLVpZaSK>nE@`ue$mRjcm^WM4*moVN)F^wQ>;bbuZfXdRic-;#i$9)$VHn zdq_#H$-U@B80kayop{=>)<1(hq6m;~zr^;GV(vIL5k)7@$xc^&pW0<}(h+6yQSmq71c}IaPgc%vvN$y-)L7Q7S zgE-|+22)(~3Fx4}f8$CA6fsRZjuOg5Oz{YUx$NmoMeMz2S>=$=p OWGdB>NI_;Zv&ug!F4~6x literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/manifest.mf b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/build-impl.xml new file mode 100644 index 0000000..ade1dec --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/genfiles.properties new file mode 100644 index 0000000..36f797c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e7491696 +build.xml.script.CRC32=5fc160cf +build.xml.stylesheet.CRC32=8064a381@1.79.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=e7491696 +nbproject/build-impl.xml.script.CRC32=12c4c95c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/project.properties new file mode 100644 index 0000000..8ca72d2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/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}/TransferExceptionOut.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.7 +javac.target=1.7 +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=transferexceptionout.TransferExceptionOut +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/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/project.xml new file mode 100644 index 0000000..5ce442d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + TransferExceptionOut + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/src/transferexceptionout/MyException.java b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/src/transferexceptionout/MyException.java new file mode 100644 index 0000000..b9c53d4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/src/transferexceptionout/MyException.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package transferexceptionout; + +/** + * + * @author andad + */ +public class MyException extends Exception{ + + public MyException(String msg){ + super(msg); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/src/transferexceptionout/TransferExceptionOut.java b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/src/transferexceptionout/TransferExceptionOut.java new file mode 100644 index 0000000..6548fec --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Exceptions/TransferExceptionOut/src/transferexceptionout/TransferExceptionOut.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package transferexceptionout; + +/** + * + * @author andad + */ +public class TransferExceptionOut { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try { + doTest(); + } catch (MyException me) { + System.out.println(me); + } + + } + + static void doTest() throws MyException { + int[] array = new int[10]; + array[10] = 1000; + doAnotherTest(); + } + + static void doAnotherTest() throws MyException { + throw new MyException("Exception from doAnotherTest"); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build.xml b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build.xml new file mode 100644 index 0000000..dad4970 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Blocklabeled. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build/classes/blocklabeled/Blocklabeled.class b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/build/classes/blocklabeled/Blocklabeled.class new file mode 100644 index 0000000000000000000000000000000000000000..4bd5e1809b3e2ec8dd0f5f90f452ebc90101fea5 GIT binary patch literal 879 zcmZ`%(M}UV6g@**wp~hFT8q+xEGpWfbT#q@L8F0$q@YO&FFs9|O&QqkHp^D!-A^&$ z86Pz9LErrbf5AU6>X|LJCDA6GJNM2#XU;vd-+q1m0^l(on#ka028*!LSTb=7x6`;| zU^$Ju2JRWC2~2J%Uqzb&iCX z8o4W|$1wq|t3lyFiTBR3V=l&2aD#|>j<~>H3y-*4V|;?;SigltJbnq+h@)DRiPlDJ c;yST>NoED4e!>*_Ed!O7fvU;+eB8D02iW_%e*gdg literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/build-impl.xml new file mode 100644 index 0000000..8cc1807 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/genfiles.properties new file mode 100644 index 0000000..b6d8733 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=963058d7 +build.xml.script.CRC32=31d28250 +build.xml.stylesheet.CRC32=8064a381@1.79.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=963058d7 +nbproject/build-impl.xml.script.CRC32=2361693a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/project.properties new file mode 100644 index 0000000..81b580a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/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}/Blocklabeled.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.7 +javac.target=1.7 +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=blocklabeled.Blocklabeled +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/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/project.xml new file mode 100644 index 0000000..5aee132 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Blocklabeled + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/src/blocklabeled/Blocklabeled.java b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/src/blocklabeled/Blocklabeled.java new file mode 100644 index 0000000..aaae5b0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Blocklabeled/src/blocklabeled/Blocklabeled.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package blocklabeled; + +/** + * + * @author andad + */ +public class Blocklabeled { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 0; + loop : // 1 + { + System.out.println("Loop Lable line"); + try{ + for ( ; true ; i++ ){ + if( i >5) break loop; // 2 + } + } + catch(Exception e){ + System.out.println("Exception in loop."); + } + finally{ + System.out.println("In Finally"); // 3 + } + + } + +} +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue1/build.xml b/PrjJava/OCA7/Chapter6/Flow/Continue1/build.xml new file mode 100644 index 0000000..dd9b981 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Continue1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Continue1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Continue1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue1/build/classes/continue1/Continue1.class b/PrjJava/OCA7/Chapter6/Flow/Continue1/build/classes/continue1/Continue1.class new file mode 100644 index 0000000000000000000000000000000000000000..b5bdb553c78df864897f03e756f93c201327ca17 GIT binary patch literal 891 zcmaJ=OK;Oa5dJoH;>2~+kTea&=_4%1FIRVVO>K-hl15K zHl*K_=Bza5bezWpX)Fy@4K;?;zVJkNi$SrfZ3gwg@45^NP2susqCv+E9`a6~kbKj3 zc)!g9A@@^I4WEh;L$T@jUMRfC-LVgTuIf~5z=g-KWIb*k@#oy`bFXK&!a#VvdQ8TH z9vv^t2s0!dKk`Bbc1YSr(STvT6>{gn%SD9QTfp`m(=>wd1N(QG;j%9 z45fehZ%3lvbpyJ8Ow%y14O^Pa26k{o!>)m=xF*eYQaIy&47uM$?{|(|hs6E?wO))u zmsBf$M1kU@1H!i-(Dg%Vg3AZgq7)wvU9ZcqWzFc(31}*t4wkLM>VLxN(4RD#VbMC7 zNCgV9`o9G+XhSKlPp?*-B}h&P5w}sn9F3d&5}=nsmh1xUZ1RkJvUUviE)M6&ree^* zDOwwo1msbmT?UIN5+V=3p%GQc*Oh&xVWx(!u=XB_k5C>RL(M10NSR}3W2DE(yoFXa zpES&ujOFHDfB!;>I_h(RpNq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/genfiles.properties new file mode 100644 index 0000000..778d023 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=92c9645e +build.xml.script.CRC32=a2fa889c +build.xml.stylesheet.CRC32=8064a381@1.79.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=92c9645e +nbproject/build-impl.xml.script.CRC32=299ca477 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/project.properties new file mode 100644 index 0000000..70c121f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue1/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}/Continue1.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.7 +javac.target=1.7 +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=continue1.Continue1 +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/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/project.xml new file mode 100644 index 0000000..d671f20 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Continue1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue1/src/continue1/Continue1.java b/PrjJava/OCA7/Chapter6/Flow/Continue1/src/continue1/Continue1.java new file mode 100644 index 0000000..8501195 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue1/src/continue1/Continue1.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package continue1; + +/** + * + * @author andad + */ +public class Continue1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int count = 0, sum = 0; + do { + if (count % 3 == 0) { + System.out.println("count=" + count); + continue; + + } + sum += count; + } while (count++ < 11); + System.out.println(sum); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/build.xml b/PrjJava/OCA7/Chapter6/Flow/Continue2/build.xml new file mode 100644 index 0000000..d6104e2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Continue2. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Continue2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Continue2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/build/classes/continue2/Continue2.class b/PrjJava/OCA7/Chapter6/Flow/Continue2/build/classes/continue2/Continue2.class new file mode 100644 index 0000000000000000000000000000000000000000..7ca92a3dcbc27ecbbe10210fec4438a8f42d6407 GIT binary patch literal 722 zcmZuvTWb?h5dKc~a+)>0m}Jwcv9(^)>w;olVg)IPfwd7LfzTIE;u5zeyJfo(efNim zFMZYr1(Ey!e}M1)3lXt?XX}MR&*99>nVB>5&7Ar2>(d0lEz}%XxR6H`7ac5ON#c^k zvVeUjjKcJ;fKglN2$52IjbJn99>W7Qi{Q}pA$8g^6?>iZw1nLY~-1YEx# zM`;+1gPY#=U#Y=hBNavhmD;Yqr(P&;sG@<_PLnViG;}iYlBY>Ol?)iBbc!1tlt6Bm zURD~XYA7(>PF4T;L$#lQkSI!&1)O#~PWr+9P=lTMhhkGFF2IJAxLm*$T$Q+1z;)bU zzEe;O%>9Sj>g@&n^n|MY>L3k9>{dLc!9A`kjJ-!JDrISb8nN(F7UQH^K<;a&AvM?$aE20)$24ZB(T~3}s3dR7 z&ra8nt*&Xex|Y@I+Gfi)w$^qwCUw)OTdw7rZ?U-HTAOv-wbv$ZU>{e^4XUR&bu z=-Yebsvlrz00vWlP1Cf5GIs?o)-lh)T0kA=(BSZ59*5A literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Continue2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/build-impl.xml new file mode 100644 index 0000000..837c7d4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/genfiles.properties new file mode 100644 index 0000000..604ed38 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8afdf034 +build.xml.script.CRC32=19c47908 +build.xml.stylesheet.CRC32=8064a381@1.79.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=8afdf034 +nbproject/build-impl.xml.script.CRC32=00852c2d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/project.properties new file mode 100644 index 0000000..abe0a3f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue2/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}/Continue2.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.7 +javac.target=1.7 +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=continue2.Continue2 +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/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/project.xml new file mode 100644 index 0000000..9f99083 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Continue2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Continue2/src/continue2/Continue2.java b/PrjJava/OCA7/Chapter6/Flow/Continue2/src/continue2/Continue2.java new file mode 100644 index 0000000..a98f40e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Continue2/src/continue2/Continue2.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package continue2; + +/** + * + * @author andad + */ +public class Continue2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] a = new int[] {4,3,2,1}; + int total = 0; + for(int x: a) + { + if (x==a.length) + continue; + total +=x; + + } + System.out.println(total); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Crazyloop/build.xml b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/build.xml new file mode 100644 index 0000000..712dbc2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Crazyloop. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Crazyloop/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Crazyloop/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Crazyloop/build/classes/crazyloop/Crazyloop.class b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/build/classes/crazyloop/Crazyloop.class new file mode 100644 index 0000000000000000000000000000000000000000..f672c9934927c9dfcb224ef212baa614f8b53224 GIT binary patch literal 719 zcmZva&2G~`6ot=?6FW9e8j>cY4Gk0uq#%(6%T{bEAw@DjQcxtsYGSP5;@FYvAj+C2 zK}cQ0qLo160eBJ~0s&{7lv1g(eCN)cnRC87_K)9RzXN!HI}R+Y*;q%%!BuQn=sGB3 zO^0h1t_#fFFb=ba0;9J*5)}86SAk%~3*+F)d^!%&=V~0WQuh*HMI)7ldcG_cv)AE) zpy~OkdVd%t$*jM3n(YYeyzH?o5TEZrP#I>*fAd()P9>%)j0LUUOK)GjRsBfClm0ME z!+5fj1F3XEi^c`Z0%w@aQ$KhVYQpM2>-$>CMH#k*O&2$C)54aETewZ33s7CGz!ucb z0G^Kb13x=g8Xg{G!Ibxu%(>89(1uC>8BsF=2WrZe8@a~$vcQ_@O%eMn_6FM{Z1Vao zejvbrXii3lvpz@RSh{-x`OKt%ON?e-bm2007aLGPl{08^R`lU_++E<4Jc9i} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/genfiles.properties new file mode 100644 index 0000000..d2f63c3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5626788e +build.xml.script.CRC32=90e6d6bd +build.xml.stylesheet.CRC32=8064a381@1.79.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=5626788e +nbproject/build-impl.xml.script.CRC32=e61fb1d2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/project.properties new file mode 100644 index 0000000..98e4564 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/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}/Crazyloop.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.7 +javac.target=1.7 +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=crazyloop.Crazyloop +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/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/project.xml new file mode 100644 index 0000000..8e003f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Crazyloop + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Crazyloop/src/crazyloop/Crazyloop.java b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/src/crazyloop/Crazyloop.java new file mode 100644 index 0000000..df606f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Crazyloop/src/crazyloop/Crazyloop.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package crazyloop; + +/** + * + * @author andad + */ +public class Crazyloop { + + /** + * @param args the command line arguments + */ + void crazyLoop() { + int c = 0; + JACK: + while (c < 8) { + JILL: + System.out.println(c); + if (c > 3) { + break JACK; + } else { + c++; + } + } + } + + public static void main(String[] args) { + // TODO code application logic here + Crazyloop c = new Crazyloop(); + c.crazyLoop(); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/build.xml b/PrjJava/OCA7/Chapter6/Flow/Do1/build.xml new file mode 100644 index 0000000..53724bf --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Do1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Do1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Do1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/build/classes/do1/Do1.class b/PrjJava/OCA7/Chapter6/Flow/Do1/build/classes/do1/Do1.class new file mode 100644 index 0000000000000000000000000000000000000000..0078dc7a7fd37b9b65178bc03ee2e9748ef2797b GIT binary patch literal 571 zcmZut%TB^T6g@+M3RXoc_`nzH0$tb`m!KPsi3vUu3>#MiG&l$?sm18tAMq1(p@|DW zz+W;x&J+@3;v_Tob?&+6&imKv8-N|Gr;)%+3bU9?V;*@E3nmr?l4a$oa8JM}Zqx+g z`+n0En5ZbvJ?VGrZg4K^9cHE~enWO@GEh1mCgb6yx)w-Pn*O$P;BS{m(3Q#)$Q3Ut zZFwV|j`UhiH4K#3Dn$ci&|-`IPgy|R@*eTt35-=k*|<8Ez2U5M)$a!l_fTmyBOJD+ z`7I=2npm>1j1?0F3#(WYFo%K!GQTQL>ut9Y{z+Buu0yxW<^4Vj*@0x`J7?4zQnf3) z+{unO{-!yjr$HSq8!sMh)KEa2U#w3I{8yNKM;JM@f;O@F0`VA?Q+$(A(n6ZPH2`3g z9+1Kq#+lL0J(3x;S)-g8-Ob+%vGDNy@q}3Z8HOe^2nTY}WSih=dN~rz(3_3OR|W)_ dK!(T|Y)oQ`^a;i`J>3JX_7e%ArDh{o?g#Z=X^;Q_ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Do1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/build-impl.xml new file mode 100644 index 0000000..ac08261 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/genfiles.properties new file mode 100644 index 0000000..1c175db --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d89eb6a6 +build.xml.script.CRC32=6da6f426 +build.xml.stylesheet.CRC32=8064a381@1.79.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=d89eb6a6 +nbproject/build-impl.xml.script.CRC32=fef39faa +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/project.properties new file mode 100644 index 0000000..5a23250 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do1/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}/Do1.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.7 +javac.target=1.7 +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=do1.Do1 +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/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/project.xml new file mode 100644 index 0000000..43e0d37 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Do1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do1/src/do1/Do1.java b/PrjJava/OCA7/Chapter6/Flow/Do1/src/do1/Do1.java new file mode 100644 index 0000000..d8457f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do1/src/do1/Do1.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package do1; + +/** + * + * @author anda + */ +public class Do1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int x = 0; + int y = 11; + do {} + while (x++ + + + + + + + + + + Builds, tests, and runs the project Do2. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Do2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Do2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do2/build/classes/do2/Do2.class b/PrjJava/OCA7/Chapter6/Flow/Do2/build/classes/do2/Do2.class new file mode 100644 index 0000000000000000000000000000000000000000..9e629150968875a8a3b291b718bbf28f0895cffd GIT binary patch literal 827 zcmaJ=%Wl(95IvJPwqx7}c{D&mNqH2f&>B)&7HwGos#GaFq@YNM)lFiB8yq`w9VGVs z0)C+10E<)ti4S1Ml8=Eh*NKEmBP@9yXXehF8DD?@{pA~gO>A4Rv7E&+V2z;f%0R}C2x+I*B4|&-u18pC$iRC(8nnIWm1z5n_48r2yIxpINuM?kvnja2hZ@@Lf5eJHsL1pN^ z4@tet>9CE-PudIH+G$hJL6Kn{8KvM8X)h&ud{ zZ(N%7LvvT(`;63Aq+g#v%VoyU%VQWhlZ^@+V`Rs$%11=z@#)W_6jk)&(;uo`8miqA zGA#4VtpJU^Rg|!eOG*3cqy?iT&Pid5@ykp= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/genfiles.properties new file mode 100644 index 0000000..a521ef1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c0aa22cc +build.xml.script.CRC32=3ad4ec20 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c0aa22cc +nbproject/build-impl.xml.script.CRC32=70056fa5 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/project.properties new file mode 100644 index 0000000..2887fa3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do2/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}/Do2.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.7 +javac.target=1.7 +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=do2.Do2 +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/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/project.xml new file mode 100644 index 0000000..802b6b2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Do2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do2/src/do2/Do2.java b/PrjJava/OCA7/Chapter6/Flow/Do2/src/do2/Do2.java new file mode 100644 index 0000000..156cbab --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do2/src/do2/Do2.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package do2; + +/** + * + * @author andad + */ +public class Do2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 5; + int j = 3; + do{ + System.out.println("i= " + i + " j= " + j); + } while (i++==5 || ++j==3); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/build.xml b/PrjJava/OCA7/Chapter6/Flow/Do8/build.xml new file mode 100644 index 0000000..c56d00f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Do8. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Do8/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Do8/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/build/classes/do8/Do8.class b/PrjJava/OCA7/Chapter6/Flow/Do8/build/classes/do8/Do8.class new file mode 100644 index 0000000000000000000000000000000000000000..965964f6da553bd9c35b1a1f2df578f35057cd07 GIT binary patch literal 958 zcmaJYuW6g{s4GeD;np|mR0POVlzThv;m(rRLjNfZ1?FeFA74lu#j!VH1I#J#`5 zoo-y~f+m{y1N;&G6F<%yNJ=e{#eMIcd+wZbFZajquipV|pcKO?SWztFf`OG7G*}T_ zROclXR#mthLl(IR@)2B7*Q*BB46F<2+tQW(T>&kds|tj6y@n$&Tb8c#xZkch-Dh^K zMI=%7>UOJYccprdz>xo1_5`BkhF2^+@QNjVplwT6U_Sezyl=m;3oYAi7Ak&My3JA` zV0W7=Nlr)$gzH}4^##Np{q*{6ftiYL*AE`qosnX!;`O_A=b==dB9vTLDkf$TH&8Hf z4c7%0{#Cx;m#v1=rEDNzNtY&l$7(p%j%DHoHdMH2ViUIv+%{3fmVgnEcP!rM#gaWz zi@3w*s9k~hk94Z6G`69Apvtp@fF297Ko_gpWIcAXItCWcD`Wh8?@(# z2qnS;=;;BB0U`rL(|YGU^iS9tW5kXzGU-?2<_K&5ug6>=OfFBn#!aGWipQ# zV-g`6TcoWO8e7F#+`~ESB8`{Gz+t9^rJxaOXclM4QFAyTFU?j$kYuKbEE11G`-PAY M%bQG{4~R>D0U5u|vj6}9 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Do8/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do8/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/build-impl.xml new file mode 100644 index 0000000..8ce2b1c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/genfiles.properties new file mode 100644 index 0000000..bc4bdd8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=90115bb0 +build.xml.script.CRC32=1289ba75 +build.xml.stylesheet.CRC32=8064a381@1.79.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=90115bb0 +nbproject/build-impl.xml.script.CRC32=e0d14305 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/project.properties new file mode 100644 index 0000000..7c5048d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do8/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}/Do8.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.7 +javac.target=1.7 +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=do8.Do8 +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/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/project.xml new file mode 100644 index 0000000..0c9e194 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Do8 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Do8/src/do8/Do8.java b/PrjJava/OCA7/Chapter6/Flow/Do8/src/do8/Do8.java new file mode 100644 index 0000000..01dde2c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Do8/src/do8/Do8.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package do8; + +/** + * + * @author andad + */ +public class Do8 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int count = 0, sum = 0; + do { + System.out.println("count inainte de = " + count); + if (count % 3 == 0) { + continue; + } + System.out.println("count= " + count); + sum += count; + System.out.println("sum is " + sum); + } while (count++ < 11); + System.out.println(sum); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit1/build.xml b/PrjJava/OCA7/Chapter6/Flow/Exit1/build.xml new file mode 100644 index 0000000..e7ebbd1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exit1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Exit1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Exit1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit1/build/classes/exit1/Exit1.class b/PrjJava/OCA7/Chapter6/Flow/Exit1/build/classes/exit1/Exit1.class new file mode 100644 index 0000000000000000000000000000000000000000..2c9f38884f235d0dd5ecad8499890e9a07c3d08f GIT binary patch literal 635 zcmZuvT`vPc6g|_eZo3AhTGaRVs>BA5#EXzf>LaQ2fv0IrYHGVHYbyK|f50;jhzCEw zj}mvb5}MeDJ9E#y_uPB#&ga+r2Y^kiIU*X(+sI?6)3&K zV7V(*hU9K|AsGhBDv(F*R!v5yqUIAaR1WLHuZl<+{|8L!OLfE0SC)55uX}sOZV^dK zsDPp1o|l{AR(QS$8eT<5DrjuQO+?h7vfMvmBCBXozd97xKRujE*pBLQUzsVKxW$@b z%gk>8p#|laey?^Fn$o>vkb~}w z`x`A=B+szY;T{+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/genfiles.properties new file mode 100644 index 0000000..2905e2f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4cd628b1 +build.xml.script.CRC32=2fa86daa +build.xml.stylesheet.CRC32=8064a381@1.79.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=4cd628b1 +nbproject/build-impl.xml.script.CRC32=314b350e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/config.properties b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/private.properties new file mode 100644 index 0000000..4ecff87 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=32 +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/project.properties new file mode 100644 index 0000000..9051b76 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Exit1 +application.vendor=anda +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}/Exit1.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=exit1.Exit1 +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/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/project.xml new file mode 100644 index 0000000..02a5cf2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exit1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit1/src/exit1/Exit1.java b/PrjJava/OCA7/Chapter6/Flow/Exit1/src/exit1/Exit1.java new file mode 100644 index 0000000..0814a09 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit1/src/exit1/Exit1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exit1; + +/** + * + * @author anda + */ +public class Exit1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + if (args[0].length()==0) + System.exit(0); + else + System.out.println(args[0]); + + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/build.xml b/PrjJava/OCA7/Chapter6/Flow/Exit2/build.xml new file mode 100644 index 0000000..b417140 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exit2. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Exit2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Exit2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/build/classes/exit2/Exit2.class b/PrjJava/OCA7/Chapter6/Flow/Exit2/build/classes/exit2/Exit2.class new file mode 100644 index 0000000000000000000000000000000000000000..7ac38cc55117e6cbc46924410b3ad2ffeb144f34 GIT binary patch literal 638 zcmZuu$xZ@65Pc2Ez&I$2xbN%e!AbO}(Sy;%gs2I|i>C%V&;(}8Fc|$TJ*e^E2l!FO z*Q1GGywvil>eZ|6kI%Pv0K3?sGm%+S^1uR-vval?W-q*g44g`|! z=9NI|D7aAqqZRF|vtFmB!b@3e6Dd}Lx@=#`P@DV*OhrxI706Z8y^eOgV`KM7Vp2Ny z)KI3ok&Jq56Q{&FQu_kq?scUl@1)n3e#5Iqq4pbl@qQUL*joChEMQlIURYNr+6c1a zZQF*$K^C@!6$g0~9IRqZAamJNi^{*@mFo^R;0g@)sT9cn?mw@!RGotRpz1?6QXRfZ z&|{(eEmjBK1(inBt7M0VmST=USirh9O>Lf8cK^E)OZ<%tzX(V|811yf%shHQKeY7% z@yH+nhc+F94swj0?*@!ulv&msOk`kq`W1=4!-aw2B1-Y_7|K7xhg@Yg=aR2TJ|R^c edPe$}WQ0P&<`l-MV4{yKM`VIEfl1l~roI5-&2-KH literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Exit2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/build-impl.xml new file mode 100644 index 0000000..eea38ba --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/genfiles.properties new file mode 100644 index 0000000..e8b2288 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=54e2bcdb +build.xml.script.CRC32=5e6d94b4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=54e2bcdb +nbproject/build-impl.xml.script.CRC32=a0f61583 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/project.properties new file mode 100644 index 0000000..e4c6580 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit2/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}/Exit2.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.7 +javac.target=1.7 +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=exit2.Exit2 +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/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/project.xml new file mode 100644 index 0000000..9b141d2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exit2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Exit2/src/exit2/Exit2.java b/PrjJava/OCA7/Chapter6/Flow/Exit2/src/exit2/Exit2.java new file mode 100644 index 0000000..6bfbfaa --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Exit2/src/exit2/Exit2.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exit2; + +/** + * + * @author andad + */ +public class Exit2 { + + /** + * @param args the command line arguments + */ + public static void exit(int status) { System.exit(status); } + + public static void main(String[] args) { + // TODO code application logic here + exit(0); + System.out.println("The end!"); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build.xml b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build.xml new file mode 100644 index 0000000..f50c2c9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ExitFromFor1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build/classes/exitfromfor1/ExitFromFor1.class b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/build/classes/exitfromfor1/ExitFromFor1.class new file mode 100644 index 0000000000000000000000000000000000000000..dc8859c8b4579edda0baaa18de5b5c4599f6d843 GIT binary patch literal 712 zcmZ`%O;6iE5PjJv1@%%j5>jX@rQ*VA6HK}^wvllV-1|#< z>6so{)I%@5^|$mFAVmAtj?^L*OP-ncc6R2?*gtQ+eFw0CH3t?NMa*H|!F_lRqX#w~ z+E@^A(@#@+?T^WnJA6Nq?x``Cjwq4 zI8*6i5{HLz^3;Dx&?aaTY_Vi0RU}Yv?stylsq}|38u;BbQPE&aw-k!+4)bI(V6p0d z(gaG~RQBKR%HwforyGxwe$ZB0Tjk%5PjnL(HYRN>x>&-pjTIM|W zF~N_c9|KInByEw%rx)}St*;Ol*|9@wWu%KK#%`WKUm_~v9;V6Y%RgAmpnqm=du970 zoX;@4FDTeKoEpQ6vXv9FW5T?I`9X+JzklhD1?Y~g%vLF^#`<$;@DEymheg^Zx9f9+ z4aS>T%T%>svUdq(RH&vxRe7|+n|VZCm_e1bXZbc@UBeJpaIYcgN;#_Ya*f9Z>VE+E CXpLw9 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/build-impl.xml new file mode 100644 index 0000000..93947a0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/genfiles.properties new file mode 100644 index 0000000..55dbedd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=daa0e2ce +build.xml.script.CRC32=ef77817b +build.xml.stylesheet.CRC32=8064a381@1.79.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=daa0e2ce +nbproject/build-impl.xml.script.CRC32=eeee4255 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/project.properties new file mode 100644 index 0000000..afa362e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/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}/ExitFromFor1.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.7 +javac.target=1.7 +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=exitfromfor1.ExitFromFor1 +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/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/project.xml new file mode 100644 index 0000000..a4eac17 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ExitFromFor1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/src/exitfromfor1/ExitFromFor1.java b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/src/exitfromfor1/ExitFromFor1.java new file mode 100644 index 0000000..f67457b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ExitFromFor1/src/exitfromfor1/ExitFromFor1.java @@ -0,0 +1,40 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exitfromfor1; + +/** + * + * @author andad + */ +public class ExitFromFor1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + for(int i = 1; i<7; i++) + { + System.out.println(i); + break; + } + for(int i = 4; i<7; i++) + { + System.out.println(i); + return; + } + + for(int i = 6; i<7; i++) + { + System.out.println(i); + System.exit(1); + } + + + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/build.xml b/PrjJava/OCA7/Chapter6/Flow/For1/build.xml new file mode 100644 index 0000000..b4fa553 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/build/classes/for1/For1.class b/PrjJava/OCA7/Chapter6/Flow/For1/build/classes/for1/For1.class new file mode 100644 index 0000000000000000000000000000000000000000..b1234db708280a61878ebb92652c7c5445afbf11 GIT binary patch literal 854 zcmaJ<+iuf95It)QGndZwd+Hv>E)TqUfi-2LpdC?s3H{A7k(05yLB!Ye|q2N)UHs$7| z8JM8|fc^o)LM!Io*N^yU#%8s`an$wph18RlY}=B+#sU@%+^}&ITMWg2Ngs@b-}54x zP&6tww&6;1i{gQdcW~Rlu8ljmOI`mA!m#|e(UZ==>&B;`*4x9_8&Z>SOo_sDR1vyQ zY0j9Y_4ts^Lg%BA7xWmmoH>Va2AWBwjb-Pc`k%BJhtm^f$UA2XsX;DLe_9ZOF_Q9p zx}L&3L2axfLyt&)3g`x~NOp-Lmpmh%+B^aKn537<>IrD$9IfqX0kX(Zltvx}LgeNT z^y*ad_tm=EQ0pc0J@Td0JLt#Ij}&&q*zvFLpP+n!`uqf1HZ_4>n!w1Kv?$YJg7gHI zq*WnlH(-*@k;XhUqRF60(Rr-Ux{M3hBP%6UrnH0?DN@j&npF~|p+;4!gp>%kp#6Z( Nn60EJS57J~{s!s~vV8ym literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/build-impl.xml new file mode 100644 index 0000000..dcc686a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/genfiles.properties new file mode 100644 index 0000000..1bd44ae --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2a0de3a7 +build.xml.script.CRC32=e3bcc511 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2a0de3a7 +nbproject/build-impl.xml.script.CRC32=0c83eaac +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/project.properties new file mode 100644 index 0000000..e34dc4b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For1/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}/For1.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.7 +javac.target=1.7 +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=for1.For1 +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/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/project.xml new file mode 100644 index 0000000..8d2f9ca --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For1/src/for1/For1.java b/PrjJava/OCA7/Chapter6/Flow/For1/src/for1/For1.java new file mode 100644 index 0000000..b8d0867 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For1/src/for1/For1.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for1; + +/** + * + * @author anda + */ +public class For1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 0; + int j = 0; + for(i = 0; i<5; i++) + { + if (i==2) continue; + j++; + } + System.out.println("i= " + i + "j= " + j); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/build.xml b/PrjJava/OCA7/Chapter6/Flow/For10/build.xml new file mode 100644 index 0000000..57b2a1b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For10/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For10. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For10/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For10/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/build/classes/for10/For10.class b/PrjJava/OCA7/Chapter6/Flow/For10/build/classes/for10/For10.class new file mode 100644 index 0000000000000000000000000000000000000000..ce2c83c912d35251ca18e2d7c1e2536d928cdb59 GIT binary patch literal 603 zcmZuuO;6iE5PcgvacrCd2_dBUAfX%*4mA}=XfH@eNa=@^Dwm!%!Gui{J8~SP-mCr+ zB+m5EN*wwF`bYQ`l)iP400~<=v-@V|&D+_(|E~W4*u%DiG)gu$P5(jfl?N>!`y+o4KY_a6X0bov7{WON z#f5McdY`B|rgmRWc(X#n@e~%YraEcNE1Rw3b`MRM9Jc;a;Dlk(W_j}H1$}zwH^fyE zwrMj7=)&RNT_j+MJHSQ`FNo;kA0#vAo5n%*?N6jCzhKZ+=_=I=WG-QUPu*SK-DqNi zr9hpXfdbWRkg$wADk!1K=P#kbUpH(lNU@9+o>Cm(D)V>~)L5A(vPRs7aSKz3Vw$01 HlDPgKTx)S| literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For10/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For10/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/build-impl.xml new file mode 100644 index 0000000..b311ccb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/genfiles.properties new file mode 100644 index 0000000..b4356f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=49b9493f +build.xml.script.CRC32=ffd031cc +build.xml.stylesheet.CRC32=8064a381@1.79.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=49b9493f +nbproject/build-impl.xml.script.CRC32=e594ab8a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/project.properties new file mode 100644 index 0000000..a3812dc --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For10/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}/For10.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.7 +javac.target=1.7 +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=for10.For10 +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/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/project.xml new file mode 100644 index 0000000..791e4b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For10/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For10 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For10/src/for10/For10.java b/PrjJava/OCA7/Chapter6/Flow/For10/src/for10/For10.java new file mode 100644 index 0000000..581cf54 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For10/src/for10/For10.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for10; + +/** + * + * @author andad + */ +public class For10 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 0, j = 5; + lab1: + for (;; i++) // is executed only for i=0, o singura data + { + for (;; --j) { + System.out.println(i); + System.out.println(j); + + if (i > j) { + break lab1; + } + } + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/build.xml b/PrjJava/OCA7/Chapter6/Flow/For11/build.xml new file mode 100644 index 0000000..8306bf8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For11/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For11. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For11/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For11/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/build/classes/for11/For11.class b/PrjJava/OCA7/Chapter6/Flow/For11/build/classes/for11/For11.class new file mode 100644 index 0000000000000000000000000000000000000000..a31296132a9064b8ff86e6b7d89bd9f21747aa86 GIT binary patch literal 1045 zcmaJmng?Hz&M!V}kX*&W#>Boht`P|IbOlK=w z^gY|zT9HY_HrF~=mCGjH^tMPda0XmJFS||0w>+jP`eu3ip4sSTj}+aeSGLw{Szn}+ zd{*W&(1)mwIRiH^FEIRX4R@M$ts)7PYCdIP0gKWs8MujCI&K?S21O{_`IJDon_U8z zkrU`SCRHH%m;1qH)hhcZLdBOmzEvlc+vGv)uofpn(B?8;1Z4BF0@9Ll|a+m&GDyHOSaIC8y*Q+DGgv zt4X?NpAq;9Wn&*|f3OWL*@oUmsEx3)q{dVt){h|~M8wo1NK8#uK0w>UR7;3supYuj zj!-RC?ET(vDYWlf0ovDu^4O3X6i5xLlnE*buE^^LBP(T7jBq1BKfiZZD zzaVCp*cQg|784!q3)DAF^ab8k(Ssf0;^bHHiY#$*Q$4wo^Z~rVCB_6Ua~FsH6RHqD UpmC){<^ZDy2=XN$)q#)x0V1Z|b^rhX literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For11/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For11/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/build-impl.xml new file mode 100644 index 0000000..c589153 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/genfiles.properties new file mode 100644 index 0000000..f1849dd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=41aac519 +build.xml.script.CRC32=d09366c6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=41aac519 +nbproject/build-impl.xml.script.CRC32=95004bf1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/project.properties new file mode 100644 index 0000000..ef31ccd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For11/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}/For11.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.7 +javac.target=1.7 +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=for11.For11 +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/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/project.xml new file mode 100644 index 0000000..5d79f17 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For11/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For11 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For11/src/for11/For11.java b/PrjJava/OCA7/Chapter6/Flow/For11/src/for11/For11.java new file mode 100644 index 0000000..67573e6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For11/src/for11/For11.java @@ -0,0 +1,41 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for11; + +/** + * + * @author andad + */ +public class For11 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int counter = 0; + outer: + for (int i = 0; i < 3; i++) { + middle: + for (int j = 0; j < 3; j++) { + inner: + System.out.println("j= " + j); + for (int k = 0; k < 3; k++) { + System.out.println("k= " + k); + if (k - j > 0) { + break middle; + } + + //System.out.println(counter); + counter++; + System.out.println("counter= " + counter); + } + } + } + System.out.println(counter); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/build.xml b/PrjJava/OCA7/Chapter6/Flow/For12/build.xml new file mode 100644 index 0000000..c564e62 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For12/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For12. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For12/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For12/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/build/classes/for12/For12.class b/PrjJava/OCA7/Chapter6/Flow/For12/build/classes/for12/For12.class new file mode 100644 index 0000000000000000000000000000000000000000..0e147d5b8ba4e29011c15f9e64bcd05861d32769 GIT binary patch literal 997 zcmZuv+int36kP{q7?@6NJ3uemDq1hl8y0QV(rThfO_Zt$rUrdFz=+cVgVVvpcYnfH zU;3r#9DOux^7S=%T z2731I8~3=p#0_YLatJ|bH!r&$%4?^W`T&?Bx39c|5l(ZK6M0*Q3y1Tl~EIK@Ar zx`P-6 v6Rhh>G&z$z6L^LxJ_+(cpY%f}x`A`upP)OxF>WB0_=Sm|Y!xIa8!!9?srAza literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For12/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For12/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/build-impl.xml new file mode 100644 index 0000000..887fbb9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/genfiles.properties new file mode 100644 index 0000000..2f6952b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=599e5173 +build.xml.script.CRC32=a1569fd8 +build.xml.stylesheet.CRC32=8064a381@1.79.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=599e5173 +nbproject/build-impl.xml.script.CRC32=04bd6b7c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/project.properties new file mode 100644 index 0000000..bd621be --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For12/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}/For12.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.7 +javac.target=1.7 +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=for12.For12 +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/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/project.xml new file mode 100644 index 0000000..cabd72c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For12/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For12 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For12/src/for12/For12.java b/PrjJava/OCA7/Chapter6/Flow/For12/src/for12/For12.java new file mode 100644 index 0000000..5736fac --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For12/src/for12/For12.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for12; + +/** + * + * @author andad + */ +public class For12 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String[] sa = {"a", "b", "c"}; + for (String s : sa) { + if ("b".equals(s)) { + continue; + } + System.out.println(s); + + if ("b".equals(s)) { + break; + } + + System.out.println(s + " again"); + } + } +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/build.xml b/PrjJava/OCA7/Chapter6/Flow/For13/build.xml new file mode 100644 index 0000000..6d5de20 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For13/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For13. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For13/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For13/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/build/classes/for13/For13.class b/PrjJava/OCA7/Chapter6/Flow/For13/build/classes/for13/For13.class new file mode 100644 index 0000000000000000000000000000000000000000..8fac00d85918ffaee37f40247d1591618df7e854 GIT binary patch literal 611 zcmZuv%TC)s6g@XKHgTLL5J+203#C#Oy1*coMBP+ELP{S}s%*NN1d|R;Y-F5D-SY+g z1U6Zh1xPITfc{Q5ED-4#CsK=4OTLeD@0@$)YJS~c-vHRfOAm9X7x5TRJUqpUi@?RI zz-j7OXKw^nW3wZ$-zJBVpwiND^nNt#M(HQj9S~V;B|SChs8pML2HM#deJUuoj*@g| zH{3UNk0e8-V?n*~xpl0*sc@j;e%Q`Z9ryS0Au8?jSnWS$foT2*ByDG^_w}7Rna%Rr z$tdkb``W1S@=;rc-G>9$#WNqzvF2jk#|vx-O8-a_RR8Mu&^?ZN*#oHk{WOb)TtPBo zVRrjH-q_e6wgG)lUvIqllw8O3lxG&SV7f0 zM|qZvC%?@gi&VfyPE;e!5-NNJ3s~VZ2(XS-yyEJ%85t4v=^*x0nH8ve0gIGTV^)H5 P2U|RGoeH6)ykYqdg-&+J literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For13/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For13/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/build-impl.xml new file mode 100644 index 0000000..1d7e3bd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/genfiles.properties new file mode 100644 index 0000000..055ff03 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=518ddd55 +build.xml.script.CRC32=8e15c8d2 +build.xml.stylesheet.CRC32=8064a381@1.79.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=518ddd55 +nbproject/build-impl.xml.script.CRC32=74298b07 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/project.properties new file mode 100644 index 0000000..38aada8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For13/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}/For13.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.7 +javac.target=1.7 +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=for13.For13 +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/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/project.xml new file mode 100644 index 0000000..12cb0a9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For13/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For13 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For13/src/for13/For13.java b/PrjJava/OCA7/Chapter6/Flow/For13/src/for13/For13.java new file mode 100644 index 0000000..93a8679 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For13/src/for13/For13.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for13; + +/** + * + * @author andad + */ +public class For13 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 0; + for (i = 1; i < 5; i++) { + continue; //(1) + } + for (i = 0;; i++) { + break; //(2) + } + for (; i < 5 ? false : true;); //(3) + System.out.println(i); + for(;i<10;) + { + System.out.println(i); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/build.xml b/PrjJava/OCA7/Chapter6/Flow/For14/build.xml new file mode 100644 index 0000000..28858fb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For14/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For14. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For14/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For14/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/build/classes/for14/For14.class b/PrjJava/OCA7/Chapter6/Flow/For14/build/classes/for14/For14.class new file mode 100644 index 0000000000000000000000000000000000000000..e572c67973a3168bde264f96db551a7bbd4b8094 GIT binary patch literal 598 zcmZuv%Wl(95Iy5(<2od5nm|bkEwD&gV70L8V^gV8rSOn~vSGtbaMK$cyK-+Tb-|7= zVZ*vCKw`lM@H?z|96Obu5|%uVGc)JRz4rHCU%vr(j0XW++^pahRs-Bd+egR8n!wxD zsW$rpySq6MI0xCASWxTfG=4Ul4&(f#8YV=Rd)Y`O1C{F{zXBa|qR#}?-f@<1J&6tr zyF-$x(y5@;ebt+&a}^~j9Y=kW>vX(Ril}_dvBrPO0-5kV61XNaDj|8_sL|V}>hwx8 z=x4Kh6d&qhtDuy8RH%gT;QP1};x5*GY=pRn`+~)PRuk0!?(=*&iAUxd)W0}0@swAQ z%~)v8m)BYJf}0!eAFC-(*C;uz!vg=bXi9i&r+c(Hzy=&%c=1@^EyJf>U>4B}z5DPB zpxSA_-g__d@%N8Uu-czt z7o;}Fz|ZW_t}ttotc4nVlYc-5tEJHToQ!y#eJ(3YSf-TC$p#~fv!Jl`6Rt>&l_qlw Ftv@+vaHs$P literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For14/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For14/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/build-impl.xml new file mode 100644 index 0000000..72ce2b6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/genfiles.properties new file mode 100644 index 0000000..98f4e3d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=69f779a7 +build.xml.script.CRC32=42dd6de4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=69f779a7 +nbproject/build-impl.xml.script.CRC32=fcb62c27 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/project.properties new file mode 100644 index 0000000..3cb2754 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For14/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}/For14.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.7 +javac.target=1.7 +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=for14.For14 +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/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/project.xml new file mode 100644 index 0000000..d0d8229 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For14/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For14 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For14/src/for14/For14.java b/PrjJava/OCA7/Chapter6/Flow/For14/src/for14/For14.java new file mode 100644 index 0000000..897cdd9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For14/src/for14/For14.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for14; + +/** + * + * @author andad + */ +public class For14 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int j; + int total = 50; + for (j = 1; j < 6; j++) { + total = total + j; + } + System.out.println(j); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For2/build.xml b/PrjJava/OCA7/Chapter6/Flow/For2/build.xml new file mode 100644 index 0000000..b90782b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For2. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For2/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/build-impl.xml new file mode 100644 index 0000000..e8703c7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/genfiles.properties new file mode 100644 index 0000000..8f6fef6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=323977cd +build.xml.script.CRC32=b85852db +build.xml.stylesheet.CRC32=8064a381@1.79.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=323977cd +nbproject/build-impl.xml.script.CRC32=4b6aee04 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/project.properties new file mode 100644 index 0000000..0efcc50 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For2/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}/For2.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.7 +javac.target=1.7 +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=for2.For2 +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/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/project.xml new file mode 100644 index 0000000..afb866c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For2/src/for2/For2.java b/PrjJava/OCA7/Chapter6/Flow/For2/src/for2/For2.java new file mode 100644 index 0000000..daf4714 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For2/src/for2/For2.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for2; + +/** + * + * @author anda + */ +public class For2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + for(int i = 0; false|false; i++) + + System.out.println(i); // unreacheable code + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For3/build.xml b/PrjJava/OCA7/Chapter6/Flow/For3/build.xml new file mode 100644 index 0000000..ed5c47d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For3. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For3/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/build-impl.xml new file mode 100644 index 0000000..bd2389e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/genfiles.properties new file mode 100644 index 0000000..7857b74 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3a2afbeb +build.xml.script.CRC32=8efbdf9d +build.xml.stylesheet.CRC32=8064a381@1.79.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=3a2afbeb +nbproject/build-impl.xml.script.CRC32=c0e2efa3 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/project.properties new file mode 100644 index 0000000..c5a1e1c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For3/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}/For3.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.7 +javac.target=1.7 +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=for3.For3 +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/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/project.xml new file mode 100644 index 0000000..2518891 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For3/src/for3/For3.java b/PrjJava/OCA7/Chapter6/Flow/For3/src/for3/For3.java new file mode 100644 index 0000000..0c4bef8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For3/src/for3/For3.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for3; + +/** + * + * @author andad + */ +public class For3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + for(int x = 6;x<9;x++) + { + System.out.println(x); + } + //System.out.println(x); // cannot find symbol + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For4/build.xml b/PrjJava/OCA7/Chapter6/Flow/For4/build.xml new file mode 100644 index 0000000..ce5c354 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For4. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For4/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/build-impl.xml new file mode 100644 index 0000000..de05c46 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/genfiles.properties new file mode 100644 index 0000000..bd368f8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=02505f19 +build.xml.script.CRC32=0f917d4f +build.xml.stylesheet.CRC32=8064a381@1.79.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=02505f19 +nbproject/build-impl.xml.script.CRC32=c4b8e754 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/project.properties new file mode 100644 index 0000000..3f11d97 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For4/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}/For4.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.7 +javac.target=1.7 +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=for4.For4 +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/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/project.xml new file mode 100644 index 0000000..eb9e2b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For4/src/for4/For4.java b/PrjJava/OCA7/Chapter6/Flow/For4/src/for4/For4.java new file mode 100644 index 0000000..505a5d6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For4/src/for4/For4.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for4; + +/** + * + * @author andad + */ +public class For4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int x = 3; + //for(int x= 3; x<10;x++) + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/build.xml b/PrjJava/OCA7/Chapter6/Flow/For5/build.xml new file mode 100644 index 0000000..432c48d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For5. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/build/classes/for5/For5.class b/PrjJava/OCA7/Chapter6/Flow/For5/build/classes/for5/For5.class new file mode 100644 index 0000000000000000000000000000000000000000..c7d9041160b839c0e0af5d1c925dbaa2d870780d GIT binary patch literal 647 zcmZutQESss6#i~=liOyQ>)N&5)YZ-D>~t(JaSu+0Ll_J)BUB1uPq#IznQbz%RPfzj z;)^f7=!1gDet`ePf8dkzOD4*|5YD;hJKs6yJLmhauV(=6oykAR=A}7N+Fy$R3 z=>vCI*J9FokQZ}k`LabrM9+zPOb&``t+)j4(*Lqln+-7xd=cFAyJ#bcNO`KnFJ8&IJKed;t|q;|h_y_ye0-^t)B-n;jU^52Wb_rsW5g z@&i@&gL2jKy?Y1iXFJB0Y{=3#D_c!c=G~wD=3|_Y(_D&of=Z!f!Dt BcozTw literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/build-impl.xml new file mode 100644 index 0000000..467871b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/genfiles.properties new file mode 100644 index 0000000..a4fe652 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0a43d33f +build.xml.script.CRC32=3932f009 +build.xml.stylesheet.CRC32=8064a381@1.79.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=0a43d33f +nbproject/build-impl.xml.script.CRC32=4f30e6f3 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/project.properties new file mode 100644 index 0000000..05a4976 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For5/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}/For5.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.7 +javac.target=1.7 +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=for5.For5 +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/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/project.xml new file mode 100644 index 0000000..01c87c9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For5/src/for5/For5.java b/PrjJava/OCA7/Chapter6/Flow/For5/src/for5/For5.java new file mode 100644 index 0000000..5102035 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For5/src/for5/For5.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for5; + +/** + * + * @author andad + */ +public class For5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int a [] = {1, 2, 3, 4 ,5, 6}; + for(int n: a) + { + System.out.println(n); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For6/build.xml b/PrjJava/OCA7/Chapter6/Flow/For6/build.xml new file mode 100644 index 0000000..2fe1d80 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For6. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For6/build/classes/for6/For6.class b/PrjJava/OCA7/Chapter6/Flow/For6/build/classes/for6/For6.class new file mode 100644 index 0000000000000000000000000000000000000000..4e599cc36a7e73dff045c64708b0cae8b190ccbc GIT binary patch literal 613 zcmZuu%TD7!5Ufc|oESqOA>k3;F9iR*^G{rK(?wwwcBaeReT`pEh4#U)R3)18Ec!rgN`}XmjeCOlPLZbZ1Gs5 zL|f`mpjbYtp2;g2v}D)}Y9`iUbIn=^$!D8988_LS|At0FU0|SQWaE5CUc9?`wWt#} z)RwmMWUSi{Yv990+QqDoIm`>V+Nf9>;6U7BC9NzST#F zyKdRznd*W*`uXnn2#f>FG8jabh;6>6Sdwu(RdLo!&Mk7K$>YjB61n69oZqkitzZ&X zut + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/genfiles.properties new file mode 100644 index 0000000..4966e68 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=12774755 +build.xml.script.CRC32=62d667c3 +build.xml.stylesheet.CRC32=8064a381@1.79.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=12774755 +nbproject/build-impl.xml.script.CRC32=08d9e25b +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/project.properties new file mode 100644 index 0000000..842af21 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For6/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}/For6.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.7 +javac.target=1.7 +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=for6.For6 +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/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/project.xml new file mode 100644 index 0000000..25189db --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For6/src/for6/For6.java b/PrjJava/OCA7/Chapter6/Flow/For6/src/for6/For6.java new file mode 100644 index 0000000..3f9acb3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For6/src/for6/For6.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for6; + +/** + * + * @author andad + */ +public class For6 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int b = 3; + for (int a = 1; b!=1; System.out.println("iterate")) + { + b = b-a; + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/For7/build.xml b/PrjJava/OCA7/Chapter6/Flow/For7/build.xml new file mode 100644 index 0000000..f44e61f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For7. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For7/build/classes/for7/For7.class b/PrjJava/OCA7/Chapter6/Flow/For7/build/classes/for7/For7.class new file mode 100644 index 0000000000000000000000000000000000000000..2ad89e389a6c8ea84fb394cebf076ea862453584 GIT binary patch literal 699 zcmZuv%Wl&^6g?A9>?Ulw0;HCJgjA_gct}Cnu$s6gOq$r0>maeu zcd%g7H7r14!3VJ62jBz~0i4PTK-jbG;`ZAH=(%K&hjn@X=)450j^=KO$1@#DN<1RH99O0?PD-J`kAg zJdcyx{x;1fON^C{1QwdlIz#nR`6Cq#{BD})Xs~Hoh&`Sio*|DWUnK(;sr-j7-~{m` zO2b58uA8c0@1fd1>0Ru`lOzbYwNY0vy>FOyE^IgsmR(%JWd|!Ru3(jfzX}EB|H*pX zABI7C3hKT(NW(Gr5l?vG9nYX+{|N_3IYy|)9I}$tI1N+nz9Ee`y=?BR_b5Sf>*mRU ztA;~6!_21_^!aNaAl_!z1zI};T@)F+#{|qW0t%SJ86xK6Z!Bht-nX`_yLI~wT2{M3 zw`$#zo@B7#$;R$$*oP=jg_ufl`1||RqWwC}(SCV{T8Ci@sP-c`fD# + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/genfiles.properties new file mode 100644 index 0000000..d066c0a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1a64cb73 +build.xml.script.CRC32=5475ea85 +build.xml.stylesheet.CRC32=8064a381@1.79.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=1a64cb73 +nbproject/build-impl.xml.script.CRC32=8351e3fc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/project.properties new file mode 100644 index 0000000..5b0ac4a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For7/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}/For7.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.7 +javac.target=1.7 +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=for7.For7 +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/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/project.xml new file mode 100644 index 0000000..2c1ec35 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For7/src/for7/For7.java b/PrjJava/OCA7/Chapter6/Flow/For7/src/for7/For7.java new file mode 100644 index 0000000..84aa152 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For7/src/for7/For7.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for7; + +/** + * + * @author andad + */ +public class For7 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + + + int counter = 0; + outer: + for (int i = 0; i < 3; i++) { + middle: + for (int j = 0; j < 3; j++) { + inner: + for (int k = 0; k < 3; k++) { + if (k - j > 0) { + break middle; + } + counter++; + } + } + } + System.out.println(counter); + } +} + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/build.xml b/PrjJava/OCA7/Chapter6/Flow/For8/build.xml new file mode 100644 index 0000000..fb62b5f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project For8. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/For8/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/For8/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/build/classes/for8/For8.class b/PrjJava/OCA7/Chapter6/Flow/For8/build/classes/for8/For8.class new file mode 100644 index 0000000000000000000000000000000000000000..4e829b907c8769091cca151aa22b849aa3ec1cb4 GIT binary patch literal 909 zcmaJYuW6g`ij3=Gp2`6ybzQa`6?!P=@MrCn&!qzP&jLt@-?fDs2_h75y=`~DOY z*SesICjJ07CjJ{Yt>*#J)DkC|d*_{Z@44r^dEZaId;_qFvIZS15#+I|;R>#*xTYb9 zl`yW$d_#ttG8l4uO+`V)ErC$Qc5HuFKrzMXa%Mw_u+K%;P*lSqc3$xKB60f>V zvs*VkTdt>I(0^kO1ftc~u2(MYF>I5fXWEXylJTnAG2fY`uIaQ(HQ%$H_O=`$Y`*(^ zJFGRmHVG0lN~vft>a zupyBCSHi=g-ECPOjn{^~{7zoSU2Mv*rQ;s%%eDvP{bNWV_Lt&mqhmGwGf?gQz_%z< zafjSUO)T4P>41KHy0*+7&m=MCI13A?eOc7yVFitSc{Cxj-?yBWz`8Nx?9M?`FXYd% z|3BMd-<|vbfuwQ1kOZk&1M65tl($Mg0q|E~fpL+m60=~QD;z_78gIuKLt{|K1%B(3 z0>qKvDuN_ZL}c?1D7=QibETr}#I)T^EcpS&&j@5kP?&N|ne1WiuyPhV3Wy`+^yBGI z!e0@5d5pPuXaqGgLU@G82%1!)Kq@IfV@yzXlCqZ=)5zc=4PAnPWg1ALj4YlZH&$Dq sq9C?dnP!iQ4c4Z~MV0JWW)9$h3~74Eaur431ga3?7cYz;i7dGM8<-WoFaQ7m literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/For8/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For8/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/build-impl.xml new file mode 100644 index 0000000..f8a6227 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/genfiles.properties new file mode 100644 index 0000000..c628c01 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=62820eb1 +build.xml.script.CRC32=bb722426 +build.xml.stylesheet.CRC32=8064a381@1.79.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=62820eb1 +nbproject/build-impl.xml.script.CRC32=006df3b5 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/project.properties new file mode 100644 index 0000000..239fb52 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For8/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}/For8.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.7 +javac.target=1.7 +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=for8.For8 +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/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/project.xml new file mode 100644 index 0000000..32dee49 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + For8 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/For8/src/for8/For8.java b/PrjJava/OCA7/Chapter6/Flow/For8/src/for8/For8.java new file mode 100644 index 0000000..5874c93 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/For8/src/for8/For8.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package for8; + +/** + * + * @author andad + */ +public class For8 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int sum = 0; + for (int i = 0, j = 10; sum > 20; ++i, --j) // 1 + { + System.out.println(i); + System.out.println(j); + sum = sum + i + j; + System.out.println(i); + System.out.println(j); + } + System.out.println("Sum = " + sum); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build.xml b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build.xml new file mode 100644 index 0000000..0e48d82 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ForCareNuSeExecuta. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build/classes/forcarenuseexecuta/ForCareNuSeExecuta.class b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/build/classes/forcarenuseexecuta/ForCareNuSeExecuta.class new file mode 100644 index 0000000000000000000000000000000000000000..69a5e729509f32c1b9f32b4f0e1b872b1eed25ad GIT binary patch literal 1179 zcma)5+fEZv6kUgzGPDd*F6Ck=78EE56h-j@Rt3S3a51SNQC~Qe0S4QdW;#RkogeTQ zj0w;BP>d#ifS+OFM`$9rPD?@+Vw~jcb7t+e*S?&YuScK00GPz%2%0e%!4Ohm3}YmM zs~By-nA*n;q$4me*nkPOUsL9~GLy=E!@x}gQv&rfwqyGl0WCGWCZNx`o0dTHlI>V4 zL1Dx4p303pk=7+QC-ZC4v(@_vsQWv1NnmJc%k^^7vz(x0S+A^I;LG%a>&+2b39{CF z6`H1eLE4T$N9x7WuH2L9ymYqHS>Lmr?P-->*j%$*i(I?pOK+PA+RmY~;!;o`ZHxXI zwOQBAThd{&rmQb>FPCMpQmuho0+Fm6csXmqRxNd&Epc2`Wg?0e(oNjP9RqhwOk>8t zJrfz+7icU6j-RxhB%3zz01v73cQdnro!_)PjyD?=lJ}A(W-+JCBNOvjP)ZCN_^+`E zL{H^cH+HR@FVJ!doir?9?8$s!t#Te6sprGzj-*B@`?};?oS)_f)QeT=wwr#!%kX(6 zmMn0FZIwKK!pu}uq&#m@Pc5o@3snHhq-xUE+-too7A0(z(Jygwv}&b?t*)0G5d$JH+W~4V6(J zPprrE^_hK5?CZw|$KQ#6hVkqW4XxoaBJnaB%P`AmQuS$2^-ZCPwvEli_$PO;wJzFj z#BmY*JdGeh&Lw_cNq%PutPtJCl}bMub{FPAy2;frN{@=uFo9n5@T9Ab7}LwW4qH@- jvtI*}T75+NiN~NHAuJ4B7C({vg^& + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/genfiles.properties new file mode 100644 index 0000000..9021973 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5dbe2b68 +build.xml.script.CRC32=bcd3f221 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5dbe2b68 +nbproject/build-impl.xml.script.CRC32=212cb338 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/project.properties new file mode 100644 index 0000000..a617d92 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/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}/ForCareNuSeExecuta.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.7 +javac.target=1.7 +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=forcarenuseexecuta.ForCareNuSeExecuta +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/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/project.xml new file mode 100644 index 0000000..e7408ae --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ForCareNuSeExecuta + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/src/forcarenuseexecuta/ForCareNuSeExecuta.java b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/src/forcarenuseexecuta/ForCareNuSeExecuta.java new file mode 100644 index 0000000..a4d7125 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCareNuSeExecuta/src/forcarenuseexecuta/ForCareNuSeExecuta.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forcarenuseexecuta; + +/** + * + * @author andad + */ +public class ForCareNuSeExecuta { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int sum = 0; + // 0>20 este false + Boolean f = true; + for (byte i = 0; i<20; ++i) + { + System.out.println(i); + i++; + System.out.println(i); + } + + for (int i = 0, j = 10; sum > 20; ++i, --j) // 1 + { + System.out.print("sunt in for"); + sum = sum + i + j; + } + System.out.println("Sum = " + sum); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ForChar/build.xml b/PrjJava/OCA7/Chapter6/Flow/ForChar/build.xml new file mode 100644 index 0000000..3e191d7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForChar/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ForChar. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForChar/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/ForChar/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForChar/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/ForChar/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForChar/build/classes/forchar/ForChar.class b/PrjJava/OCA7/Chapter6/Flow/ForChar/build/classes/forchar/ForChar.class new file mode 100644 index 0000000000000000000000000000000000000000..e0dfc0b62887f5b3049fcfd8ad9eab99ab15cd5b GIT binary patch literal 807 zcmZuuO-~b16g{sqbf)7_N^6T{5Cp#pY6s$y#zYHU6(Ol1MmD~VV;O8`$S^fw>C%OX z@)O*!aHR`OT=)b0OB(gOX%mCtC1>u}dH3G)=Ev`E-vQjmngttIbC}11g=<(ev83#E z6E{p$P24nb%fxL1H3Q26*+vis$pZncw!AB#H=`H6z*IX3{l~*W*N>mbZl9TAJMv_I zSH^*g$4Nce4~_(;+b^To+n2H1isB~iIvWjS5DHXkd+h`HTDpB1_S{Yq2VrkL9VFu( zua+(-3y6Sd3QTqq>Al*LhvRuxCmP0{-wM=5_IOxb^|vvJynz)PcW~FhJsWknZ1PY! zt8^X_8^k8jqQL()7AX8%bGv)sd&#*}=lCe`2YjVy$U=FfDTv%13Q8!;mjj9}r9IB4 z1&l*Q>hm@9T2pB+*DiV!EaDP>ojMs%JM#QaF>+}I?ZnDgh|g)cz;8B9+L)$qj|eED z#3+Z$C^N&$LWjn7z=_sy%#V2Y1sUfIn&artPa2tmji#DBn`X^CJG$|h2@ zaRnZ#2r-LeICz6Oyd~!Y7E;BPkt(uhcsGOh + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/genfiles.properties new file mode 100644 index 0000000..4b29caf --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a14f340d +build.xml.script.CRC32=07ae5a22 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a14f340d +nbproject/build-impl.xml.script.CRC32=9197bd78 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/project.properties new file mode 100644 index 0000000..c915d01 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForChar/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}/ForChar.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.7 +javac.target=1.7 +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=forchar.ForChar +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/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/project.xml new file mode 100644 index 0000000..eca306e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForChar/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ForChar + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForChar/src/forchar/ForChar.java b/PrjJava/OCA7/Chapter6/Flow/ForChar/src/forchar/ForChar.java new file mode 100644 index 0000000..58131c9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForChar/src/forchar/ForChar.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forchar; + +/** + * + * @author andad + */ +public class ForChar { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + char i; + LOOP: for (i=0;i<5;i++){ + System.out.println(i); + switch(i++){ + case '0': System.out.println("A"); + case 1: System.out.println("B"); break LOOP; + case 2: System.out.println("C"); break; + case 3: System.out.println("D"); break; + case 4: System.out.println("E"); + case 'E' : System.out.println("F"); + } + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/build.xml b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/build.xml new file mode 100644 index 0000000..85ff61d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ForCiudat. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/build/classes/forciudat/ForCiudat.class b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/build/classes/forciudat/ForCiudat.class new file mode 100644 index 0000000000000000000000000000000000000000..72b77691d5343e412255445a0be3e386ebb218c9 GIT binary patch literal 868 zcmaJWR=k@Pqw0s&liUkRG9Ey=)G|TVcDx>)Wj`kY2wYlZl|u z$MbW_1d_ZOyat4YRw%k}4#jB7n{D|~&~*-^QnvV)a!0Y4FtK2uYNCcagw_9anHbg6A!S7ypv(CWjhUZePcPF7UApA9rLmJ^MVM*NXc{g zFBRr7wy^>Aq|~Q@)M(i*^3G;Y?31-K(5JY(#5NTtO)PV4P5`)!9Pcv7V}@JD`z zI{QO?Pk&S{y+`#kw6D;Q&yXmMk<6vWFv=W^ksc#+s?jOYhu=RgL@5zEl!zjdYzs_T u#1?xSYiQz1EUGdg=4_EM8lGa6tNd2cV8j|{u5vyN?I#jMHLjFmT=@?oJ-^ie literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/build-impl.xml new file mode 100644 index 0000000..5b91c5d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/genfiles.properties new file mode 100644 index 0000000..16cf593 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=24ea9d7e +build.xml.script.CRC32=9e9dbbb7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=24ea9d7e +nbproject/build-impl.xml.script.CRC32=8b1d383e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/project.properties new file mode 100644 index 0000000..447159e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/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}/ForCiudat.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.7 +javac.target=1.7 +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=forciudat.ForCiudat +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/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/project.xml new file mode 100644 index 0000000..0c41d7e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ForCiudat + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat/src/forciudat/ForCiudat.java b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/src/forciudat/ForCiudat.java new file mode 100644 index 0000000..a379844 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat/src/forciudat/ForCiudat.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forciudat; + +/** + * + * @author andad + */ +public class ForCiudat { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i; + int j; + for (i = 0, j = 0; j < i; ++j, i++) { + System.out.println(i + " " + j); // it will not executed never + } + System.out.println(i + " " + j); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build.xml b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build.xml new file mode 100644 index 0000000..e7359f2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ForCiudat1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build/classes/forciudat1/ForCiudat1.class b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/build/classes/forciudat1/ForCiudat1.class new file mode 100644 index 0000000000000000000000000000000000000000..8baf11fd05c117b35b8687a8732362650ead82fa GIT binary patch literal 873 zcmaJkDC>nO$;FahM7|Az%M-18` zkm@`I_3*7cAuKoF_<T42iW5B6%}lou<_8qj)_OuB^2k5L|8m8_M+2wo$vzG`fw7uLtdsIaiTaGTKe`& zo;c*WT`}aXq{L|CdR;= + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/genfiles.properties new file mode 100644 index 0000000..f13535b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=beab4817 +build.xml.script.CRC32=cbb34e7c +build.xml.stylesheet.CRC32=8064a381@1.79.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=beab4817 +nbproject/build-impl.xml.script.CRC32=60742117 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/project.properties new file mode 100644 index 0000000..383c3a7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/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}/ForCiudat1.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.7 +javac.target=1.7 +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=forciudat1.ForCiudat1 +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/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/project.xml new file mode 100644 index 0000000..5042736 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ForCiudat1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/src/forciudat1/ForCiudat1.java b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/src/forciudat1/ForCiudat1.java new file mode 100644 index 0000000..dd3f584 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForCiudat1/src/forciudat1/ForCiudat1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forciudat1; + +/** + * + * @author andad + */ +public class ForCiudat1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i; + int j; + for (i = 0, j = 0; j < 1; ++j, i++) { + System.out.println(i + " " + j); + } + System.out.println(i + " " + j); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ForFor1/build.xml b/PrjJava/OCA7/Chapter6/Flow/ForFor1/build.xml new file mode 100644 index 0000000..60cc100 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForFor1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ForFor1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForFor1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/ForFor1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForFor1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/ForFor1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForFor1/build/classes/forfor1/ForFor1.class b/PrjJava/OCA7/Chapter6/Flow/ForFor1/build/classes/forfor1/ForFor1.class new file mode 100644 index 0000000000000000000000000000000000000000..234694b9214b5f92c74446c1042428409121db5a GIT binary patch literal 695 zcmZuv!EVz)5Pf4Ou@hXH#7&_zKwC<2BSBPhY~j#K1*8C#f_mY!NlkEYyp`)9_0E^T zfioOH;=l*+3;YDBZH@8A$uJi z32NO}I_2DG@9LCuW0Q%-DoOpPHR?rdXf&p-N>l&rUmbr8Xn51I9T;?8*75%<1mi3gF7AqtP|@=7N!FC zk=6%yw~tMm6wUchx1jo8?DPI89AxLH-tkcuj(Jv0C1{*=7U}jL+sfEnsK#vF&vTro z1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/genfiles.properties new file mode 100644 index 0000000..26a07ce --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=551c8517 +build.xml.script.CRC32=ba1949c4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=551c8517 +nbproject/build-impl.xml.script.CRC32=4256a1d1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/project.properties new file mode 100644 index 0000000..0d0d911 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForFor1/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}/ForFor1.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.7 +javac.target=1.7 +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=forfor1.ForFor1 +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/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/project.xml new file mode 100644 index 0000000..bed8ec8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForFor1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ForFor1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForFor1/src/forfor1/ForFor1.java b/PrjJava/OCA7/Chapter6/Flow/ForFor1/src/forfor1/ForFor1.java new file mode 100644 index 0000000..492e4e6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForFor1/src/forfor1/ForFor1.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forfor1; + +/** + * + * @author andad + */ +public class ForFor1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + for (int i = 0; i < 5; i++) { + for (int j = 0; j < 5; j++) { + //System.out.println("j= " + j); + System.out.println("Hello"); +//continue outer; + } // end of inner loop + System.out.println("outer"); // Never prints + } + System.out.println("Good-Bye"); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInFor/build.xml b/PrjJava/OCA7/Chapter6/Flow/ForInFor/build.xml new file mode 100644 index 0000000..8c69ee8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInFor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ForInFor. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInFor/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/ForInFor/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInFor/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/ForInFor/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInFor/build/classes/forinfor/ForInFor.class b/PrjJava/OCA7/Chapter6/Flow/ForInFor/build/classes/forinfor/ForInFor.class new file mode 100644 index 0000000000000000000000000000000000000000..23341a8e42f397f6396f80baa172784cb0d95262 GIT binary patch literal 1042 zcmaJ<&rcIU7=6=iciXZ+X=$rc6r@6FrA7R0DMn04Na~NI1Y*x!@QaKzM1#l_s#tH_2nyoo2W!Fglq)YFs)%G3I*9P za&n%Pke5)1;yUIe6g8Bh7(iCSyoMVB>Y`;^-jaZln_U+OK6V` z;&>-8So4hfnTPs@gQ(8l{$DZ*k6jEe{@>DM~gS!-#2E(Al+H0_lGhmb+G~VY+ODRhiIn8+Rn!)o~B^H9XK!#-fC@ zzz8cnU9OIlOvFw|pKUbFI!pg6RC~YenQaO(H%wX{{FcWAbyw1imyD42-gW{)ElDW z4D||BEaDIWK$?AWegLWr2qGF~BnPYC-8?@T5C&zv>BIo+Rg0I-K(Tq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/genfiles.properties new file mode 100644 index 0000000..0f77550 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6202a235 +build.xml.script.CRC32=8d9bb9a6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=6202a235 +nbproject/build-impl.xml.script.CRC32=9b28e50f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/project.properties new file mode 100644 index 0000000..da91f56 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInFor/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}/ForInFor.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.7 +javac.target=1.7 +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=forinfor.ForInFor +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/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/project.xml new file mode 100644 index 0000000..4ac122b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInFor/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ForInFor + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInFor/src/forinfor/ForInFor.java b/PrjJava/OCA7/Chapter6/Flow/ForInFor/src/forinfor/ForInFor.java new file mode 100644 index 0000000..096083c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInFor/src/forinfor/ForInFor.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forinfor; + +/** + * + * @author andad + */ +public class ForInFor { + + /** + * @param args the command line arguments + */ + public void loopTest(int x) { + loop: + for (int i = 1; i < 5; i++) { + for (int j = 1; j < 5; j++) { + System.out.println("i= " + i); + if (x == 0) { + continue loop; + } + System.out.println(j); + } + } + } + + public static void main(String[] args) { + // TODO code application logic here + System.out.println(args[0]); + ForInFor ff = new ForInFor(); + ff.loopTest(0); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build.xml b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build.xml new file mode 100644 index 0000000..d77cfe9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ForInForinFor. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build/classes/forinforinfor/ForInForinFor.class b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/build/classes/forinforinfor/ForInForinFor.class new file mode 100644 index 0000000000000000000000000000000000000000..7ad861deaa4b5d4a69622998091099396fedc054 GIT binary patch literal 744 zcmZ`$%Wl&^6g?9=b`x9@5|WaphSJiKB7~(-A*7aogj6X~ph!X4u$s7Tm^85~*Fj>R z?_j~EYgmB9f)8NB55N!b2^Ft1ZV`$Ew(tASz2}TS{rvC|z-_GOkwq*5A&X`S;$f0f;@nXzId!t8C zCV!EBGT?uKO+ClRqZPE-8}A|Bq~#p7l_nkJ={u(lI7bi2VIJq1(TBfsm>&AT*f#Dh zS+CJFS}x6+amTEfbgC88-FpS=7^SHYQ&SxO`ZhJFzf3dKpWh-=e+NVFH8>e)raQ`< zTVcF_B5HgWv5Y!a;bNW9P3D`d-zBO0SV=K%5=WV}0#BGkdL0+&8T2<%qLRCJ igBDL0$)U=q2Kxt0A-=<+*rITPxf5jhv0))?zw{d#C6_D! literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/build-impl.xml new file mode 100644 index 0000000..6502097 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/genfiles.properties new file mode 100644 index 0000000..edf899a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6b808ee8 +build.xml.script.CRC32=f9349b8f +build.xml.stylesheet.CRC32=8064a381@1.79.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=6b808ee8 +nbproject/build-impl.xml.script.CRC32=7e32299f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/project.properties new file mode 100644 index 0000000..6eea32f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/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}/ForInForinFor.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.7 +javac.target=1.7 +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=forinforinfor.ForInForinFor +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/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/project.xml new file mode 100644 index 0000000..0660142 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ForInForinFor + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/src/forinforinfor/ForInForinFor.java b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/src/forinforinfor/ForInForinFor.java new file mode 100644 index 0000000..a19ceb9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForInForinFor/src/forinforinfor/ForInForinFor.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forinforinfor; + +/** + * + * @author andad + */ +public class ForInForinFor { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int counter = 0; + outer: + for (int i = 0; i < 3; i++) { + middle: + for (int j = 0; j < 3; j++) { + inner: + for (int k = 0; k < 3; k++) { + if (k - j > 0) { + break middle; + } + counter++; + } + } + } + System.out.println(counter); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/build.xml b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/build.xml new file mode 100644 index 0000000..b514f8d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ForIncorect. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/build/classes/forincorect/ForIncorect.class b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/build/classes/forincorect/ForIncorect.class new file mode 100644 index 0000000000000000000000000000000000000000..cbbf42f5ca85d37ab0677f1daa61387fe4a5bd2d GIT binary patch literal 964 zcmaJ=+int36kUfq!?aXrsV%jo7j-}jYPH%xe9)u`1}_PQr18Z8Mmh)#83v8-{(@iN zL!UKD6Px&K{0aZV80$I%rWdLYv-dvx?7i07duG1>{_+*T2DTJTA{9mi%VDfwHHb9@ zKBT0%7{Vp#FH55-NFx)(6@|6Dj^Jt#>jI+5rzj98m>tu(E8x}A6#?IUt8NHHOJ>J- z)NfY}`>9@SF%v6UHN92QZBw2{NuRT8_5|iiFD%>a)GXVmIk|1iE{@{7fWNnEy?!7t zQFip&%ZGaRZ);mOI|2#qS*fYN(sM1n)5w(_!Zh-(5Z!JNI)28rfKs;lcFou}rLw7G zgjtED;v8ZsqL>OIt0ISM0<)({?)A-9-LO?$#|>^GC4&tWH*qV7O%=CshfV(&OT~G_ zNPL9(xZ33CCsO4%J;!KsuU4NIGs7uOEBAyWIvmu{+gwjT?{Gh0G^-LhrHZDxWy(}963OQg46*fj;2&x^@~JZIyPwp3%I}* Kfkj#mmi_=<3(6<} literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/build-impl.xml new file mode 100644 index 0000000..6d8db76 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/genfiles.properties new file mode 100644 index 0000000..b2aba70 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=490c8213 +build.xml.script.CRC32=f4716e09 +build.xml.stylesheet.CRC32=8064a381@1.79.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=490c8213 +nbproject/build-impl.xml.script.CRC32=50aa85a7 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/project.properties new file mode 100644 index 0000000..132d284 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/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}/ForIncorect.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.7 +javac.target=1.7 +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=forincorect.ForIncorect +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/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/project.xml new file mode 100644 index 0000000..f0e7ada --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ForIncorect + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorect/src/forincorect/ForIncorect.java b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/src/forincorect/ForIncorect.java new file mode 100644 index 0000000..143bc0f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorect/src/forincorect/ForIncorect.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forincorect; + +/** + * + * @author andad + */ +public class ForIncorect { + + /** + * @param args the command line arguments + */ + private int j; + void showJ(){ + while(j<=5){ + + for(int j=1; j <= 5;){ + System.out.print(j+" "); + j++; } + j++; + } + } + + public static void main(String[] args) { + // TODO code application logic here + new ForIncorect().showJ(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/build.xml b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/build.xml new file mode 100644 index 0000000..27ce044 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ForIncorrect. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/build-impl.xml new file mode 100644 index 0000000..ca582fb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/genfiles.properties new file mode 100644 index 0000000..d6bb158 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5753a42c +build.xml.script.CRC32=36b43bc8 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5753a42c +nbproject/build-impl.xml.script.CRC32=77ead359 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/project.properties new file mode 100644 index 0000000..16374b0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/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}/ForIncorrect.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.7 +javac.target=1.7 +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=forincorrect.ForIncorrect +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/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/project.xml new file mode 100644 index 0000000..40cb453 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ForIncorrect + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/src/forincorrect/ForIncorrect.java b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/src/forincorrect/ForIncorrect.java new file mode 100644 index 0000000..ff1584e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/ForIncorrect/src/forincorrect/ForIncorrect.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forincorrect; + +/** + * + * @author andad + */ +public class ForIncorrect { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + //for (int i=5; i=0; i--) { } int can't be compatible to boolean + for (int i=5; i>0; i--) { } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/build.xml b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/build.xml new file mode 100644 index 0000000..9aa912f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Forformascurta. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/build/classes/forformascurta/Forformascurta.class b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/build/classes/forformascurta/Forformascurta.class new file mode 100644 index 0000000000000000000000000000000000000000..546568bc34251833cc1af3dc7f2521ccc0f0acd1 GIT binary patch literal 890 zcmaJ=%Wl&^6g?9=c5K`SNz=5%XlvRv5-9$rg?WHm4!LX>$q!S3)>8( z|LGqOMbP$RhO8r;BgeuHJZbKcG+RzLg?4dY$DV};*k`C*x>tt9e+$dkTT&0 Pl;2Pp)3X$^)5OYO@)O99 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/build-impl.xml new file mode 100644 index 0000000..23cc0f7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/genfiles.properties new file mode 100644 index 0000000..818f704 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=01f6ea76 +build.xml.script.CRC32=e1cc1a79 +build.xml.stylesheet.CRC32=8064a381@1.79.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=01f6ea76 +nbproject/build-impl.xml.script.CRC32=c106d898 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/project.properties new file mode 100644 index 0000000..89738dc --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/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}/Forformascurta.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.7 +javac.target=1.7 +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=forformascurta.Forformascurta +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/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/project.xml new file mode 100644 index 0000000..a69110b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Forformascurta + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Forformascurta/src/forformascurta/Forformascurta.java b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/src/forformascurta/Forformascurta.java new file mode 100644 index 0000000..ca43c03 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forformascurta/src/forformascurta/Forformascurta.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forformascurta; + +/** + * + * @author andad + */ +public class Forformascurta { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 0, j = 5; + lab1: + for (;; i++) { + for (;; --j) { + if (i > j) { + break lab1; + } + } + } + System.out.println(" i = " + i + ", j = " + j); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/build.xml b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/build.xml new file mode 100644 index 0000000..00c781b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Forlabeled. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/build/classes/forlabeled/Forlabeled.class b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/build/classes/forlabeled/Forlabeled.class new file mode 100644 index 0000000000000000000000000000000000000000..e40c83888aaa96d41398fe51e9bc91f92509dcfe GIT binary patch literal 683 zcmZuv%Wl&^6g^|dabjHJCUH}m0DXbdO5jQ?Te?B2gcKf9P&aItq|ikL6s4i-vidT8OU zi+e8a3lz6>qVsJ5yS=t6P7S;ig^=Zd)h_Nr^7E~ z9t)(S#J$WaVib(d`ge#glVgv2aRU0d#oWInFwU?l<2EWp%*!9y%x2uMx0-?X3G4RL zmWlOd>s{b|M)4Ho6HA=_{qq%8)&7RUiD32H=-4ni%QOPixYrRN#60HEWWIz2tPzj+ uCm9cm6Mlo7S!!B%geo&*e1ohyW5_iN=Ny(ehbw|JIA=7>UxNo08vg)ejf~>} literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/build-impl.xml new file mode 100644 index 0000000..a81f921 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/genfiles.properties new file mode 100644 index 0000000..fe4a8f9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d6396e84 +build.xml.script.CRC32=e685ec2e +build.xml.stylesheet.CRC32=8064a381@1.79.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=d6396e84 +nbproject/build-impl.xml.script.CRC32=f93b2add +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/project.properties new file mode 100644 index 0000000..22ef688 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/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}/Forlabeled.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.7 +javac.target=1.7 +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=forlabeled.Forlabeled +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/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/project.xml new file mode 100644 index 0000000..effc6df --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Forlabeled + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Forlabeled/src/forlabeled/Forlabeled.java b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/src/forlabeled/Forlabeled.java new file mode 100644 index 0000000..7f1855d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Forlabeled/src/forlabeled/Forlabeled.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package forlabeled; + +/** + * + * @author andad + */ +public class Forlabeled { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + for (int i = 0; i < 10; i++) { + for (int j = 0; j < 10; j++) { + if (i + j > 10) { + break; + } + + } + System.out.println("hello"); + } + } + + } + diff --git a/PrjJava/OCA7/Chapter6/Flow/If1/build.xml b/PrjJava/OCA7/Chapter6/Flow/If1/build.xml new file mode 100644 index 0000000..81e60f1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project If1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If1/build/classes/if1/If1.class b/PrjJava/OCA7/Chapter6/Flow/If1/build/classes/if1/If1.class new file mode 100644 index 0000000000000000000000000000000000000000..345d36f549fc16fa713856758fe1a2866da8b67b GIT binary patch literal 421 zcmZusyH3ME5S;bf!66|Drl6t=6j%{uA{r#5Nai60rJ=eQ$6Ro1WE{lj@C#H(6np^R zgb;g|NHm;uyEi+#Gkae@AD;kDu-AZzo{L=D_LYi zZ6K*&@4doQ o^Cr~%wl?cB+hZJRop9ZYCbMb{2Q9Q&dxsJGeZy6&bTrrf1-Up!3;+NC literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/If1/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/If1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/build-impl.xml new file mode 100644 index 0000000..3f8c874 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/build-impl.xml @@ -0,0 +1,1421 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/genfiles.properties new file mode 100644 index 0000000..0c2e56e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7160ff77 +build.xml.script.CRC32=da2e5a4e +build.xml.stylesheet.CRC32=8064a381@1.79.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=7160ff77 +nbproject/build-impl.xml.script.CRC32=460d5c78 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/project.properties new file mode 100644 index 0000000..ed95ca0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If1/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}/If1.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.7 +javac.target=1.7 +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=if1.If1 +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/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/project.xml new file mode 100644 index 0000000..a0df6fa --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + If1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If1/src/if1/If1.java b/PrjJava/OCA7/Chapter6/Flow/If1/src/if1/If1.java new file mode 100644 index 0000000..9f92ef2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If1/src/if1/If1.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package if1; + +/** + * + * @author anda + */ +public class If1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int x = 3; + if (x == 5) { + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/If5/build.xml b/PrjJava/OCA7/Chapter6/Flow/If5/build.xml new file mode 100644 index 0000000..d5c2919 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project If5. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/If5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/If5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/If5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/If5/build/classes/if5/If5.class b/PrjJava/OCA7/Chapter6/Flow/If5/build/classes/if5/If5.class new file mode 100644 index 0000000000000000000000000000000000000000..f91b9d4c7d9b9919e23816387165c60c7fd1de5b GIT binary patch literal 518 zcmZuu$xZ@65Pi)yi=!aO;trnBgL5#%1ICMqiOEDwAY42(*o;kPF~f|BpQQ&)Joo{A zl(BjsK@$2<)%B|Cy{hh?->+`~XE-uZz?Ok3YC7sB8rasbqhXh!a3KR3UovFd#{-7k zRrn|vijEA#ZQ>6_)aOHwkg^kwxHsUDRPh|l#ZPj|U^sHzv2VtmE)n=#1`M_KgEQeT z-1d0j+PyfEf!j?5c;r$`Wks67?1f1*64z2G>O^>|I4o$;HSAf~#{sGJqeL{7(Qs&? zi57!4AAq5>P`w*Y#3){Zdau)1__S=8P@*~;QHJ(C%@@;@g8Q^XCFNL#N#j`+d9+-$ zy=phKkf&!>Cj%;nPS&8vCeO&{Pd>rk(zHpokb)N0=x)sl$gfjmU;{-$RP%XCM%X(t c + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/genfiles.properties new file mode 100644 index 0000000..ea2c696 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=512ecfef +build.xml.script.CRC32=a7b97879 +build.xml.stylesheet.CRC32=8064a381@1.79.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=512ecfef +nbproject/build-impl.xml.script.CRC32=74351a2d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/project.properties new file mode 100644 index 0000000..a8fe5d8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If5/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}/If5.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.7 +javac.target=1.7 +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=if5.If5 +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/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/project.xml new file mode 100644 index 0000000..5e6cb29 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + If5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If5/src/if5/If5.java b/PrjJava/OCA7/Chapter6/Flow/If5/src/if5/If5.java new file mode 100644 index 0000000..c1e408f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If5/src/if5/If5.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package if5; + +/** + * + * @author andad + */ +public class If5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + if (true) + if (false) + System.out.println("True False"); + else + System.out.println("True True"); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/build.xml b/PrjJava/OCA7/Chapter6/Flow/If6/build.xml new file mode 100644 index 0000000..9729d78 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project If6. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/If6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/If6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/build/classes/if6/If6.class b/PrjJava/OCA7/Chapter6/Flow/If6/build/classes/if6/If6.class new file mode 100644 index 0000000000000000000000000000000000000000..e5a4ab5992c88b8a97db4dd10135a11077687d63 GIT binary patch literal 660 zcmZuv%TC)s6g`uKjAIO>2@a3&ERO~jcu|QBhz$}FQg}!~Y*VK3E zU`-dT)I~p_-&7&aIFS$%Ud+As+&kyodp-Z2|NI5;89O#CER?W_x`ibh%UH3nYGF-c zUE-ra@lc04Jrc+_cCG~q$I)#dFw@jwa6TNggZN6d`$Q_u$XESq6>AfZ!9w~)CjzCW z?(BP~o&5t643rK9YK@y_PkmKhUxi(-mBu>k9%KS4?($0YowR^dBTWHuDlpYbm4A1p z?#F6&D;maraH35=7UlMgf`bxli46yv*b;C$I!@BHBvX{wcJK)eawUNug|}mzW$ZkD z4dr+Mf%0qD7wul)r*ELvw!X1sMBkz*)rJOQQ1MZ-jalC~&+`TF4b2)C~ zz1?6Pl0VCQIdG}4c}_C&Xa()W?r(^vEbZ_tW}t&9`p&2T)0kmYLKz>3n9JWumZRM+ z9@ZbQSpR|PpU746zfgF@q;V(c8e60_?0K>QD{Ka+^6o5^TsBkVInM`F#}<|{)!K*| Z71o)iH(Bdax5h{!_aCm14Ck`s{0m%{garTq literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/If6/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If6/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/build-impl.xml new file mode 100644 index 0000000..4d8e938 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/genfiles.properties new file mode 100644 index 0000000..723af14 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=491a5b85 +build.xml.script.CRC32=f0cb607f +build.xml.stylesheet.CRC32=8064a381@1.79.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=491a5b85 +nbproject/build-impl.xml.script.CRC32=fac3ea22 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/project.properties new file mode 100644 index 0000000..b029f7b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If6/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}/If6.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.7 +javac.target=1.7 +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=if6.If6 +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/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/project.xml new file mode 100644 index 0000000..50833a6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + If6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If6/src/if6/If6.java b/PrjJava/OCA7/Chapter6/Flow/If6/src/if6/If6.java new file mode 100644 index 0000000..11d6bdb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If6/src/if6/If6.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package if6; + +/** + * + * @author andad + */ +public class If6 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int aNumber = 3; + if (aNumber >= 0) { + if (aNumber == 0) { + System.out.println("first string"); + } else { + System.out.println("second string"); + } + } + System.out.println("third string"); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/If7/build.xml b/PrjJava/OCA7/Chapter6/Flow/If7/build.xml new file mode 100644 index 0000000..c5cb197 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project If7. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If7/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/If7/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If7/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/build-impl.xml new file mode 100644 index 0000000..8068233 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/genfiles.properties new file mode 100644 index 0000000..b92645f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4109d7a3 +build.xml.script.CRC32=74ca6a42 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4109d7a3 +nbproject/build-impl.xml.script.CRC32=8091ba27 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/project.properties new file mode 100644 index 0000000..ff67843 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If7/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}/If7.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.7 +javac.target=1.7 +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=if7.If7 +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/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/project.xml new file mode 100644 index 0000000..b76361c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + If7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/If7/src/if7/If7.java b/PrjJava/OCA7/Chapter6/Flow/If7/src/if7/If7.java new file mode 100644 index 0000000..b06b4b0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/If7/src/if7/If7.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package if7; + +/** + * + * @author andad + */ +public class If7 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/IllegalFor/build.xml b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/build.xml new file mode 100644 index 0000000..8e6e250 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project IllegalFor. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/IllegalFor/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/build-impl.xml new file mode 100644 index 0000000..ce8c0f8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/genfiles.properties new file mode 100644 index 0000000..5f4e2b8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e356e1f2 +build.xml.script.CRC32=39cca5c2 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e356e1f2 +nbproject/build-impl.xml.script.CRC32=3a14acc0 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/project.properties new file mode 100644 index 0000000..1f97de6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/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}/IllegalFor.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.7 +javac.target=1.7 +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=illegalfor.IllegalFor +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/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/project.xml new file mode 100644 index 0000000..30a80a4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + IllegalFor + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/IllegalFor/src/illegalfor/IllegalFor.java b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/src/illegalfor/IllegalFor.java new file mode 100644 index 0000000..acde4aa --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/IllegalFor/src/illegalfor/IllegalFor.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package illegalfor; + +/** + * + * @author andad + */ +public class IllegalFor { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i; + int j; + for(i=4, j = 6;i<0;i++); + //for(i=4, int j = 6;i<0;i++); illegal, compiler error + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop1/build.xml b/PrjJava/OCA7/Chapter6/Flow/Loop1/build.xml new file mode 100644 index 0000000..b136aa4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Loop1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Loop1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Loop1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop1/build/classes/loop1/Loop1.class b/PrjJava/OCA7/Chapter6/Flow/Loop1/build/classes/loop1/Loop1.class new file mode 100644 index 0000000000000000000000000000000000000000..e3e5229846c3309afdf325e66362918e85cb6acb GIT binary patch literal 824 zcmaJ<&2G~`5dOxFnN6k0cw6Db@(LaLMkQcxt+(x1NIU@V!x74?6A4NxEbaX7eBX@s`>!wG0PNtNg*mL|aRpaR)GX*&RbnlN zb)~N54~P;Ce(g=lz2n#6^=NuG?`O|?sFb8;ZZ#? zm)2XvxVHTl(Iidh+ssD9`ij9uY)zH z=c7Iiq*luE0(&lNVr^`kfIg+^1(w+~XrsWkJt@FN6xqw8ghh_1%kTNg>8u<2Zozs` zseXWcOmwWBemwp08QNFqFHexEjA0bBW0+Mo#>kD4S3o)x&}D`Kw=}q^g(c=yX73WV nv66z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/genfiles.properties new file mode 100644 index 0000000..9732b11 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=27756353 +build.xml.script.CRC32=8a4b83f5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=27756353 +nbproject/build-impl.xml.script.CRC32=30c30a85 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/project.properties new file mode 100644 index 0000000..341bd2d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop1/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}/Loop1.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.7 +javac.target=1.7 +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=loop1.Loop1 +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/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/project.xml new file mode 100644 index 0000000..c67c929 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Loop1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop1/src/loop1/Loop1.java b/PrjJava/OCA7/Chapter6/Flow/Loop1/src/loop1/Loop1.java new file mode 100644 index 0000000..33fa1a2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop1/src/loop1/Loop1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package loop1; + +/** + * + * @author andad + */ +public class Loop1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int a = 0, z = 10; + while (a < z) { + a++; + --z; + } + System.out.print(a + " : " + z); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/build.xml b/PrjJava/OCA7/Chapter6/Flow/Loop3/build.xml new file mode 100644 index 0000000..493f0f6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Loop3. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Loop3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Loop3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/build/classes/loop3/Loop3.class b/PrjJava/OCA7/Chapter6/Flow/Loop3/build/classes/loop3/Loop3.class new file mode 100644 index 0000000000000000000000000000000000000000..17740355814acf73a58e7d382e3afd0b3ffcb633 GIT binary patch literal 842 zcmZuu%Wl&^6g}fOapE{>$g8xZ=@ZBU>P0t54Q!B*Dw&5A6sTA^!3r)(9JvmHeSZS+ z0o||xK`Md72k<5Q0TQYRXY4>*iN)Nxb06oNd*}P_FW&&{z|@h#Y6>dWbeeSy8}eS2 zW;2B?T-9+6*EQ4x#A}{Cfkew4xxpQQSgqa>Q15!r9f1YQ9XSss!>;2$wz~sH@|M@L z2OZmY<$E4fgBR|hK*kz)-gw8fq}?T^d^$b}hD^2tyZ7?GJ^tI%cY>!O9of~P?T!S> zwP)6W{mM26_NZ^R1K%C>cSAY0-zP!gKWPCa=n3d;Z{qiyd#)6zhYGeOlmP=713JP6DCTLVAnGrQEfoY zjy>e;g%IOnSU?-gq5(%$YkTz$*7+kT{+ZyRL|TR6U6#y6W~GKIB2ERBa0+gP(Ja(cDB=`p@e65L$NkUe zGI>k2@x~`8@99J%CBk6k+&J+$bc)nV^X4b4mT-$-q3)j`ZZ)S!e1z5{))dLJ4duBT haK}k(Q0*r9w?gQ0)Q)9bVLr*3E1Xd(S_!38{{Z(=iHraM literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Loop3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/build-impl.xml new file mode 100644 index 0000000..1df1c33 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/genfiles.properties new file mode 100644 index 0000000..f5ad561 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=37527b1f +build.xml.script.CRC32=d4cd2de1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=37527b1f +nbproject/build-impl.xml.script.CRC32=d1eaca73 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/project.properties new file mode 100644 index 0000000..a4e98b3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop3/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}/Loop3.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.7 +javac.target=1.7 +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=loop3.Loop3 +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/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/project.xml new file mode 100644 index 0000000..11b78c7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Loop3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Loop3/src/loop3/Loop3.java b/PrjJava/OCA7/Chapter6/Flow/Loop3/src/loop3/Loop3.java new file mode 100644 index 0000000..92035b2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Loop3/src/loop3/Loop3.java @@ -0,0 +1,38 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package loop3; + +/** + * + * @author andad + */ +public class Loop3 { + + /** + * @param args the command line arguments + */ + public void looper() { + int x = 0; + while ((x = getX()) != 0) { + for (int m = 10; m >= 0; m--) { + x = m; + } + } + } + int x = 5; + + int getX() { + return x; + } + + public static void main(String[] args) { + // TODO code application logic here + Loop3 tc = new Loop3(); + tc.looper(); + System.out.println(tc.x); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Receablecode/build.xml b/PrjJava/OCA7/Chapter6/Flow/Receablecode/build.xml new file mode 100644 index 0000000..2d4371b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Receablecode/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ReachableCode. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Receablecode/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Receablecode/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Receablecode/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/build-impl.xml new file mode 100644 index 0000000..8adbbe8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/genfiles.properties new file mode 100644 index 0000000..1b428d8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=72126025 +build.xml.script.CRC32=b4f956f6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=72126025 +nbproject/build-impl.xml.script.CRC32=0031d2c3 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/project.properties new file mode 100644 index 0000000..e3ae174 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Receablecode/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}/ReachableCode.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.7 +javac.target=1.7 +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=receablecode.ReachableCode +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/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/project.xml new file mode 100644 index 0000000..fc01ee5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Receablecode/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ReachableCode + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Receablecode/src/receablecode/ReachableCode.java b/PrjJava/OCA7/Chapter6/Flow/Receablecode/src/receablecode/ReachableCode.java new file mode 100644 index 0000000..d32a8b2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Receablecode/src/receablecode/ReachableCode.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package receablecode; + +/** + * + * @author andad + */ +public class ReachableCode { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + final int i = 0; + final int j; + j = 1; + while (i < j) { + // do stuff + } + System.out.println("I'm reachable!"); // OK + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/build.xml b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/build.xml new file mode 100644 index 0000000..9aa1619 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SampleBreakContinue. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/build/classes/samplebreakcontinue/SampleBreakContinue.class b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/build/classes/samplebreakcontinue/SampleBreakContinue.class new file mode 100644 index 0000000000000000000000000000000000000000..204961514602d90308d026652975cccea91498ff GIT binary patch literal 995 zcma)5-D(p-6#gcEo2;8OCTSZ@`mc5qO;_vRMXDDm3WfLsk%9=qBpKqgo87S42;Tc3 z;!UshA_WB>zz6Ude1=kN&ujwHCTJJt%$)C>Ip;fP&i?%K?FWFnc%Z|;LIR6e(y*)} zj0GiD;#gJtniAJ^T*nP1)-{+KN(`|r=}7-EL)a|sGDNoBwqTg4OGi8(beqC^#hW%E znY!EJ_Ad9N(#K%Le<%A4rFx%td$wqLg73Fn$Cu7PSd9RyDQtU;RVhK2ONU|3d{f`! z@401jr(-pIPdc5dBETfA9rEK|heBtkxG^LfK5y+m*DF=_Ivm=nh8zx?CA zJL)?_&YX0lh}nSsSwalao}x#5r{$v;)B?NhU + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/genfiles.properties new file mode 100644 index 0000000..743e469 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=303e6673 +build.xml.script.CRC32=d5f0e333 +build.xml.stylesheet.CRC32=8064a381@1.79.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=303e6673 +nbproject/build-impl.xml.script.CRC32=25250519 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/project.properties new file mode 100644 index 0000000..2d83e42 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/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}/SampleBreakContinue.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=samplebreakcontinue.SampleBreakContinue +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/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/project.xml new file mode 100644 index 0000000..5a25cee --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SampleBreakContinue + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/src/samplebreakcontinue/SampleBreakContinue.java b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/src/samplebreakcontinue/SampleBreakContinue.java new file mode 100644 index 0000000..d9c1cfc --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreakContinue/src/samplebreakcontinue/SampleBreakContinue.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package samplebreakcontinue; + +/** + * + * @author anda + */ +public class SampleBreakContinue { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + + for (int i = 0; i < 10; i++) { + if (i == 4) { + break; + } + System.out.print(i + "\t"); + + } + System.out.println(); + for (int i = 0; i < 10; i++) { + + if (i == 4) { + continue; + } + System.out.print(i + "\t"); + } + } +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/build.xml b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/build.xml new file mode 100644 index 0000000..f18b78a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SampleBreaklabeled. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/build/classes/samplebreaklabeled/SampleBreaklabeled.class b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/build/classes/samplebreaklabeled/SampleBreaklabeled.class new file mode 100644 index 0000000000000000000000000000000000000000..930e96b289f148b0fe5386150cae1bc21daec279 GIT binary patch literal 1110 zcma)5TTc^F5dKcLblb8(Etjfop~$Tip$c9iAQDVaV!b3)qVa{(_5`=x?$+&==!*}E ziHV6ZM&6AtJnKVAH1P-clMGR3&o&V(F}9tVotf{<UKC z7!---tRgqoxvjf?E9iF~>2-#QT%A{IhA7yAR}5YdhA3t8GPH6av_R#nTsIj8(hqZG zzQwZ!H#f6+$JWiw1-Ct`kgSoENp!+%) z??2(*z z0I$`ASz?$@A3<$fsI?{?Or+N)|B((lmUll4ed%@}73h`IA0CK7t-0eFblLq!4YZD7 zbkghUete+2L^tUk^0H(Z*^bN}*e98ekPgV8hGX=sc>qMwOI`?l=%)xBW>?^+FR-I5 z#?_B_t6WZyd7&&N$!vXw?<)eFon_DQ zGM79jBr~%I>V@0tZ7Xc|*XwN`>1W%F^ka7!1@1Dda*aNy7@)n6)A%RoeL9H+#Ib}V zu4524=zn~VSh|l96fg>baXcsND?0OrR(_9+tdgOHBX~m57*!A9C1GO3sSod{YD`kK hL$%}7HzB2SA3nB^fRt%X(-J?>;r$4mB#aM(zX55q{`mj^ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/build-impl.xml new file mode 100644 index 0000000..187acdf --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/genfiles.properties new file mode 100644 index 0000000..0aca020 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=26528391 +build.xml.script.CRC32=af15fcf6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=26528391 +nbproject/build-impl.xml.script.CRC32=728e25ac +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/project.properties new file mode 100644 index 0000000..e60e27d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/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}/SampleBreaklabeled.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=samplebreaklabeled.SampleBreaklabeled +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/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/project.xml new file mode 100644 index 0000000..cbba975 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SampleBreaklabeled + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/src/samplebreaklabeled/SampleBreaklabeled.java b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/src/samplebreaklabeled/SampleBreaklabeled.java new file mode 100644 index 0000000..8a12e5d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleBreaklabeled/src/samplebreaklabeled/SampleBreaklabeled.java @@ -0,0 +1,44 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package samplebreaklabeled; + +/** + * + * @author anda + */ +public class SampleBreaklabeled { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + first: + for (int i = 0; i < 4; ++i) { + second: + for (int j = 0; j < 4; ++j) { + third: + for (int k = 0; k < 4; ++k) { + System.out.println("inner start: i+j+k " + (i + j + k)); + if (i + j + k == 5) { + continue third; + } + if (i + j + k == 7) { + continue second; + } + if (i + j + k == 8) { + break second; + } + if (i + j + k == 9) { + break first; + } + System.out.println("inner stop: i+j+k " + (i + j + k)); + } + } + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build.xml b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build.xml new file mode 100644 index 0000000..c95a0ca --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SampleTryCatch. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build/classes/sampletrycatch/SampleTryCatch.class b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/build/classes/sampletrycatch/SampleTryCatch.class new file mode 100644 index 0000000000000000000000000000000000000000..cdae02dcfce2114c69d6915161759cb839d4f901 GIT binary patch literal 890 zcmaJ<+iuf95Iviloz!hZ(hIarYkEssAO^}4MM$UusZyXwt|}qK!^YjZF0t3LH<0`W zKf!Z(pb|)Y03U^zb%8Weg(dIKoS8Xu+n>L_{Q$6oM-^DG%eakI6KfT$W5d9viDm^w zv`lOn*fw#;z+D6P7)noqC{Rxs@~y2ShQgja77Wv!AQG?oVOJ!FyxSwB){!3X9q}a4 z`X8{MPJ@(TrIYe7?g^C)J+8b{$IaBkWVol*U7`(n5HZZP-geIT2k!KE<1 zX>-~-dua=#vmeEMMP|W63eJhanDOBGz!R|wWTcsS;!_FrYls;pUB$ikFL|8RON}#B zT-i@N@gmSo)yE5M>)I?#V#+|o~_6bEAcwpfnb{OWfcBo`c zc%^KHi7-f0>aVQ^N^_EPSvzGsl=^Sr{-_;>bytRhh8p>{FGXs9Ol0IgwzIfMD*HtC zqhp4~f9K6m9S!-QdnP>i-J70y7w~cIxSEwXRzwJ-Z2d zfBMUT7Jw-_r%7|@W^@;~FTl<-bCu3g23B!{Wb4uaHPlHfV+ON?=-^Mt6CKd}f?O^C z6@~98zNwWiV01KM67m^VCRa#4&xjV#Ad)Yi^SNBHc^$8_2yg&@eL>-Q>z|k?G4% literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/build-impl.xml new file mode 100644 index 0000000..0dae515 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/genfiles.properties new file mode 100644 index 0000000..18f1318 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ab724dad +build.xml.script.CRC32=2035615b +build.xml.stylesheet.CRC32=8064a381@1.79.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=ab724dad +nbproject/build-impl.xml.script.CRC32=d84ceafb +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/project.properties new file mode 100644 index 0000000..584031e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/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}/SampleTryCatch.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=sampletrycatch.SampleTryCatch +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/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/project.xml new file mode 100644 index 0000000..6bea705 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SampleTryCatch + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/src/sampletrycatch/SampleTryCatch.java b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/src/sampletrycatch/SampleTryCatch.java new file mode 100644 index 0000000..c46379e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SampleTryCatch/src/sampletrycatch/SampleTryCatch.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package sampletrycatch; + +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; + +/** + * + * @author anda + */ +public class SampleTryCatch { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + try + { + System.out.println("About to open a file"); + + InputStream in = new FileInputStream("missing.txt"); + System.out.println("File open"); + + + } + catch(IOException ex) + { + System.out.println("Something goes wrong: File not found"); + } + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/StatementLabled/build.xml b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/build.xml new file mode 100644 index 0000000..b5bcb36 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StatementLabled. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/StatementLabled/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/StatementLabled/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/StatementLabled/build/classes/statementlabled/StatementLabled.class b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/build/classes/statementlabled/StatementLabled.class new file mode 100644 index 0000000000000000000000000000000000000000..3d52e076c660369ca338f0ba777ccb6805e4590b GIT binary patch literal 906 zcmah|OHUI~7(KT`dtn@4XlW5CFHvcWP=Q1jAed-Oh(%2>B_46&X&KnTXfHuv$J?{Uue-S+G6kDmd|W8Q>`aT6CYky`#n zh@UQ8!etXzFeyYB(c4AjzdqF_@PSgl%v!p1j#7xgTRTmIX zxLmFku1$e%rdFS?s;v_WU%7!muJE+7sa~kEr-C}mH{GDV5SLNSIwfTO;U-lp@*@Fr zE!=Kaox84Xr2j8%GrFvWbFd_)EL_F3#EgY9u1U;Vm_tTj^gsPsNb4~BRN;e-O{Yrg zo>OR5MGelose)SQ$Me2(CS~nqi!-Dn+-73-s9iTKKV+{FJ9d=MIcDO5XJJlvO9y!Y z#`&;j{OAURZi;(1?J`fnGg&%-c*jcuJ={|r}`vVgFFkbDpf9|1cCn5IQ-}Af3zDF{@lW6ZFm6vbYKlWf~ zUL)q6BOAzIB1^s;Zv))VV+@0sAXdaMrZIvW7{wydWujVRi8|8M*UuP3D>_!IZ#mZB zTjM(G46wgJ`g@T)geeXo#V^>&EdL4@Fm&A3Jq9Io&?m^p2k5L!*>WFUr_ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/genfiles.properties new file mode 100644 index 0000000..2699ad4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c746507a +build.xml.script.CRC32=c3f1e833 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c746507a +nbproject/build-impl.xml.script.CRC32=1d0bf7d6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/project.properties new file mode 100644 index 0000000..42c2f5f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/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}/StatementLabled.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.7 +javac.target=1.7 +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=statementlabled.StatementLabled +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/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/project.xml new file mode 100644 index 0000000..0ab971f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StatementLabled + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/StatementLabled/src/statementlabled/StatementLabled.java b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/src/statementlabled/StatementLabled.java new file mode 100644 index 0000000..9ffc77a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StatementLabled/src/statementlabled/StatementLabled.java @@ -0,0 +1,44 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package statementlabled; + +/** + * + * @author andad + */ +public class StatementLabled { + + /** + * @param args the command line arguments + */ + public void method1(int i) { + int j = (i * 30 - 2) / 100; + + POINT1: + for (; j < 10; j++) { + boolean flag = false; + while (!flag) { + if (Math.random() > 0.5) { + break POINT1; + } + } + } + while (j > 0) { + System.out.println(j--); + if (j == 4) { + break; + } + } + } + + public static void main(String[] args) { + // TODO code application logic here + StatementLabled stmt = new StatementLabled(); + stmt.method1(7); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/StaticFor/build.xml b/PrjJava/OCA7/Chapter6/Flow/StaticFor/build.xml new file mode 100644 index 0000000..1753cbb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StaticFor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project StaticFor. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/StaticFor/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/StaticFor/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/StaticFor/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/StaticFor/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/StaticFor/build/classes/staticfor/StaticFor.class b/PrjJava/OCA7/Chapter6/Flow/StaticFor/build/classes/staticfor/StaticFor.class new file mode 100644 index 0000000000000000000000000000000000000000..45b5ba212c7027e3df64d0478f1868b234e84e6a GIT binary patch literal 653 zcmZuu%TC)s6g^`*agsVf^CC?f2#=!BMYHG<)J-KMq!cQp%7zUSW5R%ABgaAQ?{veO zR063BK7cRjSF}B2qBN1R@SStd+VtU(DS0Nvgea2v_n_=T^T8zPe?1iP(y)o zdl<`Dx#wZj>LlnOjP^KeAXOkxX`Zw%<&A9lGU&4)QbB(&5tC7$?ZpMx0(nkyuRhD` ziB@Lc^(R(yop2Pn-htA_mZpmDwTOc(at>@{Y&0BfVAIBygKfN}&;pwREC0P6_bxp* zo})V7hp{){^MoT_l%E$-Ve1RGh`Ea=2i&xn%$TPI>}y@*^9iix;ck~^Qv4%;Kt>xR zGKuMz@ddLMPr)#R^`M(aoo<*3Av`CyX(S%nz)N zVG`ZLVzf@l-~Ror=bFjf0xaSZyDN+(tfM-k(Le#k + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/genfiles.properties new file mode 100644 index 0000000..e514fb9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=742acc27 +build.xml.script.CRC32=294c5009 +build.xml.stylesheet.CRC32=8064a381@1.79.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=742acc27 +nbproject/build-impl.xml.script.CRC32=5b9ab221 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/project.properties new file mode 100644 index 0000000..a9e60be --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StaticFor/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}/StaticFor.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.7 +javac.target=1.7 +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=staticfor.StaticFor +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/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/project.xml new file mode 100644 index 0000000..d3b9f32 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StaticFor/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + StaticFor + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/StaticFor/src/staticfor/StaticFor.java b/PrjJava/OCA7/Chapter6/Flow/StaticFor/src/staticfor/StaticFor.java new file mode 100644 index 0000000..853fb5a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/StaticFor/src/staticfor/StaticFor.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package staticfor; + +/** + * + * @author andad + */ +public class StaticFor { + + /** + * @param args the command line arguments + */ + static int x= 0; + public static void main(String[] args) { + // TODO code application logic here + for(x= 0;x<5;x++) + { + System.out.println(x); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/build.xml b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/build.xml new file mode 100644 index 0000000..6c7f3e9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SwichIncorect. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/build-impl.xml new file mode 100644 index 0000000..c67c719 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/genfiles.properties new file mode 100644 index 0000000..4cd4875 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=93eb269f +build.xml.script.CRC32=b26fe4d4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=93eb269f +nbproject/build-impl.xml.script.CRC32=3ec3c359 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/project.properties new file mode 100644 index 0000000..640f51e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/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}/SwichIncorect.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.7 +javac.target=1.7 +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=swichincorect.SwichIncorect +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/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/project.xml new file mode 100644 index 0000000..14d0365 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SwichIncorect + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/src/swichincorect/SwichIncorect.java b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/src/swichincorect/SwichIncorect.java new file mode 100644 index 0000000..358298f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwichIncorect/src/swichincorect/SwichIncorect.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package swichincorect; + +/** + * + * @author andad + */ +public class SwichIncorect { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + boolean flag = true; + switch (flag){ + case true : System.out.println("true"); + default: System.out.println("false"); } + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build.xml b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build.xml new file mode 100644 index 0000000..527a843 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SwitcFloat. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build/classes/switcfloat/SwitcFloat.class b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/build/classes/switcfloat/SwitcFloat.class new file mode 100644 index 0000000000000000000000000000000000000000..508b54f26fa052c68023c55cf4e40a02df82430e GIT binary patch literal 1190 zcmZ`&TT|0O7(LsjBu&G`)`Axl6vehmgCO1jFHkPUa+#@v&iLXsjU|vKog`KH2mTWu z^hF;kqupfAW|3s3ysdLL=7|gsnnGL(;UX9LAoswqgEeG7#Tj!0# zX4R$lhS>-#*YRaMWKhd)(=*IvOUUc*w4E1?XgGtUj9CqHnAh+Kk7Yd3@DvL&7Bv*G zBx6~_3RW3n6BCp985urA8PsgTD zHI8ARW5#A>*E9kW*$Ev9=_+hnN{8B}Qwzv&x>2$>?l&vsFu5&^EEcmTt?Z&HxXtjw z6AkY9=D*#kmseou>vXlw#i23JZ8{`U$`rC|UBu;mKQQammfIvb>2@2It8Y@Jy#>K5-f5;NmRK17&)eF@6?*&w^tS*}FmafI$q=E-o&WBI4tDNMSCOlX5LYq-qP%14svmefUi2<5bCGR4H7* z#gJ+km#9im{X{IJvcIAyDHBNx3c*}-N}_R${3w2acnc~e349_3AWtI_B82=x*O=f- zw4jN#m)4I+2-rtZ$c=__$4M4QUV_ApkvyF`+`=$k;xb-i1P1xHN12WtHf2WWn^77H Vq~F+*Rhg;~T5^@Nj1i9D+Fu4q`AGl( literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/build-impl.xml new file mode 100644 index 0000000..529ddac --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/genfiles.properties new file mode 100644 index 0000000..56ee002 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=70837a7d +build.xml.script.CRC32=caeccc4b +build.xml.stylesheet.CRC32=8064a381@1.79.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=70837a7d +nbproject/build-impl.xml.script.CRC32=a8104459 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/config.properties b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/private.properties new file mode 100644 index 0000000..107381a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=--0.5 +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/project.properties new file mode 100644 index 0000000..20b91e7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=SwitcFloat +application.vendor=andad +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}/SwitcFloat.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=switcfloat.SwitcFloat +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/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/project.xml new file mode 100644 index 0000000..d1f5a1c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SwitcFloat + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/src/switcfloat/SwitcFloat.java b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/src/switcfloat/SwitcFloat.java new file mode 100644 index 0000000..1a1290a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitcFloat/src/switcfloat/SwitcFloat.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switcfloat; + +/** + * + * @author andad + */ +public class SwitcFloat { + + /** + * @param args the command line arguments + */ + public static int getSwitch(String str) { + return (int) Math.round(Double.parseDouble(str.substring(1, str.length() - 1))); + } + + public static void main(String[] args) throws Exception{ + // TODO code application logic here + System.out.println(Double.parseDouble("--0.5")); + System.out.println(Double.parseDouble(args[0].substring(1, args[0].length() - 1))); + System.out.println(getSwitch(args[0])); + switch (getSwitch(args[0])) { + case 0: + System.out.print("Hello "); + case 1: + System.out.print("World"); + break; + default: + System.out.print("Good Bye"); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/build.xml b/PrjJava/OCA7/Chapter6/Flow/Switch1/build.xml new file mode 100644 index 0000000..3de9f71 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Switch1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/switch1/Beyond.class b/PrjJava/OCA7/Chapter6/Flow/Switch1/build/classes/switch1/Beyond.class new file mode 100644 index 0000000000000000000000000000000000000000..a42e70eafe9838e8589b3e83d54aa8ce9c734bb3 GIT binary patch literal 259 zcmY+8PYVH26vfY-zl`xG-@pzFk|kMCN=-Io|7JXSVy4C*AInNv_y9hX+~?22y>;F@ zzdE<`c;4;+x~OYiNtmx zQlN{!sN3Z(xUoMl6YqL?RIu#C}?Xk!q7F;<2nG79PMui95o^+~mwX z-^rQG^L2j!=%VT(hmwP`g9^d!t5{_NLaxzV63k(;l7z}c#d3Pw2QpoVAYxLRB%z3w zB30Udp_y&fL1%}v%EE2OAIEF`+@(iw=gBb*+DE zJ6M3kf)C)EP}MVzB_67!JID9j$GLar*VT`o01mKIMFndWtfOV)P8A#2v~kx)+r~YK z`x09M<-U$|`c$CU=^hJM&*GCnV1A&Z;MH_I43Z-?49V06v9H2om1yJVq?MlPiNNAu za-mcIbkFr>*khxy(vd*3^LB8iJ}5U-(a81EL`S1uCZv)POY1j;1;j_%3xPQ=RsQ>z z>O9x0dhs;zgXh{z&_U;2|EdcweI9po?t*c@n%+(=a7_Ks)4i|BWlK z@Mp%?!?VC=@?VtqX_5wGUQs+{pfOuW$L>+vs5^>dRH@+umgn{EPa z*nB1P6(GzOJRN#2Q4mYp-yyza;W?h=jC63D|IRD{^H`u)!6Is8Oz|a~6^Ktt{q@hp zHqH1JZI#xg?R`a|R{RFbU@6CPj*@6Zi!h=akUZ;bv4j?y*un~Sv4%r>eQajKG-ra$ bT4HViJv5jpuuQK4>o;0LN=afR3$I=StHOZj literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Switch1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/build-impl.xml new file mode 100644 index 0000000..58708ed --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/genfiles.properties new file mode 100644 index 0000000..20aef6b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=fa925a66 +build.xml.script.CRC32=48958bd7 +build.xml.stylesheet.CRC32=8064a381@1.79.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=fa925a66 +nbproject/build-impl.xml.script.CRC32=d0894ba3 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/project.properties new file mode 100644 index 0000000..ceef543 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/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}/Switch1.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.7 +javac.target=1.7 +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=switch1.Switch1 +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/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/project.xml new file mode 100644 index 0000000..941f540 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Switch1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Beyond.java b/PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Beyond.java new file mode 100644 index 0000000..a17fd30 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Beyond.java @@ -0,0 +1,16 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch1; + +/** + * + * @author anda + */ +public class Beyond extends Infinity { + + + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Infinity.java b/PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Infinity.java new file mode 100644 index 0000000..690310f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Infinity.java @@ -0,0 +1,14 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch1; + +/** + * + * @author anda + */ +public class Infinity { + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Switch1.java b/PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Switch1.java new file mode 100644 index 0000000..f7006a8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch1/src/switch1/Switch1.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch1; + +/** + * + * @author anda + */ +public class Switch1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int x = 2; + switch (x) { + case 2: + System.out.println("2"); + default: + System.out.println("default"); + case 3: + System.out.println("3"); + case 4: + System.out.println("4"); + } + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch2/build.xml b/PrjJava/OCA7/Chapter6/Flow/Switch2/build.xml new file mode 100644 index 0000000..79216df --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Switch2. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch2/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Switch2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/build-impl.xml new file mode 100644 index 0000000..a887489 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/genfiles.properties new file mode 100644 index 0000000..d0f3a07 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e2a6ce0c +build.xml.script.CRC32=3061039a +build.xml.stylesheet.CRC32=8064a381@1.79.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=e2a6ce0c +nbproject/build-impl.xml.script.CRC32=d3f1738c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/project.properties new file mode 100644 index 0000000..fe32bfa --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch2/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}/Switch2.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.7 +javac.target=1.7 +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=switch2.Switch2 +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/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/project.xml new file mode 100644 index 0000000..ae40999 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Switch2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch2/src/switch2/Switch2.java b/PrjJava/OCA7/Chapter6/Flow/Switch2/src/switch2/Switch2.java new file mode 100644 index 0000000..0af2bff --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch2/src/switch2/Switch2.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch2; + +/** + * + * @author anda + */ +public class Switch2 { + + /** + * @param args the command line arguments + */ + final static int x2 = 7; + final static Integer x4 = 8; + + public static void main(String[] args) { + // TODO code application logic here + Integer x1 = 5; + String s = "a"; + if (x1<9) s +="b"; + switch(x1) + { + case 5: s +="c"; + case x2 : s +="d"; + //case x4: s +="e"; // error compilier : constant expresiion required + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch3/build.xml b/PrjJava/OCA7/Chapter6/Flow/Switch3/build.xml new file mode 100644 index 0000000..97ac7a7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Switch3. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Switch3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Switch3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch3/build/classes/switch3/Switch3.class b/PrjJava/OCA7/Chapter6/Flow/Switch3/build/classes/switch3/Switch3.class new file mode 100644 index 0000000000000000000000000000000000000000..892adc1f759dd5655faa747e897f4c34661b0cad GIT binary patch literal 747 zcmZuvO>fgc6r8n_tYh4!O=y6o(4+)NOR0e#dT0fQN}!4~AQ|PtY2%vIC9x~V;p@yV z;Zlhk8~}0P2k?^+0%n~^sHm3S&hG5&dvA9A`ToiGa1dje)_wJVU@jSm8WQag--&Un}h zlBcRSAX9F~z8Z8@66*Do%%z9nNMOD_dKISr;il_NaGQySDvSiGt!M2c^-{S574=;& zO~RMs;~W{6D2VyBFAyIy z$vnqGMmi{S?o0%z;5=7FETBq8AO6H-2C-xA)Z}~Y)jn{+&z(TFx5asru|#p%{EVE& zJn;k-JuOTrNqi^7$)B&f3lqAF6`BC6N>*&r$T}`z3yZjq8Xl70M?LGXn)UGr7pT!@ bI@B!^Ym8aQU;G~%(w6ck^4wn{YvA% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/genfiles.properties new file mode 100644 index 0000000..d92f50e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=eab5422a +build.xml.script.CRC32=aee2799e +build.xml.stylesheet.CRC32=8064a381@1.79.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=eab5422a +nbproject/build-impl.xml.script.CRC32=d2d96469 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/project.properties new file mode 100644 index 0000000..220ca84 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch3/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}/Switch3.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.7 +javac.target=1.7 +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=switch3.Switch3 +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/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/project.xml new file mode 100644 index 0000000..7f85db0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Switch3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch3/src/switch3/Switch3.java b/PrjJava/OCA7/Chapter6/Flow/Switch3/src/switch3/Switch3.java new file mode 100644 index 0000000..068d7c1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch3/src/switch3/Switch3.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch3; + +/** + * + * @author anda + */ +public class Switch3 { + + /** + * @param args the command line arguments + */ + final static short x = 2; + public static void main(String[] args) { + // TODO code application logic here + for(int z = 0;z<4;z++) + { + switch(z) + { + case x: System.out.print("0 "); + case x-1: System.out.print("1 "); break; + default: System.out.print("def "); + case x-2: System.out.print("2 "); + + } + } + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch4/build.xml b/PrjJava/OCA7/Chapter6/Flow/Switch4/build.xml new file mode 100644 index 0000000..ea29670 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Switch4. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch4/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Switch4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/build-impl.xml new file mode 100644 index 0000000..035595f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/genfiles.properties new file mode 100644 index 0000000..9cda689 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d2cfe6d8 +build.xml.script.CRC32=c1881300 +build.xml.stylesheet.CRC32=8064a381@1.79.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=d2cfe6d8 +nbproject/build-impl.xml.script.CRC32=d50103d2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/project.properties new file mode 100644 index 0000000..63594c3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch4/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}/Switch4.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.7 +javac.target=1.7 +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=switch4.Switch4 +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/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/project.xml new file mode 100644 index 0000000..cba2901 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Switch4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch4/src/switch4/Switch4.java b/PrjJava/OCA7/Chapter6/Flow/Switch4/src/switch4/Switch4.java new file mode 100644 index 0000000..7caa7b8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch4/src/switch4/Switch4.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch4; + +/** + * + * @author anda + */ +public class Switch4 { + + /** + * @param args the command line arguments + */ + final static Integer x = 4; + public static void main(String[] args) { + // TODO code application logic here + Integer x1 = 5; + String s = ""; + switch(x1) + { + //case x: s +="b"; + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/build.xml b/PrjJava/OCA7/Chapter6/Flow/Switch5/build.xml new file mode 100644 index 0000000..8030679 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Switch5. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/switch5/NewEnum.class b/PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/switch5/NewEnum.class new file mode 100644 index 0000000000000000000000000000000000000000..5bf6fa5db9b9a21bb8696caa3c2b0ac3b8b9db12 GIT binary patch literal 985 zcmZuv?{Csj6g`iYwshTqj%{w@uWcwW9pZ+XK$e+>B__C;6iJAmO0BF*DG8MA-%^%1 zqtWcMf0XgQXXC)}n%tZF?z#7#d-{I;{`M2V4qhf8qo`vGk5#Owc%mbPZEi{$(mEwe z9Pw1cBKKtt8SbBHSmJ(1#V&(Xx0(#;#_-$=os&xG$UUzIqh6IV2RtLa5%w*&>SpUz z<6YfiFyGH8P|j?B79e2>QJ3ig0qVV`5LoVMqwa@I5 zZwK9y6%M?hTP@5OWj6Yb?YHcK$2&xA?lJY#E)f_)6-k503RjS>fwnxJ0R(~{b+(VD=W<-K+^Sul#^B=Whpn~V5 z#DAh2$l`^82Us_dhG}4tn+!KgFc}uEwc*nl;*Q@BXb1^D!R)wm>N+72sZ8#A;M>Dt zbprNJ-s!H@{W3j{6uq$c{wk*dkS8X>6B*%&50F~p`w&t_0=KXVhBb=T$@8O+!M-4N z1?dw-47bTDB4-dji#rj17cp_Gn{x3h;#ZJ4J~oBFOE<<}6z<`^$dgWl;uFh|=mXT^ zR`wFgXOW&9cU`VxgHy+*z~rFeA#xEBpBCY#`5kiGRHaL37f6Uemqjoq0wXShc@Zoq qB1oz~s7M;q18U1-%vtUD81q(J86#<3fN@UK62u}7kC3Na423^-T literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/switch5/Switch5$1.class b/PrjJava/OCA7/Chapter6/Flow/Switch5/build/classes/switch5/Switch5$1.class new file mode 100644 index 0000000000000000000000000000000000000000..25f2aa794b4a098fecd0a14be7e62f081627366c GIT binary patch literal 612 zcmZuuT~8B16g|^!JMFs2f)y%$@U>|BLSqb15?-2;5Zm&w4L0t}o9_nyC1laNL8gJ0$I{w8BQyIr+VHkms!=bn4#+&i;Be}DZBU><7*22s#)GlL=A%HTFEgJx30lz}t~ zp_$fkC!A+=%<3p+a2In1?qOcTeGLm59tfCguB-f#Bb!at6i6@Gt{prRNLrIy0;!T$ zQvw5J+g0nW`i}B9<&HxnTlT8b*^<5;?qe_&?AgpQRBj&HL3MATSn14*OjMV)D==bh zm-ppIS#+ekTdV}W?d~o{2T6aIp}8~M0)n1wZ=67XC6LvFx3Uol(C|>esCX^Es#fh# zr5OvD4bL=@L!QZIOgzG44NpugV#&l)u-wtps+L=}Q&YZ)=Xk*&W#T24xu|ly*HAL? z3M(2`O}xe%cIZ^e0)ziEzT4SX)qssTMJmjlpmo|IFjnZuW?h9iqOh(GSKL-zAhEsH zb=p5TS*mPycRqHo^P1<^Y*#wbl`=Lh8x7^w1ZJ$>mQMCSaUYmS54^t$^HwjBjINR^ zpPGT9+@#lH;lrJ@wpZNXjR#DlWSs%Is7EJZDsF@%htFmBEQwo~zyKeA_$9z3$kPr- ze+4gxbKlf4#FxlDLTiu)m`LFwMx#|k!UgVu48|}XC-^~T$aS)b@)43pNVU;7`Fok#*Vkc~Wi8=Nty{{f=h?ArhU literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Switch5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/build-impl.xml new file mode 100644 index 0000000..116a79a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/genfiles.properties new file mode 100644 index 0000000..1571f7f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=dadc6afe +build.xml.script.CRC32=5f0b6904 +build.xml.stylesheet.CRC32=8064a381@1.79.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=dadc6afe +nbproject/build-impl.xml.script.CRC32=d4291437 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/project.properties new file mode 100644 index 0000000..217df00 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/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}/Switch5.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.7 +javac.target=1.7 +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=switch5.Switch5 +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/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/project.xml new file mode 100644 index 0000000..9236915 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Switch5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/src/switch5/NewEnum.java b/PrjJava/OCA7/Chapter6/Flow/Switch5/src/switch5/NewEnum.java new file mode 100644 index 0000000..4e01499 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/src/switch5/NewEnum.java @@ -0,0 +1,12 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch5; + +/** + * + * @author anda + */ +public enum NewEnum {EST, CST, MST, PST} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch5/src/switch5/Switch5.java b/PrjJava/OCA7/Chapter6/Flow/Switch5/src/switch5/Switch5.java new file mode 100644 index 0000000..d45186d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch5/src/switch5/Switch5.java @@ -0,0 +1,35 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch5; + +/** + * + * @author anda + */ +public class Switch5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String s = "-"; + switch(NewEnum.CST) + { + case CST: + s += "e"; + case EST: s +="c"; + default : s+="X"; + + } + System.out.println(s); + + } + + + +} + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/build.xml b/PrjJava/OCA7/Chapter6/Flow/Switch6/build.xml new file mode 100644 index 0000000..7ff94e7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Switch6. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Switch6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Switch6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/build/classes/switch6/Switch6.class b/PrjJava/OCA7/Chapter6/Flow/Switch6/build/classes/switch6/Switch6.class new file mode 100644 index 0000000000000000000000000000000000000000..902736c03d883ac5847c5c6f6df415c9d2b614db GIT binary patch literal 778 zcmZuu&2AD=7(JJna))uS6a;BewDpgo7LAD;h>0SN3#?5rO-whv(2?E>Lxn-p#ElCR zb?GCx>B5yRG;!er_(Uce_1uBP)O3<_zwe&!_uTpZ`|CFVH?ZR37)~W{8bt?ZT%5(C zgCz%f2j?7|cW^=CqQoVEcufa7yd_|jmNx|K`e54^m~HC7UmN$^{_vq{_sFE1gO2KL zsG&CZDQSm0dL%H{96i@zXXj?6HL+DT>MI=x=dMfBvTH#O!-D)&Q4ZAGO z91#`}ny3pTTcPSaxv%!7^W4^8JnZ~Md z>hU46rK8>fi!gu6d@)cGl01*|R-qNNGvzN3AEWRr&v-<7NYVEu37A8gw*)dcLByeTdP)Z-s4rFU~j#veINsbM4T|q>x9W$BP`+(VH4ZLHKIy1h~6i}($;6##?H_l z;JR_+ky|vbjNFWIooQl%HX3~J=Y>&V!6+zGFu18i7Wa_DI!<|ay*onu`LubH3c_Vc`@kobj|_=$#eT~|s;ej&;#`~{7Ll8*oY literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Switch6/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch6/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/build-impl.xml new file mode 100644 index 0000000..155cc39 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/genfiles.properties new file mode 100644 index 0000000..9168658 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c2e8fe94 +build.xml.script.CRC32=27ffe149 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c2e8fe94 +nbproject/build-impl.xml.script.CRC32=d7512c18 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/project.properties new file mode 100644 index 0000000..98bf86b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch6/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}/Switch6.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.7 +javac.target=1.7 +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=switch6.Switch6 +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/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/project.xml new file mode 100644 index 0000000..72cbf13 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Switch6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch6/src/switch6/Switch6.java b/PrjJava/OCA7/Chapter6/Flow/Switch6/src/switch6/Switch6.java new file mode 100644 index 0000000..62c7467 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch6/src/switch6/Switch6.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch6; + +/** + * + * @author andad + */ +public class Switch6 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + char i; + LOOP: for (i=0;i<5;i++){ + switch(i++){ + case '0': System.out.println("A"); + case 1: System.out.println("B"); break LOOP; + case 2: System.out.println("C"); break; + case 3: System.out.println("D"); break; + case 4: System.out.println("E"); + case 'E' : System.out.println("F"); + } + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/build.xml b/PrjJava/OCA7/Chapter6/Flow/Switch7/build.xml new file mode 100644 index 0000000..6a892e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Switch7. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Switch7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Switch7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/build/classes/switch7/Switch7.class b/PrjJava/OCA7/Chapter6/Flow/Switch7/build/classes/switch7/Switch7.class new file mode 100644 index 0000000000000000000000000000000000000000..84f1ff81cb32a0ec23c9d55c3edcd6cd80c3f870 GIT binary patch literal 726 zcmZuv%TC)s6g`tTF)^k<0)bL!%CiO}ykNniRX3F?A*BV$hz+ZWagzbZM$Ux7H?g9N zQgzV}=trTRu|X&;i@A5^&b{a1@t^x&zX9xG+kuV6F)Y>a8Z8HJujyehNtaU-ftKO+;?>w%8?giMFLm@U+*)IX##O?#2-(_SOT7%dCf7p5tu&spy| zn^@+9*?di)3}K`*Iz0Kzg1NGF2XV_y3FC~_yy(K^-Ypt1ffqd0j5$`!aF5+3=GMXu zBhcV7V5Zinm)hS^-u?m0z?O5^IxKUA88k76dHzl>bBbmGgK5-xKSzD0hi39gF+)}} hP_XVY=aMTwQF)T=Fe*tV%hCl!S literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Switch7/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch7/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/build-impl.xml new file mode 100644 index 0000000..c696093 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/genfiles.properties new file mode 100644 index 0000000..fa064a4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=cafb72b2 +build.xml.script.CRC32=b97c9b4d +build.xml.stylesheet.CRC32=8064a381@1.79.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=cafb72b2 +nbproject/build-impl.xml.script.CRC32=d6793bfd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/project.properties new file mode 100644 index 0000000..737c4ac --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch7/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}/Switch7.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.7 +javac.target=1.7 +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=switch7.Switch7 +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/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/project.xml new file mode 100644 index 0000000..de8eb30 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Switch7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switch7/src/switch7/Switch7.java b/PrjJava/OCA7/Chapter6/Flow/Switch7/src/switch7/Switch7.java new file mode 100644 index 0000000..ce32f38 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switch7/src/switch7/Switch7.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switch7; + +/** + * + * @author andad + */ +public class Switch7 { + + /** + * @param args the command line arguments + */ + public static void calculate(int x){ + String val; + switch(x){ + case 2: + default: + val = "def"; + } + System.out.println(val); + } + public static void main(String[] args) { + // TODO code application logic here + calculate(2); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/build.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/build.xml new file mode 100644 index 0000000..1f5588b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SwitchChar. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/build/classes/switchchar/SwitchChar.class b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/build/classes/switchchar/SwitchChar.class new file mode 100644 index 0000000000000000000000000000000000000000..33581b88649c13cbf90db6909966eab80de21fb7 GIT binary patch literal 900 zcmZuwO>YuW6g`ibG6Pa5AYi3cscjuHwBW${o+f0%L2kC3Id}g*Q`8UGq-zPgQZr-saUJFJXhqn--2ur!YINT=0doL zc@39BSU`?CS7oxu<>LcQK$!0cs~n?X9GN?S`06c> z@$L7>5TeXO-3^E#&MJVDNRZ)=#Re400Y8;|TK|lLZ}6q}p`_F5qn-R77x;W4{Df?B zi;(*t5DL*ERN@V>NaTqX;(bquA*SwQq_6a|+{IcSqj}6yAESFrrjH2>iUe7DXWTuy zDQ8w7XWrms;A|R_v?qmijN=|o;~^&S1e0j;U+|2V|0T_QjVZjvG~QtbJD9}>82E@R yzVM>#VIJS9^MmF}|B_vg7*ni#IK(L`3o3(s1ApNYf3OygMx$ZgHG#CZYvMnruC7Y} literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/build-impl.xml new file mode 100644 index 0000000..354f620 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/genfiles.properties new file mode 100644 index 0000000..df927e9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6495538e +build.xml.script.CRC32=800ba844 +build.xml.stylesheet.CRC32=8064a381@1.79.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=6495538e +nbproject/build-impl.xml.script.CRC32=fc5b2b09 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/project.properties new file mode 100644 index 0000000..26af247 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/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}/SwitchChar.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.7 +javac.target=1.7 +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=switchchar.SwitchChar +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/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/project.xml new file mode 100644 index 0000000..7a367b7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SwitchChar + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar/src/switchchar/SwitchChar.java b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/src/switchchar/SwitchChar.java new file mode 100644 index 0000000..0003d53 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar/src/switchchar/SwitchChar.java @@ -0,0 +1,49 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switchchar; + +/** + * + * @author andad + */ +public class SwitchChar { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + char i; + LOOP: + for (i = 0; i < 5; i++) { + System.out.println((int)i); + switch (i++) { + case '0': + System.out.println((int)i); + System.out.println("A"); + case 1: + System.out.println((int)i); + System.out.println("B"); + break LOOP; + case 2: + System.out.println((int)i); + System.out.println("C"); + break; + case 3: + System.out.println((int)i); + System.out.println("D"); + break; + case 4: + System.out.println((int)i); + System.out.println("E"); + case 'E': + System.out.println((int)i); + System.out.println("F"); + } + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build.xml new file mode 100644 index 0000000..00d328e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SwitchChar1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build/classes/switchchar1/SwitchChar1.class b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/build/classes/switchchar1/SwitchChar1.class new file mode 100644 index 0000000000000000000000000000000000000000..36d1222f106f51980abb72e704b4d8d27417a20a GIT binary patch literal 660 zcmZ`$%TC)s6g}fSoETF=5+|XwrMyFFu~3(wZX$J+J|tJ!bTu(18E|amI8ZkH4vVhZ zMUhzW0sW?`>KO;AsYFMbnS0J$pL6f^&)>Iq0A6F;f{9icOL$zuvV|vjTEa6ED<+-` z6c1IT(l-LR_D)YA--(X`frYM$g7=eAKS(~wen_U;jeQyRWTG^_C-do0jRlsv;|rDg zLw_ifeb>w4j*br~IFc$7XtY0fPvp6DLm3TRFHKZ5ILHiTGN455foB239}0+$z`U1A z|MZHzdAb*WH9TpgBj~ui|0|lNnqB>e|uuf(d&CIhg)x{#JS^f_5>eO_I QO33{}OIRjxgV;dx57Zchx&QzG literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/build-impl.xml new file mode 100644 index 0000000..879b836 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/genfiles.properties new file mode 100644 index 0000000..7dbbd8d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0356c5c5 +build.xml.script.CRC32=1688e3ad +build.xml.stylesheet.CRC32=8064a381@1.79.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=0356c5c5 +nbproject/build-impl.xml.script.CRC32=6df85cf6 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/project.properties new file mode 100644 index 0000000..6ab7ca5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/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}/SwitchChar1.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.7 +javac.target=1.7 +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=switchchar1.SwitchChar1 +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/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/project.xml new file mode 100644 index 0000000..8c5e68c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SwitchChar1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/src/switchchar1/SwitchChar1.java b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/src/switchchar1/SwitchChar1.java new file mode 100644 index 0000000..77c6306 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchChar1/src/switchchar1/SwitchChar1.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switchchar1; + +/** + * + * @author andad + */ +public class SwitchChar1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + char ch = 'x'; + switch(ch){ + case 1 :System.out.println("-1"); break; // This will not compile : "possible loss of precision"     + default:System.out.println("default");} + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/build.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/build.xml new file mode 100644 index 0000000..400c531 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SwitchCiudat. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/build-impl.xml new file mode 100644 index 0000000..a19bdb9 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/genfiles.properties new file mode 100644 index 0000000..ce83d2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e79267d7 +build.xml.script.CRC32=3fc91d04 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e79267d7 +nbproject/build-impl.xml.script.CRC32=039dbce4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/project.properties new file mode 100644 index 0000000..6947a69 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/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}/SwitchCiudat.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.7 +javac.target=1.7 +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=switchciudat.SwitchCiudat +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/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/project.xml new file mode 100644 index 0000000..e021f10 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SwitchCiudat + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/src/switchciudat/SwitchCiudat.java b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/src/switchciudat/SwitchCiudat.java new file mode 100644 index 0000000..f45ad05 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCiudat/src/switchciudat/SwitchCiudat.java @@ -0,0 +1,39 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switchciudat; + +/** + * + * @author andad + */ +public class SwitchCiudat { + + /** + * @param args the command line arguments + */ + public SwitchCiudat(String s) + {} + + + public static void main(String[] args) { + // TODO code application logic here + switch(Integer.parseInt(args[1])) //1 + { + case 0 : + boolean b = false; + break; + + case 1 : + b = true; //2 + break; + } + + if(b) + System.out.println(args[2]); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/build.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/build.xml new file mode 100644 index 0000000..478fb8e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SwitchCorrect. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/build-impl.xml new file mode 100644 index 0000000..4309c67 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/genfiles.properties new file mode 100644 index 0000000..a487ca2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=256382bd +build.xml.script.CRC32=8db0e1b0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=256382bd +nbproject/build-impl.xml.script.CRC32=5f336d90 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/project.properties new file mode 100644 index 0000000..1099095 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/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}/SwitchCorrect.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.7 +javac.target=1.7 +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=switchcorrect.SwitchCorrect +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/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/project.xml new file mode 100644 index 0000000..f9cf945 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SwitchCorrect + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/src/switchcorrect/SwitchCorrect.java b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/src/switchcorrect/SwitchCorrect.java new file mode 100644 index 0000000..a62a7cd --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchCorrect/src/switchcorrect/SwitchCorrect.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switchcorrect; + +/** + * + * @author andad + */ +public class SwitchCorrect { + + /** + * @param args the command line arguments + */ + void test(int x){ + switch(x){ + case 1: + case 2: + case 0: + default : + case 4: + } + + } + public static void main(String[] args) { + // TODO code application logic here + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchLong/build.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/build.xml new file mode 100644 index 0000000..cc78a42 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SwitchLong. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchLong/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/build-impl.xml new file mode 100644 index 0000000..3a587ce --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/genfiles.properties new file mode 100644 index 0000000..6948ca6 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=221c92ad +build.xml.script.CRC32=36cd8a2b +build.xml.stylesheet.CRC32=8064a381@1.79.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=221c92ad +nbproject/build-impl.xml.script.CRC32=1be4738f +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/project.properties new file mode 100644 index 0000000..0a6037f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/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}/SwitchLong.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.7 +javac.target=1.7 +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=switchlong.SwitchLong +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/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/project.xml new file mode 100644 index 0000000..bcdd355 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SwitchLong + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/SwitchLong/src/switchlong/SwitchLong.java b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/src/switchlong/SwitchLong.java new file mode 100644 index 0000000..ff7e6e3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/SwitchLong/src/switchlong/SwitchLong.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switchlong; + +/** + * + * @author andad + */ +public class SwitchLong { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + //long m = 32; + int m = 32; + // char m = 32; + switch (m) { + case 32: + System.out.println("32"); + break; + case 64: + System.out.println("64"); + break; + case 128: + System.out.println("128"); + break; + + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/build.xml b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/build.xml new file mode 100644 index 0000000..d02f0e0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Switchdefault. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/build/classes/switchdefault/Switchdefault.class b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/build/classes/switchdefault/Switchdefault.class new file mode 100644 index 0000000000000000000000000000000000000000..cad3b0717952fb44935f5e90e48a491b4c3dd71e GIT binary patch literal 665 zcmaJ2vTozp&8}=FivOl> z1>fw0f)D-xe^V)**$8c*bl}dJd+yA+_s-1y@7p^7Z?NK_j9LZrcz6(%w#yROUU(RR0kc5Q=snFd1qYefuC! zA9H(QHq4{=y(+33OSx&X_;BF5X!v-AMHfvUOIQ}D|EE-e=|A;->Yl`r9;3pGfsXsU zs%*%>+^89q1)tf8WaYp`1fYaJG2^Fhogfv*6U^8~$sD2V0t z8;GkST;c2#qz{j4f3yKlxB@De#8Wcn@OO%pi0>wL>zBj^%?yk7nr8eB+SX5$>}yyA zYXoJ&4|pUTu1sEw%D{4=TczqOn*2Pg{5zYdV~bkbY~n3eikfPpyqLl?PnEETXP9AC TReJn+zt9wpQ!!o47V)_UZ;pgT literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/build-impl.xml new file mode 100644 index 0000000..24fe4eb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/genfiles.properties new file mode 100644 index 0000000..8f870ec --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b3309870 +build.xml.script.CRC32=bf9077c1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=b3309870 +nbproject/build-impl.xml.script.CRC32=16ed0c91 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/project.properties new file mode 100644 index 0000000..a240247 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/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}/Switchdefault.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.7 +javac.target=1.7 +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=switchdefault.Switchdefault +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/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/project.xml new file mode 100644 index 0000000..e988aef --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Switchdefault + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/Switchdefault/src/switchdefault/Switchdefault.java b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/src/switchdefault/Switchdefault.java new file mode 100644 index 0000000..16d2aeb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/Switchdefault/src/switchdefault/Switchdefault.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package switchdefault; + +/** + * + * @author andad + */ +public class Switchdefault { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 5; + switch (i) { + default: + case 1: + System.out.println(1); + case 0: + System.out.println(0); + case 2: + System.out.println(2); + + break; + + case 3: + + System.out.println(3); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/W@hile3/build.xml b/PrjJava/OCA7/Chapter6/Flow/W@hile3/build.xml new file mode 100644 index 0000000..634b49e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/W@hile3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project While3. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/W@hile3/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/W@hile3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/W@hile3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/build-impl.xml new file mode 100644 index 0000000..9f8ca24 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/genfiles.properties new file mode 100644 index 0000000..fad8840 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1af5cf16 +build.xml.script.CRC32=482cb4dc +build.xml.stylesheet.CRC32=8064a381@1.79.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=1af5cf16 +nbproject/build-impl.xml.script.CRC32=ce1e0cad +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/project.properties new file mode 100644 index 0000000..870d667 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/W@hile3/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}/While3.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.7 +javac.target=1.7 +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=w.hile3.WHile3 +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/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/project.xml new file mode 100644 index 0000000..5ae199d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/W@hile3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + While3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/W@hile3/src/w/hile3/WHile3.java b/PrjJava/OCA7/Chapter6/Flow/W@hile3/src/w/hile3/WHile3.java new file mode 100644 index 0000000..38a6eda --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/W@hile3/src/w/hile3/WHile3.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package w.hile3; + +/** + * + * @author andad + */ +public class WHile3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String[] dataList = {"x", "y", "z"}; + for (String dataElement : dataList) { + int innerCounter = 0; + while (innerCounter < dataList.length) { + System.out.println(dataElement + ", " + innerCounter); + innerCounter++; + } + + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/build.xml b/PrjJava/OCA7/Chapter6/Flow/While1/build.xml new file mode 100644 index 0000000..c6cc059 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project While1. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/While1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/While1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/build/classes/while1/While1.class b/PrjJava/OCA7/Chapter6/Flow/While1/build/classes/while1/While1.class new file mode 100644 index 0000000000000000000000000000000000000000..adbd43c644b2d026df084dab4e29406a03225cee GIT binary patch literal 572 zcmZuu%SyvQ6g`usjjgG#+W4q%H`RqfTvpr&f>0k&sS8)r8rsn|k(erej&5A*LcxU} z;Lo^mDe9R-kb(mET9 zPWhyICaUUZFv>4?_~V-1 bNhmOk5qbuSjE+&DK+l5l2}5YT@g(>Inq_dd literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/While1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/build-impl.xml new file mode 100644 index 0000000..fead3c7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/genfiles.properties new file mode 100644 index 0000000..1442aee --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=0ad2d75a +build.xml.script.CRC32=b4a512da +build.xml.stylesheet.CRC32=8064a381@1.79.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=0ad2d75a +nbproject/build-impl.xml.script.CRC32=f7f010cd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/project.properties new file mode 100644 index 0000000..7abf092 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While1/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}/While1.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.7 +javac.target=1.7 +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=while1.While1 +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/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/project.xml new file mode 100644 index 0000000..4a90399 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + While1 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While1/src/while1/While1.java b/PrjJava/OCA7/Chapter6/Flow/While1/src/while1/While1.java new file mode 100644 index 0000000..8f8d029 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While1/src/while1/While1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package while1; + +/** + * + * @author anda + */ +public class While1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i =1; + do while(i< 1) + + System.out.print(i); + while (i<1); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/While2/build.xml b/PrjJava/OCA7/Chapter6/Flow/While2/build.xml new file mode 100644 index 0000000..4dca286 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project While2. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While2/build/built-jar.properties b/PrjJava/OCA7/Chapter6/Flow/While2/build/built-jar.properties new file mode 100644 index 0000000..48ed870 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While2/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 14 Feb 2017 04:38:03 +0200 + + +D\:\\PrjJava\\While2= diff --git a/PrjJava/OCA7/Chapter6/Flow/While2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/While2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/While2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While2/build/classes/while2/While2.class b/PrjJava/OCA7/Chapter6/Flow/While2/build/classes/while2/While2.class new file mode 100644 index 0000000000000000000000000000000000000000..d643a123235ea24d52f929fbfe729a4b53120de0 GIT binary patch literal 852 zcmZuuO>fgc6r7D6J8@i^CZr`zQbH-kEl^j$1sWouN}x(91qIRrr%kXDmwZ%?1C(=q z398gH9E!w&AHWZS3rZQ=MJS?{cHi#oym|AUe@wo82XGIY1`=3G;ws7pu3j|s` z#~V6Ub=(xtDsJEPs{)F()(}v)2X7pK*_zvTo{f4<$9pN8T_TyAAuE98~>| zI}F(GJ8svxYww3)i!wdw_66px*R=!rPTF1BZ`*a>bNlVBu#EKDOw3;JEFg}!cDO!p zeH74p&TuH(p^5+01ZL{KY`xu;hoLDQmVi+ojJ%ffgr)>ik*kd$)kG48jx`hOxTWK^ zi96U3FrRvk^c}D4cO-2mYb+R^gLj)Hruq{||Ff~zJaAh66cqJ24IK@Ar^g`=M&#zA zp|}J4IVa+i@5mmfmJMa6VYYu5kh=7xT06n;a@IvdiZ`24Fvi!v zLVOONP3~FBRJV~$9WJfT>eabKw@kCbX*EY8x#Cuk>UzrG+=IE7M3 z8^=gw)Dy%r@rNqWym|_4923R#&*Q($BAH`Flmha3a*0r2M`3xO8kWwo+-0c9(cV0f zE689Gc@$uwh)tC6086N#jBWN?!!q`;f(BN@Htt7OnUker46mq_VOK%%h6#lL~@x)UPb)C4-I)!N|;G`M5Esv^cKr&X0(s&$8i2?{DbZrmul(8L+ z$CNB9^_QSXU6)0XSRkabs@Sq(!yiCGV%rDboiTA70(a)V&iT&s-g}xGNzDLefuAoo zZsSNxLxZ!nU9s02wes^PK=Tm#n9yJC&p-WzaMkD851~$_v0hu-+AcXYNA|rh-C=0& zxWUjH^jEBFrK_e<=^vp~_GG*3TBMPAv-FN>R0CIrZpZ#`U*T_*u6}Xjrro;su2tL& zWZQSG>LAz~1Tv(?MZ$eK9NJA8c2_LZ_{6SmI?h^Sd&P33*S90Cb=UKKtL0j<({VeN z9EF1(#oN;N_pKKHk>__zVwDn`0?Fdy zj(}DjbXM!l9BY|EBUO0GU&WIHnO)P79V!mc+|=&`4<6St_Q$219?Eq+$N zBfpkqU-oy)TVde!cW*^zWUx!Yxf9p|VxN7T{Tl(j=MIN*H*(-#ngqOIllF(9+hc+UBVzM$LcBq_$!vtgyRyfO%|&Xb$qau_fqeR< z71veb^2L)9ii^in}sr!Fgusdx(b-JHs&*5i>Bk&cpz`gwx!mk;NHO zl<@CVrg3g0SCj7-?u!>$<6D^DAyIgQmH3 YLgUvE6^Z7?OiF + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/genfiles.properties new file mode 100644 index 0000000..e9cd6cb --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=12e64330 +build.xml.script.CRC32=366867df +build.xml.stylesheet.CRC32=8064a381@1.79.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=12e64330 +nbproject/build-impl.xml.script.CRC32=d2e9029d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/project.properties new file mode 100644 index 0000000..36a610f --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While2/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}/While2.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.7 +javac.target=1.7 +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=while2.While2 +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/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/project.xml new file mode 100644 index 0000000..081c757 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + While2 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While2/src/while2/While2.java b/PrjJava/OCA7/Chapter6/Flow/While2/src/while2/While2.java new file mode 100644 index 0000000..24073ea --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While2/src/while2/While2.java @@ -0,0 +1,40 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package while2; + +/** + * + * @author andad + */ +public class While2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int y = 0; + int x = 0; + int z = 0; + while (y-- < 10) { + // System.out.println(y); + continue; + } + System.out.println(y); + String message = y > 10 ? "Greater than" : "Less than"; + System.out.println(message); + while (++x> -10) { + continue; + } + System.out.println(x); + while (++z> 10) { + continue; + } + System.out.println(z); + + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/build.xml b/PrjJava/OCA7/Chapter6/Flow/While3/build.xml new file mode 100644 index 0000000..634b49e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project While3. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/While3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/While3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/build/classes/while3/While3.class b/PrjJava/OCA7/Chapter6/Flow/While3/build/classes/while3/While3.class new file mode 100644 index 0000000000000000000000000000000000000000..8ac9a949a9760bec2c81cd4beeb08e13321c7d63 GIT binary patch literal 939 zcmaJ=U2hUm5IvV~cDJQMOSM!5T6IASDq3wIK4@Z6Q$G?6rt!rEHn0dRfyKsm|AN23 zhdyhRCN}Ze_$T}y##ql?FcoQh*qOO=XXczUyZi0e=Pv*X*itZ$WEd(^VWhDZ#JU0> zlG0oV;iB}Hq|p^*kPYIp!dhOdxDv#MfN1gA76_EAuI1bj@amb0fbX7NHw7X)R@Zzq z>{QMEQ={5uCc0zSjCRH7Tk&Yt8crdq zA%cYW!d>B)Z|c^X>_=cfYIxj-MYZ4zMYwoKB30C4SnXa_`mv) zV~@8du&B=#a$?M7KTU}5rzh!=?@4$Sr1+W4^E(sp$gMK+GUk$LV?5>Q1-(Ce0P&uI z2aB`;H>qKXu{JJ19LqdGu96wq{FcK!^rh@actY>6=_@7Z(jVYGgm3o%{=^7@XmEtk z2;mWwH$vA#e!SS6xd**RJd&i@8h C(7xdS literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/While3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/build-impl.xml new file mode 100644 index 0000000..9f8ca24 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/genfiles.properties new file mode 100644 index 0000000..fad8840 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=1af5cf16 +build.xml.script.CRC32=482cb4dc +build.xml.stylesheet.CRC32=8064a381@1.79.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=1af5cf16 +nbproject/build-impl.xml.script.CRC32=ce1e0cad +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/project.properties new file mode 100644 index 0000000..eaf801d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While3/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}/While3.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.7 +javac.target=1.7 +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=while3.While3 +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/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/project.xml new file mode 100644 index 0000000..5ae199d --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + While3 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While3/src/while3/While3.java b/PrjJava/OCA7/Chapter6/Flow/While3/src/while3/While3.java new file mode 100644 index 0000000..b16b691 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While3/src/while3/While3.java @@ -0,0 +1,36 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package while3; + +/** + * + * @author andad + */ +public class While3 { + + /** + * @param args the command line arguments + */ + private int j; + + void showJ() { + while (j <= 5) { + for (int j = 1; j <= 5;) { + System.out.print(j + " "); + j++; + + } + j++; + } + + } + + public static void main(String[] args) { + // TODO code application logic here + new While3().showJ(); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/build.xml b/PrjJava/OCA7/Chapter6/Flow/While4/build.xml new file mode 100644 index 0000000..d2768d3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project While4. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/While4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/While4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/build/classes/while4/While4.class b/PrjJava/OCA7/Chapter6/Flow/While4/build/classes/while4/While4.class new file mode 100644 index 0000000000000000000000000000000000000000..a1901666e53c89c96b0603a2bb4263f5be659e01 GIT binary patch literal 1041 zcmZuv-%ry}7(I9GS|~-zCLj(FHo$G_rZS0{!MB;w_PG6JoNkS{d&H0&-w2C_4nI%05h01U?8JovI|oNVwl!(+dv!{ z8M58TA#dOg?&`QFpp{+E4Hg8HY;Hq9UG%pdfxcDObJp68EvL0^Z`D~ztol{EzG1gq zx$hL!pyuvN^kL1dJEh{=FwF_{)Z5j)aKlY7wfjSQ(QW#I?cfK zJvONOjMxNqVC z9_pAeQNkku>p$D;tzD-|0T&KfueJQcXut#6t4&=Xs2uMHPJ>tFw@K3(rRx{pZ~_76 z;Mfh0GNQj+7SNj#ROk5QZERqIZ^7Vm0Tj?3OvYaBip+vJo5!bJ?%7`3oyqK|6{ zB>)!snfWx3WR%T6Nv1IuQkL-%U5w2WWj+;een9UzVw(x&4C;@O1xr6!(`HqsCvgU- z?7oFG&yqPuhBT(boZ~~4dnHtnMi*%|BfXcSw*Bpzc5Wtw literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/manifest.mf b/PrjJava/OCA7/Chapter6/Flow/While4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/build-impl.xml b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/build-impl.xml new file mode 100644 index 0000000..918c2cc --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/genfiles.properties new file mode 100644 index 0000000..5a84c18 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=228f6be4 +build.xml.script.CRC32=e8838b94 +build.xml.stylesheet.CRC32=8064a381@1.79.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=228f6be4 +nbproject/build-impl.xml.script.CRC32=98db263d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/project.properties new file mode 100644 index 0000000..4c6b35c --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While4/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}/While4.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.7 +javac.target=1.7 +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=while4.While4 +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/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/project.xml new file mode 100644 index 0000000..8f690d1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + While4 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While4/src/while4/While4.java b/PrjJava/OCA7/Chapter6/Flow/While4/src/while4/While4.java new file mode 100644 index 0000000..602176a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While4/src/while4/While4.java @@ -0,0 +1,44 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package while4; + +/** + * + * @author andad + */ +public class While4 { + + /** + * @param args the command line arguments + */ + public int luckyNumber(int seed){ + if(seed > 10) return seed%10; + int x = 0; + try{ + if(seed%2 == 0) throw new Exception("No Even no."); + else return x; + } + catch(Exception e){ + return 3; + } + finally{ + return 7; + } + } + + public static void main(String[] args) { + // TODO code application logic here + int amount = 100, seed = 6; + switch( new While4().luckyNumber(6) ){ + case 3: amount = amount * 2; + case 7: amount = amount * 2; + case 6: amount = amount + amount; + default : + } + System.out.println(amount); + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/While5/build.xml b/PrjJava/OCA7/Chapter6/Flow/While5/build.xml new file mode 100644 index 0000000..ed781f1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project While5. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While5/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/While5/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While5/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/While5/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While5/build/classes/while5/While5.class b/PrjJava/OCA7/Chapter6/Flow/While5/build/classes/while5/While5.class new file mode 100644 index 0000000000000000000000000000000000000000..a3024b43f6e33976e3f812ba378029b12b1fefdb GIT binary patch literal 569 zcmZutyH3ME5S(*DjsydNknjj^nm~aIL?C#9&zJI;G0ocGw4g)AcXzrsE6UG1)g4+V?h{)5L6%rloWs zP^z3&FV(ejd=)gES{&)1xs}MMsL8^@KVboJ#eZL5xE3q->Oi%B)pE748@b*dr38k0 zTI+`1Mg~%1&c-|zBo=KfVVU)PT?yp>S~+T5dT!hY)owen*Ww<+E(670-#T=T*>ud- zJ=Nl1g@mIY7LaX| + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/genfiles.properties new file mode 100644 index 0000000..5a37f6a --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2a9ce7c2 +build.xml.script.CRC32=96c75897 +build.xml.stylesheet.CRC32=8064a381@1.79.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=2a9ce7c2 +nbproject/build-impl.xml.script.CRC32=842c280d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/project.properties new file mode 100644 index 0000000..a98dec4 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While5/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}/While5.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.7 +javac.target=1.7 +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=while5.While5 +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/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/project.xml new file mode 100644 index 0000000..c0a658e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + While5 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While5/src/while5/While5.java b/PrjJava/OCA7/Chapter6/Flow/While5/src/while5/While5.java new file mode 100644 index 0000000..acaedb3 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While5/src/while5/While5.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package while5; + +/** + * + * @author andad + */ +public class While5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int k = 5; + while(k<7){ + System.out.println(k++); + } + } + +} diff --git a/PrjJava/OCA7/Chapter6/Flow/While6/build.xml b/PrjJava/OCA7/Chapter6/Flow/While6/build.xml new file mode 100644 index 0000000..7f19c92 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While6/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project While6. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While6/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/While6/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While6/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/While6/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While6/build/classes/while6/While6.class b/PrjJava/OCA7/Chapter6/Flow/While6/build/classes/while6/While6.class new file mode 100644 index 0000000000000000000000000000000000000000..3d4284be473bddc4b13c5c00fa3ecdfe59883ded GIT binary patch literal 829 zcmaJ<%Wl(95ItijapJl(Bu!eH6jGi}Y3r6EHYqGXLaG!VQcw_Lb(2`>4UQeT4v2k! zfNx;I8WyPp5+A_-u!J(#j)X!gEZupYJ7;EmfBgRX9l$>BnpnVk4wrGoK+S}XbtN{k zxT^FuC9a#eftv>;mK4v@(TS7=--aBF{Plw;RobTJMh|cgTwi#+)c6gUY~p&QnG_t1E`Q ziHsPHT)#)C+K2VIWlXzb+_pWJZ2S+Oje=yKgk^gk$Q6rm_p=QVjFD>3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/genfiles.properties new file mode 100644 index 0000000..d5c59a2 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=32a873a8 +build.xml.script.CRC32=140a2d92 +build.xml.stylesheet.CRC32=8064a381@1.79.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=32a873a8 +nbproject/build-impl.xml.script.CRC32=a1353a5d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/project.properties new file mode 100644 index 0000000..8eacf30 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While6/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}/While6.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.7 +javac.target=1.7 +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=while6.While6 +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/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/project.xml new file mode 100644 index 0000000..ff773e7 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While6/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + While6 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While6/src/while6/While6.java b/PrjJava/OCA7/Chapter6/Flow/While6/src/while6/While6.java new file mode 100644 index 0000000..93840a0 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While6/src/while6/While6.java @@ -0,0 +1,26 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package while6; + +/** + * + * @author andad + */ +public class While6 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int i = 0, j = 10; + while (i <= j) { + i++; + j--; + } + System.out.println(i + " " + j); + } +} diff --git a/PrjJava/OCA7/Chapter6/Flow/While7/build.xml b/PrjJava/OCA7/Chapter6/Flow/While7/build.xml new file mode 100644 index 0000000..a1180e1 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While7/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project While7. + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While7/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Chapter6/Flow/While7/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While7/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Chapter6/Flow/While7/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Chapter6/Flow/While7/build/classes/while7/While7.class b/PrjJava/OCA7/Chapter6/Flow/While7/build/classes/while7/While7.class new file mode 100644 index 0000000000000000000000000000000000000000..da890b61984270afa45ca49a4997bacb88f797ea GIT binary patch literal 605 zcmZuvO-~b16g_X|(XrEk0+mvsU_ne;7S6(j3#u_8At9+sQc@$X-jqpsIGrKWDaMr> ze+7TQwJs!K;Sb>Fuva*5N@AM$lKbwvpXc10cm4P3H-P7O>S6}9A|7GI#VYC!)*P%0 z6xur0*((9N+3E?%-Q+kFD0g%mz8w#PFg;X3M9*R;>8q%xQf=&er_4_D$Yg&$(NXxq zf1j%zwizlN3sjpQJE!Vg`H_kTem6^XJlM%$R61Z`Y43J zh#z^l$h(j`J-B>(lLVCb0*aW$96hG^E1TKWYj#_{{AP*O3pnySr2V0NaeMO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/genfiles.properties b/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/genfiles.properties new file mode 100644 index 0000000..e0d11f8 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3abbff8e +build.xml.script.CRC32=6a4efe91 +build.xml.stylesheet.CRC32=8064a381@1.79.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=3abbff8e +nbproject/build-impl.xml.script.CRC32=bdc2346d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/private/private.properties b/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/private/private.xml b/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/project.properties b/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/project.properties new file mode 100644 index 0000000..5a65e1e --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While7/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}/While7.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.7 +javac.target=1.7 +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=while7.While7 +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/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/project.xml b/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/project.xml new file mode 100644 index 0000000..3f4c277 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While7/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + While7 + + + + + + + + + diff --git a/PrjJava/OCA7/Chapter6/Flow/While7/src/while7/While7.java b/PrjJava/OCA7/Chapter6/Flow/While7/src/while7/While7.java new file mode 100644 index 0000000..3a3ca17 --- /dev/null +++ b/PrjJava/OCA7/Chapter6/Flow/While7/src/while7/While7.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package while7; + +/** + * + * @author andad + */ +public class While7 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + boolean b = false; + int i = 1; + do { + i++; + } while (b = !b); + System.out.println(i); + + } + +} diff --git a/PrjJava/OCA7/Clase si Interfete.xlsx b/PrjJava/OCA7/Clase si Interfete.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..d008732cfc4934b51d4fcc6c2322db7b4ae9d324 GIT binary patch literal 9191 zcmeHN^;=cj*4~tKr!;K3ODO^A?(Ptzy9GhIr8eEt9ZKm2q`RfN6zPTy2;bIo@8>z3 zbN_;S=MQT=`+4>lYt6aFJH|WTF;(Q@;PC*D07w7;fC_*^w7g^v0{{>q006iEBv^fM zM+Y|x2RCC4Zzl^^LpCpaJIZ(Punf5XSm^)%H~x!PpbIqW(7}P$bC`I6p;@I)vdW=| z8`614%3Dy2*hef5oS=zB4{FRIF-b4N2!1|as7i8k1y)uIW!pP2ZG?%cIp)IW>2f?Kcv~h(1tx8! zdzXGs3&Bt2MllX**!1(TG^fx-wW@u#ZsMjD+&F7{i+u~C?Zgx#j`7;+*R zX(%76lhL(vKVyknSHP6iO6o;PJ#PFayqXiJT2$z78h7CA zKT!S`Bk@mDuSif-?&LrVJ(Rf(>${vPMs^XiJ|>@rWT}mw6ib6R z2u|9+#qV}tVd+`SP9N39I!{Fu4xS*e!Lu?n<=WXDk%`VFS<1O$tqa>@>U`=VOmhB=y?QLvs_xV&JqYd|m zFRM~!pBgm}&K1|FbT4i0xxd~Ap5wtR?=D{C&hoya{=g`Tl4WR}`a4MEN{dXdp(`Q{ z2LKQQkYK#**#E$Zr=yFlnWLla&l>h`%)mek8Pv;v_W&mh+jMcD1s{gA2938kC)}wF z2>39Dv@|Rra@694DcZd#74g1F2OT`EDM%U1r{Ou}9C~@ff3{8rbYEsxVenukaYg#J2j8j2%Bl?T_3#Tg~>`banQ!L*MuYSutWX9EK+YvW~J&f9`AuLeHt+m(9Tq{{SFEc|hjCkkB zI0FnXKp%f@JXN7C{h`4N*+71?>aarW1KD#sozAl#fJjw+nq5}H1Uq7xo7G3#lr2Dk z;L%lmEtx!t!co8od4%xboV(r3>x8GdceENN@~?WMoyfCCnWo2fRi!099>7_n??1{9 zWynfVnB?lF3N};DVd-ntKdT5Z=TEBE(Op z)wHlmeXm&*>1JbIf1sgW$$3+}uE$+=^m&$}_cL7uI%g~XZ=x?D-_l-mJLBm%Hw^sf zi#WBz7e+HzZbI9Clo^VB+>Sq(?v|_jhUH9Fe%lS)V$VEf^21kf`M{V!9)zX=v`%2&u2&wvDCTv`L?==pm(0w07K@wNipz zN|K9Yk{Ybl1g)zvQoG7T;`YtWC+}{m0%$b$TlL64w>FFlT`um*znYQ@xERu@(hSXy z!U7h_89LYZAEn$-r<$6RY2xGS)uK_Pc56cxcuU<8+YcI|`Qfn!UV7~syr=9+)~73N z8ADgEQL_b>29?fXEf7gD?_$b|u5)DK$ToKfb%-V3!%~-e&pr_?wGbyWc5PqE>+Fz8 zj#`MB2(3a;vCl_lRV7hWjMj5?o6ya@KK0`ZKWOTqM>1i-ZpLdLii>T9Q~7O zsP=I|UjkgRBvt#b$!0W;>eu}A6=?~>mPviYQ}#`BHgj8eaYpkkPr(%LbuF9T&6}+mRsR7Qgb%5L?Vu-E*V0@1P?%tKE~^p2X64U+4SxLF;gqI@#^sd+O>LjSo-J=0fHQlooP_bTnP%Bpd(!2JFWlx>HXNFJ2_o(&dWJm0^2 zo@0FIUHo>;3uT-kr!xPHPQ zGf@=^1FYT^`h7tiKSVg%LP;uo)`;ma*{KivOPq*0?N95n=*B-Bwgxe{sTsYKql6qm zJnv6`=n9i*DlfMSSi6aCaJ+;6z)}CjUey1`B0MIDZ`6I*CqFNj-s#Nx{Cx1lWN*YB zkWDH2DbQmXlmCU1TW%BTFo4*T_yztY(R^}qJ8X5ac$uXv-V%3rVUeYngQIC`Q9LXY z@B-z7h&apHV!q!@f4iZT++v{m;=zSDWi&BXZBolwF|u3)4#c)RW@~}`M!1KOaMS8o z_Ne6(D6Q34Q%y~0Lt#Ul=KcGxyB8F5zzs7x!%Kf$I;FG_PkxLexFlaCHE^nKKjPj& zV$IFtr$#BmmvwC0Ip^Zd43jAgB@^y=1-h9C7D-y7AamKrEfu_@qZw^(^%b;AUVD)` zRw#NspvvS#Z$Ejyru%90v-RoJrKaP^C+|3u47VKU*jshg#5*rr?oBaPo;PGkZ?LPZ z@vVb}HCN$Zp>mqmrABEjx)xx7Lk<@k)C4EQxh*U}v)ptj&ilh0*~3`PPnJpCBLv(; zRzdk#hxwd6#(}E)w<48y|H$du39(w0ph>QW@~0~Ct1`P;S=d{!|GIMi{LXv2!%-x> zcx{B&B51Cjw@)@=X_r?=?Gl%0%(FnG^$mNfTHIU-U=mzdTK;o2hJwNrF-IZL#B(_G zma|x7nh)P8#_5M=ft6b{8Fq4d9_UfhcP+)mm)U-=PTh_tT2fz0r=oTwBpbJ?oCsw` z&!*B$Ci~m+G4S{*%YdS>Esz}`s4Tbg3psu+*!KNMy|Zu-3A?;x3R(UICW3CH(DVz=SKKKrq0XPsDh$hO)68P)uWX*Q=I`MS@*q}2k>t(U!?o2M8v3}=_{JxP& zwenwcSDnQ`+v21}`*dgTX#nBYn!94)>b;S7eD14Gu+{J`ejqQWDS@>Xw1!eI3$?&p$b!Um~ zl#s7E&=mR}9Dd=YTRnqTY^r-|{1Ti`$XcV!H@RH=+okEM*l8qQMKYdVzhDWL|0)o6 zPAuAng0_KiLvGmhG(p~Fd!jjth&x`$V>U+Rnd`hlLSL639R`(Tyl0Rsp>OP*poEY( zsY)H^Vk2@x$B&oPO$eJd=^*;>Yl{)GT5xn)3k9KDU`>?8{IiDH`r!y}L4niKr1?)o z>Tc0JL_Uqet~z6;+=Jhm$F-?VlF0VtDwz95G|w|lU@Q{KY^NDrQjnM}E{{R>HI|Of zfnEd*5!fpQ5MqfXIYYj!OpRArZ!r{CpTKTWY(`Bo&LC`aBz$U<-Hk!gwM=<|m2cV4EjHj4z zcv4y|xQUxF-J=n8^tYY^1s4}b$?U#a?(h++G4~u?NqPl{Nh~HCJpQxFhF;BvYo9AuHE9M0v!w@bbk`_d<_pC zk4EGuSy25*-)sXjLVcC~B$Z_m1Z3TCrW2v(nvWer(-XH?`kWc5aIWFSO_%$kAk3W^ zKWD7+M(NZmHfB=Evbo}8dMPSG0>q2aAVxezu4r3N=y196%dX$HhNo`IBZj$2B2$Hz zB&zO2s>T>%ct)1NMssO8<8C_RDmy88dQ#3?C>-|q_+DEVtCB5SVWRV*p)W~6-(KJs ze@FvISD}ogNxe$sE=_|`F=OYZjCE6=`{?X#<8EEnB3Zx+jCOk;!!f}TNVvu#IGlW= z+w(Ck>VlOzBj3MQUHHJwf`q30<>{5ZyA+?$aTUEtU)GSG`*W6ExvZ<} zfkp7tOGM9rXRn<6`HI!HRm2=qfDG3YBz>T#CQ*xtx-m#AV19bmdp|}y#3i{|RuHji z8+0Sawu6l=*5MHBs3-;F zA;S8#>-AQHIbY{PY|5;g`hi?sdk>qCm-Rvn@GVODV|&vAAx4$@hv=`CYQ{;Q9kl?_ zG3KWnRCak$>RlT3k!)x!{PJ~65R>EtOBzXj~;a7%8M*c<&S8R+tUhealb3 zUhzaj9!@VSV+t|Z*!U*Y`z>T{Uv=7Qv>v;x-)R*>bR1eL#$$^rISI_BQkIZZ-_k&cP##QY?`4$oG z@MXu7BV_zm_CiW>oi$vRSM)58O%9seKH^G--hYK~ojBfhTai_+k9%c(%eTg2m5QQ4 znVzJ9;DrrJKg+>~71%2iOHX-h1aF;f!j$3y;e;4<|dU zecG_EC+vf7);?r=C4SD4N+je>Fls8dmSoKu{UAVjL~L%Nx3j!R8FJTjquW$n>vQBH zq!KR9LYj{nB!-@Ofz{_OL&VgoaCJUJ>DAZopFFuW ze`Ue?Eh4JZ+YmJnvGVG1HLtq=5$n$j{0&2D0f#YC0Re?x0f5-?zrnkp!h3P^L%+4QRYS7^AC|sf&fVx|@r& zgXOOsvUzN~4IC$$#9_!CRQEbA3R8*Pe~!}pB&CSLWLj?8WKdt8ZFpsd7WDZmpQF@J zpPj#p+KLW8L0ydzdTv|~4s{l*FZrc1d#=tigdCK-5L7O^rHvp{f+@!cRt4(Q^66(v zsY2BQ(Oc#DaC$XXaR65kLtve!>b zH)7=rbZW##rG4XZb2;HrJ_T6?X1a=uG*jgqYT~~Rbg!F6pq7oK9s?7oIij9{je2+) zT(Yg(%k;zpFjmLFU~pe^9=PGi$`)=~-bt0xTDqBWY{W;L)58}rvYCd@4U4y4b0{o- z$*l8AZ~=B?;*6O2NP%P22{n57xrB7VD%^zcY#AKV+dNo=c|ir7z_u3h3KxG2w}HOW z0+H0Q??j$M1YknM%jN#|Ssuj+g^xs3BJI`XVZ~K8EbgC}F-nFIiWgx|>scK;FW!YD zjlc~a%UGr8aDLM^T_HhUKR6onsX}zn&JPO;7vq?p;bUY^?Edj8Vt|Eqk}s<}xS}6@ z7-@K-@d83|YCm=-Mkaon$d_*}H(8E-4A0=|d%-`z4qd>%<1O3|hbs#jdrHvlIM$zI z&(z83f1w9mvVV=t#1&hph}^q^cta7rjN3e?B^9SB^>Mtt2UhlzrJ``}yE+=TnYg{` z75<{CB_Xs650TdE6aK6M2c<0bw{hd$DiP%tj3`J?r`brEoZIf}t{6~gaBVhTyphX< z>5lQck+OGHi0g+Tu*0swVO7qEb2)?J065aL9kXLm6j~v{fIB zD_W9gR4}fB_I4NequQFxel!g8#?{QEQn+w4>q(dT&f&<{@Y=lf)BZqhmw63^Mz|Xg zS(bb0CXc3|?K8Vs9o`-w14K>5)8txyfjC9A99S7^!uS<-$+5K|iNWu2FnKYKbYd2A zmrjeF3|pCZsW{g!JqhSdI9ET0AWclwj+fYB$q3rY9OET6kFAqhahYlVR*WV8Cp*;3q)Bp2p{GzcBy*%U+zrFMk|FI4anZ-j7 zf33{F?EwHV2>|f7I{nc6ugUe#=6vLTGXGbqRgp)4#>meT0;qtVpWOkfpTGVO%J1HJ literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/CompilError1/build.xml b/PrjJava/OCA7/CompilError1/build.xml new file mode 100644 index 0000000..07f9201 --- /dev/null +++ b/PrjJava/OCA7/CompilError1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project CompilError1. + + + diff --git a/PrjJava/OCA7/CompilError1/manifest.mf b/PrjJava/OCA7/CompilError1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/CompilError1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/CompilError1/nbproject/build-impl.xml b/PrjJava/OCA7/CompilError1/nbproject/build-impl.xml new file mode 100644 index 0000000..a041837 --- /dev/null +++ b/PrjJava/OCA7/CompilError1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/CompilError1/nbproject/genfiles.properties b/PrjJava/OCA7/CompilError1/nbproject/genfiles.properties new file mode 100644 index 0000000..1789bd5 --- /dev/null +++ b/PrjJava/OCA7/CompilError1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4f928a92 +build.xml.script.CRC32=4656cbbe +build.xml.stylesheet.CRC32=8064a381@1.79.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=4f928a92 +nbproject/build-impl.xml.script.CRC32=a0cd01f1 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/CompilError1/nbproject/private/private.properties b/PrjJava/OCA7/CompilError1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/CompilError1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/CompilError1/nbproject/private/private.xml b/PrjJava/OCA7/CompilError1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/CompilError1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/CompilError1/nbproject/project.properties b/PrjJava/OCA7/CompilError1/nbproject/project.properties new file mode 100644 index 0000000..58ecf73 --- /dev/null +++ b/PrjJava/OCA7/CompilError1/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}/CompilError1.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.7 +javac.target=1.7 +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=compilerror1.CompilError1 +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/PrjJava/OCA7/CompilError1/nbproject/project.xml b/PrjJava/OCA7/CompilError1/nbproject/project.xml new file mode 100644 index 0000000..ad4862a --- /dev/null +++ b/PrjJava/OCA7/CompilError1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + CompilError1 + + + + + + + + + diff --git a/PrjJava/OCA7/CompilError1/src/compilerror1/CompilError1.java b/PrjJava/OCA7/CompilError1/src/compilerror1/CompilError1.java new file mode 100644 index 0000000..0bbf426 --- /dev/null +++ b/PrjJava/OCA7/CompilError1/src/compilerror1/CompilError1.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package compilerror1; + +/** + * + * @author andad + */ +public class CompilError1 { + + /** + * @param args the command line arguments + */ + public int main(String[] args) { // 2 + double x = 10, double y;// 3 + System.out.println[]; // 4   + for (int k = 0; k < x; k++) { + } //5    + return 0; + } + +} diff --git a/PrjJava/OCA7/Constant1/build.xml b/PrjJava/OCA7/Constant1/build.xml new file mode 100644 index 0000000..c4c9cd3 --- /dev/null +++ b/PrjJava/OCA7/Constant1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Constant1. + + + diff --git a/PrjJava/OCA7/Constant1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Constant1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Constant1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Constant1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Constant1/build/classes/constant1/Constant1.class b/PrjJava/OCA7/Constant1/build/classes/constant1/Constant1.class new file mode 100644 index 0000000000000000000000000000000000000000..f59dea7802ceb09307afb746687d9cb4308d260f GIT binary patch literal 653 zcmZuuT}vB56g`uyS+kBGHAb!d@T;~-YF(<27C{1nkj6qnKzxu%T;oWxE1QYXpJg7Z z_|PBFA5}cFiM4_cbLZYO_nv$1oj-r?e*@UT7Z2lD@Ze%Gi`Q7n;tk$m8XJ96T3m66^TjVngC1K1mc%bWxJ{j7{>tpiW@sNzzgCGH97+Q0-^W z1YK?=>hmE#)UPA|2gMtX5U4H(oamYU`8h|TW%T{{w0u;p)%UA)0dXkco<*ZKr*K## zkV~3A=V98FW$kcPHm!kGe%d%c5lBPWDQPDd`Md@1vC=KX4V@GuZ6*OFCh5yz0;Vv{ zD2o}qB4UfTd2F$BhtyN8M-CvzMsxqwJD4Q~ir{uf^~EF;m>eKIuqsIJ9s?sNUT_bO&J+--I!NdIYm07qYk} zlw0i~!RY4Wlu+->MH;T>qjVXIQN~QOpC=+4iltQZhBS()ToG#hRk5B-f=JaXf;G-H zWV=?c%^~zcuscb%iE^WSy-d + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Constant1/nbproject/genfiles.properties b/PrjJava/OCA7/Constant1/nbproject/genfiles.properties new file mode 100644 index 0000000..69b67f2 --- /dev/null +++ b/PrjJava/OCA7/Constant1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7e52213f +build.xml.script.CRC32=14fa9978 +build.xml.stylesheet.CRC32=8064a381@1.79.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=7e52213f +nbproject/build-impl.xml.script.CRC32=06d51f8d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Constant1/nbproject/private/private.properties b/PrjJava/OCA7/Constant1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Constant1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Constant1/nbproject/private/private.xml b/PrjJava/OCA7/Constant1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Constant1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Constant1/nbproject/project.properties b/PrjJava/OCA7/Constant1/nbproject/project.properties new file mode 100644 index 0000000..ddbabc0 --- /dev/null +++ b/PrjJava/OCA7/Constant1/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}/Constant1.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.7 +javac.target=1.7 +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=constant1.Constant1 +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/PrjJava/OCA7/Constant1/nbproject/project.xml b/PrjJava/OCA7/Constant1/nbproject/project.xml new file mode 100644 index 0000000..cc2582e --- /dev/null +++ b/PrjJava/OCA7/Constant1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Constant1 + + + + + + + + + diff --git a/PrjJava/OCA7/Constant1/src/constant1/Constant1.java b/PrjJava/OCA7/Constant1/src/constant1/Constant1.java new file mode 100644 index 0000000..263df8e --- /dev/null +++ b/PrjJava/OCA7/Constant1/src/constant1/Constant1.java @@ -0,0 +1,25 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package constant1; +import static stuff.Stuff.*; +/** + * + * @author anda + */ +public class Constant1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + go(); + } + static void go() + { + System.out.println(doStuff(MY_CONSTANT)); + } + } diff --git a/PrjJava/OCA7/Constant1/src/stuff/Stuff.java b/PrjJava/OCA7/Constant1/src/stuff/Stuff.java new file mode 100644 index 0000000..d893c21 --- /dev/null +++ b/PrjJava/OCA7/Constant1/src/stuff/Stuff.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package stuff; + +/** + * + * @author anda + */ +public class Stuff { + public static int MY_CONSTANT = 5; + public static int doStuff(int x) + { + return (x+x) * x; + } + +} diff --git a/PrjJava/OCA7/EnumTest/build.xml b/PrjJava/OCA7/EnumTest/build.xml new file mode 100644 index 0000000..6d9cd8e --- /dev/null +++ b/PrjJava/OCA7/EnumTest/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Question33. + + + diff --git a/PrjJava/OCA7/EnumTest/build/classes/question33/Question33$Month.class b/PrjJava/OCA7/EnumTest/build/classes/question33/Question33$Month.class new file mode 100644 index 0000000000000000000000000000000000000000..ee63e26a769b9e5b8f643f0a70b2a2f09145a8eb GIT binary patch literal 1080 zcmah{ZEw<06n-u(6uNF~jNvx+rlJDVb;zbBkOf>=GQ+kgN<#cpu(B?tjiu~&DNCHu zX!hA3Wjyyv2E=9DCinE*^PF>@^YZ)8_g?^Z@FD^k85LPJG?TlTJ?dY$5}H20{*YR&C=E%U(Q zHAjat*y1H?Sl|OsXtV{p3Z5|}ZyA_|B%W*7z+DYd#5BzFD~=e$%&>u+7A-`}b{)zX zPiICbpES?RmQSn}ZcM|lJK7wvMuidg>)DKFE0nfr9cO5l<Od7*7-63I{BYYAo1N;sG;#G~w*>4D5LFV|t7=D#r zw0|h9VO`j%WrX4xbCBo*lc{JV7T_Jiz9rpz$g)kl KG9F{LwD=eC4&m7V literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/EnumTest/build/classes/question33/Question33.class b/PrjJava/OCA7/EnumTest/build/classes/question33/Question33.class new file mode 100644 index 0000000000000000000000000000000000000000..93aad8c5282167e7c0a393b491617eba18613ff8 GIT binary patch literal 936 zcmZ`%U2hUm5IuKU*s?BC+d@~{s;$)mEyWf;9x#5Cw22L%2Ghj)biobX3cD>VCjKFP zmWP`7;1BQ*`DQ(LAyy1-cIV!iIdf*_WPkkn_8q`IJTNhZtSM*`M!&vUxvw(Rwso$$;Wfk-BMAfT81caA`^;(AW4-)T7A z*Rs)OWTxUbW&1#OUFDC0dT`{DW4?0QcY1;Ad&Oem)t_sLbRFq>0_n`#%CY<)3vKDO z3iY7tdaY8}PIg-)n4ORo&^lWJOOv@*!)@3>>uf7i6iCzq*?eD>C*g1g(p=lXhJac3 z``xCq=c+xD7xQhZkt|q9SjfY+unF5h!NOf^vCzUciWW7#FOZtJpuqISRxcXIPBRc# zmcja;*+VSD;7_9-4g4RFpuJ45$W!o)=DtFF3DZehlQ0mb;|iw3 zTL_{zLobe5%#8?sB0>~U9zd(`s}2yU4WO@Ye1f5Wh8{UXH1y998(s7Nr1Ha*Y9E1W zzY@+mN8%K3X$~@vMc7!wRXoHs?9fwV<%X?^O4HNvggBdnO`$}j%_Xc5Z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/EnumTest/nbproject/genfiles.properties b/PrjJava/OCA7/EnumTest/nbproject/genfiles.properties new file mode 100644 index 0000000..c1e047f --- /dev/null +++ b/PrjJava/OCA7/EnumTest/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4a9ad421 +build.xml.script.CRC32=d6e9bc95 +build.xml.stylesheet.CRC32=8064a381@1.79.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=4a9ad421 +nbproject/build-impl.xml.script.CRC32=ca004fe2 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/EnumTest/nbproject/private/private.properties b/PrjJava/OCA7/EnumTest/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/EnumTest/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/EnumTest/nbproject/private/private.xml b/PrjJava/OCA7/EnumTest/nbproject/private/private.xml new file mode 100644 index 0000000..e79704a --- /dev/null +++ b/PrjJava/OCA7/EnumTest/nbproject/private/private.xml @@ -0,0 +1,9 @@ + + + + + + file:/C:/Users/anda/Question33/src/question33/Question33.java + + + diff --git a/PrjJava/OCA7/EnumTest/nbproject/project.properties b/PrjJava/OCA7/EnumTest/nbproject/project.properties new file mode 100644 index 0000000..ac2ba1e --- /dev/null +++ b/PrjJava/OCA7/EnumTest/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}/Question33.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=question33.Question33 +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/PrjJava/OCA7/EnumTest/nbproject/project.xml b/PrjJava/OCA7/EnumTest/nbproject/project.xml new file mode 100644 index 0000000..85b961e --- /dev/null +++ b/PrjJava/OCA7/EnumTest/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Question33 + + + + + + + + + diff --git a/PrjJava/OCA7/EnumTest/src/question33/Question33.java b/PrjJava/OCA7/EnumTest/src/question33/Question33.java new file mode 100644 index 0000000..1918803 --- /dev/null +++ b/PrjJava/OCA7/EnumTest/src/question33/Question33.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question33; + +/** + * + * @author anda + */ +public class Question33 { + + /** + * @param args the command line arguments + */ + enum Month { JAN, FEB, MAR } + public static void main(String[] args) { + + Month m1 = Month.JAN; + Month m2 = Month.JAN; + Month m3 = Month.FEB; + System.out.println(m1==m2); + System.out.println(m1.equals(m2)); + System.out.println(m1==m3); + System.out.println(m1.equals(m3)); + + } + +} diff --git a/PrjJava/OCA7/Exam Question1/build.xml b/PrjJava/OCA7/Exam Question1/build.xml new file mode 100644 index 0000000..508b133 --- /dev/null +++ b/PrjJava/OCA7/Exam Question1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exam Question1. + + + diff --git a/PrjJava/OCA7/Exam Question1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Exam Question1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Exam Question1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Exam Question1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Exam Question1/build/classes/exam/question1/ExamQuestion1.class b/PrjJava/OCA7/Exam Question1/build/classes/exam/question1/ExamQuestion1.class new file mode 100644 index 0000000000000000000000000000000000000000..a7dd6884adde6fd8c71022a9551fa6b526c9fc99 GIT binary patch literal 890 zcmaJ<+iuf95Iq~a+0-?(Buy`n6w1{}XibZFD&heIPZ1XdA|akO$trB+OK{c|d;*^X z4=DnP58$H^vvyEP6XA#1o!OalW{&6A@9#eW+{dAV71Wkd#}3C;2Nr6^Tr+0Z!FAjy z;idxzw>WNd++ip_RFTq;7%Z>RWw4*b1Ie)3R*`(3hCP|Q7QKKX<#yZ`L02To_|u@R z->WghPFsEyq5mP3W3A%oz<)~atH0h6p@u?544&6M7AL|FL^Sj}I#JQ^=-qtC^kIo) zXh`Ss35=eIw6dU*VZ&PxHh@kiPLsZTrm|sX8r(M|E?ivT@LV*|WY|1U{5Vy?Kqf9) zxa(pM`y9TDdpKa=qePtuEnQTw&QSZG7z}G?$S-=wvae@Colj#eLz+KM>7km>uVVit ziKR(0DMHe-C`Kb04H)(oDB744ZQ45(mUNu!&am#yCsIZwYj2h@A2HGa{ln@a#x8bg zr&eeML5s$Wlw>cG=hMmPTxyoB8V4#1=stitQ=I1IjV|@p7s8 Y4a?`jwy4wXf4bxu1gPXP6%}yh4@^eIC;$Ke literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Exam Question1/manifest.mf b/PrjJava/OCA7/Exam Question1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Exam Question1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Exam Question1/nbproject/build-impl.xml b/PrjJava/OCA7/Exam Question1/nbproject/build-impl.xml new file mode 100644 index 0000000..7d68731 --- /dev/null +++ b/PrjJava/OCA7/Exam Question1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Exam Question1/nbproject/genfiles.properties b/PrjJava/OCA7/Exam Question1/nbproject/genfiles.properties new file mode 100644 index 0000000..b1300fe --- /dev/null +++ b/PrjJava/OCA7/Exam Question1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c89ae4aa +build.xml.script.CRC32=00e0b66f +build.xml.stylesheet.CRC32=8064a381@1.79.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=c89ae4aa +nbproject/build-impl.xml.script.CRC32=9039fcdc +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Exam Question1/nbproject/private/config.properties b/PrjJava/OCA7/Exam Question1/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Exam Question1/nbproject/private/private.properties b/PrjJava/OCA7/Exam Question1/nbproject/private/private.properties new file mode 100644 index 0000000..2e1acc1 --- /dev/null +++ b/PrjJava/OCA7/Exam Question1/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=1 11 Java +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Exam Question1/nbproject/private/private.xml b/PrjJava/OCA7/Exam Question1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Exam Question1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Exam Question1/nbproject/project.properties b/PrjJava/OCA7/Exam Question1/nbproject/project.properties new file mode 100644 index 0000000..0635b28 --- /dev/null +++ b/PrjJava/OCA7/Exam Question1/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Exam Question1 +application.vendor=andad +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}/Exam_Question1.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=exam.question1.ExamQuestion1 +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/PrjJava/OCA7/Exam Question1/nbproject/project.xml b/PrjJava/OCA7/Exam Question1/nbproject/project.xml new file mode 100644 index 0000000..c278e35 --- /dev/null +++ b/PrjJava/OCA7/Exam Question1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exam Question1 + + + + + + + + + diff --git a/PrjJava/OCA7/Exam Question1/src/exam/question1/ExamQuestion1.java b/PrjJava/OCA7/Exam Question1/src/exam/question1/ExamQuestion1.java new file mode 100644 index 0000000..ade20a9 --- /dev/null +++ b/PrjJava/OCA7/Exam Question1/src/exam/question1/ExamQuestion1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package exam.question1; + +/** + * + * @author andad + */ +public class ExamQuestion1 { + + /** + * @param args the command line arguments + */ + public static void main(String arg, String... args) + { + System.out.println(args[0] + args[1]); + } + + public static void main(String... args) { + // TODO code application logic here + main("private", args); + } + +} diff --git a/PrjJava/OCA7/GetClass/build.xml b/PrjJava/OCA7/GetClass/build.xml new file mode 100644 index 0000000..f568ba3 --- /dev/null +++ b/PrjJava/OCA7/GetClass/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project GetClass. + + + diff --git a/PrjJava/OCA7/GetClass/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/GetClass/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/GetClass/build/classes/.netbeans_update_resources b/PrjJava/OCA7/GetClass/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/GetClass/build/classes/getclass/GetClass.class b/PrjJava/OCA7/GetClass/build/classes/getclass/GetClass.class new file mode 100644 index 0000000000000000000000000000000000000000..9dbfdf2f606c161ade58a52c50a054c639197fa5 GIT binary patch literal 1036 zcmZuw+int36kP`>1Jh|~X$x(wt=6hsJ6`G)q-qm=8LJ5fQ+*m>g3}Dp41vIx9gVs-mE)3NgCaT>C{Zu zmivpti1*p<39J|`%WF7hucyDZyd&w9*s5*X9f4HllW}T(F?Gl6wDhXy+MQO(hcexk zEdEcJ#g5(c1eSu*zGpkS!4tL(_38o}Gc8~CZKr9uOb~3EoQX4#nv^g&8_U?6LMhKy zS6HuByM4D|y|U#z7RE~Vr8o_XNKlI})Mxv`b;vLqv)P<#7@(B0A1AP@gPv!#si)hQ41(r%SAWOL_K0ekZO$)70siCQpe7iMUraE* z$vOe$Om=bjlqRH&nbdF{8lScNg+LWZ&@OSOa}`|YawCZEet4NS>K`VMq^|`DSivfH zajYT56IuKXVSYNm!8t-FBZQ4}L{5@(BSha6hER_4#h-|U@ZksI#Ua!o=IP}FPhy23 zv9_VmrVvA#c@sVMqSCm^|2BK>Fhg<< NvaZn+lrM$v{sX;L?56+# literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/GetClass/manifest.mf b/PrjJava/OCA7/GetClass/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/GetClass/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/GetClass/nbproject/build-impl.xml b/PrjJava/OCA7/GetClass/nbproject/build-impl.xml new file mode 100644 index 0000000..b7b666d --- /dev/null +++ b/PrjJava/OCA7/GetClass/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/GetClass/nbproject/genfiles.properties b/PrjJava/OCA7/GetClass/nbproject/genfiles.properties new file mode 100644 index 0000000..fa6c411 --- /dev/null +++ b/PrjJava/OCA7/GetClass/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e9e7dec9 +build.xml.script.CRC32=c64b83d8 +build.xml.stylesheet.CRC32=8064a381@1.79.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=e9e7dec9 +nbproject/build-impl.xml.script.CRC32=fd22499d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/GetClass/nbproject/private/private.properties b/PrjJava/OCA7/GetClass/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/GetClass/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/GetClass/nbproject/private/private.xml b/PrjJava/OCA7/GetClass/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/GetClass/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/GetClass/nbproject/project.properties b/PrjJava/OCA7/GetClass/nbproject/project.properties new file mode 100644 index 0000000..dea745f --- /dev/null +++ b/PrjJava/OCA7/GetClass/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}/GetClass.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.7 +javac.target=1.7 +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=getclass.GetClass +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/PrjJava/OCA7/GetClass/nbproject/project.xml b/PrjJava/OCA7/GetClass/nbproject/project.xml new file mode 100644 index 0000000..ea65c44 --- /dev/null +++ b/PrjJava/OCA7/GetClass/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + GetClass + + + + + + + + + diff --git a/PrjJava/OCA7/GetClass/src/getclass/GetClass.java b/PrjJava/OCA7/GetClass/src/getclass/GetClass.java new file mode 100644 index 0000000..a7886d9 --- /dev/null +++ b/PrjJava/OCA7/GetClass/src/getclass/GetClass.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package getclass; + +import java.util.ArrayList; +import java.util.List; + +/** + * + * @author andad + */ +public class GetClass { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + List list = new ArrayList<>(); + StringBuilder sb = new StringBuilder("mrx"); + String s = sb.toString(); + list.add(s); + System.out.println(s.getClass()); + System.out.println(list.getClass()); + } + +} diff --git a/PrjJava/OCA7/GetClassSample/build.xml b/PrjJava/OCA7/GetClassSample/build.xml new file mode 100644 index 0000000..0345882 --- /dev/null +++ b/PrjJava/OCA7/GetClassSample/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project GetClassSample. + + + diff --git a/PrjJava/OCA7/GetClassSample/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/GetClassSample/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/GetClassSample/build/classes/.netbeans_update_resources b/PrjJava/OCA7/GetClassSample/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/GetClassSample/build/classes/getclasssample/GetClassSample.class b/PrjJava/OCA7/GetClassSample/build/classes/getclasssample/GetClassSample.class new file mode 100644 index 0000000000000000000000000000000000000000..4a1518a53d848fa671de55627e1089e649e4fad5 GIT binary patch literal 691 zcmaJ;T}vB56g`u#HS1QRQERm}v8|e@bt^tvd=ZpDP+?0z`qD`p){*^?-HG7O(uV{p z^au1umEOAwOQ5(9XZD^mbMBlwfBydZ4d4L#Hm32eiWRI{cyFVKHHHrs8a66uGOXM9 zh))(iTi6h&eAAIOM*_uGyC+aOj<1x!Y*$C>Y#8=c@?G`=V&=Q?Kn6XTXs%z#lDXEY zK%?s`GYDjwrZT(@lzXboF_&Ie9+GV+btJIV`q90SchU`H0k>jfw{azCo;-c32$gS*v1Y;%T@0>P7G_i4!&T| zg6rTb+5&5@<`Jmn9_RfVH82yDcb^&+(nRAS35(B(b?jbHTtlIi40$B24kw=?t|x;b zMWYw!Fz+#Mr+m3w@hE!Mb<#+{x@FrS!aDfz`71#1L*O0x^8}4CPE~KBDl1;$_VqqclSK36;y*)fm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/GetClassSample/nbproject/genfiles.properties b/PrjJava/OCA7/GetClassSample/nbproject/genfiles.properties new file mode 100644 index 0000000..c6930cb --- /dev/null +++ b/PrjJava/OCA7/GetClassSample/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=7e26f60f +build.xml.script.CRC32=58288389 +build.xml.stylesheet.CRC32=8064a381@1.79.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=7e26f60f +nbproject/build-impl.xml.script.CRC32=e2a97d43 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/GetClassSample/nbproject/private/private.properties b/PrjJava/OCA7/GetClassSample/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/GetClassSample/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/GetClassSample/nbproject/project.properties b/PrjJava/OCA7/GetClassSample/nbproject/project.properties new file mode 100644 index 0000000..29d3186 --- /dev/null +++ b/PrjJava/OCA7/GetClassSample/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}/GetClassSample.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.7 +javac.target=1.7 +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=getclasssample.GetClassSample +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/PrjJava/OCA7/GetClassSample/nbproject/project.xml b/PrjJava/OCA7/GetClassSample/nbproject/project.xml new file mode 100644 index 0000000..0a32e6b --- /dev/null +++ b/PrjJava/OCA7/GetClassSample/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + GetClassSample + + + + + + + + + diff --git a/PrjJava/OCA7/GetClassSample/src/getclasssample/GetClassSample.java b/PrjJava/OCA7/GetClassSample/src/getclasssample/GetClassSample.java new file mode 100644 index 0000000..8bdd020 --- /dev/null +++ b/PrjJava/OCA7/GetClassSample/src/getclasssample/GetClassSample.java @@ -0,0 +1,22 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package getclasssample; + +/** + * + * @author andad + */ +public class GetClassSample { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + System.out.println((new Integer(10) + new Short((short)100))); + } + +} diff --git a/PrjJava/OCA7/JavaApplication2/build.xml b/PrjJava/OCA7/JavaApplication2/build.xml new file mode 100644 index 0000000..af6b196 --- /dev/null +++ b/PrjJava/OCA7/JavaApplication2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array2Dimensional1. + + + diff --git a/PrjJava/OCA7/JavaApplication2/manifest.mf b/PrjJava/OCA7/JavaApplication2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/JavaApplication2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/JavaApplication2/nbproject/build-impl.xml b/PrjJava/OCA7/JavaApplication2/nbproject/build-impl.xml new file mode 100644 index 0000000..395225d --- /dev/null +++ b/PrjJava/OCA7/JavaApplication2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/JavaApplication2/nbproject/genfiles.properties b/PrjJava/OCA7/JavaApplication2/nbproject/genfiles.properties new file mode 100644 index 0000000..f8bb801 --- /dev/null +++ b/PrjJava/OCA7/JavaApplication2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b92a50ff +build.xml.script.CRC32=fac31f30 +build.xml.stylesheet.CRC32=8064a381@1.79.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=b92a50ff +nbproject/build-impl.xml.script.CRC32=0e3c98ca +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/JavaApplication2/nbproject/private/private.properties b/PrjJava/OCA7/JavaApplication2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/JavaApplication2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/JavaApplication2/nbproject/private/private.xml b/PrjJava/OCA7/JavaApplication2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/JavaApplication2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/JavaApplication2/nbproject/project.properties b/PrjJava/OCA7/JavaApplication2/nbproject/project.properties new file mode 100644 index 0000000..b521e09 --- /dev/null +++ b/PrjJava/OCA7/JavaApplication2/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}/Array2Dimensional1.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.7 +javac.target=1.7 +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=javaapplication2.JavaApplication2 +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/PrjJava/OCA7/JavaApplication2/nbproject/project.xml b/PrjJava/OCA7/JavaApplication2/nbproject/project.xml new file mode 100644 index 0000000..a53ff8e --- /dev/null +++ b/PrjJava/OCA7/JavaApplication2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array2Dimensional1 + + + + + + + + + diff --git a/PrjJava/OCA7/JavaApplication2/src/javaapplication2/JavaApplication2.java b/PrjJava/OCA7/JavaApplication2/src/javaapplication2/JavaApplication2.java new file mode 100644 index 0000000..b773351 --- /dev/null +++ b/PrjJava/OCA7/JavaApplication2/src/javaapplication2/JavaApplication2.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javaapplication2; + +public class JavaApplication2 { + + public static void main(String[] args) { + // TODO code application logic here + int a[] = {1, 2, 053, 4}; + int b[][] = {{1, 2, 4}, {2, 2, 1}, {0, 43, 2}}; + System.out.println(a[3] == b[0][2]); + System.out.println(a[2]); + System.out.println(" " + (a[2] == b[2][1])); + } + +} diff --git a/PrjJava/OCA7/Math1/build.xml b/PrjJava/OCA7/Math1/build.xml new file mode 100644 index 0000000..13a4041 --- /dev/null +++ b/PrjJava/OCA7/Math1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Math1. + + + diff --git a/PrjJava/OCA7/Math1/manifest.mf b/PrjJava/OCA7/Math1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Math1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Math1/nbproject/build-impl.xml b/PrjJava/OCA7/Math1/nbproject/build-impl.xml new file mode 100644 index 0000000..2d9fee3 --- /dev/null +++ b/PrjJava/OCA7/Math1/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Math1/nbproject/genfiles.properties b/PrjJava/OCA7/Math1/nbproject/genfiles.properties new file mode 100644 index 0000000..c12463f --- /dev/null +++ b/PrjJava/OCA7/Math1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=910e6597 +build.xml.script.CRC32=1fc0b1dd +build.xml.stylesheet.CRC32=8064a381@1.79.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=910e6597 +nbproject/build-impl.xml.script.CRC32=90dbffbf +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Math1/nbproject/private/private.properties b/PrjJava/OCA7/Math1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Math1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Math1/nbproject/private/private.xml b/PrjJava/OCA7/Math1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Math1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Math1/nbproject/project.properties b/PrjJava/OCA7/Math1/nbproject/project.properties new file mode 100644 index 0000000..634baf2 --- /dev/null +++ b/PrjJava/OCA7/Math1/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}/Math1.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.7 +javac.target=1.7 +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=javaapplication69.JavaApplication69 +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/PrjJava/OCA7/Math1/nbproject/project.xml b/PrjJava/OCA7/Math1/nbproject/project.xml new file mode 100644 index 0000000..b8a6daa --- /dev/null +++ b/PrjJava/OCA7/Math1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Math1 + + + + + + + + + diff --git a/PrjJava/OCA7/Math1/src/javaapplication69/JavaApplication69.java b/PrjJava/OCA7/Math1/src/javaapplication69/JavaApplication69.java new file mode 100644 index 0000000..bf4070f --- /dev/null +++ b/PrjJava/OCA7/Math1/src/javaapplication69/JavaApplication69.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package javaapplication69; + +/** + * + * @author andad + */ +public class JavaApplication69 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/OracleSite1/build.xml b/PrjJava/OCA7/OracleSite1/build.xml new file mode 100644 index 0000000..79acfe9 --- /dev/null +++ b/PrjJava/OCA7/OracleSite1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project OracleSite1. + + + diff --git a/PrjJava/OCA7/OracleSite1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/OracleSite1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/OracleSite1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/OracleSite1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/OracleSite1/build/classes/oraclesite1/OracleSite1.class b/PrjJava/OCA7/OracleSite1/build/classes/oraclesite1/OracleSite1.class new file mode 100644 index 0000000000000000000000000000000000000000..b0ef58519fdaf60af62837ec2120cfb5dd0b1f23 GIT binary patch literal 944 zcmaJ8UUGaX@ZwdbsZ#k67 z)x9=%n%tKvo+RTzPYxLt>YmTrju^^7RPFuHZz#V;fPF4qhLZKAe!#zS+u?54ZUnw` zyS0#z`(1*_PdO%W{iBbf9WWH4VtyFdDnS^IAaK3mjr_KFCzZnNIpQ_NWnd0DQXcYN zC^fK-s(}quHEbGqgvSi?f6IF_l1@kX40Dl+<)O)a!A&_d4Lre91JCeWc`ppqu%+Rp zfo;4Zq<>6To9%$HJ=)~GPu6~XR=m43hu!=klQ{!c+F@S@kFN3kwnB*=W& z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/OracleSite1/nbproject/genfiles.properties b/PrjJava/OCA7/OracleSite1/nbproject/genfiles.properties new file mode 100644 index 0000000..b183d42 --- /dev/null +++ b/PrjJava/OCA7/OracleSite1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=74529b89 +build.xml.script.CRC32=fedc1393 +build.xml.stylesheet.CRC32=8064a381@1.79.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=74529b89 +nbproject/build-impl.xml.script.CRC32=d52d416e +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/OracleSite1/nbproject/private/private.properties b/PrjJava/OCA7/OracleSite1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/OracleSite1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/OracleSite1/nbproject/private/private.xml b/PrjJava/OCA7/OracleSite1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/OracleSite1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/OracleSite1/nbproject/project.properties b/PrjJava/OCA7/OracleSite1/nbproject/project.properties new file mode 100644 index 0000000..e3832e4 --- /dev/null +++ b/PrjJava/OCA7/OracleSite1/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}/OracleSite1.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.7 +javac.target=1.7 +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=oraclesite1.OracleSite1 +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/PrjJava/OCA7/OracleSite1/nbproject/project.xml b/PrjJava/OCA7/OracleSite1/nbproject/project.xml new file mode 100644 index 0000000..f4c89ee --- /dev/null +++ b/PrjJava/OCA7/OracleSite1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + OracleSite1 + + + + + + + + + diff --git a/PrjJava/OCA7/OracleSite1/src/oraclesite1/OracleSite1.java b/PrjJava/OCA7/OracleSite1/src/oraclesite1/OracleSite1.java new file mode 100644 index 0000000..8770473 --- /dev/null +++ b/PrjJava/OCA7/OracleSite1/src/oraclesite1/OracleSite1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package oraclesite1; + +import java.awt.Rectangle; + +/** + * + * @author andad + */ +public class OracleSite1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + Rectangle myRect= new Rectangle(); + myRect.width = 40; + myRect.height = 50; + System.out.println("myRect's area is " + myRect.getHeight()); + } + +} diff --git a/PrjJava/OCA7/OracleStudy1/build.xml b/PrjJava/OCA7/OracleStudy1/build.xml new file mode 100644 index 0000000..58b1381 --- /dev/null +++ b/PrjJava/OCA7/OracleStudy1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project OracleStudy1. + + + diff --git a/PrjJava/OCA7/OracleStudy1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/OracleStudy1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/OracleStudy1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/OracleStudy1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/OracleStudy1/build/classes/oraclestudy1/OracleStudy1.class b/PrjJava/OCA7/OracleStudy1/build/classes/oraclestudy1/OracleStudy1.class new file mode 100644 index 0000000000000000000000000000000000000000..4c52cb4cd2b620c58465514bad6aa7c04fea64d8 GIT binary patch literal 668 zcmZ`%O;6iE6r4?hodnZBLIN}`gs(Pmh=n+UdZ|*xZ>}Er<0%ONH zY&$ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/OracleStudy1/nbproject/genfiles.properties b/PrjJava/OCA7/OracleStudy1/nbproject/genfiles.properties new file mode 100644 index 0000000..c2b08b7 --- /dev/null +++ b/PrjJava/OCA7/OracleStudy1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=61ed61db +build.xml.script.CRC32=2daca8e6 +build.xml.stylesheet.CRC32=8064a381@1.79.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=61ed61db +nbproject/build-impl.xml.script.CRC32=50349f8d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/OracleStudy1/nbproject/private/private.properties b/PrjJava/OCA7/OracleStudy1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/OracleStudy1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/OracleStudy1/nbproject/private/private.xml b/PrjJava/OCA7/OracleStudy1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/OracleStudy1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/OracleStudy1/nbproject/project.properties b/PrjJava/OCA7/OracleStudy1/nbproject/project.properties new file mode 100644 index 0000000..6a6d50e --- /dev/null +++ b/PrjJava/OCA7/OracleStudy1/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}/OracleStudy1.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.7 +javac.target=1.7 +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=oraclestudy1.OracleStudy1 +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/PrjJava/OCA7/OracleStudy1/nbproject/project.xml b/PrjJava/OCA7/OracleStudy1/nbproject/project.xml new file mode 100644 index 0000000..29930ce --- /dev/null +++ b/PrjJava/OCA7/OracleStudy1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + OracleStudy1 + + + + + + + + + diff --git a/PrjJava/OCA7/OracleStudy1/src/oraclestudy1/OracleStudy1.java b/PrjJava/OCA7/OracleStudy1/src/oraclestudy1/OracleStudy1.java new file mode 100644 index 0000000..e2733c8 --- /dev/null +++ b/PrjJava/OCA7/OracleStudy1/src/oraclestudy1/OracleStudy1.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package oraclestudy1; + +/** + * + * @author andad + */ +public class OracleStudy1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int b = 3; + if (!(b > 3)) { + System.out.println("square "); + } + { + System.out.println("circle "); + } + System.out.println("..."); + } + +} diff --git a/PrjJava/OCA7/PairswithSpecificDifference/build.xml b/PrjJava/OCA7/PairswithSpecificDifference/build.xml new file mode 100644 index 0000000..95f7080 --- /dev/null +++ b/PrjJava/OCA7/PairswithSpecificDifference/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PairswithSpecificDifference. + + + diff --git a/PrjJava/OCA7/PairswithSpecificDifference/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/PairswithSpecificDifference/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/PairswithSpecificDifference/build/classes/.netbeans_update_resources b/PrjJava/OCA7/PairswithSpecificDifference/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/PairswithSpecificDifference/build/classes/pairswithspecificdifference/PairswithSpecificDifference.class b/PrjJava/OCA7/PairswithSpecificDifference/build/classes/pairswithspecificdifference/PairswithSpecificDifference.class new file mode 100644 index 0000000000000000000000000000000000000000..15560d3c0124839cef500d468766cf8c7e98bc2d GIT binary patch literal 1098 zcmbVL+fEZv6kVq?(!Y>8uV*$4!RloNz_3z@V7p>kR56uk0{%=7j64HmW7Zf6hx4 zLb`IE%`5BN7cy^wYOpQp3^TbJ7k>Sf2)64r#}=EyE{n}g$9G)YvDQwwLW_I+i<_kb zt6aDYedb1Phri@jg}Yl;A@GH}H7gAOMn8-ns8HL^eprb{X0W0k?Ob z@mgq8N0K34@EX4DJQ1>&(Q_(FxMSch?&+8|a33=a{r@^$Ziq_R z@eMoxwZul{!<>P6EXayQhUxzt5JTekS^3hAV+SWtBM=qqq3`oO8jD)@d}1_nV?_?_ zkD|g}J#eZtBCkP$-s2$)&sw7i2Q+7gSIKgBc*@@}gI<%O3SEzChWkc&t>(C8h9u>u z?yEHg+HTT3Mb4h5j|JZGl{561r-ig*?^!#pBMpOIeff)k$xEX(L77F7QPd{(!QO}T zMOvdF*nuv3HjV}8Mh|6e=tUnPviK`~Bq~J_JBSw*C0|q{`J$FM$`_+rzNoADoI0QR zh={U~${ecYw^;rFC6mfFq0*X3sV}nS(~o6Y(Z4yjIw| z9|zK)0%>rJjDV~Rl9^%jV*~>j#}K`S!&pQLCCay{YuUgAnM~s;sRpQ;>{8Vb#X+o* kI!Vn8W0h(KXf~G!Pe3_BTE_@u-?8+Knxrp*@CedB0SmqW2><{9 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/PairswithSpecificDifference/manifest.mf b/PrjJava/OCA7/PairswithSpecificDifference/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/PairswithSpecificDifference/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/PairswithSpecificDifference/nbproject/build-impl.xml b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/build-impl.xml new file mode 100644 index 0000000..eb542af --- /dev/null +++ b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/build-impl.xml @@ -0,0 +1,1450 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set platform.home + Must set platform.bootcp + Must set platform.java + Must set platform.javac + + The J2SE Platform is not correctly set up. + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. + Either open the project in the IDE and setup the Platform with the same name or add it manually. + For example like this: + ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) + or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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: + + ${platform.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/PrjJava/OCA7/PairswithSpecificDifference/nbproject/genfiles.properties b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/genfiles.properties new file mode 100644 index 0000000..6ee5784 --- /dev/null +++ b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5f74d2ff +build.xml.script.CRC32=2721dd77 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5f74d2ff +nbproject/build-impl.xml.script.CRC32=375680c8 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/PrjJava/OCA7/PairswithSpecificDifference/nbproject/private/private.properties b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/private/private.properties new file mode 100644 index 0000000..79325cb --- /dev/null +++ b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.2\\build.properties diff --git a/PrjJava/OCA7/PairswithSpecificDifference/nbproject/private/private.xml b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/PairswithSpecificDifference/nbproject/project.properties b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/project.properties new file mode 100644 index 0000000..6a4e8bc --- /dev/null +++ b/PrjJava/OCA7/PairswithSpecificDifference/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}/PairswithSpecificDifference.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.7 +javac.target=1.7 +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=pairswithspecificdifference.PairswithSpecificDifference +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=JDK_1.7 +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/PrjJava/OCA7/PairswithSpecificDifference/nbproject/project.xml b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/project.xml new file mode 100644 index 0000000..d094c36 --- /dev/null +++ b/PrjJava/OCA7/PairswithSpecificDifference/nbproject/project.xml @@ -0,0 +1,16 @@ + + + org.netbeans.modules.java.j2seproject + + + PairswithSpecificDifference + + + + + + + + + + diff --git a/PrjJava/OCA7/PairswithSpecificDifference/src/pairswithspecificdifference/PairswithSpecificDifference.java b/PrjJava/OCA7/PairswithSpecificDifference/src/pairswithspecificdifference/PairswithSpecificDifference.java new file mode 100644 index 0000000..a411e8a --- /dev/null +++ b/PrjJava/OCA7/PairswithSpecificDifference/src/pairswithspecificdifference/PairswithSpecificDifference.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package pairswithspecificdifference; + +import java.util.Arrays; + +/** + * + * @author andad + */ +public class PairswithSpecificDifference { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + int[] arr = {0, -1, -2, 2, 1}; + int k = 1; + Arrays.sort(arr); + for(int i = 0;i + + + + + + + + + + Builds, tests, and runs the project Poli1. + + + diff --git a/PrjJava/OCA7/Poli1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Poli1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Poli1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Poli1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Poli1/build/classes/poli1/Poli1.class b/PrjJava/OCA7/Poli1/build/classes/poli1/Poli1.class new file mode 100644 index 0000000000000000000000000000000000000000..f5d82ec6739ee29166221927c1eaab05a36b8f92 GIT binary patch literal 563 zcmZutOH0E*7@SRGW7E_}eboAHRq!3uW5tW$DLz0ETTf{XaV1S8wn9DnkGv=-h-ZJ4 zIGc*~U_$oWZ+5j9Cx6E)o6+>NE`e?Yx;E$;+!&TSOPE&D{R6^b-n z848RqUphDLy=w<<=-a2QScZNjF>zy`VumSH8bR|kYR3)l zK&ohF;=8G=ESSg&7~MRz-(A(ff`vtOmi?1eV5k@HxPId`TE8O~wDlvD(9erhj|N&H z%hh6MvkKO})fb4T%kx%JXE|0o`MRI((AS^bxV?!G!^|>dQkA-5Aa8c zlQj4M_b{{bJ!Xd8kI%Pv07uwyV4z{cN7KTRgBF%ete9A3FivDD^HYXeyVGOP&(w`z zSPW$HU6XJ(z$m1T*WKmb3p5Mv|gB{+fSRMxbE`v5w3{Iq`*-)Iz!fEsm z#{8bUFkzWkbFq#M(mm{&*mSXlZ3eUQGkAqGhV%>O{q<0Kae?W(3kw8By> zRdAKbG>`I3@Pt-q{sR{?3Q?SruRSxCQ^+OLQMc2>9_sW;#nC`=SQKrl0?LeXeg75g zsiYl>MhUu@qq{p3P@bm>Sok&{m(2kC8Jb^vf&SCLAqwzF+W6JPuA0yv5Uaua0szrc AZvX%Q literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Poli1/build/classes/poli1/Y.class b/PrjJava/OCA7/Poli1/build/classes/poli1/Y.class new file mode 100644 index 0000000000000000000000000000000000000000..ac82a57ed75513ab37faa70fe6790a896a17e6e5 GIT binary patch literal 444 zcmZut%T9wp6g@*J6hw=y_5IwnE+ocZ}=!Bq~psmPeY!Ia<4&M-HR!M+u5*#8 zK;xtFi{s7H`PP+gA literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Poli1/build/classes/poli1/Z.class b/PrjJava/OCA7/Poli1/build/classes/poli1/Z.class new file mode 100644 index 0000000000000000000000000000000000000000..2550a04012428a44f4c48558a84aadd6157b43f9 GIT binary patch literal 444 zcmZut%SyvQ6g`u+NfV=ut@ZufwJr?e!bQc6;3|j^3DVu9hB_t5NIDVpuXLf{!VmDH z#G5o!7tZ27&TEGG`u_L?aDqJxI+jhe(P?7ELKmwB)(osO=w~7o>YSn0>jw<=3wakY zv^Dcw3rYcJ4i85CVU9V(>bgwg! zDqm$0Pw3{(KX4IPh~kudy_s + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Poli1/nbproject/genfiles.properties b/PrjJava/OCA7/Poli1/nbproject/genfiles.properties new file mode 100644 index 0000000..b6a1bc0 --- /dev/null +++ b/PrjJava/OCA7/Poli1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c99ac5f9 +build.xml.script.CRC32=c53a56a5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c99ac5f9 +nbproject/build-impl.xml.script.CRC32=784f83fd +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Poli1/nbproject/private/private.properties b/PrjJava/OCA7/Poli1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Poli1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Poli1/nbproject/private/private.xml b/PrjJava/OCA7/Poli1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Poli1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Poli1/nbproject/project.properties b/PrjJava/OCA7/Poli1/nbproject/project.properties new file mode 100644 index 0000000..98696d8 --- /dev/null +++ b/PrjJava/OCA7/Poli1/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}/Poli1.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.7 +javac.target=1.7 +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=poli1.Poli1 +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/PrjJava/OCA7/Poli1/nbproject/project.xml b/PrjJava/OCA7/Poli1/nbproject/project.xml new file mode 100644 index 0000000..dcdd052 --- /dev/null +++ b/PrjJava/OCA7/Poli1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Poli1 + + + + + + + + + diff --git a/PrjJava/OCA7/Poli1/src/poli1/Poli1.java b/PrjJava/OCA7/Poli1/src/poli1/Poli1.java new file mode 100644 index 0000000..6831bcb --- /dev/null +++ b/PrjJava/OCA7/Poli1/src/poli1/Poli1.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package poli1; + +/** + * + * @author andad + */ +public class Poli1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + X z = new Z(); + X y = new Y(); + Z y2 = (Z)y; + z.go(); + y.go(); + y2.go(); + } + +} diff --git a/PrjJava/OCA7/Poli1/src/poli1/X.java b/PrjJava/OCA7/Poli1/src/poli1/X.java new file mode 100644 index 0000000..1189179 --- /dev/null +++ b/PrjJava/OCA7/Poli1/src/poli1/X.java @@ -0,0 +1,18 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package poli1; + +/** + * + * @author andad + */ +public class X { + + void go() + { + System.out.println("x "); + } +} diff --git a/PrjJava/OCA7/Poli1/src/poli1/Y.java b/PrjJava/OCA7/Poli1/src/poli1/Y.java new file mode 100644 index 0000000..aff6193 --- /dev/null +++ b/PrjJava/OCA7/Poli1/src/poli1/Y.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package poli1; + +/** + * + * @author andad + */ +public class Y extends X{ + void go() + { + System.out.println("Y "); + } +} diff --git a/PrjJava/OCA7/Poli1/src/poli1/Z.java b/PrjJava/OCA7/Poli1/src/poli1/Z.java new file mode 100644 index 0000000..fa38259 --- /dev/null +++ b/PrjJava/OCA7/Poli1/src/poli1/Z.java @@ -0,0 +1,17 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package poli1; + +/** + * + * @author andad + */ +public class Z extends X{ + void bo() + { + System.out.println("z "); + } +} diff --git a/PrjJava/OCA7/Poli2/build.xml b/PrjJava/OCA7/Poli2/build.xml new file mode 100644 index 0000000..292c30b --- /dev/null +++ b/PrjJava/OCA7/Poli2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Poli2. + + + diff --git a/PrjJava/OCA7/Poli2/manifest.mf b/PrjJava/OCA7/Poli2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Poli2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Poli2/nbproject/build-impl.xml b/PrjJava/OCA7/Poli2/nbproject/build-impl.xml new file mode 100644 index 0000000..cf1d627 --- /dev/null +++ b/PrjJava/OCA7/Poli2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Poli2/nbproject/genfiles.properties b/PrjJava/OCA7/Poli2/nbproject/genfiles.properties new file mode 100644 index 0000000..2a2645a --- /dev/null +++ b/PrjJava/OCA7/Poli2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d1ae5193 +build.xml.script.CRC32=b4ffafbb +build.xml.stylesheet.CRC32=8064a381@1.79.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=d1ae5193 +nbproject/build-impl.xml.script.CRC32=e9f2a370 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Poli2/nbproject/private/private.properties b/PrjJava/OCA7/Poli2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Poli2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Poli2/nbproject/private/private.xml b/PrjJava/OCA7/Poli2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Poli2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Poli2/nbproject/project.properties b/PrjJava/OCA7/Poli2/nbproject/project.properties new file mode 100644 index 0000000..af1d932 --- /dev/null +++ b/PrjJava/OCA7/Poli2/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}/Poli2.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.7 +javac.target=1.7 +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=poli2.Poli2 +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/PrjJava/OCA7/Poli2/nbproject/project.xml b/PrjJava/OCA7/Poli2/nbproject/project.xml new file mode 100644 index 0000000..dcb75c7 --- /dev/null +++ b/PrjJava/OCA7/Poli2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Poli2 + + + + + + + + + diff --git a/PrjJava/OCA7/Poli2/src/poli2/A.java b/PrjJava/OCA7/Poli2/src/poli2/A.java new file mode 100644 index 0000000..c57f4d9 --- /dev/null +++ b/PrjJava/OCA7/Poli2/src/poli2/A.java @@ -0,0 +1,15 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package poli2; + +/** + * + * @author andad + */ +public class A { + + +} diff --git a/PrjJava/OCA7/Poli2/src/poli2/Poli2.java b/PrjJava/OCA7/Poli2/src/poli2/Poli2.java new file mode 100644 index 0000000..b92a07c --- /dev/null +++ b/PrjJava/OCA7/Poli2/src/poli2/Poli2.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package poli2; + +/** + * + * @author andad + */ +public class Poli2 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/PrjJava/OCA7/Question12/build.xml b/PrjJava/OCA7/Question12/build.xml new file mode 100644 index 0000000..f4e5f8f --- /dev/null +++ b/PrjJava/OCA7/Question12/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Question12 - TreeMap. + + + diff --git a/PrjJava/OCA7/Question12/manifest.mf b/PrjJava/OCA7/Question12/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Question12/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Question12/nbproject/build-impl.xml b/PrjJava/OCA7/Question12/nbproject/build-impl.xml new file mode 100644 index 0000000..8d3b0d3 --- /dev/null +++ b/PrjJava/OCA7/Question12/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Question12/nbproject/genfiles.properties b/PrjJava/OCA7/Question12/nbproject/genfiles.properties new file mode 100644 index 0000000..dac58b8 --- /dev/null +++ b/PrjJava/OCA7/Question12/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2da9481f +build.xml.script.CRC32=2f2bf89b +build.xml.stylesheet.CRC32=8064a381@1.79.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=2da9481f +nbproject/build-impl.xml.script.CRC32=3d529038 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Question12/nbproject/private/private.properties b/PrjJava/OCA7/Question12/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Question12/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Question12/nbproject/private/private.xml b/PrjJava/OCA7/Question12/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Question12/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Question12/nbproject/project.properties b/PrjJava/OCA7/Question12/nbproject/project.properties new file mode 100644 index 0000000..fccd857 --- /dev/null +++ b/PrjJava/OCA7/Question12/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}/Question12_-_TreeMap.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.7 +javac.target=1.7 +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=question12.Question12 +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/PrjJava/OCA7/Question12/nbproject/project.xml b/PrjJava/OCA7/Question12/nbproject/project.xml new file mode 100644 index 0000000..957d4dc --- /dev/null +++ b/PrjJava/OCA7/Question12/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Question12 - TreeMap + + + + + + + + + diff --git a/PrjJava/OCA7/Question12/src/question12/Question12.java b/PrjJava/OCA7/Question12/src/question12/Question12.java new file mode 100644 index 0000000..f3efcdf --- /dev/null +++ b/PrjJava/OCA7/Question12/src/question12/Question12.java @@ -0,0 +1,37 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question12; + +import java.util.Map; +import java.util.TreeMap; + +/** + * + * @author anda + */ +public class Question12 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + Integer freq; + String[] words = new String[] {"aaa", "bbb", "ccc", "aaa"}; + Map m = new TreeMap(); + for (String word: words) + { + freq = m.get(word); + m.put(word, freq == null ? 1 : freq + 1); + + } + System.out.println(m); + } + + + } + + diff --git a/PrjJava/OCA7/Question27/build.xml b/PrjJava/OCA7/Question27/build.xml new file mode 100644 index 0000000..585ca1b --- /dev/null +++ b/PrjJava/OCA7/Question27/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Question27. + + + diff --git a/PrjJava/OCA7/Question27/build/classes/question27/A.class b/PrjJava/OCA7/Question27/build/classes/question27/A.class new file mode 100644 index 0000000000000000000000000000000000000000..4dbe861cf00557d263473c3acdf4d0d4e87209e6 GIT binary patch literal 533 zcmZvY%SyvQ6o&svFKJ@z)q1a5SFNA{U35_qir7`DLM8iYI@Bq-)HD%&EL|wL@Bw@% z@g%J`aA4-lxqSbeGw&a-ZvalPuOo|!h80wESkd%n#biw83H7r}IRBWDcx-fbjiq4d4umf2}DXwyJ?VV}DM z>KFI6n8wMOiY@X7eiYcED`VAc=V-$3xB(S8725`C*kMpD?nL6Sqhi;<9_kFn?*|x) zF=RU28=IHIiLgV4S`w1J84LIQuV~RBWo)Vo=V6FXD5CT%$Q)kS~K< z&QP$0&%22?ZsT=v5z`~x!B<^ zykMxMCYI~?W2>9EZZDwjJp66UP@ES`y=mSci5aSP#)!b`rBCk1A$L5Qpz=?eLCxlJ zebP0i!mKB$ggO)SyfoEA`ACPbe~ pVkr~1GBZGbg;dVHL7p2JL;*!AEiIVnGm`>wGFcUAm*_5``~%oBYEA$E literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Question27/build/classes/question27/Question27.class b/PrjJava/OCA7/Question27/build/classes/question27/Question27.class new file mode 100644 index 0000000000000000000000000000000000000000..7e5c88a03d0f059630e4900a2d899019eafb26ad GIT binary patch literal 557 zcmZut+e*Vg6r4@drj6;vUebEEZ&ks7KKM`(swfDdA{9Y=+Qy}BX_K0!;&1t4LBS93 zqr{U`nhFN8bIzPSGn0IMzkdQaL|sP;H4Q5|6x4LAVok%kh7E?)v2PME=ryTUQ2hbIByXDl literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Question27/manifest.mf b/PrjJava/OCA7/Question27/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Question27/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Question27/nbproject/build-impl.xml b/PrjJava/OCA7/Question27/nbproject/build-impl.xml new file mode 100644 index 0000000..ef280dc --- /dev/null +++ b/PrjJava/OCA7/Question27/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Question27/nbproject/genfiles.properties b/PrjJava/OCA7/Question27/nbproject/genfiles.properties new file mode 100644 index 0000000..06f702e --- /dev/null +++ b/PrjJava/OCA7/Question27/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b8d172c8 +build.xml.script.CRC32=769d3bc0 +build.xml.stylesheet.CRC32=8064a381@1.79.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=b8d172c8 +nbproject/build-impl.xml.script.CRC32=1b7e0743 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Question27/nbproject/private/private.properties b/PrjJava/OCA7/Question27/nbproject/private/private.properties new file mode 100644 index 0000000..2cbfc81 --- /dev/null +++ b/PrjJava/OCA7/Question27/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\anda\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Question27/nbproject/private/private.xml b/PrjJava/OCA7/Question27/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Question27/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Question27/nbproject/project.properties b/PrjJava/OCA7/Question27/nbproject/project.properties new file mode 100644 index 0000000..4781234 --- /dev/null +++ b/PrjJava/OCA7/Question27/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}/Question27.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=question27.Question27 +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/PrjJava/OCA7/Question27/nbproject/project.xml b/PrjJava/OCA7/Question27/nbproject/project.xml new file mode 100644 index 0000000..77d0e8e --- /dev/null +++ b/PrjJava/OCA7/Question27/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Question27 + + + + + + + + + diff --git a/PrjJava/OCA7/Question27/src/question27/A.java b/PrjJava/OCA7/Question27/src/question27/A.java new file mode 100644 index 0000000..dad872f --- /dev/null +++ b/PrjJava/OCA7/Question27/src/question27/A.java @@ -0,0 +1,20 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question27; + +import java.io.FileNotFoundException; + +/** + * + * @author anda + */ +public class A { + + public void printName() throws FileNotFoundException { + System.out.println("Value-A"); + } + +} diff --git a/PrjJava/OCA7/Question27/src/question27/B.java b/PrjJava/OCA7/Question27/src/question27/B.java new file mode 100644 index 0000000..cccc213 --- /dev/null +++ b/PrjJava/OCA7/Question27/src/question27/B.java @@ -0,0 +1,19 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question27; + +/** + * + * @author anda + */ +public class B extends A{ + + public void printName() throws NullPointerException + { + System.out.println("System-B"); + } + +} diff --git a/PrjJava/OCA7/Question27/src/question27/Question27.java b/PrjJava/OCA7/Question27/src/question27/Question27.java new file mode 100644 index 0000000..c2772ec --- /dev/null +++ b/PrjJava/OCA7/Question27/src/question27/Question27.java @@ -0,0 +1,21 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package question27; + +/** + * + * @author anda + */ +public class Question27 { + + + public static void main(String[] args) throws Exception + { + A a = new B(); + a.printName(); + } + +} diff --git a/PrjJava/OCA7/Tricky/Args1/build.xml b/PrjJava/OCA7/Tricky/Args1/build.xml new file mode 100644 index 0000000..d352051 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Args1. + + + diff --git a/PrjJava/OCA7/Tricky/Args1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/Args1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/Args1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args1/build/classes/args1/Args1.class b/PrjJava/OCA7/Tricky/Args1/build/classes/args1/Args1.class new file mode 100644 index 0000000000000000000000000000000000000000..7ab3124254d70d35d410711406372edc203f5590 GIT binary patch literal 842 zcmZvaOLNjt6vzLE1OjPFD-Kn7Do!i32NYFX5CxPXfqF6l^P zJ&VgyUyY_tjLld$I!mTWI@UyKJGH+n5PK3fWQ*cE{I$SZ}Wo5*0=mtH)hB?2I#+>Q6K~BuZ;dG~j6>~n2BZ|p%vqXY6lzg9mQ0X*c zo8Qd>KO_02z-vdIw)Fm%qOy zSApc7V=|bKV@4ij)NmGeSU+Ho?4``@*Z5q + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/Args1/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/Args1/nbproject/genfiles.properties new file mode 100644 index 0000000..5768dfe --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=dce1294b +build.xml.script.CRC32=2d728adb +build.xml.stylesheet.CRC32=8064a381@1.79.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=dce1294b +nbproject/build-impl.xml.script.CRC32=2b17d8d4 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/Args1/nbproject/private/config.properties b/PrjJava/OCA7/Tricky/Args1/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args1/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/Args1/nbproject/private/private.properties new file mode 100644 index 0000000..b0ad727 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args1/nbproject/private/private.properties @@ -0,0 +1,6 @@ +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/Args1/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/Args1/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args1/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Tricky/Args1/nbproject/project.properties b/PrjJava/OCA7/Tricky/Args1/nbproject/project.properties new file mode 100644 index 0000000..f3b2058 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args1/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Args1 +application.vendor=andad +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}/Args1.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=args1.Args1 +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/PrjJava/OCA7/Tricky/Args1/nbproject/project.xml b/PrjJava/OCA7/Tricky/Args1/nbproject/project.xml new file mode 100644 index 0000000..3ce2edd --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Args1 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Args1/src/args1/Args1.java b/PrjJava/OCA7/Tricky/Args1/src/args1/Args1.java new file mode 100644 index 0000000..d7ff5e1 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args1/src/args1/Args1.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package args1; + +/** + * + * @author andad + */ +public class Args1 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + //args = null; + args = new String[] {null}; + args[0] = "null"; + for (String a : args) { + //for(int i = 0; i< args.length; i++) + System.out.println(" " + a); + } + } + +} diff --git a/PrjJava/OCA7/Tricky/Args2/build.xml b/PrjJava/OCA7/Tricky/Args2/build.xml new file mode 100644 index 0000000..a2972de --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Args2. + + + diff --git a/PrjJava/OCA7/Tricky/Args2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/Args2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/Args2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args2/build/classes/args2/Args2.class b/PrjJava/OCA7/Tricky/Args2/build/classes/args2/Args2.class new file mode 100644 index 0000000000000000000000000000000000000000..e11357d05fcf03509d6b92f6c48170f00a6f5dfa GIT binary patch literal 815 zcmZuvU279T6g`u#O}5)@o0!<7RZ~Bc7`vhm7Ak^>f{;{ULqUAnq(d?_*$tbGAAiL^ z;B$PipwNPk{wVRxwoOxT7w*iQd*K@{QjEtRxhf(=^n~nbg4mS5C)%4 ztz00wUnY?p(fnXa`k5yxaNg3Zh>l5bL{Cn2UWPf(Sd)e{x>#E%3A4tu9 zA^k3&If8N0(pZ+*dF~tR_W8bfGD9k^yw2)2*7>I6bCc1gWW6T20~)dTJo6QHE)Xk{ yeHCTKEn;;|y}Hva)YoTYF8 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Tricky/Args2/manifest.mf b/PrjJava/OCA7/Tricky/Args2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Tricky/Args2/nbproject/build-impl.xml b/PrjJava/OCA7/Tricky/Args2/nbproject/build-impl.xml new file mode 100644 index 0000000..9d79972 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/Args2/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/Args2/nbproject/genfiles.properties new file mode 100644 index 0000000..5824446 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c4d5bd21 +build.xml.script.CRC32=5cb773c5 +build.xml.stylesheet.CRC32=8064a381@1.79.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=c4d5bd21 +nbproject/build-impl.xml.script.CRC32=baaaf859 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/Args2/nbproject/private/config.properties b/PrjJava/OCA7/Tricky/Args2/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args2/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/Args2/nbproject/private/private.properties new file mode 100644 index 0000000..c0cd411 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args2/nbproject/private/private.properties @@ -0,0 +1,6 @@ +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties diff --git a/PrjJava/OCA7/Tricky/Args2/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/Args2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Args2/nbproject/project.properties b/PrjJava/OCA7/Tricky/Args2/nbproject/project.properties new file mode 100644 index 0000000..69d68b8 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args2/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Args2 +application.vendor=andad +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}/Args2.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +excludes= +includes=** +jar.compress=true +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.7 +javac.target=1.7 +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=args2.Args2 +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/PrjJava/OCA7/Tricky/Args2/nbproject/project.xml b/PrjJava/OCA7/Tricky/Args2/nbproject/project.xml new file mode 100644 index 0000000..28c1aaa --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Args2 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Args2/src/args2/Args2.java b/PrjJava/OCA7/Tricky/Args2/src/args2/Args2.java new file mode 100644 index 0000000..e3fe838 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args2/src/args2/Args2.java @@ -0,0 +1,30 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package args2; + +/** + * + * @author andad + */ +public class Args2 { + + + public static void main(String[] args) { + + try { + if (args.length == 0) { + return; + } else { + throw new Exception("Some Exception"); + } + } catch (Exception e) { + System.out.println("Exception in Main"); + } finally { + System.out.println("The end"); + } + } + +} diff --git a/PrjJava/OCA7/Tricky/Args3/build.xml b/PrjJava/OCA7/Tricky/Args3/build.xml new file mode 100644 index 0000000..8015fc6 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Args3. + + + diff --git a/PrjJava/OCA7/Tricky/Args3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/Args3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/Args3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args3/build/classes/args3/Args3.class b/PrjJava/OCA7/Tricky/Args3/build/classes/args3/Args3.class new file mode 100644 index 0000000000000000000000000000000000000000..ae8c67d502d92fa61fa32625223ea58a843dd27d GIT binary patch literal 680 zcmZuvO;6iE6r7Ds96N^4qz=&V*_JfP0UtPmDi9KpA$8p#Vl2h3o5Gl9go*bOXMCp18n(37q3Cy=; z(jV>mhdS<2B$O%=s5UOz*Yb<>2QupWoitHVe=jr9bb-n<#{%}19G%EShGd9yig!}k z`}{!;r=CtH9w)uvSm~~u%yLJ&xUk_^c;n(Nwk_0MyhDQw%54raJ&iPJ5XDnKp!lS5 zfyMvbe(GKay>tfZd>y4h$VJ6t9(a?{RP3K{u9VXSGUV))Ok)-nu!fp6;8MKClbuXl zvYpJ}|8|8fSp0?h$$_oIVJx!pnFaG)>mK5JcI-0dGtk96-`xoT3n;O&v4|H$^v5?8 z%Q4q~AlJHs(fSR`_y*J5uic_Zux#F8PUk$cRyU{yUZXr?g)P0LRuvwWu!a?Eqn0^V eC#oou12R1FJbG4H*)U26;sLJidx<~}%YOm5+KIgY literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Tricky/Args3/manifest.mf b/PrjJava/OCA7/Tricky/Args3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Tricky/Args3/nbproject/build-impl.xml b/PrjJava/OCA7/Tricky/Args3/nbproject/build-impl.xml new file mode 100644 index 0000000..2f89044 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/Args3/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/Args3/nbproject/genfiles.properties new file mode 100644 index 0000000..52dcf25 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ccc63107 +build.xml.script.CRC32=73f424cf +build.xml.stylesheet.CRC32=8064a381@1.79.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=ccc63107 +nbproject/build-impl.xml.script.CRC32=ca3e1822 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/Args3/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/Args3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/Args3/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/Args3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Tricky/Args3/nbproject/project.properties b/PrjJava/OCA7/Tricky/Args3/nbproject/project.properties new file mode 100644 index 0000000..226dd36 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args3/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}/Args3.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.7 +javac.target=1.7 +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=args3.Args3 +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/PrjJava/OCA7/Tricky/Args3/nbproject/project.xml b/PrjJava/OCA7/Tricky/Args3/nbproject/project.xml new file mode 100644 index 0000000..024c8c9 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Args3 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Args3/src/args3/Args3.java b/PrjJava/OCA7/Tricky/Args3/src/args3/Args3.java new file mode 100644 index 0000000..d2cab23 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args3/src/args3/Args3.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package args3; + +/** + * + * @author andad + */ +public class Args3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + System.out.println(args); + boolean hasParams = (args == null ? false : true); + // hasParam is true, teapa + if(hasParams){ + System.out.println("has params"); + }{ + System.out.println("no params"); + } + } + +} diff --git a/PrjJava/OCA7/Tricky/Args4/build.xml b/PrjJava/OCA7/Tricky/Args4/build.xml new file mode 100644 index 0000000..1d86b4f --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args4/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Args4. + + + diff --git a/PrjJava/OCA7/Tricky/Args4/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/Args4/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args4/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/Args4/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args4/build/classes/args4/Args4.class b/PrjJava/OCA7/Tricky/Args4/build/classes/args4/Args4.class new file mode 100644 index 0000000000000000000000000000000000000000..2c1239a4b7235ee575c7226fa34c466b14fcc328 GIT binary patch literal 926 zcmZuvU31bv6g>-+gpjtF7U~xYegfJ?X|*cVjyhT%@M8w2GwRa7=qfL;iJF6 zXMLbEI^z%UM>*b2&;~U#xx0Jr*?Z33-5)={eh09Q+XfbJT1Ux18E15y&EOo)>$qUx zA}SiH26UCLsqvBumo=fIxJF>*z@%@sCo4947fh~q? z?5qsA!_7}Rd!ifAu@0d>)@O)OC&-C-Gv+QeB43I1DJs*bzL?#!KMKTvZb^ROLsHSXj$A!aUurVS!NJ&+N^uw1GB zLu}Aar6H7EVBLbF@r&R_8tWXiP`2$j6 zu31agt;7V$kJzlG>Q*Y8E_}h9m7YNRgepzHL4SULjAcxaB@)F6%rKi(M1nP?pM=ss tP7XloSyC;KZkaT<3Ee?4=BbIJI2N+$07#aL8cxtsnL0^-k>&}U`UQaz%{~AC literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Tricky/Args4/manifest.mf b/PrjJava/OCA7/Tricky/Args4/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args4/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Tricky/Args4/nbproject/build-impl.xml b/PrjJava/OCA7/Tricky/Args4/nbproject/build-impl.xml new file mode 100644 index 0000000..49bfa49 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args4/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/Args4/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/Args4/nbproject/genfiles.properties new file mode 100644 index 0000000..574478a --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args4/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=f4bc95f5 +build.xml.script.CRC32=bf3c81f9 +build.xml.stylesheet.CRC32=8064a381@1.79.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=f4bc95f5 +nbproject/build-impl.xml.script.CRC32=42a1bf02 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/Args4/nbproject/private/config.properties b/PrjJava/OCA7/Tricky/Args4/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Args4/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/Args4/nbproject/private/private.properties new file mode 100644 index 0000000..091d2fa --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args4/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args=closed +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/Args4/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/Args4/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args4/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Args4/nbproject/project.properties b/PrjJava/OCA7/Tricky/Args4/nbproject/project.properties new file mode 100644 index 0000000..4b83dab --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args4/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=Args4 +application.vendor=andad +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}/Args4.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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.7 +javac.target=1.7 +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=args4.Args4 +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/PrjJava/OCA7/Tricky/Args4/nbproject/project.xml b/PrjJava/OCA7/Tricky/Args4/nbproject/project.xml new file mode 100644 index 0000000..188de12 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args4/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Args4 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Args4/src/args4/Args4.java b/PrjJava/OCA7/Tricky/Args4/src/args4/Args4.java new file mode 100644 index 0000000..f7b7a8b --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args4/src/args4/Args4.java @@ -0,0 +1,31 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package args4; + +/** + * + * @author andad + */ +public class Args4 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) throws Exception { + + if (args[0].equals("open")) { + if (args[1].equals("someone")) { + System.out.println("Hello!"); + } else { + System.out.println("Go away " + args[1]); + } + } else { + System.out.println("Go away "); + } + + } + +} diff --git a/PrjJava/OCA7/Tricky/Args5/build.xml b/PrjJava/OCA7/Tricky/Args5/build.xml new file mode 100644 index 0000000..e617113 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Args5. + + + diff --git a/PrjJava/OCA7/Tricky/Args5/manifest.mf b/PrjJava/OCA7/Tricky/Args5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Tricky/Args5/nbproject/build-impl.xml b/PrjJava/OCA7/Tricky/Args5/nbproject/build-impl.xml new file mode 100644 index 0000000..9604597 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args5/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/Args5/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/Args5/nbproject/genfiles.properties new file mode 100644 index 0000000..c20529f --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=fcaf19d3 +build.xml.script.CRC32=907fd6f3 +build.xml.stylesheet.CRC32=8064a381@1.79.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=fcaf19d3 +nbproject/build-impl.xml.script.CRC32=32355f79 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/Args5/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/Args5/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args5/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/Args5/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/Args5/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args5/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Tricky/Args5/nbproject/project.properties b/PrjJava/OCA7/Tricky/Args5/nbproject/project.properties new file mode 100644 index 0000000..d1808af --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args5/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}/Args5.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.7 +javac.target=1.7 +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=args5.Args5 +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/PrjJava/OCA7/Tricky/Args5/nbproject/project.xml b/PrjJava/OCA7/Tricky/Args5/nbproject/project.xml new file mode 100644 index 0000000..d2d4c33 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Args5 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Args5/src/args5/Args5.java b/PrjJava/OCA7/Tricky/Args5/src/args5/Args5.java new file mode 100644 index 0000000..5a19c47 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Args5/src/args5/Args5.java @@ -0,0 +1,23 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package args5; + +/** + * + * @author andad + */ +public class Args5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + //int x = (int)args[0]; tipuri incompatibile + //System.out.println(x); + } + +} diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/build.xml b/PrjJava/OCA7/Tricky/FunWithArgs/build.xml new file mode 100644 index 0000000..fbf393d --- /dev/null +++ b/PrjJava/OCA7/Tricky/FunWithArgs/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project FunWithArgs. + + + diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/FunWithArgs/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/FunWithArgs/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/build/classes/funwithargs/FunWithArgs.class b/PrjJava/OCA7/Tricky/FunWithArgs/build/classes/funwithargs/FunWithArgs.class new file mode 100644 index 0000000000000000000000000000000000000000..bc1b49b38315437d790cdd7ee0feaf5f0911a93e GIT binary patch literal 741 zcmZ`$+fLg+6r9B-PF!<~2@s$ZT3Xyt)e?Ox2&t;XletK#K!~SJYQmz#MvmQx&w__i zwSo`mM^&A5A_b)IvU|?#oY|S(zyE$e0QdyYMiGl8EMeKkORQLUWy8dxg^J!+EvyL? zc2uO&T>-;;e=J~rjlYKiQ-O-YgRIjClW(%oCQ=UKrfeU}MCpD2n(2k=3RHvhEb6KB zLME-Qzn4WPtiQ0{reH^^NMPPOI}0x559zmM)bi_TqN3Jzexn`|m>qR4Fy}op=8nJ_ z;=CsXtSIdDRqcA5CCzY8=?K%0oPE?@9F$;Nc2Z#31vwTuE}aNY=ycWpu;h~a literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/manifest.mf b/PrjJava/OCA7/Tricky/FunWithArgs/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/FunWithArgs/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/build-impl.xml b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/build-impl.xml new file mode 100644 index 0000000..e3b0b40 --- /dev/null +++ b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/genfiles.properties new file mode 100644 index 0000000..50bd906 --- /dev/null +++ b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=35726c9c +build.xml.script.CRC32=fa424009 +build.xml.stylesheet.CRC32=8064a381@1.79.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=35726c9c +nbproject/build-impl.xml.script.CRC32=ba40060c +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/project.properties b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/project.properties new file mode 100644 index 0000000..fee6cee --- /dev/null +++ b/PrjJava/OCA7/Tricky/FunWithArgs/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}/FunWithArgs.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.7 +javac.target=1.7 +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=funwithargs.FunWithArgs +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/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/project.xml b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/project.xml new file mode 100644 index 0000000..18aa085 --- /dev/null +++ b/PrjJava/OCA7/Tricky/FunWithArgs/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + FunWithArgs + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/FunWithArgs/src/funwithargs/FunWithArgs.java b/PrjJava/OCA7/Tricky/FunWithArgs/src/funwithargs/FunWithArgs.java new file mode 100644 index 0000000..0164a0e --- /dev/null +++ b/PrjJava/OCA7/Tricky/FunWithArgs/src/funwithargs/FunWithArgs.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package funwithargs; + +/** + * + * @author andad + */ +public class FunWithArgs { + + /** + * @param args the command line arguments + */ + public static void main(String[][] args) { + System.out.println(args[0][1]); + } + + public static void main(String[] args) { + + FunWithArgs fwa = new FunWithArgs(); + String[][] newargs = {args}; + fwa.main(newargs); + + } + +} diff --git a/PrjJava/OCA7/Tricky/Null1/build.xml b/PrjJava/OCA7/Tricky/Null1/build.xml new file mode 100644 index 0000000..b596832 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Null1. + + + diff --git a/PrjJava/OCA7/Tricky/Null1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/Null1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Null1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/Null1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Null1/build/classes/null1/Null1.class b/PrjJava/OCA7/Tricky/Null1/build/classes/null1/Null1.class new file mode 100644 index 0000000000000000000000000000000000000000..37690d75fafed3483814e178a6e79e0715e2214b GIT binary patch literal 1056 zcmaJ=T~8BH5IuMMam#iQC|@dw6&1G#t%%#?;aU(_$DC&t_BQF7mg5PGnR}H3>%CQS zEw53khJoWXmK3cZ!)O=u;;3e~LdW+wEolV}k_`W&RUqYfb^C||NYY;ot=hXSs}*f0 zF+~*w^s3(uYW7P<-9nF6EUFz03}Q&)k%7l}VqhGXC7v31h9zanB)r)4&pHC*7uk6K z^|s^I?SQwAR>?2t4J>0tnNhWP{H~A)ho4}bc zj$e9B!9vp7R+GZS3-+c3WJ?vfRD0CyQZ#0X#7>%J%u>oLBlX@I!YQC z;n|1_Fp4ooed;xtQO#E)ggxRTBZ@{Fcjj1kCBjwRcakRPH + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/Null1/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/Null1/nbproject/genfiles.properties new file mode 100644 index 0000000..b1d4414 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=b8624766 +build.xml.script.CRC32=ce81a078 +build.xml.stylesheet.CRC32=8064a381@1.79.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=b8624766 +nbproject/build-impl.xml.script.CRC32=088c7318 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/Null1/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/Null1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/Null1/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/Null1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Null1/nbproject/project.properties b/PrjJava/OCA7/Tricky/Null1/nbproject/project.properties new file mode 100644 index 0000000..f0ba6c4 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null1/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}/Null1.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.7 +javac.target=1.7 +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=null1.Null1 +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/PrjJava/OCA7/Tricky/Null1/nbproject/project.xml b/PrjJava/OCA7/Tricky/Null1/nbproject/project.xml new file mode 100644 index 0000000..82a19c8 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Null1 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Null1/src/null1/Null1.java b/PrjJava/OCA7/Tricky/Null1/src/null1/Null1.java new file mode 100644 index 0000000..3b566a0 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null1/src/null1/Null1.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package null1; + +/** + * + * @author andad + */ +public class Null1 { + + public static int[ ] getArray() { + return null; + } + + public static void main(String[] args) { + + int index = 1; + try { + System.out.println(getArray()); + System.out.println(getArray()[0]); + int b = getArray()[index = 2]; + } catch (Exception e) { + System.out.println(e); + } +//empty catch + System.out.println("index = " + index); + } + +} diff --git a/PrjJava/OCA7/Tricky/Null2/build.xml b/PrjJava/OCA7/Tricky/Null2/build.xml new file mode 100644 index 0000000..a3354c0 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Null2. + + + diff --git a/PrjJava/OCA7/Tricky/Null2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/Null2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Null2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/Null2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Null2/build/classes/null2/Null2.class b/PrjJava/OCA7/Tricky/Null2/build/classes/null2/Null2.class new file mode 100644 index 0000000000000000000000000000000000000000..dfec5d7770473bf1b2f85e4b1418fa5f8eb651e1 GIT binary patch literal 1061 zcmZ{iU2hUW6o%gc$}Zb2Z9!J5wIA3jZI#vbvc|+1n`j7af*~3OGs_B#E;nap&c`$Jo-@CGfBy;K1Sb|O)CzcrJrnyD9^tWxx`_h=hZYRf zv^g^HgdzVz1VX)J$kq=!47t~`&ly&mBH*p@u*<{uUe_m2sVRG&-|<4B&#^P7F2#sp zr5TKU|JZG5drHh9SC_KSP^mYsyicC%d%?gx?_TkqI@Px@se%867;15WknWlAc}uD@ zIS%@7KKJ;w5;B-n)0Nwk>V)fwvT`8=R9Elx&A{Lm8tgH!*Qcw1YAA{ay$=e%%0 zcb8Mb3>np9u-bAQ_PBmK9io0Tv`ibzunj!5(SXZPob+O+!^07&GVsjCa~w15>*R)z zja2o2^XUnRhtIsri80tH!C_eYx5;y^_Lq_3Lz=xDE1K4{Ef*wNk#Oz}X`JPVL9I@> z8H{V4vIa>*Ckvv-z RGpViH)I_a%ht3)7{sGqa%^Uy# literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Tricky/Null2/manifest.mf b/PrjJava/OCA7/Tricky/Null2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Tricky/Null2/nbproject/build-impl.xml b/PrjJava/OCA7/Tricky/Null2/nbproject/build-impl.xml new file mode 100644 index 0000000..ad88216 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/Null2/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/Null2/nbproject/genfiles.properties new file mode 100644 index 0000000..0f2e869 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a056d30c +build.xml.script.CRC32=bf445966 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a056d30c +nbproject/build-impl.xml.script.CRC32=99315395 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/Null2/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/Null2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/Null2/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/Null2/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null2/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Null2/nbproject/project.properties b/PrjJava/OCA7/Tricky/Null2/nbproject/project.properties new file mode 100644 index 0000000..f3455b3 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null2/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}/Null2.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.7 +javac.target=1.7 +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=null2.Null2 +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/PrjJava/OCA7/Tricky/Null2/nbproject/project.xml b/PrjJava/OCA7/Tricky/Null2/nbproject/project.xml new file mode 100644 index 0000000..d50eb4e --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Null2 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Null2/src/null2/Null2.java b/PrjJava/OCA7/Tricky/Null2/src/null2/Null2.java new file mode 100644 index 0000000..a0b3ed0 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null2/src/null2/Null2.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package null2; + +/** + * + * @author andad + */ +public class Null2 { + + /** + * @param args the command line arguments + */ + public void method(Object o){ + System.out.println("Object Version"); + } + public void method(java.io.FileNotFoundException s){ + System.out.println("java.io.FileNotFoundException Version"); + } + public void method(java.io.IOException s){ + System.out.println("IOException Version"); + } + public static void main(String[] args) { + + Null2 tc = new Null2(); + tc.method(null); + } + +} diff --git a/PrjJava/OCA7/Tricky/Null3/build.xml b/PrjJava/OCA7/Tricky/Null3/build.xml new file mode 100644 index 0000000..ef2926d --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Null3. + + + diff --git a/PrjJava/OCA7/Tricky/Null3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/Null3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Null3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/Null3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/Null3/build/classes/null3/Null3.class b/PrjJava/OCA7/Tricky/Null3/build/classes/null3/Null3.class new file mode 100644 index 0000000000000000000000000000000000000000..ee696e530d1c22a80ebe0c46776430fd21702c36 GIT binary patch literal 691 zcmZuv!EVz)5PcgbapSl&Bs4TopitT-4b+Do3tW(pkW4`e%B81`S*6=LcI0dd{0+YV zhaz#{io`#Gc)LNORq@KR-Z%5+&CL4e?{D7$>|-y0kJ|y(ai@m6xVMCj0Qd30$EJ^m z0@Wuv)8?6g*X<1j%Fpw6N?;|{nL3AOjs~XC+4#VT$YM-d>pyPRF*AjgyTTL@n(s^M4U9}q zU&*N}!^f6DFv#acqF!iQYv2mmvl&7xp~i?1+t~5Z4bj7{Kuvu})YRxa^U)9S2#*Eo z7n%@g{L_CuI#G$a1TC83^iq|L&9R#v3%fuXe4H6Ip(CG@y1Hmb=g}KZ!H}-xgp+DH zmCLX|Wom=S>Rz2fZ^+xL@=onjg0TJ320TUF1^3GCSBTHfU8k)&Fht1ja1nrIT;r*R z6*P!g@_Q!pxOYVCJ?;NMeZ7B<(kIlvz-yMzQLza<*o19VXj>%QKp8igVvVcg1U42) ha2-v?l;~|SioXO_x!Mi^1xvrs@UbR*`Z_N1)*m4XiO2u| literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Tricky/Null3/manifest.mf b/PrjJava/OCA7/Tricky/Null3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Tricky/Null3/nbproject/build-impl.xml b/PrjJava/OCA7/Tricky/Null3/nbproject/build-impl.xml new file mode 100644 index 0000000..81dfe5c --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null3/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/Null3/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/Null3/nbproject/genfiles.properties new file mode 100644 index 0000000..b5b6a44 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a8455f2a +build.xml.script.CRC32=90070e6c +build.xml.stylesheet.CRC32=8064a381@1.79.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=a8455f2a +nbproject/build-impl.xml.script.CRC32=e9a5b3ee +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/Null3/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/Null3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/Null3/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/Null3/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null3/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Null3/nbproject/project.properties b/PrjJava/OCA7/Tricky/Null3/nbproject/project.properties new file mode 100644 index 0000000..becec88 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null3/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}/Null3.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.7 +javac.target=1.7 +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=null3.Null3 +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/PrjJava/OCA7/Tricky/Null3/nbproject/project.xml b/PrjJava/OCA7/Tricky/Null3/nbproject/project.xml new file mode 100644 index 0000000..a80be2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Null3 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/Null3/src/null3/Null3.java b/PrjJava/OCA7/Tricky/Null3/src/null3/Null3.java new file mode 100644 index 0000000..9847c49 --- /dev/null +++ b/PrjJava/OCA7/Tricky/Null3/src/null3/Null3.java @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package null3; + +/** + * + * @author andad + */ +public class Null3 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + String str = null; + int i=0; + //if ( (str != null) | ( i == str.length() ) ) + //if ( (str == null) | ( i == str.length() ) ) + if ( (str != null) || (i == str.length() ) ) + System.out.print("exception"); + } + +} diff --git a/PrjJava/OCA7/Tricky/PrintNull/build.xml b/PrjJava/OCA7/Tricky/PrintNull/build.xml new file mode 100644 index 0000000..05f32cc --- /dev/null +++ b/PrjJava/OCA7/Tricky/PrintNull/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project PrintNull. + + + diff --git a/PrjJava/OCA7/Tricky/PrintNull/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/PrintNull/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/PrintNull/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/PrintNull/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/PrintNull/build/classes/printnull/PrintNull.class b/PrjJava/OCA7/Tricky/PrintNull/build/classes/printnull/PrintNull.class new file mode 100644 index 0000000000000000000000000000000000000000..2cccf1d3ae83b2624b53f848fbc6443fdcbe9796 GIT binary patch literal 799 zcmZuvT~8BH5Ixf_-FCV1)fS`$6+gEitj0$T50H?UG+5>5>oDvo!eUbg>Npv6RCFpkJ~J!Luq*wxjI{B`q!oYB z=Y(o=80jDm65sbe80(m=w}et(#jTi$KB3|^nrHH>^n4lgy^Q4)Yan$%Sam;7N7H^} z)MthAj4;7zg-O&^N7^*F@Lze)=m-ehv++W}MT4+*SNkB*eosXLWmE*Vv18z+z%D8_ z_5?hsSa~I@rsDd70*PSu= z6gBRa3pd + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/PrintNull/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/PrintNull/nbproject/genfiles.properties new file mode 100644 index 0000000..47f8ae4 --- /dev/null +++ b/PrjJava/OCA7/Tricky/PrintNull/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e0859848 +build.xml.script.CRC32=7479426c +build.xml.stylesheet.CRC32=8064a381@1.79.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=e0859848 +nbproject/build-impl.xml.script.CRC32=5c43aa95 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/PrintNull/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/PrintNull/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/PrintNull/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/PrintNull/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/PrintNull/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/PrintNull/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/PrintNull/nbproject/project.properties b/PrjJava/OCA7/Tricky/PrintNull/nbproject/project.properties new file mode 100644 index 0000000..b47a6a9 --- /dev/null +++ b/PrjJava/OCA7/Tricky/PrintNull/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}/PrintNull.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.7 +javac.target=1.7 +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=printnull.PrintNull +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/PrjJava/OCA7/Tricky/PrintNull/nbproject/project.xml b/PrjJava/OCA7/Tricky/PrintNull/nbproject/project.xml new file mode 100644 index 0000000..8e673b9 --- /dev/null +++ b/PrjJava/OCA7/Tricky/PrintNull/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + PrintNull + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/PrintNull/src/printnull/PrintNull.java b/PrjJava/OCA7/Tricky/PrintNull/src/printnull/PrintNull.java new file mode 100644 index 0000000..db4e610 --- /dev/null +++ b/PrjJava/OCA7/Tricky/PrintNull/src/printnull/PrintNull.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package printnull; +import static java.lang.System.out; +/** + * + * @author andad + */ +public class PrintNull { + + /** + * @param args the command line arguments + */ + static String getString() { return null; } + + public static void main(String[] args) { + + //out.println(null + null); + //out.println(true + null); + //out.println(null+false); + //out.println(3+null); + out.println(getString() + true); + } + +} diff --git a/PrjJava/OCA7/Tricky/RealBrainer/build.xml b/PrjJava/OCA7/Tricky/RealBrainer/build.xml new file mode 100644 index 0000000..9085896 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project RealBrainer. + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/RealBrainer/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/RealBrainer/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/RealBrainer/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/RealBrainer/build/classes/realbrainer/RealBrainer.class b/PrjJava/OCA7/Tricky/RealBrainer/build/classes/realbrainer/RealBrainer.class new file mode 100644 index 0000000000000000000000000000000000000000..8f5c07c1b17583802c266d749fa6d9b9b8c4e145 GIT binary patch literal 818 zcmZ`%O>fgc5PfSWvE#TO#Kfg72`z2Yw1N7-v4{gmJ(&-Ys8Y*m9k#*6Nh-%df`7s< z;0%XW0*N2Mk3zh4f*Pc9@XYMY?0au!{p{w_z zu+Y$E*FsC6^f(^I*%JY?wRbE~cs6>g1eU^hs9sD4kxIKVN|>pJqn=ETWg6@AELq6j z#bbfhFjX>%Qprnc@S5?{X?#fh_^hkO8IfD3Il);X`vT%rV4;)A-uvhB;xF2O00MsN zO?WOp$RLr!e$dI%c-TM8ugbJfHt&YAfRRQ5PG>Ypd+I3GikIhv9B4on6}T4mT=?Jj8)OIZtXMP|0i44uO^b%;=&Dk8IbHUqSfnlGNf%3ubt@aNj9c`4Wq7pu@+Wp1^tBE4VY$(V6M+e!x1p sf*rOCmngTXq&{A1y|l2mk;8 literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Tricky/RealBrainer/manifest.mf b/PrjJava/OCA7/Tricky/RealBrainer/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Tricky/RealBrainer/nbproject/build-impl.xml b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/build-impl.xml new file mode 100644 index 0000000..dbd1e6e --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/RealBrainer/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/genfiles.properties new file mode 100644 index 0000000..684ba36 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a61ec638 +build.xml.script.CRC32=8cac6a78 +build.xml.stylesheet.CRC32=8064a381@1.79.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=a61ec638 +nbproject/build-impl.xml.script.CRC32=2030fc81 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/RealBrainer/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/RealBrainer/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer/nbproject/project.properties b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/project.properties new file mode 100644 index 0000000..a4d0616 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer/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}/RealBrainer.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.7 +javac.target=1.7 +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=realbrainer.RealBrainer +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/PrjJava/OCA7/Tricky/RealBrainer/nbproject/project.xml b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/project.xml new file mode 100644 index 0000000..53412a7 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + RealBrainer + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer/src/realbrainer/RealBrainer.java b/PrjJava/OCA7/Tricky/RealBrainer/src/realbrainer/RealBrainer.java new file mode 100644 index 0000000..eeda5de --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer/src/realbrainer/RealBrainer.java @@ -0,0 +1,40 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package realbrainer; + +/** + * + * @author andad + */ +public class RealBrainer { + + /** + * @param args the command line arguments + */ + public void ifTest(boolean flag) { + if (flag)//1 + { + if (flag)//2    + { + System.out.println("True False"); + } else// 3 + { + System.out.println("True True"); + } + } else // 4     + { + System.out.println("False False"); + } + } + + public static void main(String[] args) { + // TODO code application logic here + RealBrainer rb = new RealBrainer(); + rb.ifTest(true); + rb.ifTest(false); + } + +} diff --git a/PrjJava/OCA7/Tricky/RealBrainer1/build.xml b/PrjJava/OCA7/Tricky/RealBrainer1/build.xml new file mode 100644 index 0000000..597206b --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project RealBrainer1. + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer1/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/RealBrainer1/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/RealBrainer1/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/RealBrainer1/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/RealBrainer1/build/classes/realbrainer1/A.class b/PrjJava/OCA7/Tricky/RealBrainer1/build/classes/realbrainer1/A.class new file mode 100644 index 0000000000000000000000000000000000000000..d2cc7eba073f17492c4562058f112dfeb140de09 GIT binary patch literal 502 zcmZvY%SyvQ6o&t4(@qm(@AZDEyS591xNuPsRB#nktaLxAL!FW)GED^^OBWSf_y9hX zcrq=h&_L#L=KsHQ`TG9&1aOQ42OL!gdDLvw(I{Ze!8$fLHaWH!@~0|N$r(eo)$TJ` zm+^ySDETUq*VAzz^}Pr}id6l0Ai}=TD!ng)R`RGO3}s(S5e8b2NgsLVU54C~R#C#> z^x~-=$SajHDt9EiSjY}X;#s&Tz;;oB&9Uub2fGaHoMX?$KAH^0|6od$y1YUS z$pNMK6Y9N85;>+`;we2ed?Qw|cbgW|O9(cm+G!a{m0r`2dS8G}2y8%a Y$X2Zxa=#$Qgu%qFaM+kJyd3pL@$96SP%$H4;e!AG}>YltH!qWy?Q92pbyZ8 ziq39A3H2~{=G=SdcMtdD^YtCT0oEnrC?^p`#l))QT@Er;6Ey*$c{&2|BR$ssu|TxG z(-SaGCpV5j#@1u!d^+ko-lgih%;fFKK)F5T=|InuhJULc1gf^@D7Wt^e)9I47ZfLR z(IRrhyg;#jZQrR!)pXT(*zEeA9uHgLNaYO)Dg05UMJ143#J9 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/genfiles.properties new file mode 100644 index 0000000..27859f4 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=219658e9 +build.xml.script.CRC32=a07009d9 +build.xml.stylesheet.CRC32=8064a381@1.79.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=219658e9 +nbproject/build-impl.xml.script.CRC32=c82c2b4d +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/project.properties b/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/project.properties new file mode 100644 index 0000000..5885208 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer1/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}/RealBrainer1.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.7 +javac.target=1.7 +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=realbrainer1.RealBrainer1 +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/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/project.xml b/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/project.xml new file mode 100644 index 0000000..dbed172 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + RealBrainer1 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer1/src/realbrainer1/RealBrainer1.java b/PrjJava/OCA7/Tricky/RealBrainer1/src/realbrainer1/RealBrainer1.java new file mode 100644 index 0000000..60ee6d7 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer1/src/realbrainer1/RealBrainer1.java @@ -0,0 +1,41 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package realbrainer1; + +/** + * + * @author andad + */ +class A { + + A() { + print(); + } + + void print() { + System.out.println("A"); + } +} + +public class RealBrainer1 extends A { + + /** + * @param args the command line arguments + */ + int i = 4; +/** + void print() { + System.out.println(i); + } + * */ + + public static void main(String[] args) { + // TODO code application logic here + A a = new RealBrainer1(); + a.print(); + } + +} diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/build.xml b/PrjJava/OCA7/Tricky/RealBrainer2/build.xml new file mode 100644 index 0000000..14d5dba --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project RealBrainer2. + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/RealBrainer2/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/RealBrainer2/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/build/classes/realbrainer2/RealBrainer2.class b/PrjJava/OCA7/Tricky/RealBrainer2/build/classes/realbrainer2/RealBrainer2.class new file mode 100644 index 0000000000000000000000000000000000000000..73d1a60fc620cf40d306508432bf5ee9f804c8a0 GIT binary patch literal 925 zcmaJ=+int36kTU#U;u|pfzsAiZ0ikbTeS5KF{UOyC|)9lr1j|l6P!9QWICAm9X{0` z@L5b~qKO~iM;X@vl3J;KID75A&pCUovoiDR_xGOwwo!>8fz>GDxTL~m6|O{a71vA@ zVhCeZg<=G23a_iM9>WGUO_WUB5D=1UkE_Ae6bM(Gt`j^I&8jV1Ze9A0swYh&c;_4lELMG6x(#3QlD}1Y&0=R#lsU4)zCf<54qLhA{Lo%mq^K!%UT!DBkkj?kcWp6?pt9gCDX+Lq4w3)vNHx-A4 z46+uINLiRsA&r!Yn-;dPEim`5jGeyYwrtUiSI#=hMQPPA$t4+6VGhrK>GX2&i#Ug;Gr2xx>YJDeYuy`J4|2`m-%ic?NaB=X!w zVQRB{*7-=_jm;Lw7N!q!VrHcNq#%J%PsyX+)A;IG;fI&tC#fT%d}bC=R*#Tw6E$!& zvW&B=N<={ntsOyp9c||r!=q*#bIh&r0nB58RTSs3$d0=Fi8LDVnX&r~+Gk`G>W4@w zG!9`JUts8!0YX0z-aUdjfHp)V9UUSzfPS1BOouo(gry|tP!bYEkTg%)rzBNUa$`Cy b;R35Xf1o_yByf>c82Y^aNWEs6m4=l+kY2@q literal 0 HcmV?d00001 diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/manifest.mf b/PrjJava/OCA7/Tricky/RealBrainer2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/build-impl.xml b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/build-impl.xml new file mode 100644 index 0000000..05cc5fe --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/build-impl.xml @@ -0,0 +1,1419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/genfiles.properties new file mode 100644 index 0000000..2336480 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=39a2cc83 +build.xml.script.CRC32=575c5bc2 +build.xml.stylesheet.CRC32=8064a381@1.79.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=39a2cc83 +nbproject/build-impl.xml.script.CRC32=4edeaa59 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/project.properties b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/project.properties new file mode 100644 index 0000000..3e73ab5 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer2/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}/RealBrainer2.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.7 +javac.target=1.7 +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=realbrainer2.RealBrainer2 +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/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/project.xml b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/project.xml new file mode 100644 index 0000000..dd96837 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + RealBrainer2 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer2/src/realbrainer2/RealBrainer2.java b/PrjJava/OCA7/Tricky/RealBrainer2/src/realbrainer2/RealBrainer2.java new file mode 100644 index 0000000..ca1fad1 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer2/src/realbrainer2/RealBrainer2.java @@ -0,0 +1,28 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package realbrainer2; + +/** + * + * @author andad + */ +// short circuit operator or +public class RealBrainer2 { + + /** + * @param args the command line arguments + */ + static boolean a; + static boolean b; + static boolean c; + + public static void main(String[] args) { + // TODO code application logic here + boolean bool = (a = true) || (b = true) && (c = true); + System.out.print(a + ", " + b + ", " + c); + } + +} diff --git a/PrjJava/OCA7/Tricky/RealBrainer3/build.xml b/PrjJava/OCA7/Tricky/RealBrainer3/build.xml new file mode 100644 index 0000000..a34f5ad --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project RealBrainer3. + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer3/build/classes/.netbeans_automatic_build b/PrjJava/OCA7/Tricky/RealBrainer3/build/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/RealBrainer3/build/classes/.netbeans_update_resources b/PrjJava/OCA7/Tricky/RealBrainer3/build/classes/.netbeans_update_resources new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/RealBrainer3/build/classes/realbrainer3/RealBrainer3.class b/PrjJava/OCA7/Tricky/RealBrainer3/build/classes/realbrainer3/RealBrainer3.class new file mode 100644 index 0000000000000000000000000000000000000000..1bf3d7c621a0509d6d2b60fa4d22094b10999e2a GIT binary patch literal 1240 zcmZ{ieQ(lG6vm&+TU*j?KnHWOP1LEd=}_l8+gy~GEFsQ_Sz`Rd6s*_<=+c!%KbHQn z8BP2EekkM9+o}Z%3HSD#`<&ms=ehUiuWvs9Y+^TyS=2PFVO_=bEN);!MP0>B6}J@J z&O${kv%5+ye_0mX@l$sd+!M%b*+bjg5lB{R2Lh?5&O1wBu4NCc=c7T#a$lL9J~M@u z(>41Crfd6gm`r&e>|=p)%eBmY$2D2xZq{EicoGH;f%K8sMEl`Tm_lBO;vs|e*BIrMP0V67JIm4dR<|0~|q#*-# z<>TK(*4mzHhb1Y~?a=}wW?3NNcG#cEe^Vgac1CX3dS?4}=A$NU_|5B>Lr%ec9S`tO zK-(Ku0+SRx($TPi zI3tf25wvbQ^%v~hWA~Oh;LRG6F`njOj(ky{rj6Zr#IwlWO=l#ZmvUnEN7nv(zo=P@ zSRDu&xX2efD<5zMe4og1%rmZY7M#;-XAqzHkwAf?F9LKJa+CthqsR#Ce<3X1raHll z_63PT@)W5_Kwbh$f#@$l!#OO<4QOQ?DjkC|rlQIrYAFtti9r>oqLxF{N*qdwK`l&0 zT_8e3g~kU)zeN%$dR6=m_4OIF);! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/genfiles.properties new file mode 100644 index 0000000..2b672b9 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=31b140a5 +build.xml.script.CRC32=b36897f4 +build.xml.stylesheet.CRC32=8064a381@1.79.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=31b140a5 +nbproject/build-impl.xml.script.CRC32=3370d555 +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/private/private.properties new file mode 100644 index 0000000..f39439e --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/project.properties b/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/project.properties new file mode 100644 index 0000000..e5877ca --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer3/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}/RealBrainer3.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.7 +javac.target=1.7 +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=realbrainer3.RealBrainer3 +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/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/project.xml b/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/project.xml new file mode 100644 index 0000000..7a8437d --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + RealBrainer3 + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/RealBrainer3/src/realbrainer3/RealBrainer3.java b/PrjJava/OCA7/Tricky/RealBrainer3/src/realbrainer3/RealBrainer3.java new file mode 100644 index 0000000..8eef363 --- /dev/null +++ b/PrjJava/OCA7/Tricky/RealBrainer3/src/realbrainer3/RealBrainer3.java @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package realbrainer3; + +/** + * + * @author andad + */ +public class RealBrainer3 { + + /** + * @param args the command line arguments + */ + void probe(Object x) { System.out.println("In Object"); } //3 + + void probe(Number x) { System.out.println("In Number"); } //2 + + void probe(Integer x) { System.out.println("In Integer"); } //2 + + void probe(Long x) { System.out.println("In Long"); } //4 + + public static void main(String[] args) { + // TODO code application logic here + RealBrainer3 rb = new RealBrainer3 (); + double a = 10; + rb.probe(a); + } + +} diff --git a/PrjJava/OCA7/Tricky/TestArgs/build.xml b/PrjJava/OCA7/Tricky/TestArgs/build.xml new file mode 100644 index 0000000..d4a6779 --- /dev/null +++ b/PrjJava/OCA7/Tricky/TestArgs/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TestArgs. + + + diff --git a/PrjJava/OCA7/Tricky/TestArgs/build/classes/testargs/TestArgs.class b/PrjJava/OCA7/Tricky/TestArgs/build/classes/testargs/TestArgs.class new file mode 100644 index 0000000000000000000000000000000000000000..ecf6ba4ece8367bc5d8e60df5d1eb9209866f16e GIT binary patch literal 848 zcmaJ=U279j5IwV-WH)hR+f9?I(VEteY@+SjSZ$$2P@zzWT1W{<@!=*};;qSU*lYyf z1^-?MWe%r zT@9L|Qx~CB>j@Z(UdlcpQ;ocSB*J#zJ>=ja2RmGrxW2|$xr7TN72CLoON{6FO+xztjlT2W!*gXo G! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/PrjJava/OCA7/Tricky/TestArgs/nbproject/genfiles.properties b/PrjJava/OCA7/Tricky/TestArgs/nbproject/genfiles.properties new file mode 100644 index 0000000..4f98c0d --- /dev/null +++ b/PrjJava/OCA7/Tricky/TestArgs/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5e7a4428 +build.xml.script.CRC32=084ad0c1 +build.xml.stylesheet.CRC32=8064a381@1.79.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=5e7a4428 +nbproject/build-impl.xml.script.CRC32=74b4e96a +nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48 diff --git a/PrjJava/OCA7/Tricky/TestArgs/nbproject/private/config.properties b/PrjJava/OCA7/Tricky/TestArgs/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/PrjJava/OCA7/Tricky/TestArgs/nbproject/private/private.properties b/PrjJava/OCA7/Tricky/TestArgs/nbproject/private/private.properties new file mode 100644 index 0000000..2aabeaf --- /dev/null +++ b/PrjJava/OCA7/Tricky/TestArgs/nbproject/private/private.properties @@ -0,0 +1,7 @@ +application.args="Text baxter" 100 10.25 +compile.on.save=true +do.depend=false +do.jar=true +javac.debug=true +javadoc.preview=true +user.properties.file=C:\\Users\\andad\\AppData\\Roaming\\NetBeans\\8.1\\build.properties diff --git a/PrjJava/OCA7/Tricky/TestArgs/nbproject/private/private.xml b/PrjJava/OCA7/Tricky/TestArgs/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/PrjJava/OCA7/Tricky/TestArgs/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PrjJava/OCA7/Tricky/TestArgs/nbproject/project.properties b/PrjJava/OCA7/Tricky/TestArgs/nbproject/project.properties new file mode 100644 index 0000000..4294b4b --- /dev/null +++ b/PrjJava/OCA7/Tricky/TestArgs/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +application.title=TestArgs +application.vendor=anda +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}/TestArgs.jar +dist.javadoc.dir=${dist.dir}/javadoc +endorsed.classpath= +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=testargs.TestArgs +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/PrjJava/OCA7/Tricky/TestArgs/nbproject/project.xml b/PrjJava/OCA7/Tricky/TestArgs/nbproject/project.xml new file mode 100644 index 0000000..dda424e --- /dev/null +++ b/PrjJava/OCA7/Tricky/TestArgs/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + TestArgs + + + + + + + + + diff --git a/PrjJava/OCA7/Tricky/TestArgs/src/testargs/TestArgs.java b/PrjJava/OCA7/Tricky/TestArgs/src/testargs/TestArgs.java new file mode 100644 index 0000000..7b1e578 --- /dev/null +++ b/PrjJava/OCA7/Tricky/TestArgs/src/testargs/TestArgs.java @@ -0,0 +1,24 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package testargs; + +/** + * + * @author anda + */ +public class TestArgs { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + for (int i = 0; i < args.length; i++) { + System.out.println("args[" + i + "] is '" + args[i] + "'"); + } + } + +} diff --git a/PrjJava/OCP7/JDBC_Book14/src/jdbc_book14/JDBC_Book14.java b/PrjJava/OCP7/JDBC_Book14/src/jdbc_book14/JDBC_Book14.java new file mode 100644 index 0000000..773bbf4 --- /dev/null +++ b/PrjJava/OCP7/JDBC_Book14/src/jdbc_book14/JDBC_Book14.java @@ -0,0 +1,44 @@ + +package jdbc_book14; + +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.SQLException; +import java.sql.Savepoint; +import java.sql.Statement; +import java.util.logging.Level; +import java.util.logging.Logger; + +public class JDBC_Book14 { + + /** + * nu exista nici un commit + */ + public static void main(String[] args) { + Logger loger = Logger.getLogger("jdbc_book14.JDBC_Book14"); + try (Connection c = DriverManager.getConnection("jdbc:derby://localhost:1527/sample", "app", "app")) { + + c.setAutoCommit(false); + String query1 = "INSERT INTO Student values(98, 'Test98', 98)"; + String query2 = "INSERT INTO Student values(101, 'Test101', 1001)"; + Statement stmt = c.createStatement(); + stmt.executeUpdate(query1); + Savepoint sp1 = c.setSavepoint(); + stmt.executeUpdate(query2); + c.rollback(sp1); + } + catch (SQLException ex) { + + while (ex != null) { + loger.log(Level.SEVERE, "SQLException"); + loger.log(Level.SEVERE, "SQLState :" + ex.getSQLState()); + loger.log(Level.SEVERE, "Vendor code :" + ex.getErrorCode()); + loger.log(Level.SEVERE, "Message :" + ex.getMessage()); + ex = ex.getNextException(); + + } + + } + + } +} diff --git a/PrjJava/README.md b/PrjJava/README.md new file mode 100644 index 0000000..6c659f5 --- /dev/null +++ b/PrjJava/README.md @@ -0,0 +1,3 @@ +# PrjJava +proiecte Java - servicii REST +sample code for OCA Java 7 exam diff --git a/PrjJava/REST/RestDb_/build.xml b/PrjJava/REST/RestDb_/build.xml new file mode 100644 index 0000000..fecdd4f --- /dev/null +++ b/PrjJava/REST/RestDb_/build.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + Builds, tests, and runs the project RestDb_. + + + diff --git a/PrjJava/REST/RestDb_/nbproject/ant-deploy.xml b/PrjJava/REST/RestDb_/nbproject/ant-deploy.xml new file mode 100644 index 0000000..5d33e0d --- /dev/null +++ b/PrjJava/REST/RestDb_/nbproject/ant-deploy.xml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PrjJava/REST/RestDb_/nbproject/build-impl.xml b/PrjJava/REST/RestDb_/nbproject/build-impl.xml new file mode 100644 index 0000000..6fa5843 --- /dev/null +++ b/PrjJava/REST/RestDb_/nbproject/build-impl.xml @@ -0,0 +1,1442 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set build.web.dir + Must set build.generated.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.war + + + + + + + + + +The Java EE server classpath is not correctly set up - server home directory is missing. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Dj2ee.server.home=<app_server_installation_directory> + + +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file) +or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +The libs.CopyLibs.classpath property is not set up. +This property must point to +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part +of NetBeans IDE installation and is usually located at +<netbeans_installation>/java<version>/ant/extra folder. +Either open the project in the IDE and make sure CopyLibs library +exists or setup the property manually. For example like this: + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + Must select a file in the IDE or set jsp.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable. + + + Launching ${browse.url} + + + + + + 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 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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PrjJava/REST/RestDb_/nbproject/genfiles.properties b/PrjJava/REST/RestDb_/nbproject/genfiles.properties new file mode 100644 index 0000000..a281d2c --- /dev/null +++ b/PrjJava/REST/RestDb_/nbproject/genfiles.properties @@ -0,0 +1,11 @@ +build.xml.data.CRC32=833ab05c +build.xml.script.CRC32=4f9d23b8 +build.xml.stylesheet.CRC32=651128d4@1.77.1.1 +# 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=833ab05c +nbproject/build-impl.xml.script.CRC32=5170f23b +nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.77.1.1 +nbproject/rest-build.xml.data.CRC32=29b81f80 +nbproject/rest-build.xml.script.CRC32=d9538253 +nbproject/rest-build.xml.stylesheet.CRC32=0cfeebcc@1.31.1 diff --git a/PrjJava/REST/RestDb_/nbproject/project.properties b/PrjJava/REST/RestDb_/nbproject/project.properties new file mode 100644 index 0000000..fd0fe1e --- /dev/null +++ b/PrjJava/REST/RestDb_/nbproject/project.properties @@ -0,0 +1,92 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=true +annotation.processing.processor.options=-Aeclipselink.canonicalmodel.use_static_factory=false +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.web.dir}/WEB-INF/classes +build.classes.excludes=**/*.java,**/*.form +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +build.web.dir=${build.dir}/web +build.web.excludes=${build.classes.excludes} +client.urlPart= +compile.jsps=false +conf.dir=${source.root}/conf +debug.classpath=${build.classes.dir}:${javac.classpath} +debug.test.classpath=\ + ${run.test.classpath} +display.browser=true +# Files to be excluded from distribution war +dist.archive.excludes= +dist.dir=dist +dist.ear.war=${dist.dir}/${war.ear.name} +dist.javadoc.dir=${dist.dir}/javadoc +dist.war=${dist.dir}/${war.name} +endorsed.classpath=\ + ${libs.javaee-endorsed-api-7.0.classpath} +excludes= +includes=** +j2ee.compile.on.save=true +j2ee.copy.static.files.on.save=true +j2ee.deploy.on.save=true +j2ee.platform=1.7-web +j2ee.platform.classpath=${j2ee.server.home}/modules/endorsed/javax.annotation-api.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/cdi-api.jar:${j2ee.server.home}/modules/javax.batch-api.jar:${j2ee.server.home}/modules/javax.ejb-api.jar:${j2ee.server.home}/modules/javax.el.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent-api.jar:${j2ee.server.home}/modules/javax.enterprise.concurrent.jar:${j2ee.server.home}/modules/javax.enterprise.deploy-api.jar:${j2ee.server.home}/modules/javax.faces.jar:${j2ee.server.home}/modules/javax.inject.jar:${j2ee.server.home}/modules/javax.interceptor-api.jar:${j2ee.server.home}/modules/javax.jms-api.jar:${j2ee.server.home}/modules/javax.json.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.management.j2ee-api.jar:${j2ee.server.home}/modules/javax.persistence.jar:${j2ee.server.home}/modules/javax.resource-api.jar:${j2ee.server.home}/modules/javax.security.auth.message-api.jar:${j2ee.server.home}/modules/javax.security.jacc-api.jar:${j2ee.server.home}/modules/javax.servlet-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl-api.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/javax.transaction-api.jar:${j2ee.server.home}/modules/javax.websocket-api.jar:${j2ee.server.home}/modules/javax.ws.rs-api.jar:${j2ee.server.home}/modules/javax.xml.registry-api.jar:${j2ee.server.home}/modules/javax.xml.rpc-api.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar +j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar +j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api.jar +j2ee.platform.wsit.classpath= +j2ee.server.type=gfv3ee6 +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.debug=true +javac.deprecation=false +javac.processorpath=\ + ${javac.classpath}:\ + ${libs.eclipselink.classpath}:\ + ${libs.eclipselinkmodelgen.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.preview=true +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +lib.dir=${web.docbase.dir}/WEB-INF/lib +persistence.xml.dir=${conf.dir} +platform.active=default_platform +resource.dir=setup +rest.config.type=dd +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +# Space-separated list of JVM arguments used when running a class with a main method or a unit test +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value): +runmain.jvmargs= +source.encoding=UTF-8 +source.root=src +src.dir=${source.root}/java +test.src.dir=test +war.content.additional= +war.ear.name=${war.name} +war.name=RestDb_.war +web.docbase.dir=web +webinf.dir=web/WEB-INF diff --git a/PrjJava/REST/RestDb_/nbproject/project.xml b/PrjJava/REST/RestDb_/nbproject/project.xml new file mode 100644 index 0000000..e92d6d6 --- /dev/null +++ b/PrjJava/REST/RestDb_/nbproject/project.xml @@ -0,0 +1,21 @@ + + + org.netbeans.modules.web.project + + + + + + RestDb_ + 1.6.5 + + + + + + + + + + + diff --git a/PrjJava/REST/RestDb_/nbproject/rest-build.xml b/PrjJava/REST/RestDb_/nbproject/rest-build.xml new file mode 100644 index 0000000..5b46ded --- /dev/null +++ b/PrjJava/REST/RestDb_/nbproject/rest-build.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PrjJava/REST/RestDb_/src/conf/MANIFEST.MF b/PrjJava/REST/RestDb_/src/conf/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/PrjJava/REST/RestDb_/src/conf/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/PrjJava/REST/RestDb_/src/conf/persistence.xml b/PrjJava/REST/RestDb_/src/conf/persistence.xml new file mode 100644 index 0000000..86c909d --- /dev/null +++ b/PrjJava/REST/RestDb_/src/conf/persistence.xml @@ -0,0 +1,8 @@ + + + + jdbc/sample + false + + + diff --git a/PrjJava/REST/RestDb_/src/java/com/rest/Users.java b/PrjJava/REST/RestDb_/src/java/com/rest/Users.java new file mode 100644 index 0000000..c01d451 --- /dev/null +++ b/PrjJava/REST/RestDb_/src/java/com/rest/Users.java @@ -0,0 +1,212 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package com.rest; + +import java.io.Serializable; +import java.util.Date; +import javax.persistence.Basic; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import javax.persistence.NamedQueries; +import javax.persistence.NamedQuery; +import javax.persistence.Table; +import javax.persistence.Temporal; +import javax.persistence.TemporalType; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import javax.xml.bind.annotation.XmlRootElement; + + +@Entity +@Table(name = "USERS") +@XmlRootElement +@NamedQueries({ + @NamedQuery(name = "Users.findAll", query = "SELECT u FROM Users u") + , @NamedQuery(name = "Users.findById", query = "SELECT u FROM Users u WHERE u.id = :id") + , @NamedQuery(name = "Users.findByFirstname", query = "SELECT u FROM Users u WHERE u.firstname = :firstname") + , @NamedQuery(name = "Users.findByLastname", query = "SELECT u FROM Users u WHERE u.lastname = :lastname") + , @NamedQuery(name = "Users.findByCompany", query = "SELECT u FROM Users u WHERE u.company = :company") + , @NamedQuery(name = "Users.findByEmailcompany", query = "SELECT u FROM Users u WHERE u.emailcompany = :emailcompany") + , @NamedQuery(name = "Users.findByUsername", query = "SELECT u FROM Users u WHERE u.username = :username") + , @NamedQuery(name = "Users.findByPassword", query = "SELECT u FROM Users u WHERE u.password = :password") + , @NamedQuery(name = "Users.findByDatain", query = "SELECT u FROM Users u WHERE u.datain = :datain") + , @NamedQuery(name = "Users.findByDataout", query = "SELECT u FROM Users u WHERE u.dataout = :dataout") + , @NamedQuery(name = "Users.findBySalt", query = "SELECT u FROM Users u WHERE u.salt = :salt") + , @NamedQuery(name = "Users.findByPasswordhash", query = "SELECT u FROM Users u WHERE u.passwordhash = :passwordhash")}) +public class Users implements Serializable { + + private static final long serialVersionUID = 1L; + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Basic(optional = false) + @Column(name = "ID") + private Integer id; + @Basic(optional = false) + @NotNull + @Size(min = 1, max = 24) + @Column(name = "FIRSTNAME") + private String firstname; + @Size(max = 26) + @Column(name = "LASTNAME") + private String lastname; + @Size(max = 25) + @Column(name = "COMPANY") + private String company; + @Basic(optional = false) + @NotNull + @Size(min = 1, max = 26) + @Column(name = "EMAILCOMPANY") + private String emailcompany; + @Size(max = 25) + @Column(name = "USERNAME") + private String username; + @Size(max = 255) + @Column(name = "PASSWORD") + private String password; + @Column(name = "DATAIN") + @Temporal(TemporalType.TIMESTAMP) + private Date datain; + @Column(name = "DATAOUT") + @Temporal(TemporalType.TIMESTAMP) + private Date dataout; + @Size(max = 255) + @Column(name = "SALT") + private String salt; + @Size(max = 255) + @Column(name = "PASSWORDHASH") + private String passwordhash; + + public Users() { + } + + public Users(Integer id) { + this.id = id; + } + + public Users(Integer id, String firstname, String emailcompany) { + this.id = id; + this.firstname = firstname; + this.emailcompany = emailcompany; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getFirstname() { + return firstname; + } + + public void setFirstname(String firstname) { + this.firstname = firstname; + } + + public String getLastname() { + return lastname; + } + + public void setLastname(String lastname) { + this.lastname = lastname; + } + + public String getCompany() { + return company; + } + + public void setCompany(String company) { + this.company = company; + } + + public String getEmailcompany() { + return emailcompany; + } + + public void setEmailcompany(String emailcompany) { + this.emailcompany = emailcompany; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public Date getDatain() { + return datain; + } + + public void setDatain(Date datain) { + this.datain = datain; + } + + public Date getDataout() { + return dataout; + } + + public void setDataout(Date dataout) { + this.dataout = dataout; + } + + public String getSalt() { + return salt; + } + + public void setSalt(String salt) { + this.salt = salt; + } + + public String getPasswordhash() { + return passwordhash; + } + + public void setPasswordhash(String passwordhash) { + this.passwordhash = passwordhash; + } + + @Override + public int hashCode() { + int hash = 0; + hash += (id != null ? id.hashCode() : 0); + return hash; + } + + @Override + public boolean equals(Object object) { + // TODO: Warning - this method won't work in the case the id fields are not set + if (!(object instanceof Users)) { + return false; + } + Users other = (Users) object; + if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { + return false; + } + return true; + } + + @Override + public String toString() { + return "com.rest.Users[ id=" + id + " ]"; + } + +} diff --git a/PrjJava/REST/RestDb_/src/java/com/rest/service/AbstractFacade.java b/PrjJava/REST/RestDb_/src/java/com/rest/service/AbstractFacade.java new file mode 100644 index 0000000..4e895a3 --- /dev/null +++ b/PrjJava/REST/RestDb_/src/java/com/rest/service/AbstractFacade.java @@ -0,0 +1,62 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package com.rest.service; + +import java.util.List; +import javax.persistence.EntityManager; + + +public abstract class AbstractFacade { + + private Class entityClass; + + public AbstractFacade(Class entityClass) { + this.entityClass = entityClass; + } + + protected abstract EntityManager getEntityManager(); + + public void create(T entity) { + getEntityManager().persist(entity); + } + + public void edit(T entity) { + getEntityManager().merge(entity); + } + + public void remove(T entity) { + getEntityManager().remove(getEntityManager().merge(entity)); + } + + public T find(Object id) { + return getEntityManager().find(entityClass, id); + } + + public List findAll() { + javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); + cq.select(cq.from(entityClass)); + return getEntityManager().createQuery(cq).getResultList(); + } + + public List findRange(int[] range) { + javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); + cq.select(cq.from(entityClass)); + javax.persistence.Query q = getEntityManager().createQuery(cq); + q.setMaxResults(range[1] - range[0] + 1); + q.setFirstResult(range[0]); + return q.getResultList(); + } + + public int count() { + javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery(); + javax.persistence.criteria.Root rt = cq.from(entityClass); + cq.select(getEntityManager().getCriteriaBuilder().count(rt)); + javax.persistence.Query q = getEntityManager().createQuery(cq); + return ((Long) q.getSingleResult()).intValue(); + } + +} diff --git a/PrjJava/REST/RestDb_/src/java/com/rest/service/ApplicationConfig.java b/PrjJava/REST/RestDb_/src/java/com/rest/service/ApplicationConfig.java new file mode 100644 index 0000000..af09269 --- /dev/null +++ b/PrjJava/REST/RestDb_/src/java/com/rest/service/ApplicationConfig.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package com.rest.service; + +import java.util.Set; +import javax.ws.rs.core.Application; + + +@javax.ws.rs.ApplicationPath("webresources") +public class ApplicationConfig extends Application { + + @Override + public Set> getClasses() { + Set> resources = new java.util.HashSet<>(); + addRestResourceClasses(resources); + return resources; + } + + /** + * Do not modify addRestResourceClasses() method. + * It is automatically populated with + * all resources defined in the project. + * If required, comment out calling this method in getClasses(). + */ + private void addRestResourceClasses(Set> resources) { + resources.add(com.rest.service.UsersFacadeREST.class); + } + +} diff --git a/PrjJava/REST/RestDb_/src/java/com/rest/service/UsersFacadeREST.java b/PrjJava/REST/RestDb_/src/java/com/rest/service/UsersFacadeREST.java new file mode 100644 index 0000000..b3d8249 --- /dev/null +++ b/PrjJava/REST/RestDb_/src/java/com/rest/service/UsersFacadeREST.java @@ -0,0 +1,89 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +package com.rest.service; + +import com.rest.Users; +import java.util.List; +import javax.ejb.Stateless; +import javax.persistence.EntityManager; +import javax.persistence.PersistenceContext; +import javax.ws.rs.Consumes; +import javax.ws.rs.DELETE; +import javax.ws.rs.GET; +import javax.ws.rs.POST; +import javax.ws.rs.PUT; +import javax.ws.rs.Path; +import javax.ws.rs.PathParam; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; + + +@Stateless +@Path("user") +public class UsersFacadeREST extends AbstractFacade { + + @PersistenceContext(unitName = "RestDb_PU") + private EntityManager em; + + public UsersFacadeREST() { + super(Users.class); + } + + @POST + @Override + @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) + public void create(Users entity) { + super.create(entity); + } + + @PUT + @Path("{id}") + @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) + public void edit(@PathParam("id") Integer id, Users entity) { + super.edit(entity); + } + + @DELETE + @Path("{id}") + public void remove(@PathParam("id") Integer id) { + super.remove(super.find(id)); + } + + @GET + @Path("{id}") + @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) + public Users find(@PathParam("id") Integer id) { + return super.find(id); + } + + @GET + @Override + @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) + public List findAll() { + return super.findAll(); + } + + @GET + @Path("{from}/{to}") + @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) + public List findRange(@PathParam("from") Integer from, @PathParam("to") Integer to) { + return super.findRange(new int[]{from, to}); + } + + @GET + @Path("count") + @Produces(MediaType.TEXT_PLAIN) + public String countREST() { + return String.valueOf(super.count()); + } + + @Override + protected EntityManager getEntityManager() { + return em; + } + +} diff --git a/PrjJava/REST/RestDb_/web/WEB-INF/web_.xml b/PrjJava/REST/RestDb_/web/WEB-INF/web_.xml new file mode 100644 index 0000000..e125bae --- /dev/null +++ b/PrjJava/REST/RestDb_/web/WEB-INF/web_.xml @@ -0,0 +1,26 @@ + + + + ServletAdaptor + org.glassfish.jersey.servlet.ServletContainer + + Multiple packages, separated by semicolon(;), can be specified in param-value + com.sun.jersey.config.property.packages + com.rest.service + + + com.sun.jersey.api.json.POJOMappingFeature + true + + 1 + + + ServletAdaptor + /webresources/* + + + + 30 + + +