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 static org.junit.Assert.*; | |
import org.junit.Test; | |
public class FilaTest { | |
@Test | |
public void fifo() { | |
Fila fila = new Fila(); |
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 fila; | |
public class Fila { | |
private Object[] itens = new Object[5]; | |
private int inicio = 0; // desenfileirar | |
private int fim = 0; // enfileirar | |
private int tamanho = 0; | |
public void enfileirar(Object o) { |
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 static org.junit.Assert.assertEquals; | |
import org.junit.Test; | |
public class PilhaTest { | |
@Test | |
public void lifo() { | |
Pilha pilha = new Pilha(); | |
pilha.empilhar("a"); |
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.Arrays; | |
public class Aula1 { | |
static int [ ] items = {12, 3, 43, 55, 25, 1, 6, 2}; | |
public static void main(String[] args) { | |
Aula1 aula1 = new Aula1(); | |
System.out.println(aula1.maiorInteiro(items)); | |
System.out.println(aula1.maiorInteiroForeach(items)); | |
System.out.println(aula1.menorInteiro(items)); |
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 String extrato() { | |
double valorTotal = 0.0; | |
int pontosDeAlugadorFrequente = 0; | |
String resultado = "Registro de Alugueis de " + getNome(); | |
for (Aluguel cada : fitasAlugadas) { | |
double valorCorrente = 0.0; | |
switch (cada.getFita().getCodigoDePreço()) { | |
case normal: | |
valorCorrente += 2; | |
if (cada.getDiasAlugada() > 2) |
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.ufpb.dcx.poo.crud; | |
import static com.jayway.restassured.RestAssured.*; | |
import static org.hamcrest.Matchers.*; | |
import static com.jayway.restassured.module.jsv.JsonSchemaValidator.*; | |
import org.junit.Test; | |
public class TesteEndpointCliente { | |
private static final String SERVIDOR = "http://localhost:8081"; |
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 AppBanco { | |
public static void main(String[] args) { | |
ContaBancaria a = new ContaBancaria("a", 1000); | |
ContaBancaria b = new ContaBancaria("b", 500); | |
LogicaBanco logica = new LogicaBanco(); | |
Thread transferir = new Thread(new Transferencia(logica, a, b, 700)); | |
Thread sacar = new Thread(new Saque(logica, a, 500)); |
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 Produto { | |
private int id; | |
private String descricao; | |
private double preco; | |
public Produto() { } | |
public Produto(int id, String descricao, double preco) { | |
this.id = id; |
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.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import org.junit.BeforeClass; | |
import org.junit.Ignore; |
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
Login | Task | Tech | Pair | Tries | Date | Time | LOC | Coverage | Compl | |
---|---|---|---|---|---|---|---|---|---|---|
Team 01 | T 1.01 | OO | PAIR | R2 | D 41838 | 106 | 20 | 100 | 100 | |
Team 01 | T 1.02 | OO | PAIR | R2 | D 41838 | 111 | 31 | 73 | 100 | |
Team 01 | T 1.03 | OO | PAIR | R1 | D 41837 | 30 | 11 | 88 | 100 | |
Team 01 | T 1.04 | OO | PAIR | R1 | D 41837 | 30 | 16 | 91 | 120 | |
Team 01 | T 1.05 | OO | PAIR | R1 | D 41837 | 20 | 13 | 88 | 141 | |
Team 01 | T 1.06 | OO | PAIR | R1 | D 41841 | 48 | 13 | 93 | 133 | |
Team 01 | T 1.07 | OO | PAIR | R1 | D 41841 | 10 | 2 | 93 | 133 | |
Team 01 | T 1.08 | OO | PAIR | R1 | D 41841 | 2 | 2 | 93 | 133 | |
Team 01 | T 1.09 | OO | PAIR | R1 | D 41841 | 17 | 18 | 95 | 121 |