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
;annotation syntax | |
(import [java.lang.annotation Retention RetentionPolicy Target ElementType] | |
[javax.xml.ws WebServiceRef WebServiceRefs]) | |
(definterface Foo (foo [])) | |
;annotation on type | |
(deftype ^{Deprecated true | |
Retention RetentionPolicy/RUNTIME | |
javax.annotation.processing.SupportedOptions ["foo" "bar" "baz"] |
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
Para a resposta, basta apresentar a expressão regular utilizada e o parâmetro, caso seja utilizado, | |
1. Dada uma lista de CEPs válidos, escreva uma expressão regular que funcione com todos os itens: | |
04567003 | |
04567-003 | |
04.567-003 | |
04.567.003 | |
04 567 003 | |
04567 003 | |
04567.003 |
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
(defn border [x] | |
(cond (= (meta x) nil) "nao autorizado" | |
(= ((meta x) :type) "valinor") x | |
:default "lixo")) | |
;Associar um meta a sua função de validação | |
;teste | |
(def x (with-meta [1 2 3 4] {:type "valinor"})) |
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.sql.*; | |
public class SqliteSample { | |
private Connection conn; | |
private boolean inserting; | |
public void openDB() throws ClassNotFoundException { | |
Class.forName("org.sqlite.JDBC"); | |
try { |