Skip to content

Commit 81124fd

Browse files
committed
+
1 parent b76dd27 commit 81124fd

7 files changed

Lines changed: 16 additions & 10 deletions

File tree

‎Tutorial/feitosT/papel.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
papel:
33
15,31,39,44,59,73,75,90,97,103,114,117,
4-
126,137,140,146,156,166,181,187,197,209,218,224,237
4+
126,137,140,146,156,166,181,187,197,209,218,224,242
55

66

77

‎Tutorial/feitosT/t237/Tut001.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ public static void main(String[] args) {
1111
// ArrayList metodos
1212
//
1313
ArrayList<Integer> numeros = new ArrayList<>(List.of(3,4,5,6,7));
14+
1415
ArrayList<Integer> remover = new ArrayList<>(List.of(5,6));
1516

1617
System.out.println(numeros);
1718

1819
numeros.removeAll(remover);
19-
20+
2021
System.out.println(numeros);
2122

2223

‎Tutorial/feitosT/t238/Tut001.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ public static void main(String[] args) {
1212
// ArrayList metodos
1313
//
1414
ArrayList<Integer> numeros = new ArrayList<>(List.of(3,4,5,6,7));
15-
16-
15+
1716
System.out.println(numeros);
1817

1918
numeros.removeIf( cada -> cada % 2 == 1 );
2019

2120
System.out.println(numeros);
22-
2321

2422
System.out.println("--------------------------");
2523

‎Tutorial/feitosT/t239/Tut001.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ public static void main(String[] args) {
1212
//
1313
ArrayList<Integer> numeros = new ArrayList<>(List.of(3,4,5,6,7));
1414

15-
1615
System.out.println(numeros);
1716

1817
numeros.replaceAll( cada -> cada + 1 );
1918

2019
System.out.println(numeros);
2120

22-
2321
System.out.println("--------------------------");
2422

2523
// Your code here

‎Tutorial/feitosT/t240/Tut001.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public static void main(String[] args) {
2121

2222
System.out.println(numeros1);
2323

24-
2524
System.out.println("--------------------------");
2625

2726
// Your code here

‎Tutorial/feitosT/t241/Tut001.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public static void main(String[] args) {
1616
List<Integer> a = Arrays.asList(1, 2, 3, 4, 5, 6);
1717
List<Integer> b = Arrays.asList(3, 4, 7, 8);
1818

19-
2019
System.out.println(a.getClass().getSimpleName());
2120
System.out.println(b.getClass().getSimpleName());
2221

‎Tutorial/src/programa/Tut001.java‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
package programa;
22

3+
import java.util.ArrayList;
4+
import java.util.List;
5+
36
public class Tut001 {
47

58

69
public static void main(String[] args) {
710
long startTime = System.nanoTime();
811

912

10-
13+
ArrayList<Integer> numeros1 = new ArrayList<>(List.of(3,4,5,6,7));
14+
15+
ArrayList<Integer> numeros2 = new ArrayList<>(List.of(2,4,5,8,9));
16+
17+
ArrayList<Integer> comum = new ArrayList<Integer>(numeros1.retainAll(numeros2));
18+
19+
20+
21+
1122

1223
System.out.println("--------------------------");
1324

0 commit comments

Comments
 (0)