Skip to content

Commit 7851fa4

Browse files
committed
+
1 parent b7763eb commit 7851fa4

5 files changed

Lines changed: 18 additions & 4 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
4+
126,137,140,146,156,166,181,187
55

66

77

‎Tutorial/feitosT/t182/Tut001.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ public static void main(String[] args) {
1010
String s1 = "aladim";
1111
String s2 = "mel";
1212
String s3 = "Aladim";
13+
String s4 = "aladim";
1314

1415
System.out.println(s1.hashCode());
1516
System.out.println(s2.hashCode());
1617
System.out.println(s3.hashCode());
18+
System.out.println(s4.hashCode());
1719
System.out.println( (s1.hashCode()) == (s2.hashCode()) );
1820
System.out.println( (s1.hashCode()) == (s3.hashCode()) );
1921

@@ -35,6 +37,7 @@ public static void main(String[] args) {
3537
-1415210190
3638
107988
3739
1963624274
40+
-1415210190
3841
false
3942
false
4043
--------------------------

‎Tutorial/feitosT/t183/Tut001.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public static void main(String[] args) {
99
// primeira ocorrencia
1010

1111
String s1 = "bacana planeta terra.";
12+
1213
System.out.println(s1.indexOf("planeta"));
1314
System.out.println(s1.indexOf("p"));
1415

‎Tutorial/feitosT/t184/Tut001.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ public static void main(String[] args) {
99
// primeira ocorrencia
1010

1111
String s1 = "bacana planeta terra.";
12+
1213
System.out.println(s1.indexOf("planeta"));
1314
System.out.println(s1.indexOf("n", 5)); // encontrar n iniciando no indice 5
14-
15-
15+
1616
System.out.println("--------------------------");
1717

1818
// Your code here

‎Tutorial/src/programa/Tut001.java‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@ public class Tut001 {
66
public static void main(String[] args) {
77
long startTime = System.nanoTime();
88

9-
9+
String s1 = "aladim";
10+
String s2 = "mel";
11+
String s3 = "Aladim";
12+
String s4 = "aladim";
13+
14+
System.out.println(s1.hashCode());
15+
System.out.println(s2.hashCode());
16+
System.out.println(s3.hashCode());
17+
System.out.println(s4.hashCode());
18+
System.out.println( (s1.hashCode()) == (s2.hashCode()) );
19+
System.out.println( (s1.hashCode()) == (s3.hashCode()) );
1020

1121

1222

0 commit comments

Comments
 (0)