├── .gitignore
├── Eclipse-atalhos.md
├── README.md
├── Recursos
├── images
│ ├── aula100-img1.jpg
│ ├── aula102-img1.jpg
│ ├── aula107-img1.jpg
│ ├── aula120-img1.jpg
│ ├── aula121-img1.jpg
│ ├── aula130-img1.jpg
│ ├── aula141-img1.jpg
│ ├── aula143-img1.jpg
│ ├── aula147-img1.jpg
│ ├── aula147-img2.jpg
│ ├── aula149-img1.jpg
│ ├── aula152-img1.jpg
│ ├── aula152-img2.jpg
│ ├── aula153-img1.jpg
│ ├── aula153-img2.jpg
│ ├── aula156-img1.jpg
│ ├── aula156-img2.jpg
│ ├── aula156-img3.jpg
│ ├── aula157-img1.jpg
│ ├── aula159-img1.jpg
│ ├── aula160-img1.jpg
│ ├── aula161-img1.jpg
│ ├── aula161-img2.jpg
│ ├── aula162-img1.jpg
│ ├── aula163-img1.jpg
│ ├── aula164-img1.jpg
│ ├── aula165-img1.jpg
│ ├── aula169-img1.jpg
│ ├── aula173-img1.jpg
│ ├── aula173-img2.jpg
│ ├── aula177-img1.jpg
│ ├── aula179-img1.jpg
│ ├── aula191-img1.jpg
│ ├── aula35-img1.jpg
│ ├── aula37-img1.jpg
│ ├── aula64-img1.jpg
│ ├── aula65-img1.jpg
│ ├── aula66-img1.jpg
│ ├── aula67-img1.jpg
│ ├── aula70-img1.jpg
│ ├── aula70-img2.jpg
│ ├── aula72-img1.jpg
│ ├── aula76-img1.jpg
│ ├── aula81-img1.jpg
│ ├── aula87-img1.jpg
│ ├── aula87-img2.jpg
│ ├── aula87-img3.jpg
│ ├── aula87-img4.jpg
│ ├── aula87-img5.jpg
│ ├── aula87-img6.jpg
│ ├── aula87-img7.jpg
│ ├── aula88-img1.jpg
│ ├── aula88-img2.jpg
│ ├── aula89-img1.jpg
│ ├── aula90-img1.jpg
│ ├── aula94-img1.jpg
│ ├── aula96-img1.jpg
│ ├── aula96-img2.jpg
│ ├── aula96-img3.jpg
│ └── aula98-img1.jpg
└── pdf
│ ├── 01-introducao.pdf
│ ├── 02-conceitos-de-programacao.pdf
│ ├── 03-introducao-linguagem-java.pdf
│ ├── 04-estrutura-sequencial.pdf
│ ├── 05-estrutura-condicional.pdf
│ ├── 06-estruturas-repetitivas.pdf
│ ├── 07-outros-topicos-basicos.pdf
│ ├── 08-classes-atributos-membros-staticos.pdf
│ ├── 08-correcao-exercicios-fixacao.pdf
│ ├── 09-construtores-this-sobrecarga-encapsulamento.pdf
│ ├── 10-memoria-arrays-e-listas.pdf
│ ├── 11-date-calendar.pdf
│ ├── 11-trabalhando-com-data-hora.pdf
│ ├── 12-Introdução-ao-Git-e-Github-(slides).pdf
│ ├── 12-Resolvendo-problemas-comuns-(slides).pdf
│ ├── 13-enumeracoes-composicao.pdf
│ ├── 14-heranca-e-polimorfismo.pdf
│ ├── 15-tratamento-de-excecoes.pdf
│ ├── 16-projeto-sistema-xadrez.pdf
│ ├── 17-arquivos.pdf
│ ├── Exercicios1-estrutura-sequencial.pdf
│ ├── Exercicios2-estrutura-condicional.pdf
│ ├── Exercicios3-estrutura-while.pdf
│ ├── Exercicios4-estrutura-for.pdf
│ └── Exercicios5-vetores.pdf
├── Workspace
├── .gitignore
├── .project
├── Aula049_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula018_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula024_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula024_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula025_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula025_Exemplo_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula025_Exemplo_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula025_Exemplo_004
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula025_Exemplo_005
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula026_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula026_Exemplo_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula026_Exemplo_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula026_Exemplo_004
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula026_Exemplo_005
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula027_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula027_Exemplo_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula028_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula030_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula030_Exercicio_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula030_Exercicio_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula030_Exercicio_004
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula030_Exercicio_005
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula030_Exercicio_006
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula030_Exercicio_resolvido_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula035_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula035_Exemplo_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula035_Exemplo_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_004
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_005
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_006
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_007
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_008
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_resolvido_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercicio_resolvido_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula037_Exercício_resolvido_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula038_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula039_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula040_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula041_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula045_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula049_Exercicio_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula049_Exercicio_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula049_Exercicio_resolvido_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula049_Exercicio_resolvido_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula050_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula054_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula054_Exercicio_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula054_Exercicio_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula054_Exercicio_004
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula054_Exercicio_005
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula054_Exercicio_006
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula054_Exercicio_007
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula054_Exercicio_resolvido_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula054_Exercicio_resolvido_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula055_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula058_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula058_Exemplo_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula059_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula059_Exemplo_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula061_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── Main.java
├── aula064_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula065_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Triangle.java
├── aula066_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Triangle.java
├── aula067_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Product.java
├── aula068_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Product.java
├── aula069_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Product.java
├── aula070_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Rectangle.java
├── aula070_Exercicio_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Employee.java
├── aula070_Exercicio_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Student.java
├── aula071_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula071_Exemplo_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── util
│ │ └── Calculator.java
├── aula072_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── util
│ │ └── Calculator.java
├── aula073_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── util
│ │ └── CurrencyConverter.java
├── aula076_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Product.java
├── aula078_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Product.java
├── aula079_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Product.java
├── aula080_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Product.java
├── aula082_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Account.java
├── aula083_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Account.java
├── aula089_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula090_Exemplo_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Product.java
├── aula091_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula091_Exercicio_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula091_Exercicio_003
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Person.java
├── aula091_Exercicio_004
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula091_Exercicio_005
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula091_Exercicio_006
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula091_Exercicio_007
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula091_Exercicio_008
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula091_Exercicio_009
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula091_Exercicio_010
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Student.java
├── aula091_Exercício_011
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Person.java
├── aula092_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula093_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula094_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Room.java
├── aula095_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Rent.java
├── aula096_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula097_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula099_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula100_Exercício_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Employee.java
├── aula101_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ └── Employee.java
├── aula103_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula104_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula111_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula112_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula113_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula114_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula116_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula117_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula117_Exemplo_002
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula147_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Order.java
│ │ └── enums
│ │ └── OrderStatus.java
├── aula150_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Department.java
│ │ ├── HourContract.java
│ │ ├── Worker.java
│ │ └── enums
│ │ └── WorkerLevel.java
├── aula150_Exemplo_001_v2
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Department.java
│ │ ├── HourContract.java
│ │ ├── Worker.java
│ │ └── enums
│ │ └── WorkerLevel.java
├── aula152_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Comment.java
│ │ └── Post.java
├── aula153_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Client.java
│ │ ├── Order.java
│ │ ├── OrderItem.java
│ │ ├── Product.java
│ │ └── enums
│ │ └── OrderStatus.java
├── aula154_Exercício_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── model
│ │ ├── entities
│ │ ├── Client.java
│ │ ├── Order.java
│ │ ├── OrderItem.java
│ │ └── Product.java
│ │ └── enums
│ │ └── OrderStatus.java
├── aula156_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Account.java
│ │ └── BusinessAccount.java
├── aula157_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Account.java
│ │ ├── BusinessAccount.java
│ │ └── SavingsAccount.java
├── aula158_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Account.java
│ │ ├── BusinessAccount.java
│ │ └── SavingsAccount.java
├── aula160_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Account.java
│ │ ├── BusinessAccount.java
│ │ └── SavingsAccount.java
├── aula161_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Employee.java
│ │ └── OutsourcedEmployee.java
├── aula162_Exercício_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── ImportedProduct.java
│ │ ├── Product.java
│ │ └── UsedProduct.java
├── aula163_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Account.java
│ │ ├── BusinessAccount.java
│ │ └── SavingsAccount.java
├── aula164_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Circle.java
│ │ ├── Rectangle.java
│ │ ├── Shape.java
│ │ └── enums
│ │ └── Color.java
├── aula165_Exercicio_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── entities
│ │ ├── Company.java
│ │ ├── Individual.java
│ │ └── TaxPayer.java
├── aula170_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula171_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula172_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ ├── in.txt
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula174_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── model
│ │ └── entities
│ │ └── Reservation.java
├── aula175_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── model
│ │ └── entities
│ │ └── Reservation.java
├── aula176_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── model
│ │ ├── entities
│ │ └── Reservation.java
│ │ └── exceptions
│ │ └── DomainException.java
├── aula177_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ └── Program.java
│ │ └── model
│ │ ├── entities
│ │ └── Account.java
│ │ └── exceptions
│ │ └── DomainException.java
├── aula181_Chess_System
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ ├── application
│ │ ├── Program.java
│ │ └── UI.java
│ │ ├── boardgame
│ │ ├── Board.java
│ │ ├── BoardException.java
│ │ ├── Piece.java
│ │ └── Position.java
│ │ └── chess
│ │ ├── ChessException.java
│ │ ├── ChessMatch.java
│ │ ├── ChessPiece.java
│ │ ├── ChessPosition.java
│ │ ├── Color.java
│ │ └── pieces
│ │ ├── Bishop.java
│ │ ├── King.java
│ │ ├── Knight.java
│ │ ├── Pawn.java
│ │ ├── Queen.java
│ │ └── Rook.java
├── aula214_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ ├── in.txt
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula215_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ ├── in.txt
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula216_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ ├── in.txt
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula217_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ ├── out.txt
│ └── src
│ │ └── application
│ │ └── Program.java
├── aula218_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ └── src
│ │ └── application
│ │ └── Program.java
└── aula219_Exemplo_001
│ ├── .classpath
│ ├── .gitignore
│ ├── .project
│ ├── in.txt
│ └── src
│ └── application
│ └── Program.java
└── ZoneIds.md
/.gitignore:
--------------------------------------------------------------------------------
1 | /.metadata/
2 |
--------------------------------------------------------------------------------
/Recursos/images/aula100-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula100-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula102-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula102-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula107-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula107-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula120-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula120-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula121-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula121-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula130-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula130-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula141-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula141-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula143-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula143-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula147-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula147-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula147-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula147-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula149-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula149-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula152-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula152-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula152-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula152-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula153-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula153-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula153-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula153-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula156-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula156-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula156-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula156-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula156-img3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula156-img3.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula157-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula157-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula159-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula159-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula160-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula160-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula161-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula161-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula161-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula161-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula162-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula162-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula163-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula163-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula164-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula164-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula165-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula165-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula169-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula169-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula173-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula173-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula173-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula173-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula177-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula177-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula179-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula179-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula191-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula191-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula35-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula35-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula37-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula37-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula64-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula64-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula65-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula65-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula66-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula66-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula67-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula67-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula70-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula70-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula70-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula70-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula72-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula72-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula76-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula76-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula81-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula81-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula87-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula87-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula87-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula87-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula87-img3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula87-img3.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula87-img4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula87-img4.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula87-img5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula87-img5.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula87-img6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula87-img6.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula87-img7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula87-img7.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula88-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula88-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula88-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula88-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula89-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula89-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula90-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula90-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula94-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula94-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula96-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula96-img1.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula96-img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula96-img2.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula96-img3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula96-img3.jpg
--------------------------------------------------------------------------------
/Recursos/images/aula98-img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/images/aula98-img1.jpg
--------------------------------------------------------------------------------
/Recursos/pdf/01-introducao.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/01-introducao.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/02-conceitos-de-programacao.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/02-conceitos-de-programacao.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/03-introducao-linguagem-java.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/03-introducao-linguagem-java.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/04-estrutura-sequencial.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/04-estrutura-sequencial.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/05-estrutura-condicional.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/05-estrutura-condicional.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/06-estruturas-repetitivas.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/06-estruturas-repetitivas.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/07-outros-topicos-basicos.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/07-outros-topicos-basicos.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/08-classes-atributos-membros-staticos.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/08-classes-atributos-membros-staticos.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/08-correcao-exercicios-fixacao.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/08-correcao-exercicios-fixacao.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/09-construtores-this-sobrecarga-encapsulamento.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/09-construtores-this-sobrecarga-encapsulamento.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/10-memoria-arrays-e-listas.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/10-memoria-arrays-e-listas.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/11-date-calendar.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/11-date-calendar.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/11-trabalhando-com-data-hora.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/11-trabalhando-com-data-hora.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/12-Introdução-ao-Git-e-Github-(slides).pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/12-Introdução-ao-Git-e-Github-(slides).pdf
--------------------------------------------------------------------------------
/Recursos/pdf/12-Resolvendo-problemas-comuns-(slides).pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/12-Resolvendo-problemas-comuns-(slides).pdf
--------------------------------------------------------------------------------
/Recursos/pdf/13-enumeracoes-composicao.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/13-enumeracoes-composicao.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/14-heranca-e-polimorfismo.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/14-heranca-e-polimorfismo.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/15-tratamento-de-excecoes.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/15-tratamento-de-excecoes.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/16-projeto-sistema-xadrez.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/16-projeto-sistema-xadrez.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/17-arquivos.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/17-arquivos.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/Exercicios1-estrutura-sequencial.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/Exercicios1-estrutura-sequencial.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/Exercicios2-estrutura-condicional.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/Exercicios2-estrutura-condicional.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/Exercicios3-estrutura-while.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/Exercicios3-estrutura-while.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/Exercicios4-estrutura-for.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/Exercicios4-estrutura-for.pdf
--------------------------------------------------------------------------------
/Recursos/pdf/Exercicios5-vetores.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Alexandresl/curso-java-1/bf606cf4180cc8b5cc74bc7b96eaf58422a0f30a/Recursos/pdf/Exercicios5-vetores.pdf
--------------------------------------------------------------------------------
/Workspace/.gitignore:
--------------------------------------------------------------------------------
1 | /.metadata/
2 |
3 | # Compiled class file
4 | *.class
5 |
6 | # Log file
7 | *.log
8 |
9 | # BlueJ files
10 | *.ctxt
11 |
12 | # Mobile Tools for Java (J2ME)
13 | .mtj.tmp/
14 |
15 | # Package Files #
16 | *.jar
17 | *.war
18 | *.nar
19 | *.ear
20 | *.zip
21 | *.tar.gz
22 | *.rar
23 |
24 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
25 | hs_err_pid*
26 |
27 | # Eclipse
28 | .settings/
--------------------------------------------------------------------------------
/Workspace/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Workspace
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Workspace/Aula049_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/Aula049_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/Aula049_Exercicio_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int senha = 2002;
10 | int num = sc.nextInt();
11 |
12 | while (senha != num) {
13 |
14 | System.out.println("Senha Invalida");
15 |
16 | num = sc.nextInt();
17 |
18 | }
19 |
20 | System.out.println("Acesso Permitido");
21 |
22 | sc.close();
23 |
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/Workspace/aula018_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula018_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula018_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 | public class Main {
2 |
3 | public static void main(String[] args) {
4 |
5 | System.out.println("Hello World!");
6 |
7 | }
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/Workspace/aula024_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula024_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula024_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Locale.setDefault(Locale.US);
8 | int y = 32;
9 | double x = 10.35784;
10 |
11 | System.out.println("Bom dia!");
12 | System.out.println(y);
13 | System.out.println(x);
14 | System.out.printf("%.2f\n", x);
15 | System.out.printf("%.4f\n", x);
16 | System.out.println("Resultado = " + x + " metros.");
17 | System.out.printf("Resultado = %.2f metros.%n", x);
18 |
19 | String nome = "Maria";
20 | int idade = 31;
21 | double renda = 4000.0;
22 | System.out.printf("%s tem %d anos e ganha R$ %.2f reais%n", nome, idade, renda);
23 |
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/Workspace/aula024_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula024_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 |
2 | public class Main {
3 |
4 | public static void main(String[] args) {
5 |
6 | int x, y;
7 |
8 | x = 5;
9 |
10 | y = 2 * x;
11 |
12 | System.out.println(x); // 5
13 | System.out.println(y); // 10
14 |
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_002/src/Main.java:
--------------------------------------------------------------------------------
1 |
2 | public class Main {
3 |
4 | public static void main(String[] args) {
5 |
6 | int x;
7 | double y;
8 |
9 | x = 5;
10 |
11 | y = 2 * x;
12 |
13 | System.out.println(x); // 5
14 | System.out.println(y); // 10.0
15 |
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_003/src/Main.java:
--------------------------------------------------------------------------------
1 |
2 | public class Main {
3 |
4 | public static void main(String[] args) {
5 |
6 | double b, B, h, area;
7 |
8 | b = 6.0;
9 | B = 8.0;
10 | h = 5.0;
11 |
12 | area = (b + B) / 2.0 * h;
13 |
14 | System.out.println(area); // 35.0
15 |
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_004/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_004/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_004/src/Main.java:
--------------------------------------------------------------------------------
1 |
2 | public class Main {
3 |
4 | public static void main(String[] args) {
5 |
6 | int a, b;
7 | double resultado;
8 |
9 | a = 5;
10 | b = 2;
11 |
12 | resultado = (double) a / b;
13 |
14 | System.out.println(resultado); // 2.5
15 |
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_005/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_005/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula025_Exemplo_005/src/Main.java:
--------------------------------------------------------------------------------
1 |
2 | public class Main {
3 |
4 | public static void main(String[] args) {
5 |
6 | double a;
7 | int b;
8 |
9 | a = 5.0;
10 | b = (int) a;
11 |
12 | System.out.println(b); // 5
13 |
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 | String x;
9 |
10 | x = sc.next();
11 |
12 | System.out.println("Você digitou: " + x);
13 |
14 | sc.close();
15 |
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 | int x;
9 |
10 | x = sc.nextInt();
11 |
12 | System.out.println("Você digitou: " + x);
13 |
14 | sc.close();
15 |
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_003/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 | import java.util.Scanner;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 |
8 | Locale.setDefault(Locale.US);
9 | Scanner sc = new Scanner(System.in);
10 | double x;
11 |
12 | x = sc.nextDouble();
13 |
14 | System.out.printf("Você digitou: %.2f%n", x);
15 |
16 | sc.close();
17 |
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_004/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_004/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_004/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 | char x;
9 |
10 | x = sc.next().charAt(0);
11 |
12 | System.out.println("Você digitou: " + x);
13 |
14 | sc.close();
15 |
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_005/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_005/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula026_Exemplo_005/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 | import java.util.Scanner;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 |
8 | Locale.setDefault(Locale.US);
9 | Scanner sc = new Scanner(System.in);
10 |
11 | String x;
12 | int y;
13 | double z;
14 |
15 | x = sc.next();
16 | y = sc.nextInt();
17 | z = sc.nextDouble();
18 |
19 | System.out.println("Dados digitados:");
20 | System.out.println(x);
21 | System.out.println(y);
22 | System.out.println(z);
23 |
24 | sc.close();
25 |
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Workspace/aula027_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula027_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula027_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | String s1, s2, s3;
10 |
11 | s1 = sc.nextLine();
12 | s2 = sc.nextLine();
13 | s3 = sc.nextLine();
14 |
15 | System.out.println("Dados digitados:");
16 | System.out.println(s1);
17 | System.out.println(s2);
18 | System.out.println(s3);
19 |
20 | sc.close();
21 |
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/Workspace/aula027_Exemplo_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula027_Exemplo_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula027_Exemplo_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int x;
10 | String s1, s2, s3;
11 |
12 | x = sc.nextInt();
13 | sc.nextLine(); // nextLine() extra para consumir a quebra de linha
14 | s1 = sc.nextLine();
15 | s2 = sc.nextLine();
16 | s3 = sc.nextLine();
17 |
18 | System.out.println("Dados digitados:");
19 | System.out.println(x);
20 | System.out.println(s1);
21 | System.out.println(s2);
22 | System.out.println(s3);
23 |
24 | sc.close();
25 |
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Workspace/aula028_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula028_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 | int n1, n2, sum;
9 |
10 | System.out.print("Digite o primeiro inteiro: ");
11 | n1 = sc.nextInt();
12 | System.out.print("Digite o próximo inteiro: ");
13 | n2 = sc.nextInt();
14 |
15 | sum = n1 + n2;
16 |
17 | System.out.println();
18 | System.out.println("Soma = " + sum);
19 |
20 | sc.close();
21 |
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 | import java.util.Scanner;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 |
8 | Locale.setDefault(Locale.US);
9 | Scanner sc = new Scanner(System.in);
10 |
11 | double raio, area;
12 | double pi = 3.14159;
13 |
14 | System.out.print("Digite o raio: ");
15 | raio = sc.nextDouble();
16 |
17 | area = pi * Math.pow(raio, 2);
18 |
19 | System.out.printf("A = %.4f%n", area);
20 |
21 | sc.close();
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_003/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int A, B, C, D, diferenca;
10 |
11 | System.out.println("Digite 4 números inteiros:");
12 | A = sc.nextInt();
13 | B = sc.nextInt();
14 | C = sc.nextInt();
15 | D = sc.nextInt();
16 |
17 | diferenca = A * B - C * D;
18 |
19 | System.out.println("DIFERENÇA = " + diferenca);
20 |
21 | sc.close();
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_004/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_004/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_005/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_005/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_006/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_006/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_resolvido_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula030_Exercicio_resolvido_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula035_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula035_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula035_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 |
2 | public class Main {
3 |
4 | public static void main(String[] args) {
5 |
6 | int x = 5;
7 |
8 | System.out.println("Bom dia");
9 |
10 | if (x < 0) { // Falso - Bloco não será executada
11 | System.out.println("Boa tarde");
12 | }
13 |
14 | System.out.println("Boa noite");
15 |
16 |
17 |
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/Workspace/aula035_Exemplo_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula035_Exemplo_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula035_Exemplo_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 | int hora;
9 |
10 | System.out.print("Que horas são? ");
11 | hora = sc.nextInt();
12 |
13 | if (hora < 12) {
14 | System.out.println("Bom dia!");
15 | } else {
16 | System.out.println("Boa tarde!");
17 | }
18 |
19 | sc.close();
20 |
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/Workspace/aula035_Exemplo_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula035_Exemplo_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula035_Exemplo_003/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 | int horas;
9 |
10 | System.out.print("Que horas são: ");
11 | horas = sc.nextInt();
12 |
13 | if (horas < 12) {
14 | System.out.println("Bom dia!");
15 | } else if (horas < 18) {
16 | System.out.println("Boa tarde!");
17 | } else {
18 | System.out.println("Boa noite!");
19 | }
20 |
21 | sc.close();
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int num;
10 |
11 | System.out.println("Digite um número inteiro");
12 | num = sc.nextInt();
13 |
14 | if (num < 0) {
15 | System.out.println("NEGATIVO");
16 | } else {
17 | System.out.println("NAO NEGATIVO");
18 | }
19 |
20 | sc.close();
21 |
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int num;
10 |
11 | System.out.print("Digite um número inteiro: ");
12 | num = sc.nextInt();
13 |
14 | if (num % 2 == 0) {
15 | System.out.println("PAR");
16 | } else {
17 | System.out.println("IMPAR");
18 | }
19 |
20 | sc.close();
21 |
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_003/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 | int num1, num2;
9 |
10 | System.out.println("Digite dois números inteiro:");
11 | num1 = sc.nextInt();
12 | num2 = sc.nextInt();
13 |
14 | if (num1 % num2 == 0 || num2 % num1 == 0) {
15 | System.out.println("Sao Multiplos");
16 | } else {
17 | System.out.println("Nao sao Multiplos");
18 | }
19 |
20 | sc.close();
21 |
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_004/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_004/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_004/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int horaInicial, horaFinal, duracao;
10 |
11 | System.out.println("Digite a hora inicial e final do jogo");
12 | horaInicial = sc.nextInt();
13 | horaFinal = sc.nextInt();
14 |
15 | if (horaInicial < horaFinal) {
16 | duracao = horaFinal - horaInicial;
17 | } else {
18 | duracao = horaFinal + 24 - horaInicial;
19 | }
20 |
21 | System.out.println("O JOGO DUROU " + duracao + " HORA(S)");
22 |
23 | sc.close();
24 |
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_005/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_005/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_006/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_006/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_007/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_007/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_008/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_008/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_resolvido_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_resolvido_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_resolvido_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 | import java.util.Scanner;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 |
8 | Locale.setDefault(Locale.US);
9 | Scanner sc = new Scanner(System.in);
10 |
11 | double nota1, nota2, notaFinal;
12 |
13 | System.out.println("Digite as duas notas do aluno: ");
14 | nota1 = sc.nextDouble();
15 | nota2 = sc.nextDouble();
16 |
17 | notaFinal = nota1 + nota2;
18 |
19 | System.out.printf("NOTA FINAL: %.1f%n", notaFinal);
20 |
21 | if (notaFinal < 60.0) {
22 | System.out.println("REPROVADO");
23 | }
24 |
25 | sc.close();
26 |
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_resolvido_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercicio_resolvido_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercício_resolvido_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercício_resolvido_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula037_Exercício_resolvido_003/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int num1, num2, num3;
10 |
11 | System.out.println("Digite 3 números inteiros:");
12 | num1 = sc.nextInt();
13 | num2 = sc.nextInt();
14 | num3 = sc.nextInt();
15 |
16 | if (num1 < num2 && num1 < num3) {
17 | System.out.println("MENOR = " + num1);
18 | } else if (num2 < num3) {
19 | System.out.println("MENOR = " + num2);
20 | } else {
21 | System.out.println("MENOR = " + num3);
22 | }
23 |
24 | sc.close();
25 |
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Workspace/aula038_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula038_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula038_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 | import java.util.Scanner;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 |
8 | Locale.setDefault(Locale.US);
9 | Scanner sc = new Scanner(System.in);
10 |
11 | int qtdMinutos;
12 | double valor = 50.0;
13 |
14 | System.out.print("Digite a quantidade de minutos; ");
15 | qtdMinutos = sc.nextInt();
16 |
17 | if (qtdMinutos > 100) {
18 | valor += (qtdMinutos - 100) * 2.0;
19 | }
20 |
21 | System.out.printf("Valor a pagar: R$ %.2f%n", valor);
22 |
23 | sc.close();
24 |
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/Workspace/aula039_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula039_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula040_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula040_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula040_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 |
2 | public class Main {
3 |
4 | public static void main(String[] args) {
5 |
6 | double preco = 34.5;
7 | double desconto;
8 |
9 | desconto = (preco < 20.0) ? preco * 0.1 : preco * 0.05;
10 |
11 | System.out.println("O desconto é de: " + desconto);
12 |
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Workspace/aula041_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula041_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula041_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | double price = sc.nextDouble();
10 | double discount = 0; // precisa ser inicializada antes do if
11 |
12 | if (price > 100.0) {
13 | discount = price * 0.1;
14 | }
15 |
16 | System.out.println(discount);
17 |
18 | sc.close();
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Workspace/aula045_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula045_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula045_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int num, soma;
10 |
11 | System.out.print("Digite um número: ");
12 | num = sc.nextInt();
13 |
14 | soma = 0;
15 |
16 | while (num != 0) {
17 |
18 | soma += num;
19 |
20 | System.out.print("Digite outro número: ");
21 | num = sc.nextInt();
22 |
23 |
24 | }
25 |
26 | System.out.println(soma);
27 |
28 | sc.close();
29 |
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int x, y;
10 |
11 | x = sc.nextInt();
12 | y = sc.nextInt();
13 |
14 | while (x != 0 && y != 0) {
15 |
16 | if (x > 0 && y > 0) {
17 | System.out.println("primeiro");
18 | } else if (x < 0 && y > 0) {
19 | System.out.println("segundo");
20 | } else if (x < 0 && y < 0) {
21 | System.out.println("terceiro");
22 | } else if (x > 0 && y < 0) {
23 | System.out.println("quarto");
24 | }
25 |
26 | x = sc.nextInt();
27 | y = sc.nextInt();
28 |
29 | }
30 |
31 | sc.close();
32 |
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_resolvido_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_resolvido_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_resolvido_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int x, y;
10 |
11 | x = sc.nextInt();
12 | y = sc.nextInt();
13 |
14 | while (x != y) {
15 |
16 | if (x > y) {
17 | System.out.println("Decrescente");
18 | } else {
19 | System.out.println("Crescente");
20 | }
21 |
22 | x = sc.nextInt();
23 | y = sc.nextInt();
24 |
25 | }
26 |
27 | sc.close();
28 |
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_resolvido_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_resolvido_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula049_Exercicio_resolvido_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 | import java.util.Scanner;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 |
8 | Locale.setDefault(Locale.US);
9 | Scanner sc = new Scanner(System.in);
10 |
11 | int idade, contador = 0, acumulador = 0;
12 |
13 | idade = sc.nextInt();
14 |
15 | if (idade >= 0) {
16 |
17 | while (idade >= 0) {
18 |
19 | contador++;
20 | acumulador += idade;
21 |
22 | idade = sc.nextInt();
23 |
24 | }
25 |
26 | System.out.printf("%.2f%n", (double) acumulador / contador);
27 |
28 | } else {
29 | System.out.println("impossível calcular");
30 | }
31 |
32 |
33 | sc.close();
34 |
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/Workspace/aula050_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula050_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula050_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 | int n, x, soma;
9 |
10 | n = sc.nextInt();
11 | soma = 0;
12 | x = 0;
13 |
14 | for (int i = 0; i < n; i++) {
15 |
16 | x = sc.nextInt();
17 |
18 | soma += x;
19 |
20 | }
21 |
22 | System.out.println(soma);
23 |
24 | sc.close();
25 |
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int x = sc.nextInt();
10 |
11 | for (int i = 1; i <= x; i++) {
12 |
13 | if (i % 2 != 0) {
14 | System.out.println(i);
15 | }
16 |
17 | }
18 |
19 | sc.close();
20 |
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int n, x, in, out;
10 | in = 0;
11 | out = 0;
12 |
13 | n = sc.nextInt();
14 |
15 | for (int i = 1; i <= n; i++) {
16 |
17 | x = sc.nextInt();
18 |
19 | if (x >= 10 && x <= 20) {
20 | in++;
21 | } else {
22 | out++;
23 | }
24 |
25 | }
26 |
27 | System.out.println(in + " int");
28 | System.out.println(out + " out");
29 |
30 | sc.close();
31 |
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_003/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 | import java.util.Scanner;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 |
8 | Locale.setDefault(Locale.US);
9 | Scanner sc = new Scanner(System.in);
10 |
11 | int n = sc.nextInt();
12 |
13 | for (int i = 1; i <= n; i++) {
14 |
15 | double n1 = sc.nextDouble();
16 | double n2 = sc.nextDouble();
17 | double n3 = sc.nextDouble();
18 |
19 | double media = (n1 * 2 + n2 * 3 + n3 * 5) / 10;
20 |
21 | System.out.printf("%.1f%n", media);
22 |
23 | }
24 |
25 | sc.close();
26 |
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_004/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_004/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_004/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 | import java.util.Scanner;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 |
8 | Locale.setDefault(Locale.US);
9 | Scanner sc = new Scanner(System.in);
10 |
11 | int n = sc.nextInt();
12 |
13 | for (int i = 1; i <= n; i++) {
14 |
15 | int n1 = sc.nextInt();
16 | int n2 = sc.nextInt();
17 |
18 | if (n2 == 0) {
19 | System.out.println("divisao impossivel");
20 | } else {
21 | double result = (double) n1 / n2;
22 | System.out.printf("%.1f%n", result);
23 | }
24 |
25 | }
26 |
27 | sc.close();
28 |
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_005/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_005/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_005/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int n = sc.nextInt();
10 | int result = 1;
11 |
12 | for (int i = n; i >= 1; i--) {
13 | result *= i;
14 | }
15 |
16 | System.out.println(result);
17 |
18 | sc.close();
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_006/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_006/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_006/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int n = sc.nextInt();
10 |
11 | for (int i = 1; i <= n; i++) {
12 | if (n % i == 0) {
13 | System.out.println(i);
14 | }
15 | }
16 |
17 | sc.close();
18 |
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_007/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_007/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_007/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int n = sc.nextInt();
10 |
11 | for (int i = 1; i <= n; i++) {
12 |
13 | System.out.printf("%d %d %d%n", i, (int) Math.pow(i, 2), (int) Math.pow(i, 3));
14 |
15 | }
16 |
17 | sc.close();
18 |
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_resolvido_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_resolvido_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_resolvido_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int n = sc.nextInt();
10 |
11 | for (int i = 1; i <= 10; i++) {
12 |
13 | System.out.println(i + " x " + n + " = " + i * n);
14 |
15 | }
16 |
17 | sc.close();
18 |
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_resolvido_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_resolvido_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula054_Exercicio_resolvido_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int num1, num2, maior, menor, soma;
10 |
11 | num1 = sc.nextInt();
12 | num2 = sc.nextInt();
13 | soma = 0;
14 |
15 | if (num1 > num2) {
16 | maior = num1;
17 | menor = num2;
18 | } else {
19 | menor = num1;
20 | maior = num2;
21 | }
22 |
23 | for (int i = menor + 1; i < maior; i++ ) {
24 |
25 | if (i % 2 != 0) {
26 |
27 | soma += i;
28 |
29 | }
30 |
31 | }
32 |
33 | System.out.println(soma);
34 |
35 | sc.close();
36 |
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/Workspace/aula055_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula055_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula055_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Locale;
2 | import java.util.Scanner;
3 |
4 | public class Main {
5 |
6 | public static void main(String[] args) {
7 |
8 | Locale.setDefault(Locale.US);
9 | Scanner sc = new Scanner(System.in);
10 |
11 | char option;
12 |
13 | do {
14 |
15 | System.out.print("Digite a temperatura em Celcius: ");
16 | double c = sc.nextDouble();
17 | double f = 9 * c / 5 + 32;
18 | System.out.printf("Equivalente em Fahrenheit: %.1f%n", f);
19 | System.out.print("Deseja repetir (s/n): ");
20 | option = sc.next().charAt(0);
21 |
22 | } while (option == 's');
23 |
24 | sc.close();
25 |
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Workspace/aula058_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula058_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula058_Exemplo_001/src/Main.java:
--------------------------------------------------------------------------------
1 |
2 | public class Main {
3 |
4 | public static void main(String[] args) {
5 |
6 | int n1 = 89;
7 | int n2 = 60;
8 |
9 | System.out.println(n1 & n2); // 24
10 | System.out.println(n1 | n2); // 125
11 | System.out.println(n1 ^ n2); // 101
12 |
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Workspace/aula058_Exemplo_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula058_Exemplo_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula058_Exemplo_002/src/Main.java:
--------------------------------------------------------------------------------
1 | import java.util.Scanner;
2 |
3 | public class Main {
4 |
5 | public static void main(String[] args) {
6 |
7 | Scanner sc = new Scanner(System.in);
8 |
9 | int mask = 0b100000;
10 | int n = sc.nextInt();
11 |
12 | if ((n & mask) != 0) {
13 | System.out.println("6th bit is true!");
14 | } else {
15 | System.out.println("6th bit is false!");
16 | }
17 |
18 | sc.close();
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Workspace/aula059_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula059_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula059_Exemplo_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula059_Exemplo_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula059_Exemplo_002/src/Main.java:
--------------------------------------------------------------------------------
1 |
2 | public class Main {
3 |
4 | public static void main(String[] args) {
5 |
6 | String s = "potato apple lemon";
7 |
8 | String[] vect = s.split(" ");
9 | String word1 = vect[0];
10 | String word2 = vect[1];
11 | String word3 = vect[2];
12 |
13 | System.out.println(word1);
14 | System.out.println(word2);
15 | System.out.println(word3);
16 |
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/Workspace/aula061_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula061_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula064_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula064_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula065_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula065_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula065_Exemplo_001/src/entities/Triangle.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Triangle {
4 |
5 | public double a;
6 | public double b;
7 | public double c;
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/Workspace/aula066_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula066_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula066_Exemplo_001/src/entities/Triangle.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Triangle {
4 |
5 | public double a;
6 | public double b;
7 | public double c;
8 |
9 | public double area() {
10 | double p = (a + b + c) / 2.0;
11 | return Math.sqrt(p * (p - a) * (p - b) * (p - c));
12 | }
13 |
14 | }
15 |
--------------------------------------------------------------------------------
/Workspace/aula067_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula067_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula067_Exemplo_001/src/entities/Product.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Product {
4 |
5 | public String name;
6 | public double price;
7 | public int quantity;
8 |
9 | public double totalValueInStock() {
10 |
11 | return price * quantity;
12 |
13 | }
14 |
15 | public void addProducts(int quantity) {
16 |
17 | this.quantity += quantity;
18 |
19 | }
20 |
21 | public void removeProducts(int quantity) {
22 | this.quantity -= quantity;
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Workspace/aula068_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula068_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula068_Exemplo_001/src/entities/Product.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Product {
4 |
5 | public String name;
6 | public double price;
7 | public int quantity;
8 |
9 | public double totalValueInStock() {
10 | return price * quantity;
11 | }
12 |
13 | public void addProducts(int quantity) {
14 | this.quantity += quantity;
15 | }
16 |
17 | public void removeProducts(int quantity) {
18 | this.quantity -= quantity;
19 | }
20 |
21 | @Override
22 | public String toString() {
23 | return name
24 | + ", $ "
25 | + String.format("%.2f", price)
26 | + ", " + quantity
27 | + " units, Total: $ "
28 | + String.format("%.2f", totalValueInStock());
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/Workspace/aula069_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula069_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula069_Exemplo_001/src/entities/Product.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Product {
4 |
5 | public String name;
6 | public double price;
7 | public int quantity;
8 |
9 | public double totalValueInStock() {
10 | return price * quantity;
11 | }
12 |
13 | public void addProducts(int quantity) {
14 | this.quantity += quantity;
15 | }
16 |
17 | public void removeProducts(int quantity) {
18 | this.quantity -= quantity;
19 | }
20 |
21 | @Override
22 | public String toString() {
23 | return name
24 | + ", $ "
25 | + String.format("%.2f", price)
26 | + ", "
27 | + quantity
28 | + " units, Total: $ "
29 | + String.format("%.2f", totalValueInStock());
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/Workspace/aula070_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula070_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula070_Exercicio_001/src/entities/Rectangle.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Rectangle {
4 |
5 | public double width;
6 | public double height;
7 |
8 | public double area() {
9 | return width * height;
10 | }
11 |
12 | public double perimeter() {
13 | return 2 * (width + height);
14 | }
15 |
16 | public double diagonal() {
17 | return Math.sqrt(Math.pow(width, 2) + Math.pow(height, 2));
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/Workspace/aula070_Exercicio_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula070_Exercicio_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula070_Exercicio_002/src/entities/Employee.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Employee {
4 |
5 | public String name;
6 | public double grossSalary;
7 | public double tax;
8 |
9 | public double netSalary() {
10 | return grossSalary - tax;
11 | }
12 |
13 | public void increaseSalary(double percentage) {
14 | grossSalary += grossSalary * (percentage / 100);
15 | }
16 |
17 | @Override
18 | public String toString() {
19 | return name + ", $ " + String.format("%.2f", netSalary());
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Workspace/aula070_Exercicio_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula070_Exercicio_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula070_Exercicio_003/src/entities/Student.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Student {
4 |
5 | public String name;
6 | public double grade1;
7 | public double grade2;
8 | public double grade3;
9 |
10 | public double finalGrade() {
11 | return grade1 + grade2 + grade3;
12 | }
13 |
14 | public double missingPoints() {
15 | if (finalGrade() < 60.0) {
16 | return 60.0 - finalGrade();
17 | } else {
18 | return 0.0;
19 | }
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Workspace/aula071_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula071_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula071_Exemplo_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula071_Exemplo_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula071_Exemplo_002/src/util/Calculator.java:
--------------------------------------------------------------------------------
1 | package util;
2 |
3 | public class Calculator {
4 |
5 | public double PI = 3.14159;
6 |
7 | public double circumference(double radius) {
8 | return 2.0 * PI * radius;
9 | }
10 |
11 | public double volume(double radius) {
12 | return 4.0 * PI * Math.pow(radius, 3) / 3.0;
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Workspace/aula072_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula072_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula072_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.util.Locale;
4 | import java.util.Scanner;
5 |
6 | import util.Calculator;
7 |
8 | public class Program {
9 |
10 | public static void main(String[] args) {
11 |
12 | Locale.setDefault(Locale.US);
13 | Scanner sc = new Scanner(System.in);
14 |
15 | System.out.print("Enter raius: ");
16 | double radius = sc.nextDouble();
17 |
18 | double c = Calculator.circumference(radius);
19 | double v = Calculator.volume(radius);
20 |
21 | System.out.printf("Circumference: %.2f%n", c);
22 | System.out.printf("Volume: %.2f%n", v);
23 | System.out.printf("PI value: %.2f%n", Calculator.PI);
24 |
25 | sc.close();
26 |
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/Workspace/aula072_Exemplo_001/src/util/Calculator.java:
--------------------------------------------------------------------------------
1 | package util;
2 |
3 | public class Calculator {
4 |
5 | public static final double PI = 3.14159;
6 |
7 | public static double circumference(double radius) {
8 | return 2.0 * PI * radius;
9 | }
10 |
11 | public static double volume(double radius) {
12 | return 4.0 * PI * Math.pow(radius, 3) / 3.0;
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/Workspace/aula073_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula073_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula073_Exercicio_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.util.Locale;
4 | import java.util.Scanner;
5 |
6 | import util.CurrencyConverter;
7 |
8 | public class Program {
9 |
10 | public static void main(String[] args) {
11 |
12 | Locale.setDefault(Locale.US);
13 | Scanner sc = new Scanner(System.in);
14 |
15 | System.out.print("What is the dollar price? ");
16 | double dollarPrice = sc.nextDouble();
17 | System.out.print("How mani dollars will be bought? ");
18 | double amount = sc.nextDouble();
19 | System.out.printf("Amount to be paid in reais = %.2f%n", CurrencyConverter.dollarToReal(amount, dollarPrice));
20 |
21 | sc.close();
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Workspace/aula073_Exercicio_001/src/util/CurrencyConverter.java:
--------------------------------------------------------------------------------
1 | package util;
2 |
3 | public class CurrencyConverter {
4 |
5 | public static double IOF = 6.0;
6 |
7 | public static double dollarToReal(double amount, double dollarPrice) {
8 | return amount * dollarPrice + amount * dollarPrice * IOF / 100;
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/Workspace/aula076_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula076_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula078_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula078_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula079_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula079_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula080_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula080_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula082_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula082_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula083_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula083_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula089_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula089_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula089_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.util.Locale;
4 | import java.util.Scanner;
5 |
6 | public class Program {
7 |
8 | public static void main(String[] args) {
9 |
10 | Locale.setDefault(Locale.US);
11 | Scanner sc = new Scanner(System.in);
12 |
13 | int n = sc.nextInt();
14 |
15 | double[] vect = new double[n];
16 | double soma = 0.0;
17 |
18 | for (int i = 0; i < n; i++) {
19 | vect[i] = sc.nextDouble();
20 | soma += vect[i];
21 | }
22 |
23 | double avg = soma / n;
24 |
25 | System.out.printf("AVAREGE HEIGHT = %.2f%n", avg);
26 |
27 | sc.close();
28 |
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/Workspace/aula090_Exemplo_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula090_Exemplo_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula090_Exemplo_002/src/entities/Product.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Product {
4 |
5 | private String name;
6 | private double price;
7 |
8 | public Product() {
9 |
10 | }
11 |
12 | public Product(String name, double price) {
13 | this.name = name;
14 | this.price = price;
15 | }
16 |
17 | public String getName() {
18 | return name;
19 | }
20 |
21 | public void setName(String name) {
22 | this.name = name;
23 | }
24 |
25 | public double getPrice() {
26 | return price;
27 | }
28 |
29 | public void setPrice(double price) {
30 | this.price = price;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_003/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_003/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_004/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_004/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_005/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_005/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_006/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_006/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_007/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_007/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_008/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_008/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_009/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_009/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_010/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercicio_010/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercício_011/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercício_011/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula091_Exercício_011/src/entities/Person.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Person {
4 |
5 | private double height;
6 | private char gender;
7 |
8 | public Person() {
9 |
10 | }
11 |
12 | public Person(double height, char gender) {
13 | this.height = height;
14 | this.gender = gender;
15 | }
16 |
17 | public double getHeight() {
18 | return height;
19 | }
20 |
21 | public void setHeight(double height) {
22 | this.height = height;
23 | }
24 |
25 | public char getGender() {
26 | return gender;
27 | }
28 |
29 | public void setGender(char gender) {
30 | this.gender = gender;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/Workspace/aula092_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula092_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula093_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula093_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula094_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula094_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula095_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula095_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula095_Exercicio_001/src/entities/Rent.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Rent {
4 |
5 | private String name;
6 | private String email;
7 |
8 | public Rent() {
9 | }
10 |
11 | public Rent(String name, String email) {
12 | this.name = name;
13 | this.email = email;
14 | }
15 |
16 | public String getName() {
17 | return name;
18 | }
19 |
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 |
24 | public String getEmail() {
25 | return email;
26 | }
27 |
28 | public void setEmail(String email) {
29 | this.email = email;
30 | }
31 |
32 | public String toString() {
33 | return name
34 | + ", "
35 | + email;
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/Workspace/aula096_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula096_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula096_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | public class Program {
4 |
5 | public static void main(String[] args) {
6 |
7 | int x = 20;
8 |
9 | Object obj = x;
10 |
11 | System.out.println(obj);
12 |
13 | int y = (int) obj;
14 |
15 | System.out.println(y);
16 |
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/Workspace/aula097_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula097_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula097_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | public class Program {
4 |
5 | public static void main(String[] args) {
6 |
7 | String[] vect = new String[] {"Maria", "Bob", "Alex"};
8 |
9 | for (int i = 0; i < vect.length; i++) {
10 | System.out.println(vect[i]);
11 | }
12 |
13 | for (String name : vect) {
14 | System.out.println(name);
15 | }
16 |
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/Workspace/aula099_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula099_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula100_Exercício_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula100_Exercício_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula101_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula101_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula103_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula103_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula104_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula104_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula111_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula111_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula112_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula112_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula113_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula113_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula114_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula114_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula116_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula116_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula117_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula117_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula117_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.text.SimpleDateFormat;
4 | import java.time.Instant;
5 | import java.util.Calendar;
6 | import java.util.Date;
7 |
8 | public class Program {
9 |
10 | public static void main(String[] args) {
11 |
12 | SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyy HH:mm:ss");
13 |
14 | Date d = Date.from(Instant.parse("2018-06-25T15:42:07Z"));
15 |
16 | System.out.println(sdf.format(d)); // 25/06/2018 12:42:07
17 |
18 | Calendar cal = Calendar.getInstance();
19 | cal.setTime(d);
20 | cal.add(Calendar.HOUR_OF_DAY, 4);
21 | d = cal.getTime();
22 |
23 | System.out.println(sdf.format(d)); // 25/06/2018 16:42:07
24 |
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/Workspace/aula117_Exemplo_002/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula117_Exemplo_002/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula117_Exemplo_002/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.time.Instant;
4 | import java.util.Calendar;
5 | import java.util.Date;
6 |
7 | public class Program {
8 |
9 | public static void main(String[] args) {
10 |
11 | Date d = Date.from(Instant.parse("2018-06-25T15:42:07Z"));
12 |
13 | Calendar cal = Calendar.getInstance();
14 | cal.setTime(d);
15 | int minutes = cal.get(Calendar.MINUTE);
16 | int month = 1 + cal.get(Calendar.MONTH);
17 |
18 | System.out.println("Minutes: " + minutes); // Minutes: 42
19 | System.out.println("Month: " + month); // Month: 6
20 |
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/Workspace/aula147_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula147_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula147_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.util.Date;
4 |
5 | import entities.Order;
6 | import entities.enums.OrderStatus;
7 |
8 | public class Program {
9 |
10 | public static void main(String[] args) {
11 |
12 | Order order = new Order(1080, new Date(), OrderStatus.PENDING_PAYMENT);
13 |
14 | System.out.println(order);
15 |
16 | OrderStatus os1 = OrderStatus.DELIVERED;
17 |
18 | OrderStatus os2 = OrderStatus.valueOf("DELIVERED");
19 |
20 | System.out.println(os1);
21 | System.out.println(os2);
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Workspace/aula147_Exemplo_001/src/entities/enums/OrderStatus.java:
--------------------------------------------------------------------------------
1 | package entities.enums;
2 |
3 | public enum OrderStatus {
4 |
5 | PENDING_PAYMENT,
6 | PROCESSING,
7 | SHIPPED,
8 | DELIVERED;
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula150_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001/src/entities/Department.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Department {
4 |
5 | private String name;
6 |
7 | public Department() {
8 | }
9 |
10 | public Department(String name) {
11 | this.name = name;
12 | }
13 |
14 | public String getName() {
15 | return name;
16 | }
17 |
18 | public void setName(String name) {
19 | this.name = name;
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001/src/entities/enums/WorkerLevel.java:
--------------------------------------------------------------------------------
1 | package entities.enums;
2 |
3 | public enum WorkerLevel {
4 |
5 | JUNIOR,
6 | MID_LEVEL,
7 | SENIOR;
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001_v2/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001_v2/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001_v2/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula150_Exemplo_001_v2
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001_v2/src/entities/Department.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Department {
4 |
5 | private String name;
6 |
7 | public Department() {
8 | }
9 |
10 | public Department(String name) {
11 | this.name = name;
12 | }
13 |
14 | public String getName() {
15 | return name;
16 | }
17 |
18 | public void setName(String name) {
19 | this.name = name;
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Workspace/aula150_Exemplo_001_v2/src/entities/enums/WorkerLevel.java:
--------------------------------------------------------------------------------
1 | package entities.enums;
2 |
3 | public enum WorkerLevel {
4 | JUNIOR,
5 | MID_LEVEL,
6 | SENIOR;
7 | }
8 |
--------------------------------------------------------------------------------
/Workspace/aula152_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula152_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula152_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula152_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula152_Exemplo_001/src/entities/Comment.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Comment {
4 |
5 | private String text;
6 |
7 | public Comment() {
8 | }
9 |
10 | public Comment(String text) {
11 | this.text = text;
12 | }
13 |
14 | public String getText() {
15 | return text;
16 | }
17 |
18 | public void setText(String text) {
19 | this.text = text;
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/Workspace/aula153_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula153_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula153_Exercicio_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula153_Exercicio_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula153_Exercicio_001/src/entities/Product.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Product {
4 |
5 | private String name;
6 | private Double price;
7 |
8 | public Product() {
9 | }
10 |
11 | public Product(String name, Double price) {
12 | this.name = name;
13 | this.price = price;
14 | }
15 |
16 | public String getName() {
17 | return name;
18 | }
19 |
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 |
24 | public Double getPrice() {
25 | return price;
26 | }
27 |
28 | public void setPrice(Double price) {
29 | this.price = price;
30 | }
31 |
32 | public String toString() {
33 | return name + ", $" + String.format("%.2f", price);
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/Workspace/aula153_Exercicio_001/src/entities/enums/OrderStatus.java:
--------------------------------------------------------------------------------
1 | package entities.enums;
2 |
3 | public enum OrderStatus {
4 |
5 | PENDING_PAYMENT,
6 | PROCESSING,
7 | SHIPPED,
8 | DELIVERED;
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/Workspace/aula154_Exercício_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula154_Exercício_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula154_Exercício_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula154_Exercício_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula154_Exercício_001/src/model/entities/Product.java:
--------------------------------------------------------------------------------
1 | package model.entities;
2 |
3 | public class Product {
4 |
5 | private String name;
6 | private Double price;
7 |
8 | public Product() {
9 | }
10 |
11 | public Product(String name, Double price) {
12 | this.name = name;
13 | this.price = price;
14 | }
15 |
16 | public String getName() {
17 | return name;
18 | }
19 |
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 |
24 | public Double getPrice() {
25 | return price;
26 | }
27 |
28 | public void setPrice(Double price) {
29 | this.price = price;
30 | }
31 |
32 | @Override
33 | public String toString() {
34 | return name + ", $" + String.format("%.2f", price);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/Workspace/aula154_Exercício_001/src/model/enums/OrderStatus.java:
--------------------------------------------------------------------------------
1 | package model.enums;
2 |
3 | public enum OrderStatus {
4 |
5 | PENDING_PAYMENT,
6 | PROCESSING,
7 | SHIPPED,
8 | DELIVERED;
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/Workspace/aula156_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula156_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula156_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula156_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula156_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | public class Program {
4 |
5 | public static void main(String[] args) {
6 |
7 |
8 |
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/Workspace/aula156_Exemplo_001/src/entities/BusinessAccount.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class BusinessAccount extends Account {
4 |
5 | private Double loanLimit;
6 |
7 | public BusinessAccount() {
8 | super();
9 | }
10 |
11 | public BusinessAccount(Integer number, String holder, Double balance, Double loanLimit) {
12 | super(number, holder, balance);
13 | this.loanLimit = loanLimit;
14 | }
15 |
16 | public Double getLoanLimit() {
17 | return loanLimit;
18 | }
19 |
20 | public void setLoanLimit(Double loanLimit) {
21 | this.loanLimit = loanLimit;
22 | }
23 |
24 | public void loan(Double amount) {
25 | if (amount <= loanLimit) {
26 | balance += amount - 10.00;
27 | }
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/Workspace/aula157_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula157_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula157_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula157_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula157_Exemplo_001/src/entities/BusinessAccount.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class BusinessAccount extends Account{
4 |
5 | private Double loanLimite;
6 |
7 | public BusinessAccount() {
8 | super();
9 | }
10 |
11 | public BusinessAccount(Integer number, String holder, Double balance, Double loanLimite) {
12 | super(number, holder, balance);
13 | this.loanLimite = loanLimite;
14 | }
15 |
16 | public Double getLoanLimite() {
17 | return loanLimite;
18 | }
19 |
20 | public void setLoanLimite(Double loanLimite) {
21 | this.loanLimite = loanLimite;
22 | }
23 |
24 | public void loan(Double amount) {
25 | if (loanLimite >= amount) {
26 | balance += amount - 10.00;
27 | }
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/Workspace/aula157_Exemplo_001/src/entities/SavingsAccount.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class SavingsAccount extends Account{
4 |
5 | private Double interestRate;
6 |
7 | public SavingsAccount() {
8 | super();
9 | }
10 |
11 | public SavingsAccount(Integer number, String holder, Double balance, Double interestRate) {
12 | super(number, holder, balance);
13 | this.interestRate = interestRate;
14 | }
15 |
16 | public Double getInterestRate() {
17 | return interestRate;
18 | }
19 |
20 | public void setInterestRate(Double interestRate) {
21 | this.interestRate = interestRate;
22 | }
23 |
24 | public void updateBalance() {
25 | balance += balance * interestRate;
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Workspace/aula158_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula158_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula158_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula158_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula158_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import entities.Account;
4 | import entities.BusinessAccount;
5 | import entities.SavingsAccount;
6 |
7 | public class Program {
8 |
9 | public static void main(String[] args) {
10 |
11 | Account acc1 = new Account(1001, "Alex", 1000.0);
12 | acc1.withdraw(200.00);
13 | System.out.println(acc1.getBalance()); // 795.0
14 |
15 | Account acc2 = new SavingsAccount(1002, "Maria", 1000.0, 0.01);
16 | acc2.withdraw(200.00);
17 | System.out.println(acc2.getBalance()); // 800.09
18 |
19 | Account acc3 = new BusinessAccount(1003, "Bob", 1000.0, 500.0);
20 | acc3.withdraw(200.00);
21 | System.out.println(acc3.getBalance()); // 793.0
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/Workspace/aula160_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula160_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula160_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula160_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula160_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import entities.Account;
4 | import entities.SavingsAccount;
5 |
6 | public class Program {
7 |
8 | public static void main(String[] args) {
9 |
10 | Account x = new Account(1020, "Alex", 1000.0);
11 | Account y = new SavingsAccount(1023, "Maria", 1000.0, 0.01);
12 |
13 | x.withdraw(50.0);
14 | y.withdraw(50.00);
15 |
16 | System.out.println(x.getBalance()); // 945.0
17 | System.out.println(y.getBalance()); // 950.0
18 |
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/Workspace/aula160_Exemplo_001/src/entities/BusinessAccount.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class BusinessAccount extends Account {
4 |
5 | private Double loanLimit;
6 |
7 | public BusinessAccount() {
8 | super();
9 | }
10 |
11 | public BusinessAccount(Integer number, String holder, Double balance, Double loanLimit) {
12 | super(number, holder, balance);
13 | this.loanLimit = loanLimit;
14 | }
15 |
16 | public double getLoanLimit() {
17 | return loanLimit;
18 | }
19 |
20 | public void setLoanLimit(Double loanLimit) {
21 | this.loanLimit = loanLimit;
22 | }
23 |
24 | public void loan(Double amount) {
25 | if (amount <= loanLimit) {
26 | balance += amount - 10;
27 | }
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/Workspace/aula161_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula161_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula161_Exercicio_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula161_Exercicio_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula162_Exercício_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula162_Exercício_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula162_Exercício_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula162_Exercício_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula162_Exercício_001/src/entities/Product.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class Product {
4 |
5 | protected String name;
6 | protected Double price;
7 |
8 | public Product() {
9 | }
10 |
11 | public Product(String name, Double price) {
12 | this.name = name;
13 | this.price = price;
14 | }
15 |
16 | public String getName() {
17 | return name;
18 | }
19 |
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 |
24 | public Double getPrice() {
25 | return price;
26 | }
27 |
28 | public void setPrice(Double price) {
29 | this.price = price;
30 | }
31 |
32 | public String priceTag() {
33 | return name + " $ " + String.format("%.2f", price);
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/Workspace/aula163_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula163_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula163_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula163_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula163_Exemplo_001/src/entities/BusinessAccount.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public class BusinessAccount extends Account {
4 |
5 | private Double loanLimit;
6 |
7 | public BusinessAccount() {
8 | super();
9 | }
10 |
11 | public BusinessAccount(Integer number, String holder, Double balance, Double loanLimit) {
12 | super(number, holder, balance);
13 | this.loanLimit = loanLimit;
14 | }
15 |
16 | public double getLoanLimit() {
17 | return loanLimit;
18 | }
19 |
20 | public void setLoanLimit(Double loanLimit) {
21 | this.loanLimit = loanLimit;
22 | }
23 |
24 | public void loan(Double amount) {
25 | if (amount <= loanLimit) {
26 | balance += amount - 10;
27 | }
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/Workspace/aula164_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula164_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula164_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula164_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula164_Exemplo_001/src/entities/Circle.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | import entities.enums.Color;
4 |
5 | public class Circle extends Shape {
6 |
7 | private Double radius;
8 |
9 | public Circle() {
10 | super();
11 | }
12 |
13 | public Circle(Color color, Double radius) {
14 | super(color);
15 | this.radius = radius;
16 | }
17 |
18 | public Double getRadius() {
19 | return radius;
20 | }
21 |
22 | public void setRadius(Double radius) {
23 | this.radius = radius;
24 | }
25 |
26 | public Double area() {
27 | return Math.PI * Math.pow(radius, 2);
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/Workspace/aula164_Exemplo_001/src/entities/Shape.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | import entities.enums.Color;
4 |
5 | public abstract class Shape {
6 |
7 | protected Color color;
8 |
9 | public Shape() {
10 | }
11 |
12 | public Shape(Color color) {
13 | this.color = color;
14 | }
15 |
16 | public Color getColor() {
17 | return color;
18 | }
19 |
20 | public void setColor(Color color) {
21 | this.color = color;
22 | }
23 |
24 | public abstract Double area();
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/Workspace/aula164_Exemplo_001/src/entities/enums/Color.java:
--------------------------------------------------------------------------------
1 | package entities.enums;
2 |
3 | public enum Color {
4 |
5 | BLACK,
6 | BLUE,
7 | RED;
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/Workspace/aula165_Exercicio_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula165_Exercicio_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula165_Exercicio_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula165_Exercicio_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula165_Exercicio_001/src/entities/TaxPayer.java:
--------------------------------------------------------------------------------
1 | package entities;
2 |
3 | public abstract class TaxPayer {
4 |
5 | private String name;
6 | private Double anualIncome;
7 |
8 | public TaxPayer() {
9 | }
10 |
11 | public TaxPayer(String name, Double anualIncome) {
12 | this.name = name;
13 | this.anualIncome = anualIncome;
14 | }
15 |
16 | public String getName() {
17 | return name;
18 | }
19 |
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 |
24 | public Double getAnualIncome() {
25 | return anualIncome;
26 | }
27 |
28 | public void setAnualIncome(Double anualIncome) {
29 | this.anualIncome = anualIncome;
30 | }
31 |
32 | public abstract Double tax();
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/Workspace/aula170_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula170_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula170_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula170_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula170_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.util.InputMismatchException;
4 | import java.util.Scanner;
5 |
6 | public class Program {
7 |
8 | public static void main(String[] args) {
9 |
10 | Scanner sc = new Scanner(System.in);
11 |
12 | try {
13 |
14 | String[] vect = sc.nextLine().split(" ");
15 | int position = sc.nextInt();
16 | System.out.println(vect[position]);
17 |
18 | } catch (ArrayIndexOutOfBoundsException e) {
19 | System.out.println("Invalid position!");
20 | } catch (InputMismatchException e) {
21 | System.out.println("Input error!");
22 | }
23 |
24 |
25 |
26 | System.out.println("End of program");
27 |
28 | sc.close();
29 |
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/Workspace/aula171_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula171_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula171_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula171_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula172_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula172_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula172_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula172_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula172_Exemplo_001/in.txt:
--------------------------------------------------------------------------------
1 | Good morning
2 | Good evening
--------------------------------------------------------------------------------
/Workspace/aula172_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.io.File;
4 | import java.io.IOException;
5 | import java.util.Scanner;
6 |
7 | public class Program {
8 |
9 | public static void main(String[] args) {
10 |
11 | File file = new File("in.txt");
12 | Scanner sc = null;
13 |
14 | try {
15 | sc = new Scanner(file);
16 | while (sc.hasNextLine()) {
17 | System.out.println(sc.nextLine());
18 | }
19 | } catch (IOException e) {
20 | System.out.println("Error opening file: " + e.getMessage());
21 | } finally {
22 | if (sc != null) {
23 | sc.close();
24 | }
25 | System.out.println("Finally block execute!");
26 | }
27 |
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/Workspace/aula174_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula174_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula174_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula174_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula175_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula175_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula175_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula176_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula176_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula176_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula176_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula175_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula176_Exemplo_001/src/model/exceptions/DomainException.java:
--------------------------------------------------------------------------------
1 | package model.exceptions;
2 |
3 | public class DomainException extends RuntimeException {
4 |
5 | private static final long serialVersionUID = 1L;
6 |
7 | public DomainException(String msg) {
8 | super(msg);
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/Workspace/aula177_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula177_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula177_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula177_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula177_Exemplo_001/src/model/exceptions/DomainException.java:
--------------------------------------------------------------------------------
1 | package model.exceptions;
2 |
3 | public class DomainException extends Exception {
4 |
5 | private static final long serialVersionUID = 1L;
6 |
7 | public DomainException(String msg) {
8 | super(msg);
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/Workspace/aula181_Chess_System/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula181_Chess_System/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula181_Chess_System/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula181_Chess_System
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula181_Chess_System/src/boardgame/BoardException.java:
--------------------------------------------------------------------------------
1 | package boardgame;
2 |
3 | public class BoardException extends RuntimeException {
4 |
5 | private static final long serialVersionUID = 1L;
6 |
7 | public BoardException(String msg) {
8 | super(msg);
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/Workspace/aula181_Chess_System/src/boardgame/Position.java:
--------------------------------------------------------------------------------
1 | package boardgame;
2 |
3 | public class Position {
4 |
5 | private int row;
6 | private int column;
7 |
8 | public Position(int row, int column) {
9 | this.row = row;
10 | this.column = column;
11 | }
12 |
13 | public int getRow() {
14 | return row;
15 | }
16 |
17 | public void setRow(int row) {
18 | this.row = row;
19 | }
20 |
21 | public int getColumn() {
22 | return column;
23 | }
24 |
25 | public void setColumn(int column) {
26 | this.column = column;
27 | }
28 |
29 | public void setValues(int row, int column) {
30 | this.row = row;
31 | this.column = column;
32 | }
33 |
34 | @Override
35 | public String toString() {
36 | return row + ", " + column;
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/Workspace/aula181_Chess_System/src/chess/ChessException.java:
--------------------------------------------------------------------------------
1 | package chess;
2 |
3 | import boardgame.BoardException;
4 |
5 | public class ChessException extends BoardException {
6 |
7 | private static final long serialVersionUID = 1L;
8 |
9 | public ChessException(String msg) {
10 | super(msg);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/Workspace/aula181_Chess_System/src/chess/Color.java:
--------------------------------------------------------------------------------
1 | package chess;
2 |
3 | public enum Color {
4 |
5 | BLACK,
6 | WHITE;
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/Workspace/aula214_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula214_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula214_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula214_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula214_Exemplo_001/in.txt:
--------------------------------------------------------------------------------
1 | Good Morning
2 | Good Afternoom
--------------------------------------------------------------------------------
/Workspace/aula214_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.io.File;
4 | import java.io.IOException;
5 | import java.util.Scanner;
6 |
7 | public class Program {
8 |
9 | public static void main(String[] args) {
10 |
11 | File file = new File("in.txt");
12 | Scanner sc = null;
13 |
14 | try {
15 | sc = new Scanner(file);
16 | while (sc.hasNextLine()) {
17 | System.out.println(sc.nextLine());
18 | }
19 | } catch (IOException e) {
20 | System.out.println("Error: " + e.getMessage());
21 | } finally {
22 | if (sc != null) {
23 | sc.close();
24 | }
25 | }
26 |
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/Workspace/aula215_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula215_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula215_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula215_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula215_Exemplo_001/in.txt:
--------------------------------------------------------------------------------
1 | Good morning
2 | Good afternoon
--------------------------------------------------------------------------------
/Workspace/aula216_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula216_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula216_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula216_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula216_Exemplo_001/in.txt:
--------------------------------------------------------------------------------
1 | Good Morning
2 | Good night
--------------------------------------------------------------------------------
/Workspace/aula216_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.io.BufferedReader;
4 | import java.io.FileReader;
5 | import java.io.IOException;
6 |
7 | public class Program {
8 |
9 | public static void main(String[] args) {
10 |
11 | try (BufferedReader br = new BufferedReader(new FileReader("in.txt"))) {
12 |
13 | String line = br.readLine();
14 |
15 | while (line != null) {
16 | System.out.println(line);
17 | line = br.readLine();
18 | }
19 |
20 | } catch (IOException e) {
21 | System.out.println("Error: " + e.getMessage());
22 | }
23 |
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/Workspace/aula217_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula217_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula217_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula217_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula217_Exemplo_001/out.txt:
--------------------------------------------------------------------------------
1 | Good morning
2 | Good afternoon
3 | Good night
4 |
--------------------------------------------------------------------------------
/Workspace/aula217_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.io.BufferedWriter;
4 | import java.io.FileWriter;
5 | import java.io.IOException;
6 |
7 | public class Program {
8 |
9 | public static void main(String[] args) {
10 |
11 | String[] lines = new String[] {"Good morning", "Good afternoon", "Good night"};
12 |
13 | String path = "out.txt";
14 |
15 | try (BufferedWriter bw = new BufferedWriter(new FileWriter(path))) {
16 |
17 | for (String line : lines) {
18 | bw.write(line);
19 | bw.newLine();
20 | }
21 |
22 | } catch (IOException e) {
23 | System.out.println("Error: " + e.getMessage());
24 | }
25 |
26 | }
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/Workspace/aula218_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula218_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula218_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula218_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula219_Exemplo_001/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Workspace/aula219_Exemplo_001/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/Workspace/aula219_Exemplo_001/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | aula219_Exemplo_001
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Workspace/aula219_Exemplo_001/in.txt:
--------------------------------------------------------------------------------
1 | Good morning
2 | Good afternoon
3 | Good night
--------------------------------------------------------------------------------
/Workspace/aula219_Exemplo_001/src/application/Program.java:
--------------------------------------------------------------------------------
1 | package application;
2 |
3 | import java.io.File;
4 | import java.util.Scanner;
5 |
6 | public class Program {
7 |
8 | public static void main(String[] args) {
9 |
10 | Scanner sc = new Scanner(System.in);
11 |
12 | System.out.print("Enter a file path: ");
13 | String strPath = sc.nextLine();
14 |
15 | File path = new File(strPath);
16 |
17 | System.out.println("getName: " + path.getName());
18 | System.out.println("getParent: " + path.getParent());
19 | System.out.println("getPath: " + path.getPath());
20 |
21 | sc.close();
22 |
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------