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
JScrollPane scrollPane2 = new JScrollPane(); | |
scrollPane2.setViewportBorder(null); | |
scrollPane2.setBounds(356, 76, 320, 109); | |
painelEstoque.add(scrollPane2); | |
ultimasSaidasModel = new DefaultTableModel(5,4); | |
tblUltimasSaidas= new JTable(); | |
tblUltimasSaidas.setModel(ultimasSaidasModel); | |
scrollPane2.setViewportView(tblUltimasSaidas); | |
add(tab); |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/** | |
* | |
* @author Carlos | |
*/ | |
interface Controle { |
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
/* | |
* Interface Estorno | |
* | |
*/ | |
/** | |
* | |
* @author Carlos | |
*/ | |
public interface Estorno { |
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
--Exercício 6 | |
-- a | |
select eqp_modelo as "Modelo", fab_nome as "Nome do fabricante" | |
from equipamento | |
inner join fabricante on equipamento.cod_fabricante = fabricante.cod_fabricante | |
-- b | |
select sof_nome as "Software da marca Microsoft" | |
from software | |
inner join fabricante on software.cod_fabricante =fabricante.cod_fabricante |
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
import java.util.Scanner; | |
public class codificador{ | |
public static void main(String[] args){ | |
Scanner entrada = new Scanner(System.in); | |
System.out.println("Digite a palavra ser codificada:"); | |
String palavra = entrada.next(); | |
int[] palavraChar = new int[palavra.length()]; |
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
/** | |
* @author Carlos Eduardo Saraiva | |
*/ | |
import java.io.IOException; | |
import java.util.Scanner; | |
public class Carlos { | |
public static int top = -1; |
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
/** | |
* Esse método serve para calcular a idade, de maneira um tanto 'desastrada' mas que funcionou nos testes. | |
* É bem possível que ha maneira de lidar direto com datas no java, mas a graça é | |
* poder subtratir as strings. O método para tal é o 'substring', | |
* com os parametros no formato (x,y), x aonde vc quer comece a procura na sua string e y o ponto de chegada. | |
* Usei o parseInt, para de uma vez só já converter para um integer, ou inteiro. | |
* A lógica para determinar a idade não somente pelo ano, mas considerando data e mês, | |
* é pensar que se a data atual for menor que a data de nascimento ou o mês de nascimento | |
* for menor que o mês atual, descresce -1 da variável idade. No exercício diz que o método | |
* NÂO tem valor de entrada, talvez //porque exija que se recupere a data do sistema... |
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
--Script criação e população "Controle de biblioteca" | |
--Oracle 10g | |
ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS'; | |
SELECT SESSIONTIMEZONE, CURRENT_TIMESTAMP FROM DUAL; | |
-- Tabela Origem do Exemplar | |
DROP TABLE origem_exemplar CASCADE CONSTRAINTS; | |
CREATE TABLE origem_exemplar | |
( |
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
/*2 - Gerar um vetor com 100 números de 0 a 99. Pedir para o usuário digitar 3 números. | |
Verificar quantos pontos o usuário fez, sendo que toda vez que um dos números aparece ele conta um ponto.*/ | |
import java.util.*; | |
public class HomeWork02 { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { |
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
/*Autor: Carlos Eduardo Saraiva. | |
/*1 - Gerar um vetor com 10 números de 0 a 99. Pedir para o usuário digitar um número no intervalo definido (validar) | |
e verificar se o número aparece no vetor.Em caso afirmativo, verificar quantas vezes e em quais posições ele aparece. | |
*/ | |
import java.util.*; | |
public class HomeWork01 { | |
/** |