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
'use strict'; | |
const http = require('http'); | |
const url = 'http://dabsistemas.saude.gov.br/sistemas/sadab/js/buscar_cpf_dbpessoa.json.php?cpf='; | |
function request(url){ | |
return new Promise((resolve, reject)=>{ | |
http.get(url+cpf, (res)=>{ | |
let statusCode = res.statusCode; | |
let error = undefined; | |
let body = ''; |
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 javax.imageio.*; | |
import java.awt.image.*; | |
import java.io.*; | |
import javax.swing.*; | |
import java.util.*; | |
import java.awt.*; | |
public class TrabalhoProcessamento { | |
public static void main (String[] args) { | |
/* Cria a janela e define a a��o ao clicar no bot�o de fechar e seu |