commit de46615d764644eccf0dea23e1ae0d0692d1eaab Author: FCRx <343ays@gmail.com> Date: Thu Oct 26 23:22:37 2023 -0300 first commit diff --git a/AbstrataFuncionario/.gitignore b/AbstrataFuncionario/.gitignore new file mode 100644 index 0000000..c7b9e9c --- /dev/null +++ b/AbstrataFuncionario/.gitignore @@ -0,0 +1,7 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/AbstrataFuncionario/build.xml b/AbstrataFuncionario/build.xml new file mode 100644 index 0000000..2d96e54 --- /dev/null +++ b/AbstrataFuncionario/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project AbstrataFuncionario. + + + diff --git a/AbstrataFuncionario/dist/javadoc/allclasses-frame.html b/AbstrataFuncionario/dist/javadoc/allclasses-frame.html new file mode 100644 index 0000000..7596c88 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/allclasses-frame.html @@ -0,0 +1,23 @@ + + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/AbstrataFuncionario/dist/javadoc/allclasses-noframe.html b/AbstrataFuncionario/dist/javadoc/allclasses-noframe.html new file mode 100644 index 0000000..4921a83 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/allclasses-noframe.html @@ -0,0 +1,23 @@ + + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/AbstrataFuncionario/dist/javadoc/constant-values.html b/AbstrataFuncionario/dist/javadoc/constant-values.html new file mode 100644 index 0000000..ec11482 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/constant-values.html @@ -0,0 +1,125 @@ + + + + + + +Constant Field Values + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Constant Field Values

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/deprecated-list.html b/AbstrataFuncionario/dist/javadoc/deprecated-list.html new file mode 100644 index 0000000..673c872 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/deprecated-list.html @@ -0,0 +1,125 @@ + + + + + + +Deprecated List + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/help-doc.html b/AbstrataFuncionario/dist/javadoc/help-doc.html new file mode 100644 index 0000000..ba146b8 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/help-doc.html @@ -0,0 +1,230 @@ + + + + + + +API Help + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index-files/index-1.html b/AbstrataFuncionario/dist/javadoc/index-files/index-1.html new file mode 100644 index 0000000..5e141cc --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index-files/index-1.html @@ -0,0 +1,132 @@ + + + + + + +F-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
F G M N O R S T V  + + +

F

+
+
funcionario - Class in org.me.funcionario
+
 
+
funcionario() - Constructor for class org.me.funcionario.funcionario
+
 
+
+F G M N O R S T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index-files/index-2.html b/AbstrataFuncionario/dist/javadoc/index-files/index-2.html new file mode 100644 index 0000000..3a9b530 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index-files/index-2.html @@ -0,0 +1,140 @@ + + + + + + +G-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
F G M N O R S T V  + + +

G

+
+
getComissao() - Method in class org.me.funcionario.vendedor
+
 
+
getDepartamento() - Method in class org.me.funcionario.secretaria
+
 
+
getIdioma() - Method in class org.me.funcionario.secretaria
+
 
+
getNome() - Method in class org.me.funcionario.funcionario
+
 
+
getRegiao() - Method in class org.me.funcionario.vendedor
+
 
+
getSalario() - Method in class org.me.funcionario.funcionario
+
 
+
+F G M N O R S T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index-files/index-3.html b/AbstrataFuncionario/dist/javadoc/index-files/index-3.html new file mode 100644 index 0000000..371fe31 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index-files/index-3.html @@ -0,0 +1,130 @@ + + + + + + +M-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
F G M N O R S T V  + + +

M

+
+
main(String[]) - Static method in class org.me.testefuncionario.testefuncionario
+
 
+
+F G M N O R S T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index-files/index-4.html b/AbstrataFuncionario/dist/javadoc/index-files/index-4.html new file mode 100644 index 0000000..44c7047 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index-files/index-4.html @@ -0,0 +1,130 @@ + + + + + + +N-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
F G M N O R S T V  + + +

N

+
+
nome - Variable in class org.me.funcionario.funcionario
+
 
+
+F G M N O R S T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index-files/index-5.html b/AbstrataFuncionario/dist/javadoc/index-files/index-5.html new file mode 100644 index 0000000..057fdcc --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index-files/index-5.html @@ -0,0 +1,132 @@ + + + + + + +O-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
F G M N O R S T V  + + +

O

+
+
org.me.funcionario - package org.me.funcionario
+
 
+
org.me.testefuncionario - package org.me.testefuncionario
+
 
+
+F G M N O R S T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index-files/index-6.html b/AbstrataFuncionario/dist/javadoc/index-files/index-6.html new file mode 100644 index 0000000..7869c9e --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index-files/index-6.html @@ -0,0 +1,134 @@ + + + + + + +R-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
F G M N O R S T V  + + +

R

+
+
reajuste() - Method in class org.me.funcionario.funcionario
+
 
+
reajuste() - Method in class org.me.funcionario.secretaria
+
 
+
reajuste() - Method in class org.me.funcionario.vendedor
+
 
+
+F G M N O R S T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index-files/index-7.html b/AbstrataFuncionario/dist/javadoc/index-files/index-7.html new file mode 100644 index 0000000..7c9916c --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index-files/index-7.html @@ -0,0 +1,146 @@ + + + + + + +S-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
F G M N O R S T V  + + +

S

+
+
salario - Variable in class org.me.funcionario.funcionario
+
 
+
secretaria - Class in org.me.funcionario
+
 
+
secretaria() - Constructor for class org.me.funcionario.secretaria
+
 
+
setComissao(double) - Method in class org.me.funcionario.vendedor
+
 
+
setDepartamento(String) - Method in class org.me.funcionario.secretaria
+
 
+
setIdioma(String) - Method in class org.me.funcionario.secretaria
+
 
+
setNome(String) - Method in class org.me.funcionario.funcionario
+
 
+
setRegiao(String) - Method in class org.me.funcionario.vendedor
+
 
+
setSalario(double) - Method in class org.me.funcionario.funcionario
+
 
+
+F G M N O R S T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index-files/index-8.html b/AbstrataFuncionario/dist/javadoc/index-files/index-8.html new file mode 100644 index 0000000..dce4961 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index-files/index-8.html @@ -0,0 +1,132 @@ + + + + + + +T-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
F G M N O R S T V  + + +

T

+
+
testefuncionario - Class in org.me.testefuncionario
+
 
+
testefuncionario() - Constructor for class org.me.testefuncionario.testefuncionario
+
 
+
+F G M N O R S T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index-files/index-9.html b/AbstrataFuncionario/dist/javadoc/index-files/index-9.html new file mode 100644 index 0000000..77f5d4a --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index-files/index-9.html @@ -0,0 +1,132 @@ + + + + + + +V-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
F G M N O R S T V  + + +

V

+
+
vendedor - Class in org.me.funcionario
+
 
+
vendedor() - Constructor for class org.me.funcionario.vendedor
+
 
+
+F G M N O R S T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/index.html b/AbstrataFuncionario/dist/javadoc/index.html new file mode 100644 index 0000000..74516a1 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/index.html @@ -0,0 +1,76 @@ + + + + + + +Generated Documentation (Untitled) + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/class-use/funcionario.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/class-use/funcionario.html new file mode 100644 index 0000000..20b69d2 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/class-use/funcionario.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Class org.me.funcionario.funcionario + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
org.me.funcionario.funcionario

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/class-use/secretaria.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/class-use/secretaria.html new file mode 100644 index 0000000..27744d8 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/class-use/secretaria.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.me.funcionario.secretaria + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
org.me.funcionario.secretaria

+
+
No usage of org.me.funcionario.secretaria
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/class-use/vendedor.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/class-use/vendedor.html new file mode 100644 index 0000000..c3fcb71 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/class-use/vendedor.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.me.funcionario.vendedor + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
org.me.funcionario.vendedor

+
+
No usage of org.me.funcionario.vendedor
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/funcionario.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/funcionario.html new file mode 100644 index 0000000..e2ce56c --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/funcionario.html @@ -0,0 +1,377 @@ + + + + + + +funcionario + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
org.me.funcionario
+

Class funcionario

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-frame.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-frame.html new file mode 100644 index 0000000..fc97a35 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-frame.html @@ -0,0 +1,23 @@ + + + + + + +org.me.funcionario + + + + + +

org.me.funcionario

+
+

Classes

+ +
+ + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-summary.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-summary.html new file mode 100644 index 0000000..05052e0 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-summary.html @@ -0,0 +1,151 @@ + + + + + + +org.me.funcionario + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package org.me.funcionario

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-tree.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-tree.html new file mode 100644 index 0000000..b63f758 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +org.me.funcionario Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package org.me.funcionario

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-use.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-use.html new file mode 100644 index 0000000..0c5922f --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/package-use.html @@ -0,0 +1,158 @@ + + + + + + +Uses of Package org.me.funcionario + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
org.me.funcionario

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/secretaria.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/secretaria.html new file mode 100644 index 0000000..c20b805 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/secretaria.html @@ -0,0 +1,355 @@ + + + + + + +secretaria + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
org.me.funcionario
+

Class secretaria

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/funcionario/vendedor.html b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/vendedor.html new file mode 100644 index 0000000..c5451ca --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/funcionario/vendedor.html @@ -0,0 +1,355 @@ + + + + + + +vendedor + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
org.me.funcionario
+

Class vendedor

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/class-use/testefuncionario.html b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/class-use/testefuncionario.html new file mode 100644 index 0000000..2b08d6b --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/class-use/testefuncionario.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Class org.me.testefuncionario.testefuncionario + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
org.me.testefuncionario.testefuncionario

+
+
No usage of org.me.testefuncionario.testefuncionario
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-frame.html b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-frame.html new file mode 100644 index 0000000..9ef4359 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +org.me.testefuncionario + + + + + +

org.me.testefuncionario

+
+

Classes

+ +
+ + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-summary.html b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-summary.html new file mode 100644 index 0000000..81bf3ca --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-summary.html @@ -0,0 +1,143 @@ + + + + + + +org.me.testefuncionario + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package org.me.testefuncionario

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-tree.html b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-tree.html new file mode 100644 index 0000000..554e875 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-tree.html @@ -0,0 +1,138 @@ + + + + + + +org.me.testefuncionario Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package org.me.testefuncionario

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-use.html b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-use.html new file mode 100644 index 0000000..2e82c8a --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/package-use.html @@ -0,0 +1,125 @@ + + + + + + +Uses of Package org.me.testefuncionario + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
org.me.testefuncionario

+
+
No usage of org.me.testefuncionario
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/testefuncionario.html b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/testefuncionario.html new file mode 100644 index 0000000..dc86cf3 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/org/me/testefuncionario/testefuncionario.html @@ -0,0 +1,272 @@ + + + + + + +testefuncionario + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
org.me.testefuncionario
+

Class testefuncionario

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/overview-frame.html b/AbstrataFuncionario/dist/javadoc/overview-frame.html new file mode 100644 index 0000000..3acafc4 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/overview-frame.html @@ -0,0 +1,23 @@ + + + + + + +Overview List + + + + + +
All Classes
+
+

Packages

+ +
+

 

+ + diff --git a/AbstrataFuncionario/dist/javadoc/overview-summary.html b/AbstrataFuncionario/dist/javadoc/overview-summary.html new file mode 100644 index 0000000..4df3550 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/overview-summary.html @@ -0,0 +1,140 @@ + + + + + + +Overview + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+ + + + + + + + + + + + + + + + +
Packages 
PackageDescription
org.me.funcionario 
org.me.testefuncionario 
+
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/overview-tree.html b/AbstrataFuncionario/dist/javadoc/overview-tree.html new file mode 100644 index 0000000..4baeed5 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/overview-tree.html @@ -0,0 +1,145 @@ + + + + + + +Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/AbstrataFuncionario/dist/javadoc/package-list b/AbstrataFuncionario/dist/javadoc/package-list new file mode 100644 index 0000000..a430ba6 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/package-list @@ -0,0 +1,2 @@ +org.me.funcionario +org.me.testefuncionario diff --git a/AbstrataFuncionario/dist/javadoc/script.js b/AbstrataFuncionario/dist/javadoc/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/AbstrataFuncionario/dist/javadoc/stylesheet.css b/AbstrataFuncionario/dist/javadoc/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/AbstrataFuncionario/dist/javadoc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/AbstrataFuncionario/leia-me.txt b/AbstrataFuncionario/leia-me.txt new file mode 100644 index 0000000..6c6e822 --- /dev/null +++ b/AbstrataFuncionario/leia-me.txt @@ -0,0 +1,5 @@ +incluso: + - código fonte; + - arquivo .html (javadoc) disponibilizando detalhes + AbstrataFuncionario\dist\javadoc\index.html + - arquivo .pdf com o código fonte dos três arquivos. \ No newline at end of file diff --git a/AbstrataFuncionario/nbproject/build-impl.xml b/AbstrataFuncionario/nbproject/build-impl.xml new file mode 100644 index 0000000..dc7207d --- /dev/null +++ b/AbstrataFuncionario/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AbstrataFuncionario/nbproject/genfiles.properties b/AbstrataFuncionario/nbproject/genfiles.properties new file mode 100644 index 0000000..89ea4c7 --- /dev/null +++ b/AbstrataFuncionario/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=be66722b +build.xml.script.CRC32=736da988 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=be66722b +nbproject/build-impl.xml.script.CRC32=303f10b1 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/AbstrataFuncionario/nbproject/project.properties b/AbstrataFuncionario/nbproject/project.properties new file mode 100644 index 0000000..41082fc --- /dev/null +++ b/AbstrataFuncionario/nbproject/project.properties @@ -0,0 +1,73 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/AbstrataFuncionario.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=org.me.testefuncionario.testefuncionario +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/AbstrataFuncionario/nbproject/project.xml b/AbstrataFuncionario/nbproject/project.xml new file mode 100644 index 0000000..d1a69da --- /dev/null +++ b/AbstrataFuncionario/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + AbstrataFuncionario + + + + + + + + + diff --git a/AbstrataFuncionario/src/org/me/funcionario/funcionario.java b/AbstrataFuncionario/src/org/me/funcionario/funcionario.java new file mode 100644 index 0000000..7828299 --- /dev/null +++ b/AbstrataFuncionario/src/org/me/funcionario/funcionario.java @@ -0,0 +1,20 @@ +package org.me.funcionario; + +public abstract class funcionario { + protected String nome; + protected double salario; + + public void setNome(String nome) + { + this.nome = nome; + } + public void setSalario(double salario) + { + this.salario = salario; + } + + public String getNome(){return this.nome;} + public double getSalario(){return this.salario;} + + public abstract void reajuste(); +} diff --git a/AbstrataFuncionario/src/org/me/funcionario/secretaria.java b/AbstrataFuncionario/src/org/me/funcionario/secretaria.java new file mode 100644 index 0000000..676f2c8 --- /dev/null +++ b/AbstrataFuncionario/src/org/me/funcionario/secretaria.java @@ -0,0 +1,21 @@ +package org.me.funcionario; + +public class secretaria extends funcionario{ + private String idioma,departamento; + + public void setIdioma(String idioma){this.idioma = idioma;} + + public void setDepartamento(String departamento){ + this.departamento = departamento; + } + + public String getIdioma(){return this.idioma;} + public String getDepartamento(){return this.departamento;} + + @Override + public void reajuste(){ + // salario = salario * 1.15; + this.salario *= 1.15; + } +} + diff --git a/AbstrataFuncionario/src/org/me/funcionario/vendedor.java b/AbstrataFuncionario/src/org/me/funcionario/vendedor.java new file mode 100644 index 0000000..02a74a8 --- /dev/null +++ b/AbstrataFuncionario/src/org/me/funcionario/vendedor.java @@ -0,0 +1,19 @@ +package org.me.funcionario; + +public class vendedor extends funcionario{ + private String regiao; + private double comissao; + + public void setRegiao(String regiao){this.regiao = regiao;} + public void setComissao(double comissao){this.comissao = comissao;} + + public String getRegiao(){return this.regiao;} + public double getComissao(){return this.comissao;} + + @Override + public void reajuste() + { + // salario = salario * 1.1; + this.salario *= 1.1; + } +} diff --git a/AbstrataFuncionario/src/org/me/testefuncionario/testefuncionario.java b/AbstrataFuncionario/src/org/me/testefuncionario/testefuncionario.java new file mode 100644 index 0000000..2fb0083 --- /dev/null +++ b/AbstrataFuncionario/src/org/me/testefuncionario/testefuncionario.java @@ -0,0 +1,51 @@ +package org.me.testefuncionario; +// Chamando todas as classes da biblioteca org.me.funcionario +import org.me.funcionario.*; + +public class testefuncionario { + + public static void main(String[] args) { + vendedor v1 = new vendedor(); + secretaria s1 = new secretaria(); + + v1.setNome("José"); + s1.setNome("Maria"); + + v1.setSalario(1000.00); + s1.setSalario(1000.00); + + v1.setRegiao("Itapetininga"); + v1.setComissao(100.00); + + s1.setDepartamento("T.I."); + s1.setIdioma("Português/Inglês"); + + System.out.printf("Vendedor: %s" + + "\nSalario: %.2f" + + "\nRegião: %s" + + "\nComissão: %.2f", + v1.getNome(), + v1.getSalario(), + v1.getRegiao(), + v1.getComissao()); + System.out.printf("\n\nSecretaria: %s" + + "\nSalario: %.2f" + + "\nDepartamento: %s" + + "\nIdioma: %s", + s1.getNome(), + s1.getSalario(), + s1.getDepartamento(), + s1.getIdioma()); + + System.out.println("\n\nReajustando salários."); + v1.reajuste(); + s1.reajuste(); + + System.out.printf("\nVendedor %s: %.2f", + v1.getNome(),v1.getSalario()); + + System.out.printf("\nSecretaria %s: %.2f", + s1.getNome(),s1.getSalario()); + } + +} diff --git a/AbstrataVeiculo/.gitignore b/AbstrataVeiculo/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/AbstrataVeiculo/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/AbstrataVeiculo/build.xml b/AbstrataVeiculo/build.xml new file mode 100644 index 0000000..d91fd04 --- /dev/null +++ b/AbstrataVeiculo/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project AbstrataVeiculo. + + + diff --git a/AbstrataVeiculo/nbproject/build-impl.xml b/AbstrataVeiculo/nbproject/build-impl.xml new file mode 100644 index 0000000..c2b65fa --- /dev/null +++ b/AbstrataVeiculo/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AbstrataVeiculo/nbproject/genfiles.properties b/AbstrataVeiculo/nbproject/genfiles.properties new file mode 100644 index 0000000..8d6a217 --- /dev/null +++ b/AbstrataVeiculo/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=98ed0f95 +build.xml.script.CRC32=526c7f39 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=98ed0f95 +nbproject/build-impl.xml.script.CRC32=fa53a828 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/AbstrataVeiculo/nbproject/project.properties b/AbstrataVeiculo/nbproject/project.properties new file mode 100644 index 0000000..0d90462 --- /dev/null +++ b/AbstrataVeiculo/nbproject/project.properties @@ -0,0 +1,73 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/AbstrataVeiculo.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=org.me.testeveiculos.TesteVeiculos +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/AbstrataVeiculo/nbproject/project.xml b/AbstrataVeiculo/nbproject/project.xml new file mode 100644 index 0000000..dccf99b --- /dev/null +++ b/AbstrataVeiculo/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + AbstrataVeiculo + + + + + + + + + diff --git a/AbstrataVeiculo/src/org/me/testeveiculos/TesteVeiculos.java b/AbstrataVeiculo/src/org/me/testeveiculos/TesteVeiculos.java new file mode 100644 index 0000000..9994589 --- /dev/null +++ b/AbstrataVeiculo/src/org/me/testeveiculos/TesteVeiculos.java @@ -0,0 +1,21 @@ +package org.me.testeveiculos; +import org.me.veiculos.*; + +public class TesteVeiculos { + + public static void main(String[] args) { + Veiculos vAR[] = new Veiculos[4]; + vAR[0] = new Caminhonete("Ford","Pampa",1985,60,600,"Simples"); + vAR[1] = new Caminhonete("Chevrolet","S-10",2015,200,1208,"Dupla"); + vAR[2] = new Onibus("Volkswagen","Fusca",1965,40,380,5); + vAR[3] = new Onibus("Chevrolet","Astra",2010,140,500,5); + + // Loop... (tipo NOMEVARIAVEL : ARRAY) + // for(int e = 0; e < vAR.length; e++) + // {código aqui...} + for (Veiculos e : vAR) { + e.Imprime(); + } + } + +} diff --git a/AbstrataVeiculo/src/org/me/veiculos/Caminhonete.java b/AbstrataVeiculo/src/org/me/veiculos/Caminhonete.java new file mode 100644 index 0000000..1605572 --- /dev/null +++ b/AbstrataVeiculo/src/org/me/veiculos/Caminhonete.java @@ -0,0 +1,29 @@ +package org.me.veiculos; + +public class Caminhonete extends Veiculos{ + private String tipocabine; + + public Caminhonete (String marca, String modelo, int ano, int potencia, int capacidade, String tipocabine) + { + super(marca,modelo,ano,potencia,capacidade); + this.tipocabine = tipocabine; + } + @Override + public void Imprime() + { + System.out.printf( + "\nUTILITARIO" + + " Marca: %s" + + " Modelo %s" + + " Ano: %d" + + " Potencia: %d cv" + + " Capacidade Carga: %d kg" + + " Tipo de Cabine: %s", + marca, + modelo, + ano, + potencia, + capacidade, + tipocabine); + } +} diff --git a/AbstrataVeiculo/src/org/me/veiculos/Onibus.java b/AbstrataVeiculo/src/org/me/veiculos/Onibus.java new file mode 100644 index 0000000..454a40e --- /dev/null +++ b/AbstrataVeiculo/src/org/me/veiculos/Onibus.java @@ -0,0 +1,31 @@ +package org.me.veiculos; + +public class Onibus extends Veiculos{ + private int pessoas; + + public Onibus(String marca, String modelo, int ano, int potencia, int capacidade, int pessoas) + { + super(marca,modelo,ano,potencia,capacidade); + this.pessoas = pessoas; + } + + + @Override + public void Imprime() + { + System.out.printf( + "\nPASSAGEIRO" + + " Marca: %s" + + " Modelo %s" + + " Ano: %d" + + " Potencia: %d cv" + + " Capacidade Carga: %d kg" + + " Capacidade Pessoas: %s", + marca, + modelo, + ano, + potencia, + capacidade, + pessoas); + } +} diff --git a/AbstrataVeiculo/src/org/me/veiculos/Veiculos.java b/AbstrataVeiculo/src/org/me/veiculos/Veiculos.java new file mode 100644 index 0000000..61a6f38 --- /dev/null +++ b/AbstrataVeiculo/src/org/me/veiculos/Veiculos.java @@ -0,0 +1,15 @@ +package org.me.veiculos; +public abstract class Veiculos { + protected String marca,modelo; + protected int ano,potencia,capacidade; + + public Veiculos(String marca, String modelo, int ano, int potencia, int capacidade) + { + this.marca = marca; + this.modelo = modelo; + this.ano = ano; + this.potencia = potencia; + this.capacidade = capacidade; + } + public abstract void Imprime(); +} diff --git a/AtividadeBiblioteca/.gitignore b/AtividadeBiblioteca/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/AtividadeBiblioteca/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/AtividadeBiblioteca/build.xml b/AtividadeBiblioteca/build.xml new file mode 100644 index 0000000..62c460c --- /dev/null +++ b/AtividadeBiblioteca/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project AtividadeBiblioteca. + + + diff --git a/AtividadeBiblioteca/nbproject/build-impl.xml b/AtividadeBiblioteca/nbproject/build-impl.xml new file mode 100644 index 0000000..59aa89c --- /dev/null +++ b/AtividadeBiblioteca/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AtividadeBiblioteca/nbproject/genfiles.properties b/AtividadeBiblioteca/nbproject/genfiles.properties new file mode 100644 index 0000000..dc1c6cd --- /dev/null +++ b/AtividadeBiblioteca/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c17bff36 +build.xml.script.CRC32=bee7c3c0 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=c17bff36 +nbproject/build-impl.xml.script.CRC32=e5be9655 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/AtividadeBiblioteca/nbproject/project.properties b/AtividadeBiblioteca/nbproject/project.properties new file mode 100644 index 0000000..1437ab3 --- /dev/null +++ b/AtividadeBiblioteca/nbproject/project.properties @@ -0,0 +1,73 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/AtividadeBiblioteca.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=org.me.testeempresainfo.TesteEmpresaInfo +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/AtividadeBiblioteca/nbproject/project.xml b/AtividadeBiblioteca/nbproject/project.xml new file mode 100644 index 0000000..924b57b --- /dev/null +++ b/AtividadeBiblioteca/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + AtividadeBiblioteca + + + + + + + + + diff --git a/AtividadeBiblioteca/src/org/me/empresainfo/Funcionario.java b/AtividadeBiblioteca/src/org/me/empresainfo/Funcionario.java new file mode 100644 index 0000000..7c171c9 --- /dev/null +++ b/AtividadeBiblioteca/src/org/me/empresainfo/Funcionario.java @@ -0,0 +1,24 @@ +package org.me.empresainfo; +public class Funcionario { + private long CPF; + private String Nome; + private double Salario; + + public void setCPF(long _CPF) + { + this.CPF = _CPF; + } + public void setNome(String _Nome) + { + this.Nome = _Nome; + } + public void setSalario(double _Salario) + { + this.Salario = _Salario; + } + + // Getters + public long getCPF(){return this.CPF;} + public String getNome(){return this.Nome;} + public double getSalario(){return this.Salario;} +} diff --git a/AtividadeBiblioteca/src/org/me/empresainfo/Secretaria.java b/AtividadeBiblioteca/src/org/me/empresainfo/Secretaria.java new file mode 100644 index 0000000..6beac0a --- /dev/null +++ b/AtividadeBiblioteca/src/org/me/empresainfo/Secretaria.java @@ -0,0 +1,16 @@ +package org.me.empresainfo; +public class Secretaria extends Funcionario{ + private String Departamento, Idioma; + + public void setDepartamento(String _Departamento) + { + this.Departamento = _Departamento; + } + public void setIdioma(String _Idioma) + { + this.Idioma = _Idioma; + } + + public String getDepartamento(){return this.Departamento;} + public String getIdioma(){return this.Idioma;} +} diff --git a/AtividadeBiblioteca/src/org/me/empresainfo/Vendedor.java b/AtividadeBiblioteca/src/org/me/empresainfo/Vendedor.java new file mode 100644 index 0000000..ee17460 --- /dev/null +++ b/AtividadeBiblioteca/src/org/me/empresainfo/Vendedor.java @@ -0,0 +1,17 @@ +package org.me.empresainfo; +public class Vendedor extends Funcionario{ + private String Regiao; + private double Comissao; + + public void setRegiao(String _Regiao) + { + this.Regiao = _Regiao; + } + public void setComissao(double _Comissao) + { + this.Comissao = _Comissao; + } + + public String getRegiao(){return this.Regiao;} + public double getComissao(){return this.Comissao;} +} diff --git a/AtividadeBiblioteca/src/org/me/testeempresainfo/TesteEmpresaInfo.java b/AtividadeBiblioteca/src/org/me/testeempresainfo/TesteEmpresaInfo.java new file mode 100644 index 0000000..4dc7297 --- /dev/null +++ b/AtividadeBiblioteca/src/org/me/testeempresainfo/TesteEmpresaInfo.java @@ -0,0 +1,70 @@ +package org.me.testeempresainfo; +import java.util.Scanner; +import org.me.empresainfo.Secretaria; +import org.me.empresainfo.Vendedor; + +public class TesteEmpresaInfo { + + public static void main(String[] args) { + Secretaria s1 = new Secretaria(); + Vendedor v1 = new Vendedor(); + + Scanner scan = new Scanner(System.in); + + System.out.println("Digite o nome para Secretaria"); + s1.setNome(scan.nextLine()); + + System.out.printf("\nDigite o CPF de %s\n",s1.getNome()); + s1.setCPF(scan.nextLong()); + + scan.nextLine(); // Pular linha + System.out.printf("\nDigite o Dept. de %s\n",s1.getNome()); + s1.setDepartamento(scan.nextLine()); + + System.out.printf("\nDigite o Idioma de %s\n",s1.getNome()); + s1.setIdioma(scan.nextLine()); + + System.out.printf("\nDigite o Salario. de %s\n",s1.getNome()); + s1.setSalario(scan.nextDouble()); + + // ------- VENDEDOR -------- // + scan.nextLine(); // Pular linha + System.out.println("\nDigite o nome para Vendedor"); + v1.setNome(scan.nextLine()); + + System.out.printf("\nDigite o CPF de %s\n",v1.getNome()); + v1.setCPF(scan.nextLong()); + + scan.nextLine(); // Pular linha + System.out.printf("\nDigite a Região de %s\n",v1.getNome()); + v1.setRegiao(scan.nextLine()); + + System.out.printf("\nDigite a comissao de %s\n",v1.getNome()); + v1.setComissao(scan.nextDouble()); + + System.out.printf("\nDigite o Salario. de %s\n",v1.getNome()); + v1.setSalario(scan.nextDouble()); + + // Imprimir valores // + System.out.printf("\nSecretaria\n\t" + + "Nome:%s\n\t" + + "CPF: %d\n\t" + + "Salário: %.2f\n\t" + + "Departamento: %s\n\t" + + "Idioma: %s." + ,s1.getNome(),s1.getCPF(), + s1.getSalario(),s1.getDepartamento(), + s1.getIdioma()); + + System.out.printf("\nVendedor\n\t" + + "Nome:%s\n\t" + + "CPF: %d\n\t" + + "Salário: %.2f\n\t" + + "Comissão: %.2f\n\t" + + "Região: %s." + ,v1.getNome(),v1.getCPF(), + v1.getSalario(),v1.getComissao(), + v1.getRegiao()); + } + +} diff --git a/ConstrutorEscola/.gitignore b/ConstrutorEscola/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ConstrutorEscola/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ConstrutorEscola/build.xml b/ConstrutorEscola/build.xml new file mode 100644 index 0000000..10d1420 --- /dev/null +++ b/ConstrutorEscola/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ConstrutorEscola. + + + diff --git a/ConstrutorEscola/manifest.mf b/ConstrutorEscola/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/ConstrutorEscola/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/ConstrutorEscola/nbproject/build-impl.xml b/ConstrutorEscola/nbproject/build-impl.xml new file mode 100644 index 0000000..b8914d0 --- /dev/null +++ b/ConstrutorEscola/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ConstrutorEscola/nbproject/genfiles.properties b/ConstrutorEscola/nbproject/genfiles.properties new file mode 100644 index 0000000..4305ce6 --- /dev/null +++ b/ConstrutorEscola/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=8b46a3cc +build.xml.script.CRC32=5b9bbaf2 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=8b46a3cc +nbproject/build-impl.xml.script.CRC32=0eceda46 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ConstrutorEscola/nbproject/project.properties b/ConstrutorEscola/nbproject/project.properties new file mode 100644 index 0000000..6e39f00 --- /dev/null +++ b/ConstrutorEscola/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ConstrutorEscola.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=construtorescola.ConstrutorEscola +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ConstrutorEscola/nbproject/project.xml b/ConstrutorEscola/nbproject/project.xml new file mode 100644 index 0000000..4c20071 --- /dev/null +++ b/ConstrutorEscola/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ConstrutorEscola + + + + + + + + + diff --git a/ConstrutorEscola/src/construtorescola/ConstrutorEscola.java b/ConstrutorEscola/src/construtorescola/ConstrutorEscola.java new file mode 100644 index 0000000..56c539b --- /dev/null +++ b/ConstrutorEscola/src/construtorescola/ConstrutorEscola.java @@ -0,0 +1,28 @@ +package construtorescola; +import java.util.Scanner; + +public class ConstrutorEscola { + + public static void main(String[] args) { + Escola e1 = new Escola("Aluno1","11111111-9","Itapetininga",10); + Escola e2 = new Escola("Aluno2","11111111-X","Itapetininga",0); + int val; + Scanner scan = new Scanner(System.in); + + System.out.printf("Aluno: %s, RA: %s, Cidade: %s, Créditos: %d\n",e1.GetNome(),e1.GetRA(),e1.GetCidade(),e1.GetCred()); + System.out.printf("Aluno: %s, RA: %s, Cidade: %s, Créditos: %d\n",e2.GetNome(),e2.GetRA(),e2.GetCidade(),e2.GetCred()); + + System.out.println("Digite a quantidade de Créditos a Adicionar para " + e1.GetNome()); + val = scan.nextInt(); + e1.AcumCredito(val); + + System.out.printf("Aluno: %s, RA: %s, Cidade: %s, Créditos: %d\n",e1.GetNome(),e1.GetRA(),e1.GetCidade(),e1.GetCred()); + + System.out.println("Digite a quantidade de Créditos a Adicionar para " + e2.GetNome()); + val = scan.nextInt(); + e2.AcumCredito(val); + + System.out.printf("Aluno: %s, RA: %s, Cidade: %s, Créditos: %d\n",e2.GetNome(),e2.GetRA(),e2.GetCidade(),e2.GetCred()); + } + +} diff --git a/ConstrutorEscola/src/construtorescola/Escola.java b/ConstrutorEscola/src/construtorescola/Escola.java new file mode 100644 index 0000000..8b487f3 --- /dev/null +++ b/ConstrutorEscola/src/construtorescola/Escola.java @@ -0,0 +1,23 @@ +package construtorescola; + +public class Escola { + private String nome,ra,cidade; + private int creditos; + + public Escola(String Nome, String Ra, String Cidade, int Creditos) + { + this.nome = Nome; + this.ra = Ra; + this.cidade = Cidade; + this.creditos = Creditos; + } + + public String GetNome(){return this.nome;} + public String GetCidade(){return this.cidade;} + public String GetRA(){return this.ra;} + public int GetCred(){return this.creditos;} + + public void AcumCredito(int val){ + this.creditos += val; + } +} diff --git a/ContasGetSetConst/.gitignore b/ContasGetSetConst/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ContasGetSetConst/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ContasGetSetConst/build.xml b/ContasGetSetConst/build.xml new file mode 100644 index 0000000..9f16d0e --- /dev/null +++ b/ContasGetSetConst/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ContasGetSetConst. + + + diff --git a/ContasGetSetConst/manifest.mf b/ContasGetSetConst/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/ContasGetSetConst/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/ContasGetSetConst/nbproject/build-impl.xml b/ContasGetSetConst/nbproject/build-impl.xml new file mode 100644 index 0000000..53e9aaf --- /dev/null +++ b/ContasGetSetConst/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ContasGetSetConst/nbproject/genfiles.properties b/ContasGetSetConst/nbproject/genfiles.properties new file mode 100644 index 0000000..f2bede6 --- /dev/null +++ b/ContasGetSetConst/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=da7c6ec3 +build.xml.script.CRC32=68e3d53f +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=da7c6ec3 +nbproject/build-impl.xml.script.CRC32=6f842a25 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ContasGetSetConst/nbproject/project.properties b/ContasGetSetConst/nbproject/project.properties new file mode 100644 index 0000000..71ceb4b --- /dev/null +++ b/ContasGetSetConst/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ContasGetSetConst.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=contasgetsetconst.ContasGetSetConst +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ContasGetSetConst/nbproject/project.xml b/ContasGetSetConst/nbproject/project.xml new file mode 100644 index 0000000..e16dbef --- /dev/null +++ b/ContasGetSetConst/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ContasGetSetConst + + + + + + + + + diff --git a/ContasGetSetConst/src/contasgetsetconst/ContasGetSetConst.java b/ContasGetSetConst/src/contasgetsetconst/ContasGetSetConst.java new file mode 100644 index 0000000..a9e3fd4 --- /dev/null +++ b/ContasGetSetConst/src/contasgetsetconst/ContasGetSetConst.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 contasgetsetconst; + +/** + * + * @author USER + */ +public class ContasGetSetConst { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +} diff --git a/Empresa/.gitignore b/Empresa/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/Empresa/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/Empresa/build.xml b/Empresa/build.xml new file mode 100644 index 0000000..f40aef6 --- /dev/null +++ b/Empresa/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Empresa. + + + diff --git a/Empresa/nbproject/build-impl.xml b/Empresa/nbproject/build-impl.xml new file mode 100644 index 0000000..910b134 --- /dev/null +++ b/Empresa/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Empresa/nbproject/genfiles.properties b/Empresa/nbproject/genfiles.properties new file mode 100644 index 0000000..08b0a63 --- /dev/null +++ b/Empresa/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=93058c56 +build.xml.script.CRC32=46efa3da +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=93058c56 +nbproject/build-impl.xml.script.CRC32=dafa7046 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/Empresa/nbproject/project.properties b/Empresa/nbproject/project.properties new file mode 100644 index 0000000..bc189cc --- /dev/null +++ b/Empresa/nbproject/project.properties @@ -0,0 +1,73 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Empresa.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=org.me.testeEmpresa.TesteEmpresa +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/Empresa/nbproject/project.xml b/Empresa/nbproject/project.xml new file mode 100644 index 0000000..68ab2c1 --- /dev/null +++ b/Empresa/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Empresa + + + + + + + + + diff --git a/Empresa/src/org/me/empresa/Funcionario.java b/Empresa/src/org/me/empresa/Funcionario.java new file mode 100644 index 0000000..5851b7d --- /dev/null +++ b/Empresa/src/org/me/empresa/Funcionario.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 org.me.empresa; + +/** + * + * @author USER + */ +public class Funcionario { + private int matricula; + private String nome, endereco; + + public Funcionario(int Matricula, String Nome, String Endereco) + { + this.matricula = Matricula; + this.nome = Nome; + this.endereco = Endereco; + } + + public int GetMatricula(){return this.matricula;} + public String GetNome(){return this.nome;} + public String GetEndereco(){return this.endereco;} +} diff --git a/Empresa/src/org/me/empresa/Motorista.java b/Empresa/src/org/me/empresa/Motorista.java new file mode 100644 index 0000000..9ed8252 --- /dev/null +++ b/Empresa/src/org/me/empresa/Motorista.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 org.me.empresa; + +/** + * + * @author USER + */ +public class Motorista extends Funcionario{ + private int cnh; + public Motorista(int Matricula, String Nome, String Endereco, int Cnh) + { + super(Matricula, Nome, Endereco); + this.cnh = Cnh; + } + public int GetCnh(){return this.cnh;} +} diff --git a/Empresa/src/org/me/testeEmpresa/TesteEmpresa.java b/Empresa/src/org/me/testeEmpresa/TesteEmpresa.java new file mode 100644 index 0000000..5eff6de --- /dev/null +++ b/Empresa/src/org/me/testeEmpresa/TesteEmpresa.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 org.me.testeEmpresa; +import org.me.empresa.Motorista; +/** + * + * @author USER + */ +public class TesteEmpresa { + public static void main(String[] args) { + Motorista m1 = new Motorista(1,"José","Rua2",1234); + + System.out.printf("Matricula: %s, Nome: %s, Endereço %s, Cnh: %d\n", + m1.GetMatricula(),m1.GetNome(),m1.GetEndereco(),m1.GetCnh()); + } + +} diff --git a/ExGUI1/.gitignore b/ExGUI1/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ExGUI1/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ExGUI1/build.xml b/ExGUI1/build.xml new file mode 100644 index 0000000..58d32f3 --- /dev/null +++ b/ExGUI1/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ExGUI1. + + + diff --git a/ExGUI1/manifest.mf b/ExGUI1/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/ExGUI1/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/ExGUI1/nbproject/build-impl.xml b/ExGUI1/nbproject/build-impl.xml new file mode 100644 index 0000000..167c822 --- /dev/null +++ b/ExGUI1/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExGUI1/nbproject/genfiles.properties b/ExGUI1/nbproject/genfiles.properties new file mode 100644 index 0000000..ff7a1e8 --- /dev/null +++ b/ExGUI1/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=06535a87 +build.xml.script.CRC32=800279d4 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=06535a87 +nbproject/build-impl.xml.script.CRC32=b0dd4b5b +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ExGUI1/nbproject/project.properties b/ExGUI1/nbproject/project.properties new file mode 100644 index 0000000..3651f9e --- /dev/null +++ b/ExGUI1/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ExGUI1.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=exgui.ExGUI +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ExGUI1/nbproject/project.xml b/ExGUI1/nbproject/project.xml new file mode 100644 index 0000000..531bc1e --- /dev/null +++ b/ExGUI1/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ExGUI1 + + + + + + + + + diff --git a/ExGUI1/src/exgui/ExGUI.java b/ExGUI1/src/exgui/ExGUI.java new file mode 100644 index 0000000..aa0de7d --- /dev/null +++ b/ExGUI1/src/exgui/ExGUI.java @@ -0,0 +1,67 @@ +package exgui; +import javax.swing.*; + +public class ExGUI { + + public static void main(String[] args) { + double t,t2,res = 0; + String tmp; + + tmp = JOptionPane.showInputDialog("Digite o primeiro número."); + t = Double.parseDouble(tmp); + + tmp = JOptionPane.showInputDialog("Digite o segundo número."); + t2 = Double.parseDouble(tmp); + + tmp = JOptionPane.showInputDialog("1 - Somar" + + "\n2 - Subtrair" + + "\n3 - Multiplicar" + + "\n4 - Dividir" + + "\n5 - Expoente ao Quadrado" + + "\n6 - Expoente ao Cubo" + + "\n7 - Porcentagem"); + switch(tmp) + { + case "1": + res = t+t2; + break; + case "2": + res = t-t2; + break; + case "3": + res = t*t2; + break; + case "4": + res = t/t2; + break; + case "5": + tmp = "IGN"; + t = Math.pow(t,2); + t2 = Math.pow(t2,2); + break; + case "6": + t = Math.pow(t,3); + t2 = Math.pow(t2,3); + tmp = "IGN"; + break; + case "7": + res = (t/t2)*100; + break; + default: + JOptionPane.showMessageDialog(null,"Erro!","Valor inválido!", JOptionPane.ERROR_MESSAGE); + main(args); + break; + } + + if(tmp != "IGN") + { + tmp = String.format("%.2f", res); + JOptionPane.showMessageDialog(null,tmp,"Resultado!",JOptionPane.PLAIN_MESSAGE); + } + else + { + tmp = String.format("1: %.2f\n2: %.2f",t,t2); + JOptionPane.showMessageDialog(null,tmp,"Resultado!",JOptionPane.PLAIN_MESSAGE); + } + } +} diff --git a/ExGUI8/.gitignore b/ExGUI8/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ExGUI8/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ExGUI8/build.xml b/ExGUI8/build.xml new file mode 100644 index 0000000..9c9bda0 --- /dev/null +++ b/ExGUI8/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ExGUI8. + + + diff --git a/ExGUI8/manifest.mf b/ExGUI8/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/ExGUI8/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/ExGUI8/nbproject/build-impl.xml b/ExGUI8/nbproject/build-impl.xml new file mode 100644 index 0000000..181d3f1 --- /dev/null +++ b/ExGUI8/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExGUI8/nbproject/genfiles.properties b/ExGUI8/nbproject/genfiles.properties new file mode 100644 index 0000000..33063dc --- /dev/null +++ b/ExGUI8/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4edcb791 +build.xml.script.CRC32=ba823e4d +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=4edcb791 +nbproject/build-impl.xml.script.CRC32=32e9a5ff +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ExGUI8/nbproject/project.properties b/ExGUI8/nbproject/project.properties new file mode 100644 index 0000000..732872f --- /dev/null +++ b/ExGUI8/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ExGUI8.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=exgui8.Calculadora +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ExGUI8/nbproject/project.xml b/ExGUI8/nbproject/project.xml new file mode 100644 index 0000000..4f88e5c --- /dev/null +++ b/ExGUI8/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ExGUI8 + + + + + + + + + diff --git a/ExGUI8/src/exgui8/Calculadora.form b/ExGUI8/src/exgui8/Calculadora.form new file mode 100644 index 0000000..3b05ea1 --- /dev/null +++ b/ExGUI8/src/exgui8/Calculadora.form @@ -0,0 +1,278 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/ExGUI8/src/exgui8/Calculadora.java b/ExGUI8/src/exgui8/Calculadora.java new file mode 100644 index 0000000..9c8d61b --- /dev/null +++ b/ExGUI8/src/exgui8/Calculadora.java @@ -0,0 +1,335 @@ +package exgui8; + +public class Calculadora extends javax.swing.JFrame { + + public Calculadora() { + initComponents(); + } + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + jPanel1 = new javax.swing.JPanel(); + n1 = new javax.swing.JTextField(); + n2 = new javax.swing.JTextField(); + jLabel1 = new javax.swing.JLabel(); + jLabel2 = new javax.swing.JLabel(); + res = new javax.swing.JTextField(); + jLabel3 = new javax.swing.JLabel(); + jPanel2 = new javax.swing.JPanel(); + fatorial = new javax.swing.JButton(); + squared = new javax.swing.JButton(); + cubed = new javax.swing.JButton(); + sqRoot = new javax.swing.JButton(); + clear = new javax.swing.JButton(); + div = new javax.swing.JButton(); + mult = new javax.swing.JButton(); + subtract = new javax.swing.JButton(); + Sum = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); + + n1.setText("0"); + n1.setToolTipText(""); + + n2.setText("0"); + n2.setToolTipText(""); + + jLabel1.setText("Primeiro n°:"); + + jLabel2.setText("Segundo n°:"); + + res.setText("0"); + res.setToolTipText(""); + + jLabel3.setText("Resultado:"); + + fatorial.setText("n!"); + fatorial.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + fatorialActionPerformed(evt); + } + }); + + squared.setText("X²"); + squared.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + squaredActionPerformed(evt); + } + }); + + cubed.setText("X³"); + cubed.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + cubedActionPerformed(evt); + } + }); + + sqRoot.setText("SQRT"); + sqRoot.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + sqRootActionPerformed(evt); + } + }); + + clear.setText("C"); + clear.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + clearActionPerformed(evt); + } + }); + + div.setText("/"); + div.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + divActionPerformed(evt); + } + }); + + mult.setText("*"); + mult.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + multActionPerformed(evt); + } + }); + + subtract.setText("-"); + subtract.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + subtractActionPerformed(evt); + } + }); + + Sum.setText("+"); + Sum.setToolTipText(""); + Sum.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + SumActionPerformed(evt); + } + }); + + javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); + jPanel2.setLayout(jPanel2Layout); + jPanel2Layout.setHorizontalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(mult, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(subtract, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(Sum, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(squared, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() + .addGap(0, 0, Short.MAX_VALUE) + .addComponent(cubed)) + .addComponent(div, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(clear, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(fatorial, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(sqRoot, javax.swing.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE)) + .addContainerGap()) + ); + jPanel2Layout.setVerticalGroup( + jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel2Layout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(clear) + .addComponent(div) + .addComponent(Sum)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(squared) + .addComponent(sqRoot) + .addComponent(subtract)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(fatorial) + .addComponent(cubed) + .addComponent(mult)) + .addContainerGap()) + ); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel1) + .addComponent(jLabel2)) + .addGap(72, 72, 72) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(n2) + .addComponent(n1))) + .addGroup(jPanel1Layout.createSequentialGroup() + .addComponent(jLabel3) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(res, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)))) + .addContainerGap()) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGap(33, 33, 33) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(n1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel1)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(n2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel2)) + .addGap(18, 18, 18) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(res, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jLabel3)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE) + .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap()) + ); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + + pack(); + }// //GEN-END:initComponents + + private void SumActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SumActionPerformed + t1 = Double.parseDouble(n1.getText()); + t2 = Double.parseDouble(n2.getText()); + + res.setText(String.format("%f",t1+t2)); + }//GEN-LAST:event_SumActionPerformed + + private void divActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_divActionPerformed + t1 = Double.parseDouble(n1.getText()); + t2 = Double.parseDouble(n2.getText()); + + res.setText(String.format("%f",t1/t2)); + }//GEN-LAST:event_divActionPerformed + + private void clearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearActionPerformed + n1.setText("0"); + n2.setText("0"); + res.setText("0"); + }//GEN-LAST:event_clearActionPerformed + + private void subtractActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_subtractActionPerformed + t1 = Double.parseDouble(n1.getText()); + t2 = Double.parseDouble(n2.getText()); + + res.setText(String.format("%f",t1-t2)); + }//GEN-LAST:event_subtractActionPerformed + + private void squaredActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_squaredActionPerformed + t1 = Double.parseDouble(n1.getText()); + n2.setText("0"); + res.setText(String.format("%f",Math.pow(t1, 2))); + }//GEN-LAST:event_squaredActionPerformed + + private void sqRootActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sqRootActionPerformed + t1 = Double.parseDouble(n1.getText()); + n2.setText("0"); + res.setText(String.format("%f",Math.sqrt(t1))); + }//GEN-LAST:event_sqRootActionPerformed + + private void multActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_multActionPerformed + t1 = Double.parseDouble(n1.getText()); + t2 = Double.parseDouble(n2.getText()); + res.setText(String.format("%f",t1*t2)); + }//GEN-LAST:event_multActionPerformed + + private void cubedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cubedActionPerformed + t1 = Double.parseDouble(n1.getText()); + n2.setText("0"); + res.setText(String.format("%f",Math.pow(t1, 3))); + }//GEN-LAST:event_cubedActionPerformed + + private void fatorialActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fatorialActionPerformed + t1 = Double.parseDouble(n1.getText()); + t2=1; + n2.setText("0"); + + while(t1 > 0) + { + t2*=t1; + t1-=1; + } + res.setText(String.format("%f",t2)); + }//GEN-LAST:event_fatorialActionPerformed + 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(Calculadora.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(Calculadora.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(Calculadora.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(Calculadora.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 Calculadora().setVisible(true); + } + }); + } + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton Sum; + private javax.swing.JButton clear; + private javax.swing.JButton cubed; + private javax.swing.JButton div; + private javax.swing.JButton fatorial; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JPanel jPanel1; + private javax.swing.JPanel jPanel2; + private javax.swing.JButton mult; + private javax.swing.JTextField n1; + private javax.swing.JTextField n2; + private javax.swing.JTextField res; + private javax.swing.JButton sqRoot; + private javax.swing.JButton squared; + private javax.swing.JButton subtract; + // End of variables declaration//GEN-END:variables + private double t1,t2; +} diff --git a/ExGui2/.gitignore b/ExGui2/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ExGui2/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ExGui2/build.xml b/ExGui2/build.xml new file mode 100644 index 0000000..285672d --- /dev/null +++ b/ExGui2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ExGui2. + + + diff --git a/ExGui2/manifest.mf b/ExGui2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/ExGui2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/ExGui2/nbproject/build-impl.xml b/ExGui2/nbproject/build-impl.xml new file mode 100644 index 0000000..0197baa --- /dev/null +++ b/ExGui2/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExGui2/nbproject/genfiles.properties b/ExGui2/nbproject/genfiles.properties new file mode 100644 index 0000000..c5fadf0 --- /dev/null +++ b/ExGui2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a52fefdf +build.xml.script.CRC32=68f5358c +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a52fefdf +nbproject/build-impl.xml.script.CRC32=39c572bf +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ExGui2/nbproject/project.properties b/ExGui2/nbproject/project.properties new file mode 100644 index 0000000..ec96de5 --- /dev/null +++ b/ExGui2/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ExGui2.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=exgui2.ExGui2 +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ExGui2/nbproject/project.xml b/ExGui2/nbproject/project.xml new file mode 100644 index 0000000..e757bb3 --- /dev/null +++ b/ExGui2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ExGui2 + + + + + + + + + diff --git a/ExGui2/src/exgui2/ExGui2.java b/ExGui2/src/exgui2/ExGui2.java new file mode 100644 index 0000000..3aa77f7 --- /dev/null +++ b/ExGui2/src/exgui2/ExGui2.java @@ -0,0 +1,63 @@ +package exgui2; +import java.awt.*; +import javax.swing.*; +import javax.swing.border.*; + + +class Janela extends JFrame +{ + public Janela() + { + super("Calculadora"); + + FlowLayout fl = new FlowLayout(FlowLayout.CENTER); + + setLayout(fl); + + JPanel p1 = new JPanel(); + + JPanel p2 = new JPanel(); + + GridLayout gr = new GridLayout(4,4,4,4); + gr.setHgap(5); + gr.setVgap(5); + + p2.setLayout(gr); + + p1.setBorder(new EmptyBorder(7,10,5,10)); + p2.setBorder(new EmptyBorder(10,10,10,10)); + + setSize(285,305); + + JTextField res = new JTextField("",22); + res.setEditable(false); + res.setPreferredSize(new Dimension(0,25)); + p1.add(res); + setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + String[] prep = {"7","8","9","/", + "4","5","6","*", + "1","2","3","-", + "0",".","=","+"}; + + for(int i = 0; i < 16; i++) + { + JButton btn = new JButton(prep[i]); + btn.setPreferredSize(new Dimension(60,40)); + p2.add(btn); + } + + add(p1); + add(p2); + + } +} +public class ExGui2{ + + public static void main(String[] args) { + + Janela j = new Janela(); + j.setVisible(true); + + } + +} diff --git a/ExemploMetodo/.gitignore b/ExemploMetodo/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ExemploMetodo/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ExemploMetodo/build.xml b/ExemploMetodo/build.xml new file mode 100644 index 0000000..2c7529d --- /dev/null +++ b/ExemploMetodo/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ExemploMetodo. + + + diff --git a/ExemploMetodo/nbproject/build-impl.xml b/ExemploMetodo/nbproject/build-impl.xml new file mode 100644 index 0000000..16b9b09 --- /dev/null +++ b/ExemploMetodo/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExemploMetodo/nbproject/genfiles.properties b/ExemploMetodo/nbproject/genfiles.properties new file mode 100644 index 0000000..d99f3ba --- /dev/null +++ b/ExemploMetodo/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ee2132bc +build.xml.script.CRC32=d5e6f1a8 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=ee2132bc +nbproject/build-impl.xml.script.CRC32=171cb29f +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ExemploMetodo/nbproject/project.properties b/ExemploMetodo/nbproject/project.properties new file mode 100644 index 0000000..ab47b64 --- /dev/null +++ b/ExemploMetodo/nbproject/project.properties @@ -0,0 +1,72 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ExemploMetodo.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ExemploMetodo/nbproject/project.xml b/ExemploMetodo/nbproject/project.xml new file mode 100644 index 0000000..023dc5b --- /dev/null +++ b/ExemploMetodo/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ExemploMetodo + + + + + + + + + diff --git a/ExemploMetodo/src/org/me/exemplometodo/Cliente.java b/ExemploMetodo/src/org/me/exemplometodo/Cliente.java new file mode 100644 index 0000000..c1326d5 --- /dev/null +++ b/ExemploMetodo/src/org/me/exemplometodo/Cliente.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 org.me.exemplometodo; + +/** + * + * @author USER + */ +public class Cliente { + public String nome, email, numcont; + private Double saldo = 0.00; + + public void exibeSaldo() + { + System.out.printf("Saldo atual: %.3f \n", saldo); + } + + public void adicionaSaldo(Double val) + { + saldo += val; + } +} diff --git a/ExemploMetodo/src/org/me/exemplometodo/Curso.java b/ExemploMetodo/src/org/me/exemplometodo/Curso.java new file mode 100644 index 0000000..f7f2857 --- /dev/null +++ b/ExemploMetodo/src/org/me/exemplometodo/Curso.java @@ -0,0 +1,18 @@ + +package org.me.exemplometodo; + +public class Curso { + public String nomecurso; + public int duracao; + public double valorcurso; + + public void exibirMensagem() + { + System.out.println("Bem Vindo ao Curso: " + nomecurso); + } + + public void teste(String nomec) + { + System.out.println("Olha que massa: " + nomecurso + " e " + nomec); + } +} diff --git a/ExemploPOO/.gitignore b/ExemploPOO/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ExemploPOO/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ExemploPOO/build.xml b/ExemploPOO/build.xml new file mode 100644 index 0000000..6ea2a38 --- /dev/null +++ b/ExemploPOO/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ExemploPOO. + + + diff --git a/ExemploPOO/nbproject/build-impl.xml b/ExemploPOO/nbproject/build-impl.xml new file mode 100644 index 0000000..3d80c6c --- /dev/null +++ b/ExemploPOO/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExemploPOO/nbproject/genfiles.properties b/ExemploPOO/nbproject/genfiles.properties new file mode 100644 index 0000000..1ae1cf9 --- /dev/null +++ b/ExemploPOO/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=4b46dd43 +build.xml.script.CRC32=055e5314 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=4b46dd43 +nbproject/build-impl.xml.script.CRC32=de07bd13 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ExemploPOO/nbproject/project.properties b/ExemploPOO/nbproject/project.properties new file mode 100644 index 0000000..79a82b9 --- /dev/null +++ b/ExemploPOO/nbproject/project.properties @@ -0,0 +1,72 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ExemploPOO.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ExemploPOO/nbproject/project.xml b/ExemploPOO/nbproject/project.xml new file mode 100644 index 0000000..438a3b1 --- /dev/null +++ b/ExemploPOO/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ExemploPOO + + + + + + + + + diff --git a/ExemploPOO/src/org/me/ExemploPOO/Pessoa.java b/ExemploPOO/src/org/me/ExemploPOO/Pessoa.java new file mode 100644 index 0000000..ad6e40f --- /dev/null +++ b/ExemploPOO/src/org/me/ExemploPOO/Pessoa.java @@ -0,0 +1,6 @@ +package org.me.ExemploPOO; + +public class Pessoa { + public String nome, email; + public int idade; +} diff --git a/ExemploPOO/src/org/me/ExemploPOO/Veiculo.java b/ExemploPOO/src/org/me/ExemploPOO/Veiculo.java new file mode 100644 index 0000000..d8d0e70 --- /dev/null +++ b/ExemploPOO/src/org/me/ExemploPOO/Veiculo.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 org.me.ExemploPOO; + +import java.util.Calendar; + + + +/** + * + * @author USER + */ +public class Veiculo { + public String modelo, marca; + public Calendar ano = Calendar.getInstance(); +} diff --git a/ExemploSuper/.gitignore b/ExemploSuper/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ExemploSuper/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ExemploSuper/build.xml b/ExemploSuper/build.xml new file mode 100644 index 0000000..277157b --- /dev/null +++ b/ExemploSuper/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ExemploSuper. + + + diff --git a/ExemploSuper/nbproject/build-impl.xml b/ExemploSuper/nbproject/build-impl.xml new file mode 100644 index 0000000..419ef5d --- /dev/null +++ b/ExemploSuper/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExemploSuper/nbproject/genfiles.properties b/ExemploSuper/nbproject/genfiles.properties new file mode 100644 index 0000000..9314d47 --- /dev/null +++ b/ExemploSuper/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=11167511 +build.xml.script.CRC32=eca9e53c +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=11167511 +nbproject/build-impl.xml.script.CRC32=78cb9aa6 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ExemploSuper/nbproject/project.properties b/ExemploSuper/nbproject/project.properties new file mode 100644 index 0000000..373850c --- /dev/null +++ b/ExemploSuper/nbproject/project.properties @@ -0,0 +1,73 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ExemploSuper.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=org.me.testeexemplosuper.TesteExemploSuper +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ExemploSuper/nbproject/project.xml b/ExemploSuper/nbproject/project.xml new file mode 100644 index 0000000..1fb7c99 --- /dev/null +++ b/ExemploSuper/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ExemploSuper + + + + + + + + + diff --git a/ExemploSuper/src/org/me/exemplosuper/Base.java b/ExemploSuper/src/org/me/exemplosuper/Base.java new file mode 100644 index 0000000..d4db095 --- /dev/null +++ b/ExemploSuper/src/org/me/exemplosuper/Base.java @@ -0,0 +1,4 @@ +package org.me.exemplosuper; +public class Base { + protected int a = 98,b = 75,c = 32; +} diff --git a/ExemploSuper/src/org/me/exemplosuper/Deriva.java b/ExemploSuper/src/org/me/exemplosuper/Deriva.java new file mode 100644 index 0000000..c0b97a2 --- /dev/null +++ b/ExemploSuper/src/org/me/exemplosuper/Deriva.java @@ -0,0 +1,10 @@ +package org.me.exemplosuper; + +public class Deriva extends Base{ + protected int x = 7,y = 34,z = 67; + public void Imprimir() + { + System.out.printf("a: %d, b: %d, c: %d\n", super.a,super.b,super.c); + System.out.printf("x: %d, y: %d, z: %d\n", x,y,z); + } +} diff --git a/ExemploSuper/src/org/me/testeexemplosuper/TesteExemploSuper.java b/ExemploSuper/src/org/me/testeexemplosuper/TesteExemploSuper.java new file mode 100644 index 0000000..7b7658b --- /dev/null +++ b/ExemploSuper/src/org/me/testeexemplosuper/TesteExemploSuper.java @@ -0,0 +1,11 @@ +package org.me.testeexemplosuper; +import org.me.exemplosuper.Deriva; + +public class TesteExemploSuper { + + public static void main(String[] args) { + Deriva d1 = new Deriva(); + d1.Imprimir(); + } + +} diff --git a/Exercicio2/.gitignore b/Exercicio2/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/Exercicio2/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/Exercicio2/build.xml b/Exercicio2/build.xml new file mode 100644 index 0000000..f4e29ad --- /dev/null +++ b/Exercicio2/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exercicio2. + + + diff --git a/Exercicio2/manifest.mf b/Exercicio2/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/Exercicio2/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/Exercicio2/nbproject/build-impl.xml b/Exercicio2/nbproject/build-impl.xml new file mode 100644 index 0000000..af9730f --- /dev/null +++ b/Exercicio2/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Exercicio2/nbproject/genfiles.properties b/Exercicio2/nbproject/genfiles.properties new file mode 100644 index 0000000..8290cf7 --- /dev/null +++ b/Exercicio2/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=fb494440 +build.xml.script.CRC32=66e7a154 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=fb494440 +nbproject/build-impl.xml.script.CRC32=7823ac2b +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/Exercicio2/nbproject/project.properties b/Exercicio2/nbproject/project.properties new file mode 100644 index 0000000..c9d6497 --- /dev/null +++ b/Exercicio2/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Exercicio2.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=org.me.testeempregado.testeempregado +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/Exercicio2/nbproject/project.xml b/Exercicio2/nbproject/project.xml new file mode 100644 index 0000000..72311b1 --- /dev/null +++ b/Exercicio2/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exercicio2 + + + + + + + + + diff --git a/Exercicio2/src/org/me/empregado/Empregado.java b/Exercicio2/src/org/me/empregado/Empregado.java new file mode 100644 index 0000000..dae2615 --- /dev/null +++ b/Exercicio2/src/org/me/empregado/Empregado.java @@ -0,0 +1,36 @@ +package org.me.empregado; + +public abstract class Empregado { + private int codigo; + private String nome; + private double salarioBase; + + public Empregado(int codigo, String nome, double salarioBase) + { + this.codigo = codigo; + this.nome = nome; + this.salarioBase = salarioBase; + } + + public void setCodigo(int codigo){this.codigo = codigo;} + public void setNome(String nome){this.nome = nome;} + public void setSalario(double salarioBase){this.salarioBase = salarioBase;} + + public int getCodigo(){return this.codigo;} + public String getNome(){return this.nome;} + public double getSalario(){return this.salarioBase;} + + public abstract void CalculoSalario(); + + @Override + public String toString() + { + return String.format("\nCódigo: %d" + + "\n\tNome: %s" + + "\n\tSalario Base: %.2f", + getCodigo(), + getNome(), + getSalario() + ); + } +} diff --git a/Exercicio2/src/org/me/empregado/Engenheiro.java b/Exercicio2/src/org/me/empregado/Engenheiro.java new file mode 100644 index 0000000..bac8304 --- /dev/null +++ b/Exercicio2/src/org/me/empregado/Engenheiro.java @@ -0,0 +1,39 @@ +package org.me.empregado; + +public class Engenheiro extends Empregado{ + private String Dept; + private int CREA; + + public Engenheiro(int codigo, String nome, double salarioBase, String Dept, int CREA) + { + super(codigo,nome,salarioBase); + this.Dept = Dept; + this.CREA = CREA; + } + + public void SetDept(String Dept){this.Dept = Dept;} + public void SetCREA(int CREA){this.CREA = CREA;} + public String GetDept(){return this.Dept;} + public int GetCREA(){return this.CREA;} + + + @Override + public void CalculoSalario() + { + double CurSal = getSalario(); + CurSal *= 1.5; + setSalario(CurSal); + } + + @Override + public String toString() + { + return String.format("%s" + + "\n\tDept: %s" + + "\n\tCREA: %d", + super.toString(), + GetDept(), + GetCREA() + ); + } +} diff --git a/Exercicio2/src/org/me/empregado/Gerente.java b/Exercicio2/src/org/me/empregado/Gerente.java new file mode 100644 index 0000000..ed0aed7 --- /dev/null +++ b/Exercicio2/src/org/me/empregado/Gerente.java @@ -0,0 +1,33 @@ +package org.me.empregado; + +public class Gerente extends Empregado { + + private double bonus; + public Gerente(int codigo, String nome, double salarioBase, double bonus) + { + super(codigo,nome,salarioBase); + this.bonus = bonus; + } + public double GetBonus(){return this.bonus;} + public void SetBonus(double bonus){this.bonus = bonus;} + + @Override + public void CalculoSalario() + { + double CurSal = getSalario(); + CurSal += bonus; + setSalario(CurSal); + } + + @Override + public String toString() + { + return String.format( + "\n%s" + + "\n\tBonus: %.2f\n", + super.toString(), + GetBonus() + ); + } + +} diff --git a/Exercicio2/src/org/me/testeempregado/testeempregado.java b/Exercicio2/src/org/me/testeempregado/testeempregado.java new file mode 100644 index 0000000..fb13c58 --- /dev/null +++ b/Exercicio2/src/org/me/testeempregado/testeempregado.java @@ -0,0 +1,21 @@ +package org.me.testeempregado; +import org.me.empregado.*; + +public class testeempregado { + + public static void main(String[] args) { + Empregado[] e = new Empregado[2]; + e[0] = new Engenheiro(1,"José",5000.0,"Teste",12414515); + e[1] = new Gerente(2,"Danilo",6000.0,1230.0); + + for(Empregado f: e) + { + System.out.print(f.toString()); + f.CalculoSalario(); + System.out.print(f.toString()); + + } + + } + +} diff --git a/Exercicio3/.gitignore b/Exercicio3/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/Exercicio3/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/Exercicio3/build.xml b/Exercicio3/build.xml new file mode 100644 index 0000000..06bd27f --- /dev/null +++ b/Exercicio3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exercicio3. + + + diff --git a/Exercicio3/nbproject/build-impl.xml b/Exercicio3/nbproject/build-impl.xml new file mode 100644 index 0000000..9c5af4d --- /dev/null +++ b/Exercicio3/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Exercicio3/nbproject/genfiles.properties b/Exercicio3/nbproject/genfiles.properties new file mode 100644 index 0000000..01ec2f3 --- /dev/null +++ b/Exercicio3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=f35ac866 +build.xml.script.CRC32=48dcdf83 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=f35ac866 +nbproject/build-impl.xml.script.CRC32=6a09c8eb +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/Exercicio3/nbproject/project.properties b/Exercicio3/nbproject/project.properties new file mode 100644 index 0000000..0269dc9 --- /dev/null +++ b/Exercicio3/nbproject/project.properties @@ -0,0 +1,73 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Exercicio3.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=org.me.testefuncionario.testefuncionario +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/Exercicio3/nbproject/project.xml b/Exercicio3/nbproject/project.xml new file mode 100644 index 0000000..ae4e1d5 --- /dev/null +++ b/Exercicio3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exercicio3 + + + + + + + + + diff --git a/Exercicio3/src/org/me/funcionario/Funcionario.java b/Exercicio3/src/org/me/funcionario/Funcionario.java new file mode 100644 index 0000000..9deaffd --- /dev/null +++ b/Exercicio3/src/org/me/funcionario/Funcionario.java @@ -0,0 +1,34 @@ +package org.me.funcionario; + +public abstract class Funcionario { + private String nome, sobrenome, CPF; + + public Funcionario(String nome, String sobrenome, String CPF) + { + this.nome = nome; + this.sobrenome = sobrenome; + this.CPF = CPF; + } + + public void setNome(String n){nome = n;} + public void setSobrenome(String sn){sobrenome = sn;} + public void setCPF(String c){CPF = c;} + + public String getNome(){return this.nome;} + public String getSobrenome(){return this.sobrenome;} + public String getCPF(){return this.CPF;} + + @Override + public String toString() + { + return String.format("\nNome: %s" + + "\nSobrenome: %s" + + "\nCPF: %s", + getNome(), + getSobrenome(), + getCPF()); + } + + public abstract double calculoSalario(); + +} diff --git a/Exercicio3/src/org/me/funcionario/FuncionarioComissao.java b/Exercicio3/src/org/me/funcionario/FuncionarioComissao.java new file mode 100644 index 0000000..0db676a --- /dev/null +++ b/Exercicio3/src/org/me/funcionario/FuncionarioComissao.java @@ -0,0 +1,43 @@ +package org.me.funcionario; + +public class FuncionarioComissao extends Funcionario { + private double vendaBruta, comissao; + + public FuncionarioComissao(double vendaBruta, double comissao, String nome, String sobrenome, String CPF) { + super(nome, sobrenome, CPF); + this.vendaBruta = vendaBruta; + this.comissao = comissao; + } + + public double getVendaBruta() { + return vendaBruta; + } + + public void setVendaBruta(double vendaBruta) { + this.vendaBruta = vendaBruta < 0 ? 0 : vendaBruta; + } + + public double getComissao() { + return comissao; + } + + public void setComissao(double comissao) { + this.comissao = comissao > 0 & comissao < 1 ? comissao : 0; + } + + @Override + public double calculoSalario() + { + return vendaBruta * comissao; + } + + @Override + public String toString(){ + return String.format("%s" + + "\nVenda Bruta: %.2f" + + "\nComissão: %.2f\n", + super.toString(), + getVendaBruta(), + getComissao()); + } +} diff --git a/Exercicio3/src/org/me/funcionario/FuncionarioHorista.java b/Exercicio3/src/org/me/funcionario/FuncionarioHorista.java new file mode 100644 index 0000000..debafd1 --- /dev/null +++ b/Exercicio3/src/org/me/funcionario/FuncionarioHorista.java @@ -0,0 +1,52 @@ +package org.me.funcionario; + +public class FuncionarioHorista extends Funcionario { + private double salHora; + private int horas; + + public FuncionarioHorista(double salHora, int horas, String nome, String sobrenome, String CPF) { + super(nome, sobrenome, CPF); + this.salHora = salHora; + this.horas = horas; + } + + public double getSalHora() { + return salHora; + } + + public void setSalHora(double salHora) { + this.salHora = salHora < 0 ? 0 : salHora; + } + + public int getHoras() { + return horas; + } + + public void setHoras(int horas) { + this.horas = horas > 0 & horas <= 168 ? horas : 0; + } + + @Override + public double calculoSalario() + { + if(horas <= 40) + { + return salHora * horas; + } + else + { + return 40 * getSalHora() + (getHoras()-40) * getSalHora() * 1.5; + } + } + + @Override + public String toString() + { + return String.format("%s" + + "\nSalario Hora: %.2f" + + "\nHoras: %d\n", + super.toString(), + getSalHora(), + getHoras()); + } +} diff --git a/Exercicio3/src/org/me/funcionario/FuncionarioMensalista.java b/Exercicio3/src/org/me/funcionario/FuncionarioMensalista.java new file mode 100644 index 0000000..d5b60cc --- /dev/null +++ b/Exercicio3/src/org/me/funcionario/FuncionarioMensalista.java @@ -0,0 +1,34 @@ +package org.me.funcionario; +public class FuncionarioMensalista extends Funcionario{ + private double salMensal; + + public FuncionarioMensalista(String nome, String sobrenome, String CPF, double salMensal) + { + super(nome,sobrenome,CPF); + this.salMensal = salMensal; + } + + public double getSalMensal() { + return salMensal; + } + + public void setSalMensal(double salMensal) { + this.salMensal = salMensal < 0 ? 0 : salMensal; + } + + @Override + public double calculoSalario() + { + return salMensal; + } + + @Override + public String toString() + { + return String.format("%s" + + "\nSalario Mensal: %.2f\n", + super.toString(), + getSalMensal()); + } + +} diff --git a/Exercicio3/src/org/me/testefuncionario/testefuncionario.java b/Exercicio3/src/org/me/testefuncionario/testefuncionario.java new file mode 100644 index 0000000..ddcfe30 --- /dev/null +++ b/Exercicio3/src/org/me/testefuncionario/testefuncionario.java @@ -0,0 +1,25 @@ +package org.me.testefuncionario; +import org.me.funcionario.*; + +public class testefuncionario { + + public static void main(String[] args) { + FuncionarioMensalista f1 = new FuncionarioMensalista("Fabricio","Raszeja","0000000",1200.0); + FuncionarioHorista f2 = new FuncionarioHorista(20.5,60,"Teste","Sobrenome","00011111"); + FuncionarioComissao f3 = new FuncionarioComissao(12000,0.1,"Teste2","Sobrenome2","0002222"); + + System.out.printf("%s %s %s", f1.toString(),f2.toString(),f3.toString()); + System.out.println("--------------------------"); + System.out.printf("%s" + + "Salario Calculado: %.2f \n" + + "%s" + + "Salario Calculado: %.2f \n" + + "%s" + + "Salario Calculado: %.2f \n", + f1.toString(),f1.calculoSalario(), + f2.toString(),f2.calculoSalario(), + f3.toString(),f3.calculoSalario()); + + } + +} diff --git a/ExercicioFormat/.gitignore b/ExercicioFormat/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ExercicioFormat/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ExercicioFormat/build.xml b/ExercicioFormat/build.xml new file mode 100644 index 0000000..88ff41a --- /dev/null +++ b/ExercicioFormat/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Exercicio1. + + + diff --git a/ExercicioFormat/manifest.mf b/ExercicioFormat/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/ExercicioFormat/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/ExercicioFormat/nbproject/build-impl.xml b/ExercicioFormat/nbproject/build-impl.xml new file mode 100644 index 0000000..0b35532 --- /dev/null +++ b/ExercicioFormat/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExercicioFormat/nbproject/genfiles.properties b/ExercicioFormat/nbproject/genfiles.properties new file mode 100644 index 0000000..11295c2 --- /dev/null +++ b/ExercicioFormat/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=e37dd02a +build.xml.script.CRC32=14aa222d +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=e37dd02a +nbproject/build-impl.xml.script.CRC32=4e5d016b +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ExercicioFormat/nbproject/project.properties b/ExercicioFormat/nbproject/project.properties new file mode 100644 index 0000000..3400c6b --- /dev/null +++ b/ExercicioFormat/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Exercicio1.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=org.me.testeproduto.TesteProduto +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ExercicioFormat/nbproject/project.xml b/ExercicioFormat/nbproject/project.xml new file mode 100644 index 0000000..a393741 --- /dev/null +++ b/ExercicioFormat/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Exercicio1 + + + + + + + + + diff --git a/ExercicioFormat/src/org/me/produto/CompactDisc.java b/ExercicioFormat/src/org/me/produto/CompactDisc.java new file mode 100644 index 0000000..e15a0e5 --- /dev/null +++ b/ExercicioFormat/src/org/me/produto/CompactDisc.java @@ -0,0 +1,17 @@ +package org.me.produto; + +public class CompactDisc extends Produto{ + private String album, artista, gravadora; + + public CompactDisc(int codigo, double preco, String descricao, String album, String artista, String gravadora) + { + super(codigo,preco,descricao); + this.album = album; + this.artista = artista; + this.gravadora = gravadora; + } + + public String GetAlbum(){return this.album;} + public String GetArtista(){return this.artista;} + public String GetGravdr(){return this.gravadora;} +} diff --git a/ExercicioFormat/src/org/me/produto/Livro.java b/ExercicioFormat/src/org/me/produto/Livro.java new file mode 100644 index 0000000..76e62d7 --- /dev/null +++ b/ExercicioFormat/src/org/me/produto/Livro.java @@ -0,0 +1,19 @@ +package org.me.produto; + +public class Livro extends Produto{ + private String autor, editora; + private int isbn, ano; + + public Livro(int codigo, int isbn, int ano, double preco, String descricao, String autor, String editora) + { + super(codigo,preco,descricao); + this.isbn = isbn; + this.ano = ano; + this.autor = autor; + this.editora = editora; + } + public String GetAutor(){return this.autor;} + public String GetEditora(){return this.editora;} + public int GetISBN(){return this.isbn;} + public int GetAno(){return this.ano;} +} \ No newline at end of file diff --git a/ExercicioFormat/src/org/me/produto/Produto.java b/ExercicioFormat/src/org/me/produto/Produto.java new file mode 100644 index 0000000..5b86020 --- /dev/null +++ b/ExercicioFormat/src/org/me/produto/Produto.java @@ -0,0 +1,18 @@ +package org.me.produto; + +public class Produto { + private int codigo; + private double preco; + private String descricao; + + public Produto(int codigo, double preco, String descricao) + { + this.codigo = codigo; + this.preco = preco; + this.descricao = descricao; + } + + public int GetCodigo(){return this.codigo;} + public double GetPreco(){return this.preco;} + public String GetDescr(){return this.descricao;} +} diff --git a/ExercicioFormat/src/org/me/testeproduto/TesteProduto.java b/ExercicioFormat/src/org/me/testeproduto/TesteProduto.java new file mode 100644 index 0000000..ea496f3 --- /dev/null +++ b/ExercicioFormat/src/org/me/testeproduto/TesteProduto.java @@ -0,0 +1,36 @@ +package org.me.testeproduto; +import org.me.produto.*; +public class TesteProduto { + public static void main(String[] args) { + CompactDisc cd = new CompactDisc(1,20.00,"SUBARU SUBARU","BAD BLACK","Ramon Film Productions","Wakaliwood"); + Livro lv = new Livro(2,12414135,2020,49.99,"Livro Teste","Arnold Schwarzenegger","Editora Teste"); + + System.out.printf("\nLivro: %s" + + "\n\tAutor: %s" + + "\n\tEditora: %s" + + "\n\tISBN: %d" + + "\n\tAno: %d" + + "\n\tPreço: %.2f\n", + lv.GetDescr(), + lv.GetAutor(), + lv.GetEditora(), + lv.GetISBN(), + lv.GetAno(), + lv.GetPreco()); + + System.out.printf("\nCodigo: %d" + + "\nCD: %s" + + "\n\tAlbum: %s" + + "\n\tArtista: %s" + + "\n\tGravadora: %s" + + "\n\tPreco %.2f", + cd.GetCodigo(), + cd.GetDescr(), + cd.GetAlbum(), + cd.GetArtista(), + cd.GetGravdr(), + cd.GetPreco() + ); + } + +} diff --git a/ExercicioInterface/.gitignore b/ExercicioInterface/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ExercicioInterface/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ExercicioInterface/build.xml b/ExercicioInterface/build.xml new file mode 100644 index 0000000..49bac8b --- /dev/null +++ b/ExercicioInterface/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ExercicioInterface. + + + diff --git a/ExercicioInterface/nbproject/build-impl.xml b/ExercicioInterface/nbproject/build-impl.xml new file mode 100644 index 0000000..bcc317c --- /dev/null +++ b/ExercicioInterface/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExercicioInterface/nbproject/genfiles.properties b/ExercicioInterface/nbproject/genfiles.properties new file mode 100644 index 0000000..4f7fe65 --- /dev/null +++ b/ExercicioInterface/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=3f7be93b +build.xml.script.CRC32=73143e9f +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=3f7be93b +nbproject/build-impl.xml.script.CRC32=183ed722 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ExercicioInterface/nbproject/project.properties b/ExercicioInterface/nbproject/project.properties new file mode 100644 index 0000000..aa3a3ba --- /dev/null +++ b/ExercicioInterface/nbproject/project.properties @@ -0,0 +1,73 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ExercicioInterface.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=org.me.exec.testeExercicio +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ExercicioInterface/nbproject/project.xml b/ExercicioInterface/nbproject/project.xml new file mode 100644 index 0000000..a495c62 --- /dev/null +++ b/ExercicioInterface/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ExercicioInterface + + + + + + + + + diff --git a/ExercicioInterface/src/org/me/exec/testeExercicio.java b/ExercicioInterface/src/org/me/exec/testeExercicio.java new file mode 100644 index 0000000..772bcab --- /dev/null +++ b/ExercicioInterface/src/org/me/exec/testeExercicio.java @@ -0,0 +1,17 @@ +package org.me.exec; + +import org.me.exercicio.*; +public class testeExercicio { + + public static void main(String[] args) { + Notebook n1 = new Notebook(1,2010.1,"Notebook Asus AZ-TESTE",8,500); + Mousepad m1 = new Mousepad(2,100,"Mousepad HyperX","Preto","Grande"); + + System.out.printf(n1.toString()); + System.out.printf("\nValor da Venda: R$%.2f\n",n1.vlrVenda()); + System.out.printf(m1.toString()); + System.out.printf("\nValor da Venda: R$%.2f\n",m1.vlrVenda()); + + } + +} diff --git a/ExercicioInterface/src/org/me/exercicio/Mousepad.java b/ExercicioInterface/src/org/me/exercicio/Mousepad.java new file mode 100644 index 0000000..78f9bbf --- /dev/null +++ b/ExercicioInterface/src/org/me/exercicio/Mousepad.java @@ -0,0 +1,36 @@ +package org.me.exercicio; + +public class Mousepad extends Produto implements Venda{ + private String cor,tamanho; + + public String getCor() { + return cor; + } + + public String getTamanho() { + return tamanho; + } + + public Mousepad(int codigo, double preco, String descr, String cor, String tamanho) { + super(codigo, preco, descr); + this.cor = cor; + this.tamanho = tamanho; + } + + @Override + public double vlrVenda() + { + return getPreco()*1.1; + } + + @Override + public String toString() + { + return String.format("%s" + + "\nCor: %s" + + "\nTamanho: %s", + super.toString(), + getCor(), + getTamanho()); + } +} diff --git a/ExercicioInterface/src/org/me/exercicio/Notebook.java b/ExercicioInterface/src/org/me/exercicio/Notebook.java new file mode 100644 index 0000000..7169be3 --- /dev/null +++ b/ExercicioInterface/src/org/me/exercicio/Notebook.java @@ -0,0 +1,33 @@ +package org.me.exercicio; + +public class Notebook extends Produto implements Venda{ + private int memoria, HD; + + public Notebook(int codigo, double preco, String descr, int memoria, int HD) { + super(codigo, preco, descr); + this.memoria = memoria; + this.HD = HD; + } + + public int getMemoria() { + return memoria; + } + + public int getHD() { + return HD; + } + + @Override + public double vlrVenda() + { + return getPreco() * 1.2; + } + + @Override + public String toString() + { + return String.format("%s" + + "\nMemória: %d GB" + + "\nHD: %d GB", super.toString(),getMemoria(),getHD()); + } +} diff --git a/ExercicioInterface/src/org/me/exercicio/Produto.java b/ExercicioInterface/src/org/me/exercicio/Produto.java new file mode 100644 index 0000000..4e4cdaf --- /dev/null +++ b/ExercicioInterface/src/org/me/exercicio/Produto.java @@ -0,0 +1,38 @@ +package org.me.exercicio; + +public class Produto { + private int codigo; + private double preco; + private String descr; + + public Produto(int codigo, double preco, String descr) { + this.codigo = codigo; + this.preco = preco; + this.descr = descr; + } + + public int getCodigo() { + return codigo; + } + + public double getPreco() { + return preco; + } + + public String getDescr() { + return descr; + } + + @Override + public String toString() + { + return String.format( + "\nCódigo: %d" + + "\nPreço R$%.2f" + + "\nDescrição %s", + codigo, + preco, + descr + ); + } +} diff --git a/ExercicioInterface/src/org/me/exercicio/Venda.java b/ExercicioInterface/src/org/me/exercicio/Venda.java new file mode 100644 index 0000000..f981f63 --- /dev/null +++ b/ExercicioInterface/src/org/me/exercicio/Venda.java @@ -0,0 +1,5 @@ +package org.me.exercicio; + +public interface Venda { + public double vlrVenda(); +} diff --git a/ExercicioSobrecarga3/.gitignore b/ExercicioSobrecarga3/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/ExercicioSobrecarga3/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/ExercicioSobrecarga3/build.xml b/ExercicioSobrecarga3/build.xml new file mode 100644 index 0000000..922dceb --- /dev/null +++ b/ExercicioSobrecarga3/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project ExercicioSobrecarga3. + + + diff --git a/ExercicioSobrecarga3/manifest.mf b/ExercicioSobrecarga3/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/ExercicioSobrecarga3/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/ExercicioSobrecarga3/nbproject/build-impl.xml b/ExercicioSobrecarga3/nbproject/build-impl.xml new file mode 100644 index 0000000..0fab2fd --- /dev/null +++ b/ExercicioSobrecarga3/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ExercicioSobrecarga3/nbproject/genfiles.properties b/ExercicioSobrecarga3/nbproject/genfiles.properties new file mode 100644 index 0000000..0a462eb --- /dev/null +++ b/ExercicioSobrecarga3/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=f457b21a +build.xml.script.CRC32=af36573f +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=f457b21a +nbproject/build-impl.xml.script.CRC32=e4c340da +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/ExercicioSobrecarga3/nbproject/project.properties b/ExercicioSobrecarga3/nbproject/project.properties new file mode 100644 index 0000000..80fb2bf --- /dev/null +++ b/ExercicioSobrecarga3/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/ExercicioSobrecarga3.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=exerciciosobrecarga3.TesteSobrecarga3 +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/ExercicioSobrecarga3/nbproject/project.xml b/ExercicioSobrecarga3/nbproject/project.xml new file mode 100644 index 0000000..59f8028 --- /dev/null +++ b/ExercicioSobrecarga3/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + ExercicioSobrecarga3 + + + + + + + + + diff --git a/ExercicioSobrecarga3/src/exerciciosobrecarga3/ExercicioSobrecarga3.java b/ExercicioSobrecarga3/src/exerciciosobrecarga3/ExercicioSobrecarga3.java new file mode 100644 index 0000000..c5ae0e5 --- /dev/null +++ b/ExercicioSobrecarga3/src/exerciciosobrecarga3/ExercicioSobrecarga3.java @@ -0,0 +1,30 @@ +package exerciciosobrecarga3; + +public class ExercicioSobrecarga3 { + private int resi; + private double resd; + private String ress; + + public void Adiciona(int I1, int I2) + { + this.resi = I1+I2; + } + public void Adiciona(int I1, int I2, int I3) + { + this.resi = I1+I2+I3; + } + + public void Adiciona(double D1, double D2) + { + this.resd = D1 + D2; + } + + public void Adiciona(String S1, String S2) + { + this.ress = S1 + " " + S2; + } + + public int ImprInt(){return this.resi;} + public double ImprDou(){return this.resd;} + public String ImprStr(){return this.ress;} +} diff --git a/ExercicioSobrecarga3/src/exerciciosobrecarga3/TesteSobrecarga3.java b/ExercicioSobrecarga3/src/exerciciosobrecarga3/TesteSobrecarga3.java new file mode 100644 index 0000000..64b5253 --- /dev/null +++ b/ExercicioSobrecarga3/src/exerciciosobrecarga3/TesteSobrecarga3.java @@ -0,0 +1,39 @@ +package exerciciosobrecarga3; + +public class TesteSobrecarga3 { + + public static void main(String[] args) { + ExercicioSobrecarga3 e1 = new ExercicioSobrecarga3(); + ExercicioSobrecarga3 e2 = new ExercicioSobrecarga3(); + + System.out.println("Objeto 1"); + + e1.Adiciona(3,4); + System.out.printf("Resultado: %d\n", e1.ImprInt()); + + e1.Adiciona(1, 2, 3); + System.out.printf("Resultado: %d\n", e1.ImprInt()); + + e1.Adiciona(1.2, 3.4); + System.out.printf("Resultado: %.2f\n", e1.ImprDou()); + + e1.Adiciona("Fabricio Costa","Raszeja"); + System.out.printf("Resultado: %s\n", e1.ImprStr()); + + /*-----------------------------------------------*/ + + System.out.println("Objeto 2"); + + e2.Adiciona(5,6); + System.out.printf("Resultado: %d\n", e2.ImprInt()); + + e2.Adiciona(3, 4, 5); + System.out.printf("Resultado: %d\n", e2.ImprInt()); + + e2.Adiciona(35.31, 35.42); + System.out.printf("Resultado: %.2f\n", e2.ImprDou()); + + e2.Adiciona("Nome","Sobrenome"); + System.out.printf("Resultado: %s\n", e2.ImprStr()); + } +} diff --git a/Fornecedor/.gitignore b/Fornecedor/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/Fornecedor/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/Fornecedor/build.xml b/Fornecedor/build.xml new file mode 100644 index 0000000..4d8304b --- /dev/null +++ b/Fornecedor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Fornecedor. + + + diff --git a/Fornecedor/nbproject/build-impl.xml b/Fornecedor/nbproject/build-impl.xml new file mode 100644 index 0000000..a229573 --- /dev/null +++ b/Fornecedor/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Fornecedor/nbproject/genfiles.properties b/Fornecedor/nbproject/genfiles.properties new file mode 100644 index 0000000..e928841 --- /dev/null +++ b/Fornecedor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=2e2ecce2 +build.xml.script.CRC32=9d6a2933 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=2e2ecce2 +nbproject/build-impl.xml.script.CRC32=dfaaffe3 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/Fornecedor/nbproject/project.properties b/Fornecedor/nbproject/project.properties new file mode 100644 index 0000000..2fd46bb --- /dev/null +++ b/Fornecedor/nbproject/project.properties @@ -0,0 +1,72 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/Fornecedor.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/Fornecedor/nbproject/project.xml b/Fornecedor/nbproject/project.xml new file mode 100644 index 0000000..1dde1aa --- /dev/null +++ b/Fornecedor/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Fornecedor + + + + + + + + + diff --git a/Fornecedor/src/org/me/fornecedor/Fornecedor.java b/Fornecedor/src/org/me/fornecedor/Fornecedor.java new file mode 100644 index 0000000..8cee5fa --- /dev/null +++ b/Fornecedor/src/org/me/fornecedor/Fornecedor.java @@ -0,0 +1,90 @@ +package org.me.fornecedor; + +public class Fornecedor { + + private int ID; + private String nome, + cnpj, + email, + endereco, + cidade, + estado, + telefone; + + public Fornecedor(int id, String n, String c, String em, String e, String ci, String es, String t) + { + setID(id); + setNome(n); + setCnpj(c); + setEmail(em); + setEndereco(e); + setCidade(ci); + setEstado(es); + setTelefone(t); + } + + public int getID() { + return ID; + } + + public void setID(int ID) { + this.ID = ID; + } + + public String getNome() { + return nome; + } + + public void setNome(String nome) { + this.nome = nome; + } + + public String getCnpj() { + return cnpj; + } + + public void setCnpj(String cnpj) { + this.cnpj = cnpj; + } + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public String getEndereco() { + return endereco; + } + + public void setEndereco(String endereco) { + this.endereco = endereco; + } + + public String getCidade() { + return cidade; + } + + public void setCidade(String cidade) { + this.cidade = cidade; + } + + public String getEstado() { + return estado; + } + + public void setEstado(String estado) { + this.estado = estado; + } + + public String getTelefone() { + return telefone; + } + + public void setTelefone(String telefone) { + this.telefone = telefone; + } + +} diff --git a/Fornecedor/src/org/me/fornecedor/FornecedorConecta.java b/Fornecedor/src/org/me/fornecedor/FornecedorConecta.java new file mode 100644 index 0000000..5e96d0f --- /dev/null +++ b/Fornecedor/src/org/me/fornecedor/FornecedorConecta.java @@ -0,0 +1,167 @@ +package org.me.fornecedor; + +import java.sql.*; +import java.util.*; + +public class FornecedorConecta { + private static final String URL = "jdbc:derby://localhost:1527/fornecedores", + USERNAME = "TRABALHO", + PASSWORD = "trabalho"; + + private Connection connection = null; + private PreparedStatement insereFornecedor = null, + selecionaFornecedor = null, + alteraFornecedor = null, + excluiFornecedor = null; + + public FornecedorConecta() throws ClassNotFoundException + { + try + { + Class.forName("org.apache.derby.jdbc.ClientDriver"); + open(); + insereFornecedor = connection.prepareStatement("INSERT INTO TRABALHO.TABFORNECEDOR" + + "(NOME, CNPJ, EMAIL, ENDERECO, CIDADE, ESTADO, TELEFONE)" + + "VALUES(?,?,?,?,?,?,?)"); + selecionaFornecedor = connection.prepareStatement("SELECT * FROM TRABALHO.TABFORNECEDOR WHERE NOME = ?"); + alteraFornecedor = connection.prepareStatement("UPDATE TRABALHO.TABFORNECEDOR SET " + + "NOME = ?, CNPJ = ?, EMAIL = ?, ENDERECO = ?, CIDADE = ?, ESTADO = ?, TELEFONE = ? " + + "WHERE ID = ?"); + excluiFornecedor = connection.prepareStatement("DELETE FROM TRABALHO.TABFORNECEDOR WHERE ID = ?"); + } + catch (SQLException sqlE) + { + sqlE.printStackTrace(); + System.exit(1); + } + } + public int adicionaFornecedor(String nome, + String cnpj, + String email, + String endereco, + String cidade, + String estado, + String telefone) + { + int result = 0; + try + { + open(); + + insereFornecedor.setString(1, nome); + insereFornecedor.setString(2, cnpj); + insereFornecedor.setString(3, email); + insereFornecedor.setString(4, endereco); + insereFornecedor.setString(5, cidade); + insereFornecedor.setString(6, estado); + insereFornecedor.setString(7, telefone); + + result = insereFornecedor.executeUpdate(); + } + catch(SQLException sqlE) + { + sqlE.printStackTrace(); + close(); + } + return result; + } + + public int atualizaFornecedor(int id, String n, String c, String em, String e, String ci, String es, String t) + { + int res = 0; + try{ + open(); + + alteraFornecedor.setInt(8,id); + alteraFornecedor.setString(1,n); + alteraFornecedor.setString(2,c); + alteraFornecedor.setString(3,em); + alteraFornecedor.setString(4,e); + alteraFornecedor.setString(5,ci); + alteraFornecedor.setString(6,es); + alteraFornecedor.setString(7,t); + res = alteraFornecedor.executeUpdate(); + } + catch(SQLException sqlE) + { + sqlE.printStackTrace(); + close(); + } + + return res; + } + + public boolean deletaFornecedor(int ID) + { + boolean exclui = false; + try{ + open(); + + excluiFornecedor.clearParameters(); + excluiFornecedor.setInt(1, ID); + exclui = true; + } + catch(SQLException sqlE) + { + sqlE.printStackTrace(); + close(); + } + return exclui; + } + + public List consultaFornecedor (String nome) + { + List res = null; + ResultSet resSet = null; + + try{ + open(); + + selecionaFornecedor.setString(1,nome); + resSet = selecionaFornecedor.executeQuery(); + res = new ArrayList(); + while(resSet.next()) + { + res.add(new Fornecedor(resSet.getInt("ID"), + resSet.getString("Nome"), + resSet.getString("Cnpj"), + resSet.getString("Email"), + resSet.getString("Endereco"), + resSet.getString("Cidade"), + resSet.getString("Estado"), + resSet.getString("Telefone"))); + + } + } + catch(SQLException sqlE) + { + sqlE.printStackTrace(); + close(); + } + return res; + } + + public void close() + { + try + { + connection.close(); + } + catch(SQLException sqlE) + { + sqlE.printStackTrace(); + } + } + + public void open() + { + try + { + connection = DriverManager.getConnection(URL, USERNAME, PASSWORD); + } + catch(SQLException sqlE) + { + sqlE.printStackTrace(); + } + } +} diff --git a/GetSetFunc/.gitignore b/GetSetFunc/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/GetSetFunc/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/GetSetFunc/build.xml b/GetSetFunc/build.xml new file mode 100644 index 0000000..79ffcdb --- /dev/null +++ b/GetSetFunc/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project GetSetFunc. + + + diff --git a/GetSetFunc/manifest.mf b/GetSetFunc/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/GetSetFunc/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/GetSetFunc/nbproject/build-impl.xml b/GetSetFunc/nbproject/build-impl.xml new file mode 100644 index 0000000..6ed5f39 --- /dev/null +++ b/GetSetFunc/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GetSetFunc/nbproject/genfiles.properties b/GetSetFunc/nbproject/genfiles.properties new file mode 100644 index 0000000..37bc579 --- /dev/null +++ b/GetSetFunc/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=ab7d22c1 +build.xml.script.CRC32=5f3cda36 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=ab7d22c1 +nbproject/build-impl.xml.script.CRC32=20493420 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/GetSetFunc/nbproject/project.properties b/GetSetFunc/nbproject/project.properties new file mode 100644 index 0000000..0562a6e --- /dev/null +++ b/GetSetFunc/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/GetSetFunc.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=getsetfunc.GetSetFunc +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/GetSetFunc/nbproject/project.xml b/GetSetFunc/nbproject/project.xml new file mode 100644 index 0000000..aef904a --- /dev/null +++ b/GetSetFunc/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + GetSetFunc + + + + + + + + + diff --git a/GetSetFunc/src/getsetfunc/Funcionario.java b/GetSetFunc/src/getsetfunc/Funcionario.java new file mode 100644 index 0000000..0075018 --- /dev/null +++ b/GetSetFunc/src/getsetfunc/Funcionario.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 getsetfunc; + +public class Funcionario { + private String nome, idade, email; + + public String GetNome(){return nome;} + public String GetIdade(){return idade;} + public String GetEmail(){return email;} + + public void SetNome(String val){nome = val;} + public void SetIdade(String val){idade = val;} + public void SetEmail(String val){email = val;} +} diff --git a/GetSetFunc/src/getsetfunc/GetSetFunc.java b/GetSetFunc/src/getsetfunc/GetSetFunc.java new file mode 100644 index 0000000..010905d --- /dev/null +++ b/GetSetFunc/src/getsetfunc/GetSetFunc.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package getsetfunc; +import java.util.Scanner; + +public class GetSetFunc { + + public static void main(String[] args) { + Funcionario func1 = new Funcionario(); + String entry1; + + Scanner entrada = new Scanner(System.in); + + System.out.println("Digite o nome do funcionário."); + entry1 = entrada.nextLine(); + func1.SetNome(entry1); + + System.out.println("Digite a idade do funcionário."); + entry1 = entrada.nextLine(); + func1.SetIdade(entry1); + + System.out.println("Digite o E-mail do funcionário."); + entry1 = entrada.nextLine(); + func1.SetEmail(entry1); + + System.out.printf("Funcionario %s, Idade: %s, E-mail: %s\n", + func1.GetNome(),func1.GetIdade(),func1.GetEmail()); + + } + +} diff --git a/GetSetProduto/.gitignore b/GetSetProduto/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/GetSetProduto/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/GetSetProduto/build.xml b/GetSetProduto/build.xml new file mode 100644 index 0000000..055b7d0 --- /dev/null +++ b/GetSetProduto/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project GetSetProduto. + + + diff --git a/GetSetProduto/manifest.mf b/GetSetProduto/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/GetSetProduto/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/GetSetProduto/nbproject/build-impl.xml b/GetSetProduto/nbproject/build-impl.xml new file mode 100644 index 0000000..aa03889 --- /dev/null +++ b/GetSetProduto/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GetSetProduto/nbproject/genfiles.properties b/GetSetProduto/nbproject/genfiles.properties new file mode 100644 index 0000000..2a6431b --- /dev/null +++ b/GetSetProduto/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a9ae9ddd +build.xml.script.CRC32=7a3cbfe1 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a9ae9ddd +nbproject/build-impl.xml.script.CRC32=969ca096 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/GetSetProduto/nbproject/project.properties b/GetSetProduto/nbproject/project.properties new file mode 100644 index 0000000..6b6e53d --- /dev/null +++ b/GetSetProduto/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/GetSetProduto.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=getsetproduto.GetSetProduto +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/GetSetProduto/nbproject/project.xml b/GetSetProduto/nbproject/project.xml new file mode 100644 index 0000000..b9d15cb --- /dev/null +++ b/GetSetProduto/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + GetSetProduto + + + + + + + + + diff --git a/GetSetProduto/src/getsetproduto/GetSetProduto.java b/GetSetProduto/src/getsetproduto/GetSetProduto.java new file mode 100644 index 0000000..51341a7 --- /dev/null +++ b/GetSetProduto/src/getsetproduto/GetSetProduto.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 getsetproduto; +import java.util.Scanner; + +public class GetSetProduto { + public static void main(String[] args) { + Produto p1 = new Produto(); + + String entry1; + int entry2; + double entry3; + + Scanner entrada = new Scanner(System.in); + + System.out.println("Digite o nome do produto."); + entry1 = entrada.nextLine(); + p1.SetDescr(entry1); + + System.out.println("Digite a quantidade do produto."); + entry2 = entrada.nextInt(); + p1.SetQtd(entry2); + + System.out.println("Digite o preço do produto."); + entry3 = entrada.nextFloat(); + p1.SetPreco(entry3); + + System.out.printf("Funcionario %s, Qtd: %d, Preço: %.2f, Preço com Desconto: %.2f\n", + p1.GetDescr(),p1.GetQtd(),p1.GetPreco(),p1.Desconto()); + } + +} diff --git a/GetSetProduto/src/getsetproduto/Produto.java b/GetSetProduto/src/getsetproduto/Produto.java new file mode 100644 index 0000000..e08a680 --- /dev/null +++ b/GetSetProduto/src/getsetproduto/Produto.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package getsetproduto; + +public class Produto { + private String Descricao; + private int Quantidade; + private double Preco; + + public String GetDescr(){return this.Descricao;} + public int GetQtd(){return this.Quantidade;} + public double GetPreco(){return this.Preco;} + + public void SetDescr(String val){this.Descricao = val;} + public void SetQtd(int val){this.Quantidade = val;} + public void SetPreco(double val){this.Preco = val;} + + public double Desconto() + { + double Descontado = this.Preco; + if(Descontado >= 100.00f){Descontado *= 0.9f;} + else if(Descontado < 100.00f){Descontado *= 0.95f;} + + return Descontado; + } +} diff --git a/GetSetThisFaculdade/.gitignore b/GetSetThisFaculdade/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/GetSetThisFaculdade/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/GetSetThisFaculdade/build.xml b/GetSetThisFaculdade/build.xml new file mode 100644 index 0000000..5ce8666 --- /dev/null +++ b/GetSetThisFaculdade/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project GetSetThisFaculdade. + + + diff --git a/GetSetThisFaculdade/manifest.mf b/GetSetThisFaculdade/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/GetSetThisFaculdade/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/GetSetThisFaculdade/nbproject/build-impl.xml b/GetSetThisFaculdade/nbproject/build-impl.xml new file mode 100644 index 0000000..053ff1c --- /dev/null +++ b/GetSetThisFaculdade/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GetSetThisFaculdade/nbproject/genfiles.properties b/GetSetThisFaculdade/nbproject/genfiles.properties new file mode 100644 index 0000000..69de809 --- /dev/null +++ b/GetSetThisFaculdade/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=01e5cb44 +build.xml.script.CRC32=54bda784 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=01e5cb44 +nbproject/build-impl.xml.script.CRC32=e8d30611 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/GetSetThisFaculdade/nbproject/project.properties b/GetSetThisFaculdade/nbproject/project.properties new file mode 100644 index 0000000..96e3220 --- /dev/null +++ b/GetSetThisFaculdade/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/GetSetThisFaculdade.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=getsetthisfaculdade.GetSetThisFaculdade +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/GetSetThisFaculdade/nbproject/project.xml b/GetSetThisFaculdade/nbproject/project.xml new file mode 100644 index 0000000..b71b7d1 --- /dev/null +++ b/GetSetThisFaculdade/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + GetSetThisFaculdade + + + + + + + + + diff --git a/GetSetThisFaculdade/src/getsetthisfaculdade/Faculdade.java b/GetSetThisFaculdade/src/getsetthisfaculdade/Faculdade.java new file mode 100644 index 0000000..14020aa --- /dev/null +++ b/GetSetThisFaculdade/src/getsetthisfaculdade/Faculdade.java @@ -0,0 +1,30 @@ +package getsetthisfaculdade; +public class Faculdade { + private String Nome, Curso, RA; + private double Nota, Mensalidade; + + public String GetNome(){return this.Nome;} + public String GetCurso(){return this.Curso;} + public String GetRA(){return this.RA;} + + public double GetNota(){return this.Nota;} + public double GetMensalidade(){return this.Mensalidade;} + + public void SetNome(String nome){this.Nome = nome;} + public void SetCurso(String curso){this.Curso = curso;} + public void SetRA(String ra){this.RA = ra;} + + public void SetNota(double nota){this.Nota = nota;} + public void SetMensalidade(double mensalidade){this.Mensalidade = mensalidade;} + + public double GetDesconto() + { + double tmp = this.Mensalidade; + if(this.Nota >= 9) + { + tmp /= 2; + } + return tmp; + } +} + diff --git a/GetSetThisFaculdade/src/getsetthisfaculdade/GetSetThisFaculdade.java b/GetSetThisFaculdade/src/getsetthisfaculdade/GetSetThisFaculdade.java new file mode 100644 index 0000000..3a95eaa --- /dev/null +++ b/GetSetThisFaculdade/src/getsetthisfaculdade/GetSetThisFaculdade.java @@ -0,0 +1,37 @@ +package getsetthisfaculdade; +import java.util.Scanner; + +public class GetSetThisFaculdade { + public static void main(String[] args) { + Faculdade f1 = new Faculdade(); + String Entr1; + double Entr2; + + Scanner scan = new Scanner(System.in); + + System.out.println("Digite o nome do Aluno."); + Entr1 = scan.nextLine(); + f1.SetNome(Entr1); + + System.out.println("Digite o curso do Aluno."); + Entr1 = scan.nextLine(); + f1.SetCurso(Entr1); + + System.out.println("Digite o RA do Aluno."); + Entr1 = scan.nextLine(); + f1.SetRA(Entr1); + + System.out.println("--------------------------------"); + + System.out.println("Digite a nota do Aluno"); + Entr2 = scan.nextDouble(); + f1.SetNota(Entr2); + + System.out.println("Digite a mensalidade do Aluno"); + Entr2 = scan.nextDouble(); + f1.SetMensalidade(Entr2); + + System.out.printf("Aluno: %s, Curso: %s, RA: %s, Nota: %.2f, Mensalidade: R$ %.2f, Mensalidade Com Desconto: R$ %.2f", + f1.GetNome(),f1.GetCurso(),f1.GetRA(),f1.GetNota(),f1.GetMensalidade(),f1.GetDesconto()); + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..151c2be --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# A collection of Java "software" +## Author(s): F. Raszeja + +Made during the second semester of 2021, using NetBeans as my IDE. + +Code has portuguese names but it shouldn't be too difficult to understand... I hope! diff --git a/SobrecargaCalculadora/.gitignore b/SobrecargaCalculadora/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/SobrecargaCalculadora/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/SobrecargaCalculadora/build.xml b/SobrecargaCalculadora/build.xml new file mode 100644 index 0000000..d660757 --- /dev/null +++ b/SobrecargaCalculadora/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project SobrecargaCalculadora. + + + diff --git a/SobrecargaCalculadora/manifest.mf b/SobrecargaCalculadora/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/SobrecargaCalculadora/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/SobrecargaCalculadora/nbproject/build-impl.xml b/SobrecargaCalculadora/nbproject/build-impl.xml new file mode 100644 index 0000000..9e5953a --- /dev/null +++ b/SobrecargaCalculadora/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SobrecargaCalculadora/nbproject/genfiles.properties b/SobrecargaCalculadora/nbproject/genfiles.properties new file mode 100644 index 0000000..3901914 --- /dev/null +++ b/SobrecargaCalculadora/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=d3a7b13a +build.xml.script.CRC32=0c603a93 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=d3a7b13a +nbproject/build-impl.xml.script.CRC32=29cddde3 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/SobrecargaCalculadora/nbproject/project.properties b/SobrecargaCalculadora/nbproject/project.properties new file mode 100644 index 0000000..c1c4ef8 --- /dev/null +++ b/SobrecargaCalculadora/nbproject/project.properties @@ -0,0 +1,74 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/SobrecargaCalculadora.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath= +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=sobrecargacalculadora.TesteSobrecarga1 +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/SobrecargaCalculadora/nbproject/project.xml b/SobrecargaCalculadora/nbproject/project.xml new file mode 100644 index 0000000..bd29206 --- /dev/null +++ b/SobrecargaCalculadora/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + SobrecargaCalculadora + + + + + + + + + diff --git a/SobrecargaCalculadora/src/sobrecargacalculadora/ExercicioSobrecarga1.java b/SobrecargaCalculadora/src/sobrecargacalculadora/ExercicioSobrecarga1.java new file mode 100644 index 0000000..f835531 --- /dev/null +++ b/SobrecargaCalculadora/src/sobrecargacalculadora/ExercicioSobrecarga1.java @@ -0,0 +1,21 @@ +package sobrecargacalculadora; +public class ExercicioSobrecarga1 { + private int resultado; + public void calcula(int valor) + { + this.resultado = valor/2; + } + public void calcula(int valor, int valor2, int valor3, int valor4) + { + this.resultado = valor + valor2 + valor3 + valor4; + } + public void calcula(int valor, int valor2) + { + this.resultado = valor - valor2; + } + public void calcula(int valor, int valor2, int valor3) + { + this.resultado = valor * valor2 * valor3; + } + public int imprimeCalculo(){return this.resultado;} +} diff --git a/SobrecargaCalculadora/src/sobrecargacalculadora/TesteSobrecarga1.java b/SobrecargaCalculadora/src/sobrecargacalculadora/TesteSobrecarga1.java new file mode 100644 index 0000000..581b8f7 --- /dev/null +++ b/SobrecargaCalculadora/src/sobrecargacalculadora/TesteSobrecarga1.java @@ -0,0 +1,36 @@ +package sobrecargacalculadora; +import java.util.Scanner; + +public class TesteSobrecarga1 { + public static void main(String[] args) { + ExercicioSobrecarga1 e1 = new ExercicioSobrecarga1(); + Scanner scan = new Scanner(System.in); + int valor, valor2, valor3, valor4; + + System.out.println("\nDigite um valor."); + valor = scan.nextInt(); + e1.calcula(valor); + System.out.printf("Dividido por 2: %d", e1.imprimeCalculo()); + + System.out.println("\nDigite dois valores."); + valor = scan.nextInt(); + valor2 = scan.nextInt(); + e1.calcula(valor,valor2); + System.out.printf("%d - %d = %d",valor,valor2,e1.imprimeCalculo()); + + System.out.println("\nDigite três valores."); + valor = scan.nextInt(); + valor2 = scan.nextInt(); + valor3 = scan.nextInt(); + e1.calcula(valor,valor2,valor3); + System.out.printf("%d * %d * %d = %d",valor,valor2,valor3,e1.imprimeCalculo()); + + System.out.println("\nDigite quatro valores."); + valor = scan.nextInt(); + valor2 = scan.nextInt(); + valor3 = scan.nextInt(); + valor4 = scan.nextInt(); + e1.calcula(valor,valor2,valor3,valor4); + System.out.printf("%d + %d + %d + %d = %d\n",valor,valor2,valor3,valor4,e1.imprimeCalculo()); + } +} diff --git a/TesteCurso/.gitignore b/TesteCurso/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/TesteCurso/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/TesteCurso/build.xml b/TesteCurso/build.xml new file mode 100644 index 0000000..77d174f --- /dev/null +++ b/TesteCurso/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TesteCurso. + + + diff --git a/TesteCurso/nbproject/build-impl.xml b/TesteCurso/nbproject/build-impl.xml new file mode 100644 index 0000000..b487762 --- /dev/null +++ b/TesteCurso/nbproject/build-impl.xml @@ -0,0 +1,1436 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TesteCurso/nbproject/genfiles.properties b/TesteCurso/nbproject/genfiles.properties new file mode 100644 index 0000000..ac44e47 --- /dev/null +++ b/TesteCurso/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a32b0701 +build.xml.script.CRC32=461015a4 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a32b0701 +nbproject/build-impl.xml.script.CRC32=52db449d +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/TesteCurso/nbproject/project.properties b/TesteCurso/nbproject/project.properties new file mode 100644 index 0000000..3598592 --- /dev/null +++ b/TesteCurso/nbproject/project.properties @@ -0,0 +1,76 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/TesteCurso.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath=\ + ${reference.ExemploMetodo.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=testecurso.TesteCurso +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=true +platform.active=default_platform +project.ExemploMetodo=../ExemploMetodo +reference.ExemploMetodo.jar=${project.ExemploMetodo}/dist/ExemploMetodo.jar +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/TesteCurso/nbproject/project.xml b/TesteCurso/nbproject/project.xml new file mode 100644 index 0000000..153d794 --- /dev/null +++ b/TesteCurso/nbproject/project.xml @@ -0,0 +1,25 @@ + + + org.netbeans.modules.java.j2seproject + + + TesteCurso + + + + + + + + + + ExemploMetodo + jar + + jar + clean + jar + + + + diff --git a/TesteCurso/src/testecurso/TesteCliente.java b/TesteCurso/src/testecurso/TesteCliente.java new file mode 100644 index 0000000..e4d288c --- /dev/null +++ b/TesteCurso/src/testecurso/TesteCliente.java @@ -0,0 +1,40 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package testecurso; +import java.util.Scanner; +import org.me.exemplometodo.Cliente; +/** + * + * @author USER + */ +public class TesteCliente { + + public static void main(String[] args) { + Cliente cli1 = new Cliente(); + + cli1.email = "a@teste.com"; + cli1.nome = "ASFAFGFGDG"; + cli1.numcont = "nagasaki"; + + cli1.exibeSaldo(); + + System.out.println("Deseja receber um depósito?"); + Scanner question = new Scanner(System.in); + // usando el scanner del javali... kill me + + String question1 = question.nextLine(); + + if("s".equals(question1)) + { + System.out.println("Digite o valor: "); + Scanner vl = new Scanner(System.in); + Double vl1 = vl.nextDouble(); + cli1.adicionaSaldo(vl1); + cli1.exibeSaldo(); + } + } + +} diff --git a/TesteCurso/src/testecurso/TesteCurso.java b/TesteCurso/src/testecurso/TesteCurso.java new file mode 100644 index 0000000..8e37b06 --- /dev/null +++ b/TesteCurso/src/testecurso/TesteCurso.java @@ -0,0 +1,31 @@ +package testecurso; +import java.util.Scanner; +import org.me.exemplometodo.Curso; + + + +public class TesteCurso { + public static void main(String[] args) { + Curso cur1 = new Curso(); + cur1.duracao = 2020; + cur1.nomecurso = "TI"; + cur1.valorcurso = 3.20; + + Scanner eltunaro = new Scanner(System.in); + // usando el scanner del javali... kill me + + String eldisco; + + // só para ler algo...??????? java pls + // std::cin >> eldisco :^) + + System.out.println("Digite algo "); + eldisco = eltunaro.nextLine(); + + cur1.exibirMensagem(); + cur1.teste(eldisco); + + System.out.printf("Valor do Curso: %.3f \n", cur1.valorcurso); + } + +} diff --git a/TesteFornecedor/.gitignore b/TesteFornecedor/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/TesteFornecedor/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/TesteFornecedor/build.xml b/TesteFornecedor/build.xml new file mode 100644 index 0000000..5cba1fc --- /dev/null +++ b/TesteFornecedor/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TesteFornecedor. + + + diff --git a/TesteFornecedor/manifest.mf b/TesteFornecedor/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/TesteFornecedor/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/TesteFornecedor/nbproject/build-impl.xml b/TesteFornecedor/nbproject/build-impl.xml new file mode 100644 index 0000000..0fc421a --- /dev/null +++ b/TesteFornecedor/nbproject/build-impl.xml @@ -0,0 +1,1436 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TesteFornecedor/nbproject/genfiles.properties b/TesteFornecedor/nbproject/genfiles.properties new file mode 100644 index 0000000..fb03df6 --- /dev/null +++ b/TesteFornecedor/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=5f8afa20 +build.xml.script.CRC32=b71fe06d +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=5f8afa20 +nbproject/build-impl.xml.script.CRC32=ba926fd5 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/TesteFornecedor/nbproject/project.properties b/TesteFornecedor/nbproject/project.properties new file mode 100644 index 0000000..21b22b3 --- /dev/null +++ b/TesteFornecedor/nbproject/project.properties @@ -0,0 +1,80 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/TesteFornecedor.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +file.reference.javadb-lib=D:\\Program Files\\Glassfish\\javadb\\lib +includes=** +jar.compress=false +javac.classpath=\ + ${file.reference.javadb-lib}:\ + ${reference.Fornecedor.jar}:\ + ${libs.JAVADB_DRIVER_LABEL.classpath} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=testefornecedor.TesteFornecedor +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +project.Fornecedor=../Fornecedor +reference.Fornecedor.jar=${project.Fornecedor}/dist/Fornecedor.jar +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/TesteFornecedor/nbproject/project.xml b/TesteFornecedor/nbproject/project.xml new file mode 100644 index 0000000..e1727d8 --- /dev/null +++ b/TesteFornecedor/nbproject/project.xml @@ -0,0 +1,25 @@ + + + org.netbeans.modules.java.j2seproject + + + TesteFornecedor + + + + + + + + + + Fornecedor + jar + + jar + clean + jar + + + + diff --git a/TesteFornecedor/src/testefornecedor/TesteFornecedor.form b/TesteFornecedor/src/testefornecedor/TesteFornecedor.form new file mode 100644 index 0000000..2c071bc --- /dev/null +++ b/TesteFornecedor/src/testefornecedor/TesteFornecedor.form @@ -0,0 +1,290 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TesteFornecedor/src/testefornecedor/TesteFornecedor.java b/TesteFornecedor/src/testefornecedor/TesteFornecedor.java new file mode 100644 index 0000000..feeee7f --- /dev/null +++ b/TesteFornecedor/src/testefornecedor/TesteFornecedor.java @@ -0,0 +1,403 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package testefornecedor; + +import java.sql.SQLException; +import java.util.*; +import javax.swing.JOptionPane; +import org.me.fornecedor.*; +/** + * + * @author USER + */ +public class TesteFornecedor extends javax.swing.JFrame { + + /** + * Creates new form TesteFornecedor + */ + private FornecedorConecta fornecedorCon; + public TesteFornecedor() throws ClassNotFoundException { + fornecedorCon = new FornecedorConecta(); + 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() { + + jPanel1 = new javax.swing.JPanel(); + jLabel3 = new javax.swing.JLabel(); + jLabel4 = new javax.swing.JLabel(); + jLabel5 = new javax.swing.JLabel(); + jEmail = new javax.swing.JTextField(); + jConsultar = new javax.swing.JButton(); + jLabel6 = new javax.swing.JLabel(); + jEndereco = new javax.swing.JTextField(); + jLabel7 = new javax.swing.JLabel(); + jCidade = new javax.swing.JTextField(); + jLabel8 = new javax.swing.JLabel(); + jEstado = new javax.swing.JTextField(); + jCodigo = new javax.swing.JTextField(); + jTelefone = new javax.swing.JTextField(); + jNome = new javax.swing.JTextField(); + jLabel9 = new javax.swing.JLabel(); + jQueryT = new javax.swing.JTextField(); + jLabel1 = new javax.swing.JLabel(); + jCadastro = new javax.swing.JButton(); + jLabel2 = new javax.swing.JLabel(); + jCNPJ = new javax.swing.JTextField(); + jAlterar = new javax.swing.JButton(); + jLimpar = new javax.swing.JButton(); + jExcluir = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Fornecedores", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 18), new java.awt.Color(102, 102, 255))); // NOI18N + + jLabel3.setText("CNPJ"); + + jLabel4.setText("E-mail"); + + jLabel5.setText("Endereço"); + + jConsultar.setText("Consultar"); + jConsultar.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jConsultarActionPerformed(evt); + } + }); + + jLabel6.setText("Cidade"); + + jLabel7.setText("Estado"); + + jLabel8.setText("Telefone"); + + jLabel9.setText("Digite o Fornecedor"); + + jLabel1.setText("Código"); + + jCadastro.setText("Cadastrar"); + jCadastro.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jCadastroActionPerformed(evt); + } + }); + + jLabel2.setText("Nome"); + + jAlterar.setText("Alterar"); + jAlterar.setToolTipText(""); + jAlterar.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jAlterarActionPerformed(evt); + } + }); + + jLimpar.setText("Limpar"); + jLimpar.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jLimparActionPerformed(evt); + } + }); + + jExcluir.setText("Excluir"); + jExcluir.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jExcluirActionPerformed(evt); + } + }); + + javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); + jPanel1.setLayout(jPanel1Layout); + jPanel1Layout.setHorizontalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(jLabel1) + .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING)) + .addGap(30, 30, 30) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(jNome, javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(jCNPJ, javax.swing.GroupLayout.PREFERRED_SIZE, 455, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel4) + .addComponent(jLabel5) + .addComponent(jLabel6) + .addComponent(jLabel7) + .addComponent(jLabel8)) + .addGap(18, 18, 18) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jCidade) + .addComponent(jEndereco) + .addComponent(jEmail) + .addGroup(jPanel1Layout.createSequentialGroup() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(0, 0, Short.MAX_VALUE)))) + .addGroup(jPanel1Layout.createSequentialGroup() + .addComponent(jLabel9) + .addGap(18, 18, 18) + .addComponent(jQueryT, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(jConsultar) + .addGroup(jPanel1Layout.createSequentialGroup() + .addComponent(jCadastro, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addComponent(jAlterar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addComponent(jLimpar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addComponent(jExcluir, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + jPanel1Layout.setVerticalGroup( + jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(jPanel1Layout.createSequentialGroup() + .addContainerGap() + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel1) + .addComponent(jCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel2) + .addComponent(jNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel3) + .addComponent(jCNPJ, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel4) + .addComponent(jEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel5) + .addComponent(jEndereco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel6) + .addComponent(jCidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel7) + .addComponent(jEstado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel8) + .addComponent(jTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 101, Short.MAX_VALUE) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jCadastro) + .addComponent(jAlterar) + .addComponent(jLimpar) + .addComponent(jExcluir)) + .addGap(18, 18, 18) + .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel9) + .addComponent(jQueryT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(jConsultar)) + .addContainerGap()) + ); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(40, 40, 40) + .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(39, Short.MAX_VALUE)) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(40, 40, 40) + .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(62, Short.MAX_VALUE)) + ); + + pack(); + }// //GEN-END:initComponents + + private void jCadastroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCadastroActionPerformed + int res = fornecedorCon.adicionaFornecedor + (jNome.getText(), + jCNPJ.getText(), + jEmail.getText(), + jEndereco.getText(), + jCidade.getText(), + jEstado.getText(), + jTelefone.getText() + ); + if (res == 1) + { + JOptionPane.showMessageDialog(this, "Fornecedor inserido", "Fornecedor inserido", + JOptionPane.PLAIN_MESSAGE); + clear(); + } + else + JOptionPane.showMessageDialog(this, "Fornecedor não inserido", "Erro", + JOptionPane.PLAIN_MESSAGE); + + }//GEN-LAST:event_jCadastroActionPerformed + + private void jConsultarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jConsultarActionPerformed + res = fornecedorCon.consultaFornecedor(jQueryT.getText()); + + numero = res.size(); + + if(numero != 0) + { + indice = 0; + + indiceEntrada = res.get(indice); + jCodigo.setText(" " + indiceEntrada.getID()); + jNome.setText(indiceEntrada.getNome()); + jCNPJ.setText(indiceEntrada.getCnpj()); + jEmail.setText(indiceEntrada.getEmail()); + jEndereco.setText(indiceEntrada.getEndereco()); + jCidade.setText(indiceEntrada.getCidade()); + jEstado.setText(indiceEntrada.getEstado()); + jTelefone.setText(indiceEntrada.getTelefone()); + } + }//GEN-LAST:event_jConsultarActionPerformed + + private void jAlterarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jAlterarActionPerformed + int res = fornecedorCon.atualizaFornecedor( + Integer.parseInt(jCodigo.getText().trim()), + jNome.getText(), + jCNPJ.getText(), + jEmail.getText(), + jEndereco.getText(), + jCidade.getText(), + jEstado.getText(), + jTelefone.getText() + ); + if (res == 1) + { + JOptionPane.showMessageDialog(this, "Fornecedor alterado", "Fornecedor alterado", + JOptionPane.PLAIN_MESSAGE); + clear(); + } + else + JOptionPane.showMessageDialog(this, "Fornecedor não alterado", "Erro", + JOptionPane.PLAIN_MESSAGE); + }//GEN-LAST:event_jAlterarActionPerformed + + private void jLimparActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jLimparActionPerformed + clear(); + }//GEN-LAST:event_jLimparActionPerformed + + private void jExcluirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jExcluirActionPerformed + boolean rest = fornecedorCon.deletaFornecedor(Integer.parseInt(jCodigo.getText().trim())); + if (rest == true) + JOptionPane.showMessageDialog(this, "Fornecedor excluído", "Fornecedor excluído", + JOptionPane.PLAIN_MESSAGE); + else + JOptionPane.showMessageDialog(this, "Fornecedor não excluído", "Erro", + JOptionPane.PLAIN_MESSAGE); + + clear(); + }//GEN-LAST:event_jExcluirActionPerformed + + private void clear() + { + jCodigo.setText(""); + jNome.setText(""); + jCNPJ.setText(""); + jEmail.setText(""); + jEndereco.setText(""); + jCidade.setText(""); + jEstado.setText(""); + jTelefone.setText(""); + } + /** + * @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(TesteFornecedor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(TesteFornecedor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(TesteFornecedor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(TesteFornecedor.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + // + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + try + { + new TesteFornecedor().setVisible(true); + } + catch (ClassNotFoundException e) + { + e.printStackTrace(); + } + } + }); + } + private Fornecedor indiceEntrada; + private int numero = 0, + indice; + private List res; + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton jAlterar; + private javax.swing.JTextField jCNPJ; + private javax.swing.JButton jCadastro; + private javax.swing.JTextField jCidade; + private javax.swing.JTextField jCodigo; + private javax.swing.JButton jConsultar; + private javax.swing.JTextField jEmail; + private javax.swing.JTextField jEndereco; + private javax.swing.JTextField jEstado; + private javax.swing.JButton jExcluir; + private javax.swing.JLabel jLabel1; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabel5; + private javax.swing.JLabel jLabel6; + private javax.swing.JLabel jLabel7; + private javax.swing.JLabel jLabel8; + private javax.swing.JLabel jLabel9; + private javax.swing.JButton jLimpar; + private javax.swing.JTextField jNome; + private javax.swing.JPanel jPanel1; + private javax.swing.JTextField jQueryT; + private javax.swing.JTextField jTelefone; + // End of variables declaration//GEN-END:variables +} diff --git a/TestePessoa/.gitignore b/TestePessoa/.gitignore new file mode 100644 index 0000000..d16077a --- /dev/null +++ b/TestePessoa/.gitignore @@ -0,0 +1,8 @@ +**/nbproject/private/ +**/nbproject/Makefile-*.mk +**/nbproject/Package-*.bash +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/TestePessoa/build.xml b/TestePessoa/build.xml new file mode 100644 index 0000000..7a6c612 --- /dev/null +++ b/TestePessoa/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TestePessoa. + + + diff --git a/TestePessoa/manifest.mf b/TestePessoa/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/TestePessoa/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/TestePessoa/nbproject/build-impl.xml b/TestePessoa/nbproject/build-impl.xml new file mode 100644 index 0000000..b106868 --- /dev/null +++ b/TestePessoa/nbproject/build-impl.xml @@ -0,0 +1,1436 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TestePessoa/nbproject/genfiles.properties b/TestePessoa/nbproject/genfiles.properties new file mode 100644 index 0000000..595a85e --- /dev/null +++ b/TestePessoa/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=93d72aea +build.xml.script.CRC32=a1db2cd8 +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=93d72aea +nbproject/build-impl.xml.script.CRC32=c669c986 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/TestePessoa/nbproject/project.properties b/TestePessoa/nbproject/project.properties new file mode 100644 index 0000000..a0cb2e8 --- /dev/null +++ b/TestePessoa/nbproject/project.properties @@ -0,0 +1,77 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Os arquivos em build.classes.dir que devem ser exclu\u00eddos do jar de distribui\u00e7\u00e3o +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/TestePessoa.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath=\ + ${reference.ExemploPOO.jar} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=testepessoa.TestePessoa +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +project.ExemploPOO=../ExemploPOO +reference.ExemploPOO.jar=${project.ExemploPOO}/dist/ExemploPOO.jar +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/TestePessoa/nbproject/project.xml b/TestePessoa/nbproject/project.xml new file mode 100644 index 0000000..9bb396f --- /dev/null +++ b/TestePessoa/nbproject/project.xml @@ -0,0 +1,25 @@ + + + org.netbeans.modules.java.j2seproject + + + TestePessoa + + + + + + + + + + ExemploPOO + jar + + jar + clean + jar + + + + diff --git a/TestePessoa/src/testepessoa/TestePessoa.java b/TestePessoa/src/testepessoa/TestePessoa.java new file mode 100644 index 0000000..90cc69b --- /dev/null +++ b/TestePessoa/src/testepessoa/TestePessoa.java @@ -0,0 +1,21 @@ +package testepessoa; + +import org.me.ExemploPOO.Pessoa; + +public class TestePessoa { + + public static void main(String[] args) { + + Pessoa p1 = new Pessoa(); + + p1.nome = "Fabrício"; + p1.email = "teste@e.com"; + p1.idade = 19; + + System.out.println("Nome: " + p1.nome); + System.out.println("E-mail: " + p1.email); + System.out.println("Idade: " + p1.idade); + + } + +} diff --git a/TestePessoa/src/testeveiculo/TesteVeiculo.java b/TestePessoa/src/testeveiculo/TesteVeiculo.java new file mode 100644 index 0000000..067a643 --- /dev/null +++ b/TestePessoa/src/testeveiculo/TesteVeiculo.java @@ -0,0 +1,29 @@ +package testeveiculo; +import java.util.Calendar; +import org.me.ExemploPOO.Veiculo; + +public class TesteVeiculo { + + public static void main(String[] args) { + Veiculo c1 = new Veiculo(); + Veiculo c2 = new Veiculo(); + + c1.ano.set(Calendar.YEAR,2018); + c2.ano.set(Calendar.YEAR,2015); + + c1.marca = "Chevrolet"; + c2.marca = "Ford"; + + c1.modelo = "Seilá 2.0 turbo"; + c2.modelo = "Fustang 1.6 turbo diesel"; + + System.out.println("Ano: " + c1.ano.get(Calendar.YEAR)); + System.out.println("Modelo: " + c1.modelo); + System.out.println("Marca: " + c1.marca); + System.out.println("------------------"); + System.out.println("Ano: " + c2.ano.get(Calendar.YEAR)); + System.out.println("Modelo: " + c2.modelo); + System.out.println("Marca: " + c2.marca); + } + +}