diff --git a/oodj/oodj/Account/build.xml b/oodj/oodj/Account/build.xml new file mode 100644 index 0000000..43ac5b1 --- /dev/null +++ b/oodj/oodj/Account/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project AccountInheritance. + + + diff --git a/oodj/oodj/Account/build/built-jar.properties b/oodj/oodj/Account/build/built-jar.properties new file mode 100644 index 0000000..958e356 --- /dev/null +++ b/oodj/oodj/Account/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 26 Nov 2021 17:29:34 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\Account= diff --git a/oodj/oodj/Account/build/classes/accountinheritance/Account.class b/oodj/oodj/Account/build/classes/accountinheritance/Account.class new file mode 100644 index 0000000..55442e0 Binary files /dev/null and b/oodj/oodj/Account/build/classes/accountinheritance/Account.class differ diff --git a/oodj/oodj/Account/build/classes/accountinheritance/Accountinheritance.class b/oodj/oodj/Account/build/classes/accountinheritance/Accountinheritance.class new file mode 100644 index 0000000..1bb2c40 Binary files /dev/null and b/oodj/oodj/Account/build/classes/accountinheritance/Accountinheritance.class differ diff --git a/oodj/oodj/Account/build/classes/accountinheritance/CheckingAccount.class b/oodj/oodj/Account/build/classes/accountinheritance/CheckingAccount.class new file mode 100644 index 0000000..594692a Binary files /dev/null and b/oodj/oodj/Account/build/classes/accountinheritance/CheckingAccount.class differ diff --git a/oodj/oodj/Account/build/classes/accountinheritance/Savings.class b/oodj/oodj/Account/build/classes/accountinheritance/Savings.class new file mode 100644 index 0000000..a16075e Binary files /dev/null and b/oodj/oodj/Account/build/classes/accountinheritance/Savings.class differ diff --git a/oodj/oodj/Account/manifest.mf b/oodj/oodj/Account/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/Account/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/Account/nbproject/build-impl.xml b/oodj/oodj/Account/nbproject/build-impl.xml new file mode 100644 index 0000000..465ee5e --- /dev/null +++ b/oodj/oodj/Account/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/Account/nbproject/genfiles.properties b/oodj/oodj/Account/nbproject/genfiles.properties new file mode 100644 index 0000000..149d095 --- /dev/null +++ b/oodj/oodj/Account/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=859d59b8 +build.xml.script.CRC32=e09faddd +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=859d59b8 +nbproject/build-impl.xml.script.CRC32=4d12be9d +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/Account/nbproject/private/config.properties b/oodj/oodj/Account/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/oodj/oodj/Account/nbproject/private/private.properties b/oodj/oodj/Account/nbproject/private/private.properties new file mode 100644 index 0000000..4a71889 --- /dev/null +++ b/oodj/oodj/Account/nbproject/private/private.properties @@ -0,0 +1,8 @@ +compile.on.save=true +do.depend=false +do.jar=true +do.jlink=false +javac.debug=true +javadoc.preview=true +jlink.strip=false +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/Account/nbproject/private/private.xml b/oodj/oodj/Account/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/oodj/oodj/Account/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/oodj/oodj/Account/nbproject/project.properties b/oodj/oodj/Account/nbproject/project.properties new file mode 100644 index 0000000..37a1626 --- /dev/null +++ b/oodj/oodj/Account/nbproject/project.properties @@ -0,0 +1,97 @@ +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=AccountInheritance +application.vendor=Kriso +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/AccountInheritance.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/AccountInheritance +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.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=AccountInheritance +main.class=accountinheritance.Accountinheritance +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/Account/nbproject/project.xml b/oodj/oodj/Account/nbproject/project.xml new file mode 100644 index 0000000..533e3cf --- /dev/null +++ b/oodj/oodj/Account/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + AccountInheritance + + + + + + + + + diff --git a/oodj/oodj/Account/src/accountinheritance/Account.java b/oodj/oodj/Account/src/accountinheritance/Account.java new file mode 100644 index 0000000..8c9fcbc --- /dev/null +++ b/oodj/oodj/Account/src/accountinheritance/Account.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 accountinheritance; + +/** + * + * @author Kriso + */ +public class Account { + + private int accnum; + private double balance; + private double annitrate; + + Account() + {} + + public void setAcno (int acno) + { + accnum = acno; + } + + public int gettAcno () + { + return accnum; + } + + public void setBal (double bal) + { + balance = bal; + } + + public double getbal () + { + return balance; + } + + public void setIntRate (double annintrate) + { + this.annitrate = annintrate; + } + + public double getInRate() + { + return annitrate; + } + + public void deposit(double amount) + { + balance = balance + amount ; + + } + + public void withdrawal (double amount) + { + balance = balance - amount; + } + + public String toString() + { + return "\n Account no:"+gettAcno()+"\n Balance:" +getbal(); + } +} diff --git a/oodj/oodj/Account/src/accountinheritance/Accountinheritance.java b/oodj/oodj/Account/src/accountinheritance/Accountinheritance.java new file mode 100644 index 0000000..4c1673d --- /dev/null +++ b/oodj/oodj/Account/src/accountinheritance/Accountinheritance.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 accountinheritance; + +/** + * + * @author Kriso + */ +public class Accountinheritance { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + Account ac = new Account(); + ac.setAcno(1122); + ac.setBal(20000); + ac.withdrawal(2500.00); + System.out.println(ac.toString()); + + CheckingAccount CA = new CheckingAccount(); + CA.setAcno(15); + CA.setBal(30000); + CA.setIntRate(4.5); + CA.withdrawal(500); + System.out.println(CA.toString()); + + Savings SA = new Savings(); + SA.setAcno(10); + SA.setBal(30000); + SA.setIntRate(4.5); + SA.withdrawal(500); + System.out.println(SA.toString()); + + + } + +} diff --git a/oodj/oodj/Account/src/accountinheritance/CheckingAccount.java b/oodj/oodj/Account/src/accountinheritance/CheckingAccount.java new file mode 100644 index 0000000..638618a --- /dev/null +++ b/oodj/oodj/Account/src/accountinheritance/CheckingAccount.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 accountinheritance; + +/** + * + * @author Kriso + */ +public class CheckingAccount extends Account { + + public void withdrawal (double amount) + { + double limit = 1000.00; + double overdraft; + double bal = getbal(); + + if(bal > amount) + { + overdraft = bal - amount; + if(overdraft < limit) + System.out.println("Insufficent balance in the account. You have an overdraft liit of " + limit); + + }else + { + super.withdrawal(amount); + } + + + } +} diff --git a/oodj/oodj/Account/src/accountinheritance/Savings.java b/oodj/oodj/Account/src/accountinheritance/Savings.java new file mode 100644 index 0000000..59ef016 --- /dev/null +++ b/oodj/oodj/Account/src/accountinheritance/Savings.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 accountinheritance; + +/** + * + * @author Kriso + */ +public class Savings extends Account{ + + public void withdrawal (double amount) + { + if(amount < getbal()) + { + System.out.println("Insufficent balance in the account."); + } + else + { + super.withdrawal(amount); + } + } +} diff --git a/oodj/oodj/AdditionAllWay/build.xml b/oodj/oodj/AdditionAllWay/build.xml new file mode 100644 index 0000000..1943161 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project AdditionAllWay. + + + diff --git a/oodj/oodj/AdditionAllWay/build/built-jar.properties b/oodj/oodj/AdditionAllWay/build/built-jar.properties new file mode 100644 index 0000000..ad9be37 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 02 Nov 2021 12:13:02 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\AdditionAllWay= diff --git a/oodj/oodj/AdditionAllWay/build/classes/additionallway/AdditionAllWay.class b/oodj/oodj/AdditionAllWay/build/classes/additionallway/AdditionAllWay.class new file mode 100644 index 0000000..39c2224 Binary files /dev/null and b/oodj/oodj/AdditionAllWay/build/classes/additionallway/AdditionAllWay.class differ diff --git a/oodj/oodj/AdditionAllWay/build/classes/additionallway/ConstructorClass.class b/oodj/oodj/AdditionAllWay/build/classes/additionallway/ConstructorClass.class new file mode 100644 index 0000000..ef8a4ee Binary files /dev/null and b/oodj/oodj/AdditionAllWay/build/classes/additionallway/ConstructorClass.class differ diff --git a/oodj/oodj/AdditionAllWay/build/classes/additionallway/GetSetClass.class b/oodj/oodj/AdditionAllWay/build/classes/additionallway/GetSetClass.class new file mode 100644 index 0000000..b5cb64f Binary files /dev/null and b/oodj/oodj/AdditionAllWay/build/classes/additionallway/GetSetClass.class differ diff --git a/oodj/oodj/AdditionAllWay/build/classes/additionallway/NormalClass.class b/oodj/oodj/AdditionAllWay/build/classes/additionallway/NormalClass.class new file mode 100644 index 0000000..55af873 Binary files /dev/null and b/oodj/oodj/AdditionAllWay/build/classes/additionallway/NormalClass.class differ diff --git a/oodj/oodj/AdditionAllWay/build/classes/additionallway/StaticClass.class b/oodj/oodj/AdditionAllWay/build/classes/additionallway/StaticClass.class new file mode 100644 index 0000000..294a269 Binary files /dev/null and b/oodj/oodj/AdditionAllWay/build/classes/additionallway/StaticClass.class differ diff --git a/oodj/oodj/AdditionAllWay/manifest.mf b/oodj/oodj/AdditionAllWay/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/AdditionAllWay/nbproject/build-impl.xml b/oodj/oodj/AdditionAllWay/nbproject/build-impl.xml new file mode 100644 index 0000000..32538e6 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/AdditionAllWay/nbproject/genfiles.properties b/oodj/oodj/AdditionAllWay/nbproject/genfiles.properties new file mode 100644 index 0000000..6b7abe6 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=9196ef51 +build.xml.script.CRC32=73bc2e50 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=9196ef51 +nbproject/build-impl.xml.script.CRC32=4f99cefa +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/AdditionAllWay/nbproject/private/private.properties b/oodj/oodj/AdditionAllWay/nbproject/private/private.properties new file mode 100644 index 0000000..5c8c5ab --- /dev/null +++ b/oodj/oodj/AdditionAllWay/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/AdditionAllWay/nbproject/private/private.xml b/oodj/oodj/AdditionAllWay/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/oodj/oodj/AdditionAllWay/nbproject/project.properties b/oodj/oodj/AdditionAllWay/nbproject/project.properties new file mode 100644 index 0000000..7db7f96 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/AdditionAllWay.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/AdditionAllWay +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=AdditionAllWay +main.class=additionallway.AdditionAllWay +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/AdditionAllWay/nbproject/project.xml b/oodj/oodj/AdditionAllWay/nbproject/project.xml new file mode 100644 index 0000000..71dc4a4 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + AdditionAllWay + + + + + + + + + diff --git a/oodj/oodj/AdditionAllWay/src/additionallway/AdditionAllWay.java b/oodj/oodj/AdditionAllWay/src/additionallway/AdditionAllWay.java new file mode 100644 index 0000000..63cadf3 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/src/additionallway/AdditionAllWay.java @@ -0,0 +1,51 @@ +/* +WAP to accept 2 numbers from user and display addition of those numbers +by using following ways +1. Structure Way +2. Static Way +2.1 inside same class +2.2 inside different class +3. Object Oriented Way +3.1 Normal Method Way +3.2 GetSet Way +3.3 Constructor Way +*/ +package additionallway; + +import java.util.Scanner; + + +public class AdditionAllWay { + + public static void main(String[] args) { + + int no1, no2, add; + Scanner s = new Scanner(System.in); + System.out.println("Enter two values here:"); + no1 = s.nextInt(); + no2 = s.nextInt(); + add = no1+no2; + System.out.println("Addition Value of two numbers is:"+add); + + Display(no1,no2); + + StaticClass.StaticMethod(no1,no2); + + NormalClass nc = new NormalClass(); + nc.NormalMethod(no1,no2); + + GetSetClass gs = new GetSetClass(); + gs.SetData1(no1,no2); + System.out.println("GetSetClass. addition Value of 2 number is :"+gs.GetData()); + + ConstructorClass cc = new ConstructorClass(no1,no2); + System.out.println("Constructor Class, addtion Value of 2 number is "+cc.result()); + + } + static void Display(int a,int b) + { + int add; + add = a+b; + System.out.println("Static inside same class. addtion Value of number is :"+add); + } +} diff --git a/oodj/oodj/AdditionAllWay/src/additionallway/ConstructorClass.java b/oodj/oodj/AdditionAllWay/src/additionallway/ConstructorClass.java new file mode 100644 index 0000000..d778cd7 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/src/additionallway/ConstructorClass.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 additionallway; + +/** + * + * @author Kriso + */ +public class ConstructorClass +{ + int ele1,ele2,add; + + ConstructorClass(int r,int s) + { + this.ele1 = r; + this.ele2 = s; + } + + int result () + { + add= ele1+ele2; + return add; + } +} diff --git a/oodj/oodj/AdditionAllWay/src/additionallway/GetSetClass.java b/oodj/oodj/AdditionAllWay/src/additionallway/GetSetClass.java new file mode 100644 index 0000000..778fd14 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/src/additionallway/GetSetClass.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 additionallway; + +/** + * + * @author Kriso + */ +public class GetSetClass +{ + int value1,value2, add; + void SetData1 (int k,int l) + { + value1 = k; + value2 = l; + } + + int GetData() + { + add = value1+value2; + return add; + } +} diff --git a/oodj/oodj/AdditionAllWay/src/additionallway/NormalClass.java b/oodj/oodj/AdditionAllWay/src/additionallway/NormalClass.java new file mode 100644 index 0000000..d9c4189 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/src/additionallway/NormalClass.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 additionallway; + +/** + * + * @author Kriso + */ +public class NormalClass { + void NormalMethod(int a,int b) + { + int add; + add = a+b; + System.out.println("NOrmal class, addition Value of 2 number is "+add); + } +} diff --git a/oodj/oodj/AdditionAllWay/src/additionallway/StaticClass.java b/oodj/oodj/AdditionAllWay/src/additionallway/StaticClass.java new file mode 100644 index 0000000..5092543 --- /dev/null +++ b/oodj/oodj/AdditionAllWay/src/additionallway/StaticClass.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 additionallway; + +/** + * + * @author Kriso + */ +public class StaticClass { + + static void StaticMethod(int a,int b) + { + int add; + add = a+b; + System.out.println("Static inside different class, addition Value of 2 number is "+add); + } +} diff --git a/oodj/oodj/Array/build.xml b/oodj/oodj/Array/build.xml new file mode 100644 index 0000000..3055f2b --- /dev/null +++ b/oodj/oodj/Array/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Array. + + + diff --git a/oodj/oodj/Array/build/built-jar.properties b/oodj/oodj/Array/build/built-jar.properties new file mode 100644 index 0000000..acdd544 --- /dev/null +++ b/oodj/oodj/Array/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 26 Oct 2021 11:55:44 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\Array= diff --git a/oodj/oodj/Array/build/classes/array/Array.class b/oodj/oodj/Array/build/classes/array/Array.class new file mode 100644 index 0000000..3006efb Binary files /dev/null and b/oodj/oodj/Array/build/classes/array/Array.class differ diff --git a/oodj/oodj/Array/manifest.mf b/oodj/oodj/Array/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/Array/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/Array/nbproject/build-impl.xml b/oodj/oodj/Array/nbproject/build-impl.xml new file mode 100644 index 0000000..c2305f0 --- /dev/null +++ b/oodj/oodj/Array/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/Array/nbproject/genfiles.properties b/oodj/oodj/Array/nbproject/genfiles.properties new file mode 100644 index 0000000..c44f504 --- /dev/null +++ b/oodj/oodj/Array/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=6f4225ce +build.xml.script.CRC32=87d527c8 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=6f4225ce +nbproject/build-impl.xml.script.CRC32=cd9b2a30 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/Array/nbproject/private/private.properties b/oodj/oodj/Array/nbproject/private/private.properties new file mode 100644 index 0000000..5c8c5ab --- /dev/null +++ b/oodj/oodj/Array/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/Array/nbproject/private/private.xml b/oodj/oodj/Array/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/oodj/oodj/Array/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/oodj/oodj/Array/nbproject/project.properties b/oodj/oodj/Array/nbproject/project.properties new file mode 100644 index 0000000..9986439 --- /dev/null +++ b/oodj/oodj/Array/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Array.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/Array +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=Array +main.class=array.Array +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/Array/nbproject/project.xml b/oodj/oodj/Array/nbproject/project.xml new file mode 100644 index 0000000..4c1fb45 --- /dev/null +++ b/oodj/oodj/Array/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Array + + + + + + + + + diff --git a/oodj/oodj/Array/src/array/Array.java b/oodj/oodj/Array/src/array/Array.java new file mode 100644 index 0000000..a7f5fe0 --- /dev/null +++ b/oodj/oodj/Array/src/array/Array.java @@ -0,0 +1,149 @@ +package array; + +import java.util.Scanner; + + +public class Array { + + + public static void main(String[] args) + { + /* + int i; + int[] myarr = new int[5]; + Scanner s = new Scanner(System.in); + System.out.println("Enter 5 vlue in array :"); + for(i = 0; i<5;i++) + { + System.out.print("Enter Element :"); + myarr[i]= s.nextInt(); + } + + System.out.println("All arrat elements are:"); + for(i = 0; i<5;i++) + { + System.out.println(myarr[i]); + + }*/ + + //WAP to accept size of an array. Accept elements from user as per defined size. + //Display all array elements. Also display addition of all array elements at the end. + /* + int size ,i, add=0; + Scanner s = new Scanner(System.in); + System.out.println("Enter size of an array :"); + size = s.nextInt(); + int[] myarr = new int[size]; + + System.out.println("Enter value "+size+" in array :"); + + for(i = 0; i + + + + + + + + + + Builds, tests, and runs the project BasicProgram. + + + diff --git a/oodj/oodj/BasicProgram/build/built-jar.properties b/oodj/oodj/BasicProgram/build/built-jar.properties new file mode 100644 index 0000000..5cfe61d --- /dev/null +++ b/oodj/oodj/BasicProgram/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 23 Nov 2021 13:07:10 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\BasicProgram= diff --git a/oodj/oodj/BasicProgram/build/classes/basicprogram/BasicProgram.class b/oodj/oodj/BasicProgram/build/classes/basicprogram/BasicProgram.class new file mode 100644 index 0000000..7e224e5 Binary files /dev/null and b/oodj/oodj/BasicProgram/build/classes/basicprogram/BasicProgram.class differ diff --git a/oodj/oodj/BasicProgram/manifest.mf b/oodj/oodj/BasicProgram/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/BasicProgram/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/BasicProgram/nbproject/build-impl.xml b/oodj/oodj/BasicProgram/nbproject/build-impl.xml new file mode 100644 index 0000000..90c6ba2 --- /dev/null +++ b/oodj/oodj/BasicProgram/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/BasicProgram/nbproject/genfiles.properties b/oodj/oodj/BasicProgram/nbproject/genfiles.properties new file mode 100644 index 0000000..4fdf8b8 --- /dev/null +++ b/oodj/oodj/BasicProgram/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4c13783f +build.xml.script.CRC32=f6e4d27f +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=4c13783f +nbproject/build-impl.xml.script.CRC32=ff2c9a6a +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/BasicProgram/nbproject/private/private.properties b/oodj/oodj/BasicProgram/nbproject/private/private.properties new file mode 100644 index 0000000..5c8c5ab --- /dev/null +++ b/oodj/oodj/BasicProgram/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/BasicProgram/nbproject/private/private.xml b/oodj/oodj/BasicProgram/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/oodj/oodj/BasicProgram/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/oodj/oodj/BasicProgram/nbproject/project.properties b/oodj/oodj/BasicProgram/nbproject/project.properties new file mode 100644 index 0000000..32efa47 --- /dev/null +++ b/oodj/oodj/BasicProgram/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/BasicProgram.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/BasicProgram +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=BasicProgram +main.class=basicprogram.BasicProgram +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/BasicProgram/nbproject/project.xml b/oodj/oodj/BasicProgram/nbproject/project.xml new file mode 100644 index 0000000..8f47afa --- /dev/null +++ b/oodj/oodj/BasicProgram/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + BasicProgram + + + + + + + + + diff --git a/oodj/oodj/BasicProgram/src/basicprogram/BasicProgram.java b/oodj/oodj/BasicProgram/src/basicprogram/BasicProgram.java new file mode 100644 index 0000000..c471b12 --- /dev/null +++ b/oodj/oodj/BasicProgram/src/basicprogram/BasicProgram.java @@ -0,0 +1,88 @@ + +package basicprogram; + +import java.util.*; + +public class BasicProgram { + + + public static void main(String[] args) { + /* + System.out.println("Hello WOrld"); + System.out.println("Welcaome to APU"); + System.out.println("This is OODJ Class."); + + System.out.println("Hello World.\n Welcome to Apu.\n\t This is OODJ Class."); + + //Wap to accept value in program and display it. + int no; + no =100; + System.out.println("your value is:"+no); + + //Wap to accept value from user and display it + int no; + double nol; + String name,name1; + Scanner s = new Scanner(System.in); + + System.out.println("KIndly enter your name here:"); + name1 = s.nextLine(); + System.out.println("YOur value is :"+name1); + + System.out.println("KIndly enter your value here:"); + no = s.nextInt(); + System.out.println("YOur value is :"+no); + + System.out.println("KIndly enter your decimal value here:"); + nol = s.nextDouble(); + System.out.println("YOur decimal value is :"+nol); + + System.out.println("KIndly enter your name here:"); + name = s.next(); + System.out.println("YOur value is :"+name); + */ + //wap to accept 2 numbers drom user and display addition of it + /*int no1,no2,add; + Scanner s = new Scanner(System.in); + + System.out.println("KIndly enter your first number here:"); + no1 = s.nextInt(); + System.out.println("KIndly enter your second number here:"); + no2 = s.nextInt(); + + add= no1+no2; + System.out.println("YOur first number is :"+no1); + System.out.println("YOur second number is :"+no2); + System.out.println(no1+"+"+no2+"="+add);*/ + + //WAP to accept 2 numbers from users and do all arithemetic operation. Display output for all operation.(+,-,*,/) +// int no1,no2,add,sub,mul; +// float div; +// Scanner s = new Scanner(System.in); +// System.out.println("Kindly enter 2 values here:"); +// no1 = s.nextInt(); +// no2 = s.nextInt(); +// +// add = no1+no2; +// System.out.println("Addition is:"+add); +// sub = no1-no2; +// System.out.println("Subtraction is:"+sub); +// mul = no1*no2; +// System.out.println("Multiplication is:"+mul); +// div = no1/no2; +// System.out.println("Division is:"+div); +// +int n= 9001; +int sum = 0; + + while (n > 0) { + + sum += n % 10; + + n /= 10; + + + } + System.out.println(n); + +}} diff --git a/oodj/oodj/ControlStructure/build.xml b/oodj/oodj/ControlStructure/build.xml new file mode 100644 index 0000000..40b5507 --- /dev/null +++ b/oodj/oodj/ControlStructure/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ControlStructure. + + + diff --git a/oodj/oodj/ControlStructure/build/built-jar.properties b/oodj/oodj/ControlStructure/build/built-jar.properties new file mode 100644 index 0000000..65e6b6e --- /dev/null +++ b/oodj/oodj/ControlStructure/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 12 Oct 2021 12:20:43 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\ControlStructure= diff --git a/oodj/oodj/ControlStructure/build/classes/controlstructure/ControlStructure.class b/oodj/oodj/ControlStructure/build/classes/controlstructure/ControlStructure.class new file mode 100644 index 0000000..9d81a22 Binary files /dev/null and b/oodj/oodj/ControlStructure/build/classes/controlstructure/ControlStructure.class differ diff --git a/oodj/oodj/ControlStructure/manifest.mf b/oodj/oodj/ControlStructure/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/ControlStructure/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/ControlStructure/nbproject/build-impl.xml b/oodj/oodj/ControlStructure/nbproject/build-impl.xml new file mode 100644 index 0000000..5b5b535 --- /dev/null +++ b/oodj/oodj/ControlStructure/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/ControlStructure/nbproject/genfiles.properties b/oodj/oodj/ControlStructure/nbproject/genfiles.properties new file mode 100644 index 0000000..4d95bd6 --- /dev/null +++ b/oodj/oodj/ControlStructure/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a5118ca2 +build.xml.script.CRC32=ef9b0875 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a5118ca2 +nbproject/build-impl.xml.script.CRC32=2137468a +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/ControlStructure/nbproject/private/private.properties b/oodj/oodj/ControlStructure/nbproject/private/private.properties new file mode 100644 index 0000000..5c8c5ab --- /dev/null +++ b/oodj/oodj/ControlStructure/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/ControlStructure/nbproject/private/private.xml b/oodj/oodj/ControlStructure/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/oodj/oodj/ControlStructure/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/oodj/oodj/ControlStructure/nbproject/project.properties b/oodj/oodj/ControlStructure/nbproject/project.properties new file mode 100644 index 0000000..7dd3bb7 --- /dev/null +++ b/oodj/oodj/ControlStructure/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ControlStructure.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/ControlStructure +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=ControlStructure +main.class=controlstructure.ControlStructure +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/ControlStructure/nbproject/project.xml b/oodj/oodj/ControlStructure/nbproject/project.xml new file mode 100644 index 0000000..d542240 --- /dev/null +++ b/oodj/oodj/ControlStructure/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ControlStructure + + + + + + + + + diff --git a/oodj/oodj/ControlStructure/src/controlstructure/ControlStructure.java b/oodj/oodj/ControlStructure/src/controlstructure/ControlStructure.java new file mode 100644 index 0000000..042c131 --- /dev/null +++ b/oodj/oodj/ControlStructure/src/controlstructure/ControlStructure.java @@ -0,0 +1,174 @@ + +package controlstructure; + +import java.util.*; + +public class ControlStructure { + + public static void main(String[] args) { + + /* Control Structure : used to check condition once and execute output once + 1. if + Syntax + if(condition) + Statement; + 2. if-else + Syntax + if(condition) + Statement 1; + else + Statement 2; + + 3. nested if-else + Syntax + if(condition 1) + Statement 1; + else if(condition 2) + Statement 2; + . + . + else if(condition n) + Statement n; + else + Statement; + + //WAP to check given number is positive number + int no; + Scanner s = new Scanner(System.in); + System.out.println("Enter value here"); + no = s.nextInt(); + + if(no>0) + { + System.out.println("No. is Possitive"); + } + + //WAP to check given number is positive number or Negative number + int no; + Scanner s = new Scanner(System.in); + System.out.println("Enter value here"); + no = s.nextInt(); + + if(no>0) + { + System.out.println("No. is Possitive"); + } + else + System.out.println("No. is Neagtive"); + + //WAP to check given number is zero,positive number or Negative number + int no; + Scanner s = new Scanner(System.in); + System.out.println("Enter value here"); + no = s.nextInt(); + + if(no==0) + { + System.out.println("No. is Zero"); + } + else if(no>0) + { + System.out.println("No. is Possitive"); + } + else + System.out.println("No. is Neagtive"); + */ + + //WAP to print largest number between 2 numbers + /* + no1 no2 ouput + 0 0 All zero + 9 9 All equal + 9 6 no1 Largest + 5 8 no2 Largest + */ + /* + int no1,no2; + Scanner s= new Scanner(System.in); + System.out.println("Enter 2 numbers here"); + no1 = s.nextInt(); + no2 = s.nextInt(); + + if(no1 == 0 && no2 == 0) + { + System.out.println("All Zero"); + } + else if(no1 == no2) + { + System.out.println("All Equal"); + } + else if(no1 > no2) + { + System.out.println("no1 is Largest"); + } + else + { + System.out.println("no2 is Largest"); + } + */ + + + /* + WAP to print the Total,Percentange(average) and Gade of a student by accepting student name, tpnumber and 5 subjects marks + (Note: A+ 100 - 80 A 80 - 75 b+ 75 - 70 + B 70 - 65 c+ 65 - 60 C 60- 55 + C- 55 - 50 d 50 - Below) + */ + String name; + int tp,s1,s2,s3,s4,s5,total; + float avg; + + Scanner s = new Scanner (System.in); + System.out.println("Enter Your Name :"); + name = s.nextLine(); + System.out.println("Enter Your TP Number :"); + tp = s.nextInt(); + System.out.println("Enter 5 Subject marks :"); + s1 = s.nextInt(); + s2 = s.nextInt(); + s3 = s.nextInt(); + s4 = s.nextInt(); + s5 = s.nextInt(); + + total = s1+s2+s3+s4+s5; + avg =total/5; + + System.out.println("\n\t Welcome to APU\n\tGrade System\nStydent Name\t\t:"+name+"\nStudent TP Number\t: TP"+tp); + System.out.println("All Subject Marks\t:"+s1+" , "+s2+" , "+s3+" , "+s4+" , "+s5); + System.out.println("Total is\t\t:"+total+"\nAverage is\t\t:"+avg); + if(avg <= 100 && avg >=80) + { + System.out.println("Grade is A+"); + } + else if(avg < 80 && avg >=75) + { + System.out.println("Grade is A"); + } + else if(avg < 75 && avg >=70) + { + System.out.println("Grade is B+"); + } + else if(avg <= 70 && avg >=65) + { + System.out.println("Grade is B"); + } + else if(avg <= 65 && avg >=60) + { + System.out.println("Grade is C+"); + } + else if(avg < 60 && avg >=55) + { + System.out.println("Grade is C"); + } + else if(avg < 55 && avg >=50) + { + System.out.println("Grade is C-"); + } + else + { + System.out.println("Grade is D"); + } + } + + +} diff --git a/oodj/oodj/JavaApplication21/manifest.mf b/oodj/oodj/JavaApplication21/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/JavaApplication21/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/JavaApplication21/src/javaapplication21/NFA.java b/oodj/oodj/JavaApplication21/src/javaapplication21/NFA.java new file mode 100644 index 0000000..c3cf63e --- /dev/null +++ b/oodj/oodj/JavaApplication21/src/javaapplication21/NFA.java @@ -0,0 +1,72 @@ +package javaapplication21; + +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; + +public class NFA { + + private enum States { + + Q0(false), Q1(false), Q2(false), Q3(false), Q4(true); + + final boolean accept; + + States(boolean accept) { + this.accept = accept; + } + + Set a; + Set b; + + static { + Q0.a = new HashSet(Arrays.asList(Q1, Q2)); + Q0.b = new HashSet(Arrays.asList(Q4)); + + Q1.a = new HashSet<>(Arrays.asList(Q0)); + Q1.b = Collections.EMPTY_SET; + + Q2.a = new HashSet<>(Arrays.asList(Q3)); + Q2.b = Collections.EMPTY_SET; + + Q3.a = Collections.EMPTY_SET; + Q3.b = new HashSet<>(Arrays.asList(Q0)); + + Q4.a = Collections.EMPTY_SET; + Q4.b = Collections.EMPTY_SET; + } + + Set transition(char ch) { + + switch (ch) { + case 'a': + return this.a; + case 'b': + return this.b; + default: + return Collections.EMPTY_SET; + } + } +} + + public boolean accept(String string) { + Set currStates = new HashSet<>(); + currStates.add(States.Q0); + + for (int i = 0; i < string.length(); i++) + currStates = union(currStates, string.charAt(i)); + + return currStates.stream().anyMatch(s -> s.accept); + } + + // Helper method which returns set of next states + private Set union(Set currStates, char ch) { + Set nextStates = new HashSet<>(); + + for (States cState: currStates) + nextStates.addAll(cState.transition(ch)); + + return nextStates; + } +} \ No newline at end of file diff --git a/oodj/oodj/JavaApplication33/build.xml b/oodj/oodj/JavaApplication33/build.xml new file mode 100644 index 0000000..d627800 --- /dev/null +++ b/oodj/oodj/JavaApplication33/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project JavaApplication33. + + + diff --git a/oodj/oodj/JavaApplication33/build/built-jar.properties b/oodj/oodj/JavaApplication33/build/built-jar.properties new file mode 100644 index 0000000..530921b --- /dev/null +++ b/oodj/oodj/JavaApplication33/build/built-jar.properties @@ -0,0 +1,4 @@ +#Wed, 22 Dec 2021 12:12:23 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\JavaApplication33= diff --git a/oodj/oodj/JavaApplication33/build/classes/Bond.class b/oodj/oodj/JavaApplication33/build/classes/Bond.class new file mode 100644 index 0000000..cb4fa08 Binary files /dev/null and b/oodj/oodj/JavaApplication33/build/classes/Bond.class differ diff --git a/oodj/oodj/JavaApplication33/build/classes/Employee.class b/oodj/oodj/JavaApplication33/build/classes/Employee.class new file mode 100644 index 0000000..8aede4d Binary files /dev/null and b/oodj/oodj/JavaApplication33/build/classes/Employee.class differ diff --git a/oodj/oodj/JavaApplication33/build/classes/MyFinallyBlock.class b/oodj/oodj/JavaApplication33/build/classes/MyFinallyBlock.class new file mode 100644 index 0000000..7424af9 Binary files /dev/null and b/oodj/oodj/JavaApplication33/build/classes/MyFinallyBlock.class differ diff --git a/oodj/oodj/JavaApplication33/build/classes/javaapplication33/JavaApplication33.class b/oodj/oodj/JavaApplication33/build/classes/javaapplication33/JavaApplication33.class new file mode 100644 index 0000000..1fd4bd2 Binary files /dev/null and b/oodj/oodj/JavaApplication33/build/classes/javaapplication33/JavaApplication33.class differ diff --git a/oodj/oodj/JavaApplication33/manifest.mf b/oodj/oodj/JavaApplication33/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/JavaApplication33/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/JavaApplication33/nbproject/build-impl.xml b/oodj/oodj/JavaApplication33/nbproject/build-impl.xml new file mode 100644 index 0000000..b01ed1d --- /dev/null +++ b/oodj/oodj/JavaApplication33/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/JavaApplication33/nbproject/genfiles.properties b/oodj/oodj/JavaApplication33/nbproject/genfiles.properties new file mode 100644 index 0000000..cac02ef --- /dev/null +++ b/oodj/oodj/JavaApplication33/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=928e10a2 +build.xml.script.CRC32=746995a2 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=928e10a2 +nbproject/build-impl.xml.script.CRC32=fa67db88 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/JavaApplication33/nbproject/private/config.properties b/oodj/oodj/JavaApplication33/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/oodj/oodj/JavaApplication33/nbproject/private/private.properties b/oodj/oodj/JavaApplication33/nbproject/private/private.properties new file mode 100644 index 0000000..4a71889 --- /dev/null +++ b/oodj/oodj/JavaApplication33/nbproject/private/private.properties @@ -0,0 +1,8 @@ +compile.on.save=true +do.depend=false +do.jar=true +do.jlink=false +javac.debug=true +javadoc.preview=true +jlink.strip=false +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/JavaApplication33/nbproject/private/private.xml b/oodj/oodj/JavaApplication33/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/oodj/oodj/JavaApplication33/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/oodj/oodj/JavaApplication33/nbproject/project.properties b/oodj/oodj/JavaApplication33/nbproject/project.properties new file mode 100644 index 0000000..05f7f38 --- /dev/null +++ b/oodj/oodj/JavaApplication33/nbproject/project.properties @@ -0,0 +1,97 @@ +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=JavaApplication33 +application.vendor=Kriso +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/JavaApplication33.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/JavaApplication33 +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.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=JavaApplication33 +main.class=Bond +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/JavaApplication33/nbproject/project.xml b/oodj/oodj/JavaApplication33/nbproject/project.xml new file mode 100644 index 0000000..3d9293e --- /dev/null +++ b/oodj/oodj/JavaApplication33/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + JavaApplication33 + + + + + + + + + diff --git a/oodj/oodj/JavaApplication33/src/Admin.java b/oodj/oodj/JavaApplication33/src/Admin.java new file mode 100644 index 0000000..68434c3 --- /dev/null +++ b/oodj/oodj/JavaApplication33/src/Admin.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. + */ + +/** + * + * @author Kriso + */ +public class Admin { + +} diff --git a/oodj/oodj/JavaApplication33/src/Bond.java b/oodj/oodj/JavaApplication33/src/Bond.java new file mode 100644 index 0000000..db528e2 --- /dev/null +++ b/oodj/oodj/JavaApplication33/src/Bond.java @@ -0,0 +1,26 @@ + public class Bond + + { + + public static void main(String[] args) + + { + + int a = 2, b = 3; + + if (a != 3) + + if (b == 3) + + System.out.println("%%%%%%%%%%"); + + else + + System.out.println("#############"); + + System.out.println("&&&&&&&&&&" + ); + + } + + } \ No newline at end of file diff --git a/oodj/oodj/JavaApplication33/src/Employee.java b/oodj/oodj/JavaApplication33/src/Employee.java new file mode 100644 index 0000000..2c6db2f --- /dev/null +++ b/oodj/oodj/JavaApplication33/src/Employee.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. + */ + +/** + * + * @author Kriso + */ +public class Employee { + + private String name; + private int height, age; + + public Employee(String Frame, int hg, int Age) + { + name = Frame; + height = hg; + age = Age; + } + + + public void Print_Employee_Age() + { + System.out.println(age); + } +} + diff --git a/oodj/oodj/JavaApplication33/src/javaapplication33/JavaApplication33.java b/oodj/oodj/JavaApplication33/src/javaapplication33/JavaApplication33.java new file mode 100644 index 0000000..7112291 --- /dev/null +++ b/oodj/oodj/JavaApplication33/src/javaapplication33/JavaApplication33.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 javaapplication33; + +import java.util.Scanner; + +/** + * + * @author Kriso + */ +public class JavaApplication33 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + int i = 0 ; + Scanner s = new Scanner(System.in); + System.out.println("Enter values to find number:"); + int n = s.nextInt(); + + while (i<=n) + { + if(i == 5) + { + System.out.println("Found"); + return; + } + else + { + i = i + 1; + System.out.println("Not Found"); + } + + } + } + +} diff --git a/oodj/oodj/LoopingStructureProgramming/build.xml b/oodj/oodj/LoopingStructureProgramming/build.xml new file mode 100644 index 0000000..8a6bb11 --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project LoopingStructureProgramming. + + + diff --git a/oodj/oodj/LoopingStructureProgramming/build/built-jar.properties b/oodj/oodj/LoopingStructureProgramming/build/built-jar.properties new file mode 100644 index 0000000..50dac0b --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/build/built-jar.properties @@ -0,0 +1,4 @@ +#Fri, 26 Nov 2021 21:31:54 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\LoopingStructureProgramming= diff --git a/oodj/oodj/LoopingStructureProgramming/build/classes/loopingstructureprogramming/LoopingStructureProgramming.class b/oodj/oodj/LoopingStructureProgramming/build/classes/loopingstructureprogramming/LoopingStructureProgramming.class new file mode 100644 index 0000000..d43d982 Binary files /dev/null and b/oodj/oodj/LoopingStructureProgramming/build/classes/loopingstructureprogramming/LoopingStructureProgramming.class differ diff --git a/oodj/oodj/LoopingStructureProgramming/build/classes/loopingstructureprogramming/TestOptionPane02$1.class b/oodj/oodj/LoopingStructureProgramming/build/classes/loopingstructureprogramming/TestOptionPane02$1.class new file mode 100644 index 0000000..2dafc06 Binary files /dev/null and b/oodj/oodj/LoopingStructureProgramming/build/classes/loopingstructureprogramming/TestOptionPane02$1.class differ diff --git a/oodj/oodj/LoopingStructureProgramming/build/classes/loopingstructureprogramming/TestOptionPane02.class b/oodj/oodj/LoopingStructureProgramming/build/classes/loopingstructureprogramming/TestOptionPane02.class new file mode 100644 index 0000000..1024e11 Binary files /dev/null and b/oodj/oodj/LoopingStructureProgramming/build/classes/loopingstructureprogramming/TestOptionPane02.class differ diff --git a/oodj/oodj/LoopingStructureProgramming/manifest.mf b/oodj/oodj/LoopingStructureProgramming/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/LoopingStructureProgramming/nbproject/build-impl.xml b/oodj/oodj/LoopingStructureProgramming/nbproject/build-impl.xml new file mode 100644 index 0000000..fb3fb0b --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/LoopingStructureProgramming/nbproject/genfiles.properties b/oodj/oodj/LoopingStructureProgramming/nbproject/genfiles.properties new file mode 100644 index 0000000..fd7c84d --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4a8e484d +build.xml.script.CRC32=d0d564b1 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=4a8e484d +nbproject/build-impl.xml.script.CRC32=656dedc2 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/LoopingStructureProgramming/nbproject/private/config.properties b/oodj/oodj/LoopingStructureProgramming/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/oodj/oodj/LoopingStructureProgramming/nbproject/private/private.properties b/oodj/oodj/LoopingStructureProgramming/nbproject/private/private.properties new file mode 100644 index 0000000..4a71889 --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/nbproject/private/private.properties @@ -0,0 +1,8 @@ +compile.on.save=true +do.depend=false +do.jar=true +do.jlink=false +javac.debug=true +javadoc.preview=true +jlink.strip=false +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/LoopingStructureProgramming/nbproject/private/private.xml b/oodj/oodj/LoopingStructureProgramming/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/oodj/oodj/LoopingStructureProgramming/nbproject/project.properties b/oodj/oodj/LoopingStructureProgramming/nbproject/project.properties new file mode 100644 index 0000000..7dcd644 --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/nbproject/project.properties @@ -0,0 +1,97 @@ +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=LoopingStructureProgramming +application.vendor=Kriso +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/LoopingStructureProgramming.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/LoopingStructureProgramming +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.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=LoopingStructureProgramming +main.class=loopingstructureprogramming.TestOptionPane02 +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/LoopingStructureProgramming/nbproject/project.xml b/oodj/oodj/LoopingStructureProgramming/nbproject/project.xml new file mode 100644 index 0000000..b5a4fa2 --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + LoopingStructureProgramming + + + + + + + + + diff --git a/oodj/oodj/LoopingStructureProgramming/src/loopingstructureprogramming/LoopingStructureProgramming.java b/oodj/oodj/LoopingStructureProgramming/src/loopingstructureprogramming/LoopingStructureProgramming.java new file mode 100644 index 0000000..15a3974 --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/src/loopingstructureprogramming/LoopingStructureProgramming.java @@ -0,0 +1,76 @@ + +package loopingstructureprogramming; + + +public class LoopingStructureProgramming { + + + public static void main(String[] args) { + //WAP tpo print Hello 10 times + //while loop + /*int cnt; + cnt = 1;//initilization + while(cnt<=10)//condition + { + System.out.println("Hello"); + cnt = cnt + 1;//increment/decrement + } + + //for loop + int cnt1; + for(cnt1 = 1; cnt1 <= 10 ; cnt1++) + { + System.out.println("For Hello"); + } + + //WAP to display all the numbers between 1 to 25. Also display addition of all numbers at the end + + int cnt,add; + cnt = 1;//initilization + add = 0; + while(cnt<=25)//condition + { + System.out.println(cnt); + add = add + cnt; + cnt = cnt + 1;//increment/decrement + } + System.out.println("Addition :"+add); + + + //for loop + int cnt1,add1; + add1 = 0; + for(cnt1 = 1; cnt1 <= 25 ; cnt1++) + { + System.out.println(cnt1); + add1 = add1+cnt1; + } + System.out.println("Addition :"+add1); + + + //WAP to print all EVEN numbers between 1 to 25. + int cnt; + cnt = 1; + //the while loop executes until the condition become false + while(cnt<=25) + { + if(cnt%2==0) + { + System.out.println(cnt); + } + cnt = cnt+1; + }*/ + + int cnt1; + for(cnt1 = 1; cnt1 <= 25 ; cnt1++) + { + if(cnt1%2==0) + { + System.out.println(cnt1); + } + } + + + } + + } diff --git a/oodj/oodj/LoopingStructureProgramming/src/loopingstructureprogramming/TestOptionPane02.java b/oodj/oodj/LoopingStructureProgramming/src/loopingstructureprogramming/TestOptionPane02.java new file mode 100644 index 0000000..f1fe33c --- /dev/null +++ b/oodj/oodj/LoopingStructureProgramming/src/loopingstructureprogramming/TestOptionPane02.java @@ -0,0 +1,55 @@ +package loopingstructureprogramming; + + +import java.awt.EventQueue; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.swing.JFrame; +import javax.swing.JOptionPane; +import javax.swing.JTextField; +import javax.swing.UIManager; +import javax.swing.UnsupportedLookAndFeelException; + +public class TestOptionPane02 { + + public static void main(String[] args) { + new TestOptionPane02(); + } + + public TestOptionPane02() { + EventQueue.invokeLater(new Runnable() { + @Override + public void run() { + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (ClassNotFoundException ex) { + } catch (InstantiationException ex) { + } catch (IllegalAccessException ex) { + } catch (UnsupportedLookAndFeelException ex) { + } + + JTextField textField = new JTextField(10); + + String btnString1 = "Save Object"; + String btnString2 = "Delete Object"; + + //Create an array of the text and components to be displayed. + String msgString1 = "Object label:"; + Object[] array = {msgString1, textField}; + //Create an array specifying the number of dialog buttons + //and their text. + Object[] options = {btnString1, btnString2}; + + int result = JOptionPane.showOptionDialog(null, array, "", JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[0]); + switch (result) { + case 0: + System.out.println("Save me"); + break; + case 1: + System.out.println("Delete me"); + break; + } + } + }); + } +} \ No newline at end of file diff --git a/oodj/oodj/OODJAssignment.7z b/oodj/oodj/OODJAssignment.7z new file mode 100644 index 0000000..2cfbfad Binary files /dev/null and b/oodj/oodj/OODJAssignment.7z differ diff --git a/oodj/oodj/ProgramWays/build.xml b/oodj/oodj/ProgramWays/build.xml new file mode 100644 index 0000000..cb76ee7 --- /dev/null +++ b/oodj/oodj/ProgramWays/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ProgramWays. + + + diff --git a/oodj/oodj/ProgramWays/build/built-jar.properties b/oodj/oodj/ProgramWays/build/built-jar.properties new file mode 100644 index 0000000..d9f565a --- /dev/null +++ b/oodj/oodj/ProgramWays/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 02 Nov 2021 11:54:10 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\ProgramWays= diff --git a/oodj/oodj/ProgramWays/build/classes/programways/ConstructorClass.class b/oodj/oodj/ProgramWays/build/classes/programways/ConstructorClass.class new file mode 100644 index 0000000..a24eb3b Binary files /dev/null and b/oodj/oodj/ProgramWays/build/classes/programways/ConstructorClass.class differ diff --git a/oodj/oodj/ProgramWays/build/classes/programways/GetSetClass.class b/oodj/oodj/ProgramWays/build/classes/programways/GetSetClass.class new file mode 100644 index 0000000..304c379 Binary files /dev/null and b/oodj/oodj/ProgramWays/build/classes/programways/GetSetClass.class differ diff --git a/oodj/oodj/ProgramWays/build/classes/programways/NormalClass.class b/oodj/oodj/ProgramWays/build/classes/programways/NormalClass.class new file mode 100644 index 0000000..2e12b3e Binary files /dev/null and b/oodj/oodj/ProgramWays/build/classes/programways/NormalClass.class differ diff --git a/oodj/oodj/ProgramWays/build/classes/programways/ProgramWays.class b/oodj/oodj/ProgramWays/build/classes/programways/ProgramWays.class new file mode 100644 index 0000000..70ca9ff Binary files /dev/null and b/oodj/oodj/ProgramWays/build/classes/programways/ProgramWays.class differ diff --git a/oodj/oodj/ProgramWays/build/classes/programways/StaticClass.class b/oodj/oodj/ProgramWays/build/classes/programways/StaticClass.class new file mode 100644 index 0000000..e7835bc Binary files /dev/null and b/oodj/oodj/ProgramWays/build/classes/programways/StaticClass.class differ diff --git a/oodj/oodj/ProgramWays/manifest.mf b/oodj/oodj/ProgramWays/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/ProgramWays/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/ProgramWays/nbproject/build-impl.xml b/oodj/oodj/ProgramWays/nbproject/build-impl.xml new file mode 100644 index 0000000..6002ac7 --- /dev/null +++ b/oodj/oodj/ProgramWays/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/ProgramWays/nbproject/genfiles.properties b/oodj/oodj/ProgramWays/nbproject/genfiles.properties new file mode 100644 index 0000000..4108294 --- /dev/null +++ b/oodj/oodj/ProgramWays/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=22117147 +build.xml.script.CRC32=0d347876 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=22117147 +nbproject/build-impl.xml.script.CRC32=4f951d55 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/ProgramWays/nbproject/private/private.properties b/oodj/oodj/ProgramWays/nbproject/private/private.properties new file mode 100644 index 0000000..5c8c5ab --- /dev/null +++ b/oodj/oodj/ProgramWays/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/ProgramWays/nbproject/private/private.xml b/oodj/oodj/ProgramWays/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/oodj/oodj/ProgramWays/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/oodj/oodj/ProgramWays/nbproject/project.properties b/oodj/oodj/ProgramWays/nbproject/project.properties new file mode 100644 index 0000000..e3af438 --- /dev/null +++ b/oodj/oodj/ProgramWays/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ProgramWays.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/ProgramWays +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=ProgramWays +main.class=programways.ProgramWays +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/ProgramWays/nbproject/project.xml b/oodj/oodj/ProgramWays/nbproject/project.xml new file mode 100644 index 0000000..c818993 --- /dev/null +++ b/oodj/oodj/ProgramWays/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ProgramWays + + + + + + + + + diff --git a/oodj/oodj/ProgramWays/src/programways/ConstructorClass.java b/oodj/oodj/ProgramWays/src/programways/ConstructorClass.java new file mode 100644 index 0000000..b9cb8a8 --- /dev/null +++ b/oodj/oodj/ProgramWays/src/programways/ConstructorClass.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 programways; + +/** + * + * @author Kriso + */ +public class ConstructorClass +{ + int ele; + + ConstructorClass(int r) + { + ele = r; + } + + int result () + { + return ele; + } +} diff --git a/oodj/oodj/ProgramWays/src/programways/GetSetClass.java b/oodj/oodj/ProgramWays/src/programways/GetSetClass.java new file mode 100644 index 0000000..5ad618a --- /dev/null +++ b/oodj/oodj/ProgramWays/src/programways/GetSetClass.java @@ -0,0 +1,25 @@ +package programways; + +/* + * To change 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 Kriso + */ +public class GetSetClass +{ + int value; + void SetData (int k) + { + value = k; + } + + int GetData() + { + return value; + } +} diff --git a/oodj/oodj/ProgramWays/src/programways/NormalClass.java b/oodj/oodj/ProgramWays/src/programways/NormalClass.java new file mode 100644 index 0000000..d559d5d --- /dev/null +++ b/oodj/oodj/ProgramWays/src/programways/NormalClass.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 programways; + +/** + * + * @author Kriso + */ +public class NormalClass { + + void NormalMethod(int b) + { + System.out.println("NOrmal class, Value of number is "+b); + } +} diff --git a/oodj/oodj/ProgramWays/src/programways/ProgramWays.java b/oodj/oodj/ProgramWays/src/programways/ProgramWays.java new file mode 100644 index 0000000..9d9c94f --- /dev/null +++ b/oodj/oodj/ProgramWays/src/programways/ProgramWays.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 programways; + +import java.util.*; + +/** + * + * @author Kriso + */ +public class ProgramWays { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + int no; + Scanner s = new Scanner(System.in); + System.out.println("Enter You values here:"); + no = s.nextInt(); + System.out.println("Value of number is:"+no); + + Display(no); + + StaticClass.StaticMethod(no); + + NormalClass nc = new NormalClass(); + nc.NormalMethod(no); + + GetSetClass gs = new GetSetClass(); + gs.SetData(no); + System.out.println("GetSetClass. Value of number is :"+gs.GetData()); + + ConstructorClass cc = new ConstructorClass(no); + System.out.println("Constructor Class, Value of number is "+cc.result()); + + } + static void Display(int a) + { + System.out.println("Static inside same class. Value of number is :"+a); + } + +} diff --git a/oodj/oodj/ProgramWays/src/programways/StaticClass.java b/oodj/oodj/ProgramWays/src/programways/StaticClass.java new file mode 100644 index 0000000..73c8067 --- /dev/null +++ b/oodj/oodj/ProgramWays/src/programways/StaticClass.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 programways; + +/** + * + * @author Kriso + */ +public class StaticClass { + static void StaticMethod(int a) + { + System.out.println("Static inside different class, Value of number is "+a); + } +} diff --git a/oodj/oodj/RectArea/build.xml b/oodj/oodj/RectArea/build.xml new file mode 100644 index 0000000..e87d25c --- /dev/null +++ b/oodj/oodj/RectArea/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project RectArea. + + + diff --git a/oodj/oodj/RectArea/manifest.mf b/oodj/oodj/RectArea/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/RectArea/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/RectArea/nbproject/build-impl.xml b/oodj/oodj/RectArea/nbproject/build-impl.xml new file mode 100644 index 0000000..207421a --- /dev/null +++ b/oodj/oodj/RectArea/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/RectArea/nbproject/genfiles.properties b/oodj/oodj/RectArea/nbproject/genfiles.properties new file mode 100644 index 0000000..14da2cf --- /dev/null +++ b/oodj/oodj/RectArea/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2df3b5d5 +build.xml.script.CRC32=a48407e6 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=2df3b5d5 +nbproject/build-impl.xml.script.CRC32=e59e9ae3 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/RectArea/nbproject/private/private.properties b/oodj/oodj/RectArea/nbproject/private/private.properties new file mode 100644 index 0000000..5c8c5ab --- /dev/null +++ b/oodj/oodj/RectArea/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/RectArea/nbproject/private/private.xml b/oodj/oodj/RectArea/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/oodj/oodj/RectArea/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/oodj/oodj/RectArea/nbproject/project.properties b/oodj/oodj/RectArea/nbproject/project.properties new file mode 100644 index 0000000..d24d0d2 --- /dev/null +++ b/oodj/oodj/RectArea/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/RectArea.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/RectArea +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=RectArea +main.class=rectarea.RectArea +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/RectArea/nbproject/project.xml b/oodj/oodj/RectArea/nbproject/project.xml new file mode 100644 index 0000000..6bbdb9d --- /dev/null +++ b/oodj/oodj/RectArea/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + RectArea + + + + + + + + + diff --git a/oodj/oodj/RectArea/src/rectarea/RectArea.java b/oodj/oodj/RectArea/src/rectarea/RectArea.java new file mode 100644 index 0000000..3de61dc --- /dev/null +++ b/oodj/oodj/RectArea/src/rectarea/RectArea.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 rectarea; + +import java.util.*; + +/** + * + * @author Kriso + */ +public class RectArea { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + int x,y,area2; + Scanner s = new Scanner(System.in); + System.out.println("Enter Width and Height of Rectangle: "); + x = s.nextInt(); + y = s.nextInt(); + + Rectangle rect2 = new Rectangle(); + + rect2.Data(x,y); + area2 = rect2.rectArea(); + + System.out.println("Area2 = "+ area2); + + } + +} diff --git a/oodj/oodj/RectArea/src/rectarea/Rectangle.java b/oodj/oodj/RectArea/src/rectarea/Rectangle.java new file mode 100644 index 0000000..3f1319d --- /dev/null +++ b/oodj/oodj/RectArea/src/rectarea/Rectangle.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 rectarea; + +/** + * + * @author Kriso + */ +public class Rectangle { + int length, width; + + void Data(int x,int y) + { + length = x; + width = y; + } + + int rectArea() + { + int area = length * width; + return(area); + + } +} diff --git a/oodj/oodj/Vehicle/build.xml b/oodj/oodj/Vehicle/build.xml new file mode 100644 index 0000000..3053565 --- /dev/null +++ b/oodj/oodj/Vehicle/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Vehicle. + + + diff --git a/oodj/oodj/Vehicle/build/built-jar.properties b/oodj/oodj/Vehicle/build/built-jar.properties new file mode 100644 index 0000000..16ece0a --- /dev/null +++ b/oodj/oodj/Vehicle/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 16 Nov 2021 12:29:07 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\Vehicle= diff --git a/oodj/oodj/Vehicle/build/classes/vehicle/Bicycle.class b/oodj/oodj/Vehicle/build/classes/vehicle/Bicycle.class new file mode 100644 index 0000000..0101d33 Binary files /dev/null and b/oodj/oodj/Vehicle/build/classes/vehicle/Bicycle.class differ diff --git a/oodj/oodj/Vehicle/build/classes/vehicle/Skateboard.class b/oodj/oodj/Vehicle/build/classes/vehicle/Skateboard.class new file mode 100644 index 0000000..3e8e391 Binary files /dev/null and b/oodj/oodj/Vehicle/build/classes/vehicle/Skateboard.class differ diff --git a/oodj/oodj/Vehicle/build/classes/vehicle/VehicleTest.class b/oodj/oodj/Vehicle/build/classes/vehicle/VehicleTest.class new file mode 100644 index 0000000..f1e885f Binary files /dev/null and b/oodj/oodj/Vehicle/build/classes/vehicle/VehicleTest.class differ diff --git a/oodj/oodj/Vehicle/build/classes/vehicle/vehicle.class b/oodj/oodj/Vehicle/build/classes/vehicle/vehicle.class new file mode 100644 index 0000000..2d5f3ce Binary files /dev/null and b/oodj/oodj/Vehicle/build/classes/vehicle/vehicle.class differ diff --git a/oodj/oodj/Vehicle/manifest.mf b/oodj/oodj/Vehicle/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/Vehicle/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/Vehicle/nbproject/build-impl.xml b/oodj/oodj/Vehicle/nbproject/build-impl.xml new file mode 100644 index 0000000..e30971b --- /dev/null +++ b/oodj/oodj/Vehicle/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/Vehicle/nbproject/genfiles.properties b/oodj/oodj/Vehicle/nbproject/genfiles.properties new file mode 100644 index 0000000..69fe910 --- /dev/null +++ b/oodj/oodj/Vehicle/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ac530f81 +build.xml.script.CRC32=335c15c8 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=ac530f81 +nbproject/build-impl.xml.script.CRC32=4ba3f5dd +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/Vehicle/nbproject/private/private.properties b/oodj/oodj/Vehicle/nbproject/private/private.properties new file mode 100644 index 0000000..5c8c5ab --- /dev/null +++ b/oodj/oodj/Vehicle/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/Vehicle/nbproject/private/private.xml b/oodj/oodj/Vehicle/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/oodj/oodj/Vehicle/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/oodj/oodj/Vehicle/nbproject/project.properties b/oodj/oodj/Vehicle/nbproject/project.properties new file mode 100644 index 0000000..44f9215 --- /dev/null +++ b/oodj/oodj/Vehicle/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Vehicle.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/Vehicle +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=Vehicle +main.class=vehicle.VehicleTest +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/Vehicle/nbproject/project.xml b/oodj/oodj/Vehicle/nbproject/project.xml new file mode 100644 index 0000000..3fc95c4 --- /dev/null +++ b/oodj/oodj/Vehicle/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Vehicle + + + + + + + + + diff --git a/oodj/oodj/Vehicle/src/vehicle/Bicycle.java b/oodj/oodj/Vehicle/src/vehicle/Bicycle.java new file mode 100644 index 0000000..8848994 --- /dev/null +++ b/oodj/oodj/Vehicle/src/vehicle/Bicycle.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 vehicle; + +/** + * + * @author Kriso + */ +public class Bicycle extends vehicle { + + private int myGearCount; + public Bicycle() + { + myGearCount = 1; + } + public Bicycle(int gearCount) + { + setGearCount(gearCount); + } + public int GetGearCount() + { + return myGearCount; + } + + public void setGearCount(int gearCount) + { + myGearCount = gearCount; + } +} diff --git a/oodj/oodj/Vehicle/src/vehicle/Skateboard.java b/oodj/oodj/Vehicle/src/vehicle/Skateboard.java new file mode 100644 index 0000000..5cba47c --- /dev/null +++ b/oodj/oodj/Vehicle/src/vehicle/Skateboard.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 vehicle; + +/** + * + * @author Kriso + */ +public class Skateboard extends vehicle{ + private double myBoardLenght; + public Skateboard() + { + myBoardLenght = 0; + } + public Skateboard(double boardLength) + { + setBoardLength(boardLength); + } + public double getBoardLength() + { + return myBoardLenght; + } + + public void setBoardLength(double boardLength) + { + myBoardLenght = boardLength; + } +} diff --git a/oodj/oodj/Vehicle/src/vehicle/VehicleTest.java b/oodj/oodj/Vehicle/src/vehicle/VehicleTest.java new file mode 100644 index 0000000..d440674 --- /dev/null +++ b/oodj/oodj/Vehicle/src/vehicle/VehicleTest.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 vehicle; + +/** + * + * @author Kriso + */ +public class VehicleTest { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + + Bicycle ok = new Bicycle(); + ok.setGearCount(27); + System.out.println(ok.GetGearCount()); + ok.setBrand("Treak"); + ok.setModel("\n7.4FX"); + System.out.println(ok.toString()); + + + Skateboard board = new Skateboard(); + board.setBoardLength(31.5); + System.out.println(board.getBoardLength()); + board.setBrand("Ally"); + board.setModel("Rocket"); + System.out.println(board.toString()); + } + +} diff --git a/oodj/oodj/Vehicle/src/vehicle/vehicle.java b/oodj/oodj/Vehicle/src/vehicle/vehicle.java new file mode 100644 index 0000000..a9f2b88 --- /dev/null +++ b/oodj/oodj/Vehicle/src/vehicle/vehicle.java @@ -0,0 +1,48 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package vehicle; + +/** + * + * @author Kriso + */ +public class vehicle { + + private String myBrand, myMOdel; + public vehicle() + { + myBrand = "unknown"; + myMOdel = "unknown"; + } + + public vehicle(String brand, String model) + { + setBrand(brand); + setModel(model); + } + + public String getBrand() + { + return myBrand; + } + + public void setBrand(String brand) + { + myBrand = brand; + } + public String getModel() + { + return myMOdel; + } + public void setModel(String model) + { + myMOdel = model; + } + public String toString() + { + return getBrand() + " " +getModel(); + } +} diff --git a/oodj/oodj/calculator/build.xml b/oodj/oodj/calculator/build.xml new file mode 100644 index 0000000..5c7f54f --- /dev/null +++ b/oodj/oodj/calculator/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project calculator. + + + diff --git a/oodj/oodj/calculator/build/built-jar.properties b/oodj/oodj/calculator/build/built-jar.properties new file mode 100644 index 0000000..501c56b --- /dev/null +++ b/oodj/oodj/calculator/build/built-jar.properties @@ -0,0 +1,4 @@ +#Wed, 17 Nov 2021 09:51:57 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\calculator= diff --git a/oodj/oodj/calculator/build/classes/calculator/Calculator.class b/oodj/oodj/calculator/build/classes/calculator/Calculator.class new file mode 100644 index 0000000..143472e Binary files /dev/null and b/oodj/oodj/calculator/build/classes/calculator/Calculator.class differ diff --git a/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$1.class b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$1.class new file mode 100644 index 0000000..6fe3f23 Binary files /dev/null and b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$1.class differ diff --git a/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$2.class b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$2.class new file mode 100644 index 0000000..b3020bc Binary files /dev/null and b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$2.class differ diff --git a/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$3.class b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$3.class new file mode 100644 index 0000000..e081415 Binary files /dev/null and b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$3.class differ diff --git a/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$4.class b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$4.class new file mode 100644 index 0000000..e80f486 Binary files /dev/null and b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$4.class differ diff --git a/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$5.class b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$5.class new file mode 100644 index 0000000..b815fbb Binary files /dev/null and b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$5.class differ diff --git a/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$6.class b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$6.class new file mode 100644 index 0000000..3f79c90 Binary files /dev/null and b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$6.class differ diff --git a/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$7.class b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$7.class new file mode 100644 index 0000000..4eab591 Binary files /dev/null and b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm$7.class differ diff --git a/oodj/oodj/calculator/build/classes/calculator/CalculatorForm.class b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm.class new file mode 100644 index 0000000..483c475 Binary files /dev/null and b/oodj/oodj/calculator/build/classes/calculator/CalculatorForm.class differ diff --git a/oodj/oodj/calculator/manifest.mf b/oodj/oodj/calculator/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/calculator/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/calculator/nbproject/build-impl.xml b/oodj/oodj/calculator/nbproject/build-impl.xml new file mode 100644 index 0000000..d12e1a8 --- /dev/null +++ b/oodj/oodj/calculator/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/calculator/nbproject/genfiles.properties b/oodj/oodj/calculator/nbproject/genfiles.properties new file mode 100644 index 0000000..9747e9e --- /dev/null +++ b/oodj/oodj/calculator/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=becb7077 +build.xml.script.CRC32=7618ae60 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=becb7077 +nbproject/build-impl.xml.script.CRC32=9f6b0027 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/calculator/nbproject/private/config.properties b/oodj/oodj/calculator/nbproject/private/config.properties new file mode 100644 index 0000000..e69de29 diff --git a/oodj/oodj/calculator/nbproject/private/private.properties b/oodj/oodj/calculator/nbproject/private/private.properties new file mode 100644 index 0000000..4a71889 --- /dev/null +++ b/oodj/oodj/calculator/nbproject/private/private.properties @@ -0,0 +1,8 @@ +compile.on.save=true +do.depend=false +do.jar=true +do.jlink=false +javac.debug=true +javadoc.preview=true +jlink.strip=false +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/calculator/nbproject/private/private.xml b/oodj/oodj/calculator/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/oodj/oodj/calculator/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/oodj/oodj/calculator/nbproject/project.properties b/oodj/oodj/calculator/nbproject/project.properties new file mode 100644 index 0000000..fabb165 --- /dev/null +++ b/oodj/oodj/calculator/nbproject/project.properties @@ -0,0 +1,97 @@ +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=calculator +application.vendor=Kriso +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/calculator.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/calculator +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.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=calculator +main.class=calculator.CalculatorForm +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/calculator/nbproject/project.xml b/oodj/oodj/calculator/nbproject/project.xml new file mode 100644 index 0000000..ad93c05 --- /dev/null +++ b/oodj/oodj/calculator/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + calculator + + + + + + + + + diff --git a/oodj/oodj/calculator/src/calculator/Calculator.java b/oodj/oodj/calculator/src/calculator/Calculator.java new file mode 100644 index 0000000..246bb01 --- /dev/null +++ b/oodj/oodj/calculator/src/calculator/Calculator.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 calculator; + +/** + * + * @author Kriso + */ +public class Calculator { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/oodj/oodj/calculator/src/calculator/CalculatorForm.form b/oodj/oodj/calculator/src/calculator/CalculatorForm.form new file mode 100644 index 0000000..1204239 --- /dev/null +++ b/oodj/oodj/calculator/src/calculator/CalculatorForm.form @@ -0,0 +1,197 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/oodj/oodj/calculator/src/calculator/CalculatorForm.java b/oodj/oodj/calculator/src/calculator/CalculatorForm.java new file mode 100644 index 0000000..bb13449 --- /dev/null +++ b/oodj/oodj/calculator/src/calculator/CalculatorForm.java @@ -0,0 +1,284 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package calculator; + +import javax.swing.JOptionPane; + +/** + * + * @author Kriso + */ +public class CalculatorForm extends javax.swing.JFrame { + + /** + * Creates new form ValculatorForm + */ + public CalculatorForm() { + initComponents(); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + Lbltitle = new javax.swing.JLabel(); + LblFN = new javax.swing.JLabel(); + LblSN = new javax.swing.JLabel(); + TxtSN = new javax.swing.JTextField(); + TxtFN1 = new javax.swing.JTextField(); + BtnMinus = new javax.swing.JButton(); + BtnPlus = new javax.swing.JButton(); + BtnMultiply = new javax.swing.JButton(); + BtnDvision = new javax.swing.JButton(); + LblSN1 = new javax.swing.JLabel(); + TXTAns = new javax.swing.JTextField(); + BtnPlus1 = new javax.swing.JButton(); + BtnPlus2 = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + Lbltitle.setText("Welcome to simple Valculator Form"); + + LblFN.setText("First Number :"); + + LblSN.setText("Second Number :"); + + BtnMinus.setText("-"); + BtnMinus.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + BtnMinusActionPerformed(evt); + } + }); + + BtnPlus.setText("+"); + BtnPlus.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + BtnPlusActionPerformed(evt); + } + }); + + BtnMultiply.setText("*"); + BtnMultiply.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + BtnMultiplyActionPerformed(evt); + } + }); + + BtnDvision.setText("/"); + BtnDvision.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + BtnDvisionActionPerformed(evt); + } + }); + + LblSN1.setText("The Answer Is:"); + + BtnPlus1.setText("Clear"); + BtnPlus1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + BtnPlus1ActionPerformed(evt); + } + }); + + BtnPlus2.setText("Exit"); + BtnPlus2.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + BtnPlus2ActionPerformed(evt); + } + }); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(163, 163, 163) + .addComponent(Lbltitle, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(layout.createSequentialGroup() + .addGap(54, 54, 54) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addComponent(BtnPlus, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(222, 222, 222)) + .addGroup(layout.createSequentialGroup() + .addGap(130, 130, 130) + .addComponent(BtnMinus, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(56, 56, 56) + .addComponent(BtnMultiply, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(42, 42, 42) + .addComponent(BtnDvision, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)))) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addGroup(layout.createSequentialGroup() + .addComponent(LblSN1) + .addGap(18, 18, 18) + .addComponent(TXTAns, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(LblFN, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() + .addGap(112, 112, 112) + .addComponent(LblSN))) + .addGap(18, 18, 18) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(TxtSN, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(TxtFN1, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)))) + .addGroup(layout.createSequentialGroup() + .addGap(91, 91, 91) + .addComponent(BtnPlus1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(215, 215, 215) + .addComponent(BtnPlus2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addContainerGap(88, Short.MAX_VALUE)) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(27, 27, 27) + .addComponent(Lbltitle, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(23, 23, 23) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(LblFN) + .addComponent(TxtFN1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(57, 57, 57) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(LblSN) + .addComponent(TxtSN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(28, 28, 28) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(BtnMinus) + .addComponent(BtnMultiply) + .addComponent(BtnDvision) + .addComponent(BtnPlus)) + .addGap(28, 28, 28) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(LblSN1) + .addComponent(TXTAns, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(31, 31, 31) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(BtnPlus1) + .addComponent(BtnPlus2)) + .addContainerGap(55, Short.MAX_VALUE)) + ); + + pack(); + }// //GEN-END:initComponents + + private void BtnMinusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnMinusActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_BtnMinusActionPerformed + + private void BtnPlusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnPlusActionPerformed + int no1,no2; + no1=0; + no2=0; + TXTAns.setEnabled(false); + try + { + no1 = Integer.parseInt(TxtFN1.getText()); + } + catch(NumberFormatException ex) + { + + } + catch(Exception e) + { + JOptionPane.showMessageDialog(this, "Wrong First Number","Error MessageBox",JOptionPane.ERROR_MESSAGE); + } + + try + { + no2 = Integer.parseInt(TxtSN.getText()); + } + catch(Exception e) + { + JOptionPane.showMessageDialog(this, "Wrong Second Number","Error MessageBox",JOptionPane.ERROR_MESSAGE); + } + finally + { + JOptionPane.showMessageDialog(this, "DO You want to continue","Message",JOptionPane.ERROR_MESSAGE); + } + + int ans = no1+no2; + String tans = String.valueOf(ans); + this.TXTAns.setText(tans); + }//GEN-LAST:event_BtnPlusActionPerformed + + private void BtnMultiplyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnMultiplyActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_BtnMultiplyActionPerformed + + private void BtnDvisionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnDvisionActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_BtnDvisionActionPerformed + + private void BtnPlus1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnPlus1ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_BtnPlus1ActionPerformed + + private void BtnPlus2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BtnPlus2ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_BtnPlus2ActionPerformed + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + // + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(CalculatorForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(CalculatorForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(CalculatorForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(CalculatorForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + // + // + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + new CalculatorForm().setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton BtnDvision; + private javax.swing.JButton BtnMinus; + private javax.swing.JButton BtnMultiply; + private javax.swing.JButton BtnPlus; + private javax.swing.JButton BtnPlus1; + private javax.swing.JButton BtnPlus2; + private javax.swing.JLabel LblFN; + private javax.swing.JLabel LblSN; + private javax.swing.JLabel LblSN1; + private javax.swing.JLabel Lbltitle; + private javax.swing.JTextField TXTAns; + private javax.swing.JTextField TxtFN1; + private javax.swing.JTextField TxtSN; + // End of variables declaration//GEN-END:variables +} diff --git a/oodj/oodj/programmethods/build.xml b/oodj/oodj/programmethods/build.xml new file mode 100644 index 0000000..2031b43 --- /dev/null +++ b/oodj/oodj/programmethods/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project programmethods. + + + diff --git a/oodj/oodj/programmethods/build/built-jar.properties b/oodj/oodj/programmethods/build/built-jar.properties new file mode 100644 index 0000000..cf7f01d --- /dev/null +++ b/oodj/oodj/programmethods/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 02 Nov 2021 11:19:31 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\programmethods= diff --git a/oodj/oodj/programmethods/build/classes/programmethods/NormalClass.class b/oodj/oodj/programmethods/build/classes/programmethods/NormalClass.class new file mode 100644 index 0000000..70e6ca4 Binary files /dev/null and b/oodj/oodj/programmethods/build/classes/programmethods/NormalClass.class differ diff --git a/oodj/oodj/programmethods/build/classes/programmethods/Programmethods.class b/oodj/oodj/programmethods/build/classes/programmethods/Programmethods.class new file mode 100644 index 0000000..6af42ff Binary files /dev/null and b/oodj/oodj/programmethods/build/classes/programmethods/Programmethods.class differ diff --git a/oodj/oodj/programmethods/build/classes/programmethods/StaticClass.class b/oodj/oodj/programmethods/build/classes/programmethods/StaticClass.class new file mode 100644 index 0000000..a3c3208 Binary files /dev/null and b/oodj/oodj/programmethods/build/classes/programmethods/StaticClass.class differ diff --git a/oodj/oodj/programmethods/manifest.mf b/oodj/oodj/programmethods/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/programmethods/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/programmethods/nbproject/build-impl.xml b/oodj/oodj/programmethods/nbproject/build-impl.xml new file mode 100644 index 0000000..59d361d --- /dev/null +++ b/oodj/oodj/programmethods/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/programmethods/nbproject/genfiles.properties b/oodj/oodj/programmethods/nbproject/genfiles.properties new file mode 100644 index 0000000..e0655ed --- /dev/null +++ b/oodj/oodj/programmethods/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ab72d39a +build.xml.script.CRC32=dcdce142 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=ab72d39a +nbproject/build-impl.xml.script.CRC32=2fd906f3 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/programmethods/nbproject/private/private.properties b/oodj/oodj/programmethods/nbproject/private/private.properties new file mode 100644 index 0000000..5c8c5ab --- /dev/null +++ b/oodj/oodj/programmethods/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/programmethods/nbproject/private/private.xml b/oodj/oodj/programmethods/nbproject/private/private.xml new file mode 100644 index 0000000..4750962 --- /dev/null +++ b/oodj/oodj/programmethods/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/oodj/oodj/programmethods/nbproject/project.properties b/oodj/oodj/programmethods/nbproject/project.properties new file mode 100644 index 0000000..21a20bd --- /dev/null +++ b/oodj/oodj/programmethods/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/programmethods.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/programmethods +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=programmethods +main.class=programmethods.Programmethods +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/programmethods/nbproject/project.xml b/oodj/oodj/programmethods/nbproject/project.xml new file mode 100644 index 0000000..b863068 --- /dev/null +++ b/oodj/oodj/programmethods/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + programmethods + + + + + + + + + diff --git a/oodj/oodj/programmethods/src/programmethods/NormalClass.java b/oodj/oodj/programmethods/src/programmethods/NormalClass.java new file mode 100644 index 0000000..a70eeae --- /dev/null +++ b/oodj/oodj/programmethods/src/programmethods/NormalClass.java @@ -0,0 +1,10 @@ + +package programmethods; + +public class NormalClass { + + void NormalMathid() + { + System.out.println("This is Normal method."); + } +} diff --git a/oodj/oodj/programmethods/src/programmethods/Programmethods.java b/oodj/oodj/programmethods/src/programmethods/Programmethods.java new file mode 100644 index 0000000..5ac37ad --- /dev/null +++ b/oodj/oodj/programmethods/src/programmethods/Programmethods.java @@ -0,0 +1,23 @@ + +package programmethods; + + +public class Programmethods { + + + public static void main(String[] args) + { + System.out.println("Hello,This is structure method."); + Display(); + + StaticClass.staticdisplay(); + + NormalClass nc = new NormalClass(); + nc.NormalMathid(); + } + static void Display() + { + System.out.println("This is Static method."); + } + +} diff --git a/oodj/oodj/programmethods/src/programmethods/StaticClass.java b/oodj/oodj/programmethods/src/programmethods/StaticClass.java new file mode 100644 index 0000000..f99968a --- /dev/null +++ b/oodj/oodj/programmethods/src/programmethods/StaticClass.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 programmethods; + +/** + * + * @author Kriso + */ +public class StaticClass +{ + static void staticdisplay() + { + System.out.println("This is Static class method."); + } +} diff --git a/oodj/oodj/switchcaseprogram/build.xml b/oodj/oodj/switchcaseprogram/build.xml new file mode 100644 index 0000000..9268649 --- /dev/null +++ b/oodj/oodj/switchcaseprogram/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project switchcaseprogram. + + + diff --git a/oodj/oodj/switchcaseprogram/build/built-jar.properties b/oodj/oodj/switchcaseprogram/build/built-jar.properties new file mode 100644 index 0000000..b126eea --- /dev/null +++ b/oodj/oodj/switchcaseprogram/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 12 Oct 2021 11:12:40 +0800 + + +C\:\\Users\\Kriso\\Documents\\oodj\\switchcaseprogram= diff --git a/oodj/oodj/switchcaseprogram/build/classes/switchcaseprogram/Switchcaseprogram.class b/oodj/oodj/switchcaseprogram/build/classes/switchcaseprogram/Switchcaseprogram.class new file mode 100644 index 0000000..56af6d3 Binary files /dev/null and b/oodj/oodj/switchcaseprogram/build/classes/switchcaseprogram/Switchcaseprogram.class differ diff --git a/oodj/oodj/switchcaseprogram/manifest.mf b/oodj/oodj/switchcaseprogram/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/oodj/oodj/switchcaseprogram/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/oodj/oodj/switchcaseprogram/nbproject/build-impl.xml b/oodj/oodj/switchcaseprogram/nbproject/build-impl.xml new file mode 100644 index 0000000..5017391 --- /dev/null +++ b/oodj/oodj/switchcaseprogram/nbproject/build-impl.xml @@ -0,0 +1,1770 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oodj/oodj/switchcaseprogram/nbproject/genfiles.properties b/oodj/oodj/switchcaseprogram/nbproject/genfiles.properties new file mode 100644 index 0000000..46aac65 --- /dev/null +++ b/oodj/oodj/switchcaseprogram/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=112fee12 +build.xml.script.CRC32=27546914 +build.xml.stylesheet.CRC32=f85dc8f2@1.96.0.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=112fee12 +nbproject/build-impl.xml.script.CRC32=4a341859 +nbproject/build-impl.xml.stylesheet.CRC32=f89f7d21@1.96.0.48 diff --git a/oodj/oodj/switchcaseprogram/nbproject/private/private.properties b/oodj/oodj/switchcaseprogram/nbproject/private/private.properties new file mode 100644 index 0000000..5c8c5ab --- /dev/null +++ b/oodj/oodj/switchcaseprogram/nbproject/private/private.properties @@ -0,0 +1,2 @@ +compile.on.save=true +user.properties.file=C:\\Users\\Kriso\\AppData\\Roaming\\NetBeans\\12.1\\build.properties diff --git a/oodj/oodj/switchcaseprogram/nbproject/private/private.xml b/oodj/oodj/switchcaseprogram/nbproject/private/private.xml new file mode 100644 index 0000000..6807a2b --- /dev/null +++ b/oodj/oodj/switchcaseprogram/nbproject/private/private.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/oodj/oodj/switchcaseprogram/nbproject/project.properties b/oodj/oodj/switchcaseprogram/nbproject/project.properties new file mode 100644 index 0000000..1db2f53 --- /dev/null +++ b/oodj/oodj/switchcaseprogram/nbproject/project.properties @@ -0,0 +1,95 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.modulepath=\ + ${run.modulepath} +debug.test.classpath=\ + ${run.test.classpath} +debug.test.modulepath=\ + ${run.test.modulepath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/switchcaseprogram.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/switchcaseprogram +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.modulepath= +javac.processormodulepath= +javac.processorpath=\ + ${javac.classpath} +javac.source=15 +javac.target=15 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.modulepath=\ + ${javac.modulepath} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.html5=false +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +# The jlink additional root modules to resolve +jlink.additionalmodules= +# The jlink additional command line parameters +jlink.additionalparam= +jlink.launcher=true +jlink.launcher.name=switchcaseprogram +main.class=switchcaseprogram.Switchcaseprogram +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.modulepath=\ + ${javac.modulepath} +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +run.test.modulepath=\ + ${javac.test.modulepath} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/oodj/oodj/switchcaseprogram/nbproject/project.xml b/oodj/oodj/switchcaseprogram/nbproject/project.xml new file mode 100644 index 0000000..0a38517 --- /dev/null +++ b/oodj/oodj/switchcaseprogram/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + switchcaseprogram + + + + + + + + + diff --git a/oodj/oodj/switchcaseprogram/src/switchcaseprogram/Switchcaseprogram.java b/oodj/oodj/switchcaseprogram/src/switchcaseprogram/Switchcaseprogram.java new file mode 100644 index 0000000..77266e0 --- /dev/null +++ b/oodj/oodj/switchcaseprogram/src/switchcaseprogram/Switchcaseprogram.java @@ -0,0 +1,95 @@ + +package switchcaseprogram; + +import java.util.*; + +public class Switchcaseprogram { + + public static void main(String[] args) + { + /*int opt; + Scanner s = new Scanner(System.in); + System.out.println("Here is your option:\n1. 6AM - 11:59 AM\n2. 12 Noon - 5PM\n3. 5PM - 8PM\n4. 8PM -12 night"); + System.out.println("Enter your Choice :"); + opt = s.nextInt(); + switch(opt) + { + case 1: + { + System.out.println("Good Morning"); + break; + } + case 2: + { + System.out.println("Good Afetrnoon"); + break; + } + case 3: + { + System.out.println("Good Evening"); + break; + } + case 4: + { + System.out.println("Good Night"); + break; + } + + default: + { + System.out.println("You entered wrong"); + break; + } + }*/ + //WAP to accept 2 numbers from user and do all arithmetic operations. + //Display output as per users' choice for that operation only. (+,-,*,/)\ + + + int opt,no1,no2; + Scanner s = new Scanner(System.in); + System.out.println("Enter your Number :"); + no1 = s.nextInt(); + no2 = s.nextInt(); + System.out.println("Here is your option:\n1. Addition\n2. Subtraction\n3. Mulitiplication\n4. Division"); + System.out.println("Enter your Choice :"); + opt = s.nextInt(); + switch(opt) + { + case 1: + int add; + add = no1+no2; + System.out.println("Addition is:"+add); + break; + + case 2: + + int sub; + sub = no1-no2; + System.out.println("Subtraction is:"+sub); + break; + + case 3: + + int mul; + mul = no1*no2; + System.out.println("Multiplication is:"+mul); + break; + + case 4: + + int div; + div = no1/no2; + System.out.println("Division is:"+div); + break; + + + default: + + System.out.println("You entered wrong Choice"); + break; + + } + + } + +}