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
| import java.util.Scanner; | |
| import java.util.Vector; | |
| public class ProgramaPrincipal { | |
| public static void main(String[] args) { | |
| Scanner entrada = new Scanner(System.in); | |
| ContaCorrente contaDoCliente; | |
| contaDoCliente = new ContaCorrente(); |
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 ContaCorrente { | |
| String nome; | |
| String numeroDaConta; | |
| String numeroDaAgencia; | |
| double saldo; | |
| } |
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
| import java.util.ArrayList; | |
| public class Array { | |
| public static void main(String[] args){ | |
| ArrayList<String> cores = new ArrayList<String>(); | |
| cores.add("Branco"); | |
| cores.add("Vermelho"); |
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
| import java.util.Random; | |
| public class ArrayMultidimensional { | |
| public static void main(String[] args){ | |
| /*String[] uma = {"Ricardo", "Sandra"}; | |
| String[][] duas = | |
| { |
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
| for(int i = 0; i < matriz.length;i++){ | |
| for (int j = 0;j< matriz.length;j++){ | |
| System.out.print(matriz[i][j] + " "); | |
| } | |
| System.out.println(""); | |
| } |
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
| import java.util.Vector; | |
| public class QuebraLinha { | |
| public static Object[] quebrar(String frase, int colunas) { | |
| Vector frasesQuebradas = new Vector(); | |
| String[] palavras = frase.split(" "); | |
| int quantidadeDePalavras = palavras.length; |
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
| import java.util.Scanner; | |
| /** | |
| * Caclcular o IMC | |
| * IMC = pesoEmQuilogramas / (alturaEmMetros * alturaEmMetros) | |
| * @author Patrick Menezes | |
| * | |
| */ | |
| public class IMC { |
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
| import java.util.Random; | |
| import java.util.Scanner; | |
| public class JogoDados { | |
| public static void main(String[] args){ | |
| Scanner scanner = 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
| import java.util.Scanner; | |
| import sun.tools.jar.Main; | |
| public class Ciclista { | |
| public static void main(String [] args) throws CiclistaException { | |
| Scanner scanner = new Scanner(System.in); | |
NewerOlder