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.ArrayList; | |
import java.util.List; | |
public class Grupo { | |
private String nome; | |
private List<Pessoa> pessoas; | |
public Grupo() { | |
super(); | |
this.pessoas = new ArrayList<Pessoa>(); |
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 br.pro.antoniopassos.jsc; | |
import org.apache.commons.mail.EmailException; | |
import org.apache.commons.mail.SimpleEmail; | |
public class Carteiro { | |
private String hostName = "smtp.gmail.com"; | |
private String usuario = "fulano.tal"; // Seu login do Gmail | |
private String senha = "S3nh@"; // Sua senha do Gmail |
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 net.antoniopassos.appjogodeadivinhacao.dominio; | |
/** | |
* | |
* @author Antonio Passos | |
*/ | |
public class Jogador { | |
private String nome; |
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
function formataMoeda(objTextBox, SeparadorMilesimo, SeparadorDecimal, e){ | |
var sep = 0; | |
var key = ''; | |
var i = j = 0; | |
var len = len2 = 0; | |
var strCheck = '0123456789'; | |
var aux = aux2 = ''; | |
var whichCode = (window.addEventListener) ? e.which : e.keyCode; | |
// 13=enter, 8=backspace as demais retornam 0(zero) | |
// whichCode==0 faz com que seja possivel usar todas as teclas como delete, setas, etc |
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
DROP TABLE IF EXISTS Equipamento; | |
DROP TABLE IF EXISTS Professor; | |
DROP TABLE IF EXISTS Reserva; | |
CREATE TABLE EQUIPAMENTO | |
( | |
idequipamento BIGINT NOT NULL, | |
categoria tinyint NOT NULL, | |
descricao varchar(60) NOT NULL, | |
dataaquisicao date, |
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
DROP TABLE IF EXISTS Cliente; | |
DROP TABLE IF EXISTS Servico; | |
DROP TABLE IF EXISTS Reserva; | |
CREATE TABLE Cliente | |
( | |
IDCliente IDENTITY, | |
Nome VARCHAR(25) NOT NULL, | |
Sobrenome VARCHAR(25) NOT NULL, | |
Sexo TINYINT NOT NULL, |
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
DROP TABLE IF EXISTS pessoa; | |
DROP TABLE IF EXISTS email; | |
DROP TABLE IF EXISTS endereco; | |
DROP TABLE IF EXISTS telefone; | |
DROP TABLE IF EXISTS pessoafisica; | |
DROP TABLE IF EXISTS cliente; | |
DROP TABLE IF EXISTS funcionario; | |
DROP TABLE IF EXISTS pessoajuridica; | |
DROP TABLE IF EXISTS pedido; | |
DROP TABLE IF EXISTS item_pedido; |
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 Prog1Tools.IOTools; | |
import jeliot.io.*; | |
public class AppDemoJeliot { | |
public static void main(String args[]){ | |
System.out.print("Digite o valor do lado A: "); | |
int ladoA = Input.readInt(); | |
System.out.print("Digite o valor do lado B: "); | |
int ladoB = Input.readInt(); |