- "13.0.0.0.0", This Town Needs Guns
- "Scorn", Primitive Man
- "Pelos Trópicos", Andreia Dias
- "True North", Bad Religion
- "This World is Dead", Blockheads
- "That Day Last November", Our Ceasing Voice
- "Target Earth", Voivod
This file contains 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 exercicio06; | |
public class TV { | |
public static final int PRIMEIRO_CANAL = 1; | |
public static final int ULTIMO_CANAL = 60; | |
private boolean ligada; | |
private int canal; | |
private int volume; | |
This file contains 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 exercicio06; | |
public class TV { | |
public static final int PRIMEIRO_CANAL = 1; | |
public static final int ULTIMO_CANAL = 60; | |
private boolean ligada; | |
private int canal; | |
private int volume; | |
This file contains 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 exercicio01; | |
public class Bola { | |
private String cor; | |
public Bola(String cor) { | |
this.cor = cor; | |
} | |
public String getCor() { |
This file contains 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
class Bola | |
def initialize(cor) | |
@cor = cor | |
end | |
attr_accessor :cor | |
end |
This file contains 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
class Carrinho | |
def initialize | |
@itens = [] | |
end | |
def incluir(produto) | |
@itens << ItemCarrinho.new(produto) | |
end | |
def remover(produto) |
This file contains 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 figura; | |
public class Circulo extends Figura { | |
private double raio; | |
public Circulo(double raio) { | |
this.raio = raio; | |
} |
This file contains 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
class Conta | |
def initialize(nome_correntista, numero) | |
@nome_correntista, @numero = nome_correntista, numero | |
@saldo = 0 | |
end | |
attr_reader :saldo, :nome_correntista, :numero | |
def depositar(valor) | |
@saldo += valor |
Implemente todos os exercícios abaixo em Java e Ruby (exceto quando indicada preferência por uma linguagem específica). Evitem copiar a implementação de uma linguagem para outra; pensem nas possibilidades de cada linguagem.
Todos os exercícios devem ser implementados com testes automatizados, de preferência com TDD.
This file contains 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
--format nested | |
--color |