|
87 | 87 |
|
88 | 88 | </ul> |
89 | 89 |
|
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. |
91 | 91 | </p> |
92 | 92 |
|
93 | 93 | <p> |
@@ -448,7 +448,7 @@ def main(): |
448 | 448 | count[int(line)] = count[int(line)] + 1 |
449 | 449 | idx = 0 |
450 | 450 | for num in count: |
451 | | - print(idx, " occured ", num, " times.") |
| 451 | + print(idx, " occurred ", num, " times.") |
452 | 452 | idx += 1 |
453 | 453 | main() |
454 | 454 | </code> <tests> </tests> |
@@ -565,7 +565,7 @@ public class Histo { |
565 | 565 | } |
566 | 566 | idx = 0; |
567 | 567 | for(Integer i : count) { |
568 | | - System.out.println(idx + " occured " + i + " times."); |
| 568 | + System.out.println(idx + " occurred " + i + " times."); |
569 | 569 | idx++; |
570 | 570 | } |
571 | 571 | } |
@@ -691,7 +691,7 @@ public class HistoArray { |
691 | 691 | } |
692 | 692 | idx = 0; |
693 | 693 | for(Integer i : count) { |
694 | | - System.out.println(idx + " occured " + i + " times."); |
| 694 | + System.out.println(idx + " occurred " + i + " times."); |
695 | 695 | idx++; |
696 | 696 | } |
697 | 697 | } |
@@ -795,7 +795,7 @@ public class HistoMap { |
795 | 795 | count.put(word,++wordCount); |
796 | 796 | } |
797 | 797 | 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) ); |
799 | 799 | } |
800 | 800 | } |
801 | 801 | } |
|
0 commit comments