diff --git a/README.md b/README.md index a652b69..2f7f4e7 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,15 @@ - `git log` Tras todos os commits com todas as modificações - `git log --oneline` Faz o mesmo só que traz o resultado mais enchuto - `git log` --oneline -n 2 (retorna os ultimos dois commits apenas) -- `gt push origin main': Envia seus commits do repositório local para o remoto (branch `main`), -- `git pull origin main :` Baixa os commits do do remoto para o local' +- git push origin main: Envia seus commits do repostitório local para o remoto (branch main). +-git pull origin main +- +- `git rebase -i HEAD~1` +- pull request normal e pelo git hub +- criar branch +- git commit -am +- git checkout cor_01; +- git checkout main +- git checkout -b cor_02 + + diff --git a/TabuadaInteiro.java b/TabuadaInteiro.java new file mode 100644 index 0000000..6990c88 --- /dev/null +++ b/TabuadaInteiro.java @@ -0,0 +1,26 @@ +import java.util.Scanner; + +public class TabuadaInteiro { + public static void main(String[] args) { + + Scanner sc = new Scanner(System.in); + + System.out.println("Infome um número inteiro qualquer"); + int numero = sc.nextInt(); + if (numero < 0 || numero == 0) { + + System.out.println("Informe um número inteiro positivo."); + + } else { + + for (int i = 1; i < 11; i++) { + + System.out.printf("%d x %d = %d\n", numero, i, numero * i); + + } + } + + sc.close(); + + } +} \ No newline at end of file diff --git a/script.sql b/script.sql new file mode 100644 index 0000000..123ac98 --- /dev/null +++ b/script.sql @@ -0,0 +1,16 @@ +create database treina_recife; + +create table tb_alunos ( + id int auto_increment primary key, + nome varchar(50) not null, + email varchar(150) not null, + dataNascimento datetime not null + +); + +insert into treina_recife.tb_alunos ('id', 'nome', 'email', 'data_nascimento') +values (1, "Alexandre de Souza Jr.", "alexandre@treinarecife.com.br", timestamp '1995-07-28'); + +delete from treina_recife.tb_alunos where id = 1; + +drop table treina_recife.tb_alunos; \ No newline at end of file