This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package exercicícios; | |
| import java.util.Scanner; | |
| public class Exercício01 { | |
| public static void main(String[] args) { | |
| Scanner abre = new Scanner(System.in); | |
| int n1, n2, soma; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package exercicícios; | |
| import java.util.Scanner; | |
| public class Exercício02 { | |
| public static void main(String[] args) { | |
| Scanner abre = new Scanner(System.in); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package exercicícios; | |
| import java.util.Scanner; | |
| public class Exercício03 { | |
| public static void main(String[] args) { | |
| Scanner abre = new Scanner(System.in); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package exercicícios; | |
| import java.util.Scanner; | |
| public class Exercício04 { | |
| public static void main(String[] args) { | |
| Scanner abre = new Scanner(System.in); | |
| double n1, n2, n3, media; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package exercicícios; | |
| import java.util.Scanner; | |
| public class Exercício05 { | |
| public static void main(String[] args) { | |
| Scanner abre = new Scanner(System.in); | |
| double km, consumo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package br.unipe.java.unidade1; | |
| public class Carro { | |
| private String motor; | |
| private String cor; | |
| private float potencia; | |
| private int rodas; | |
| private int velocidade; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package Cadastro; | |
| import java.util.Scanner; | |
| public class Produto { | |
| private String id; | |
| private String nome; | |
| private String tipo; | |
| private String marca; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package conta; | |
| import javax.swing.JOptionPane; | |
| public class Conta { | |
| private String numeroConta; | |
| private String saldo; | |
| private String saque; | |
| private String nome; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package trabalho.java; | |
| public class Vendedor { | |
| public String nome; | |
| public String codigo; | |
| public double comissao; | |
| public String endereco; | |
| public Vendedor(String nome, String codigo, String endereco) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ContratoResidencial extends Cliente { | |
| private Cliente cliente; | |
| private String end; | |
| private double valorImovel; | |
| private int zona; | |
| private int tipo; | |
| public Cliente getCliente() { | |
| return cliente; |
OlderNewer