Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


26 changes: 26 additions & 0 deletions TabuadaInteiro.java
Original file line number Diff line number Diff line change
@@ -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();

}
}
16 changes: 16 additions & 0 deletions script.sql
Original file line number Diff line number Diff line change
@@ -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;