Skip to content

Commit 584d55b

Browse files
authored
Merge pull request #219 from habibasorour/typos_chapter3
Issue 218 fixed: typos in chapter 3
2 parents b9a4cca + 553c5ac commit 584d55b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

source/ch3_javadatatypes.ptx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787

8888
</ul>
8989

90-
A data type fundamentally defines a set of values and the operations you can perform on them. For instance, you can do math with int and double values, but not with boolean values. This is simlar to Python, where you can perform arithmetic on integers and floats, but not on booleans or strings.
90+
A data type fundamentally defines a set of values and the operations you can perform on them. For instance, you can do math with int and double values, but not with boolean values. This is similar to Python, where you can perform arithmetic on integers and floats, but not on booleans or strings.
9191
</p>
9292

9393
<p>
@@ -448,7 +448,7 @@ def main():
448448
count[int(line)] = count[int(line)] + 1
449449
idx = 0
450450
for num in count:
451-
print(idx, " occured ", num, " times.")
451+
print(idx, " occurred ", num, " times.")
452452
idx += 1
453453
main()
454454
</code> <tests> </tests>
@@ -565,7 +565,7 @@ public class Histo {
565565
}
566566
idx = 0;
567567
for(Integer i : count) {
568-
System.out.println(idx + " occured " + i + " times.");
568+
System.out.println(idx + " occurred " + i + " times.");
569569
idx++;
570570
}
571571
}
@@ -691,7 +691,7 @@ public class HistoArray {
691691
}
692692
idx = 0;
693693
for(Integer i : count) {
694-
System.out.println(idx + " occured " + i + " times.");
694+
System.out.println(idx + " occurred " + i + " times.");
695695
idx++;
696696
}
697697
}
@@ -795,7 +795,7 @@ public class HistoMap {
795795
count.put(word,++wordCount);
796796
}
797797
for(String i : count.keySet()) {
798-
System.out.printf("%-20s occured %5d times\n", i, count.get(i) );
798+
System.out.printf("%-20s occurred %5d times\n", i, count.get(i) );
799799
}
800800
}
801801
}

0 commit comments

Comments
 (0)