Skip to content

Commit e45d818

Browse files
authored
Merge pull request rage#199 from 2kofawsome/typos-grammar
Typos and Grammar Corrections
2 parents b941e36 + f2149dd commit e45d818

32 files changed

+73
-52
lines changed

data/part-1/1-starting-programming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Getting started with programming"
44
hidden: false
55
---
66

7-
<text-box variant='learningObjectives' name='Learning objectives'>
7+
<text-box variant='learningObjectives' name='Learning Objectives'>
88

99
<!-- - Tutustut kurssilla käytettyyn NetBeans with TMC -ohjelmointiympäristöön. -->
1010

data/part-1/3-reading-input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: 'Reading input'
44
hidden: false
55
---
66

7-
<text-box variant='learningObjectives' name='Learning objectives'>
7+
<text-box variant='learningObjectives' name='Learning Objectives'>
88

99

1010
<!-- - Opit kirjoittamaan ohjelman, joka lukee käyttäjän kirjoittamaa tekstiä. -->

data/part-1/4-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: "Variables"
66
hidden: false
77
---
88

9-
<text-box variant='learningObjectives' name='Learning objectives'>
9+
<text-box variant='learningObjectives' name='Learning Objectives'>
1010

1111
<!-- - Tunnet käsitteen muuttuja. Tiedät mitä ovat muuttujan tyyppi, muuttujan nimi, ja muuttujan arvo.
1212
- Osaat luoda ja käsitellä merkkijono-, kokonaisluku-, liukuluku-, ja totuusarvomuuttujia. -->

data/part-1/5-calculating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: "Calculating with numbers"
55
hidden: false
66
---
77

8-
<text-box variant='learningObjectives' name='Learning objectives'>
8+
<text-box variant='learningObjectives' name='Learning Objectives'>
99

1010
<!-- - Osaat tehdä laskutoimintoja muuttujien avulla. -->
1111

data/part-1/6-conditional-statements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: "Conditional statements and conditional operation"
66
hidden: false
77
---
88

9-
<text-box variant='learningObjectives' name='Learning objectives'>
9+
<text-box variant='learningObjectives' name='Learning Objectives'>
1010

1111
<!-- - Tunnet käsitteen ehtolause ja osaat luoda ohjelmaan vaihtoehtoista toimintaa ehtolauseen avulla. -->
1212
<!-- - Tunnet ehtolauseissa tyypillisesti käytettävät vertailuoperaattorit ja loogiset operaatiot. -->

data/part-10/2-interface-comparable.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Kerholaisten järjestäminen on nyt suoraviivaista. -->
132132

133133
Since the Member class implements the Comparable interface, it is possible to sort the list by using the `sorted` method. In fact, objects of any class that implement the `Comparable` interface can be sorted using the `sorted` method. Be aware, however, that a stream does not sort the original list - *only the items in the stream are sorted*.
134134

135-
If a programmer wants to organize the original list, the `sort` method of the` Collections` class should be used. This, of course, assumes that the objects on the list implement the `Comparable` interface.
135+
If a programmer wants to organize the original list, the `sort` method of the `Collections` class should be used. This, of course, assumes that the objects on the list implement the `Comparable` interface.
136136

137137
Sorting club members is straightforward now.
138138

@@ -210,11 +210,11 @@ You are provided with the class Human. A human has a name and wage information.
210210

211211
<!-- Saat valmiin luokan Opiskelija. Opiskelijalla on nimi. Toteuta Opiskelija-luokassa `Comparable`-rajapinta siten, että `compareTo`-metodi lajittelee opiskelijat nimen mukaan aakkosjärjestykseen. -->
212212

213-
The exercise template includes the class Student, which has a name. Implement the `Comparable` interface in the Student class in a way, such that the `compareTo` method sorts the students in alphabetical order based on their names.
213+
The exercise template includes the class `Student`, which has a name. Implement the `Comparable` interface in the Student class in a way, such that the `compareTo` method sorts the students in alphabetical order based on their names.
214214

215215
<!-- **Vinkki:** Opiskelijan nimi on String, ja String-luokka on itsessään `Comparable`. Voit hyödyntää String-luokan `compareTo`-metodia Opiskelija-luokan metodia toteuttaessasi. `String.compareTo` kohtelee kirjaimia eriarvoisesti kirjainkoon mukaan, ja tätä varten String-luokalla on myös metodi `compareToIgnoreCase` joka nimensä mukaisesti jättää kirjainkoon huomioimatta. Voit käyttää opiskelijoiden järjestämiseen kumpaa näistä haluat. -->
216216

217-
**Hint:** The name of the Student is a String, which implements `Comparable` itself. You may use its `compareTo` method when implementing the method for the `Student` class. Note that `String.compareTo()` also treats letters according to their size, while the `compareToIgnoreCase` method of the same class ignores the capitalization completely. You may use either of these methods in the exercise.
217+
The name of the `Student` is a String, which implements `Comparable` itself. You may use its `compareTo` method when implementing the method for the `Student` class. Note that `String.compareTo()` also treats letters according to their size, while the `compareToIgnoreCase` method of the same class ignores the capitalization completely. You may either of these methods in the exercise.
218218

219219
</programming-exercise>
220220

data/part-10/3-other-useful-techniques.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,8 +1189,8 @@ Make a class `Person`. The Person constructor takes a name and the education as
11891189
<!-- System.out.println(vilma); -->
11901190
<!-- ``` -->
11911191
```java
1192-
Person anna = new Person("Anna", Education.PHD)
1193-
System.out.println(anna)
1192+
Person anna = new Person("Anna", Education.PHD);
1193+
System.out.println(anna);
11941194
```
11951195
<sample-output>
11961196

@@ -1208,10 +1208,13 @@ Make a class `Employees`. Employees -object contains a list of Person -objects.
12081208

12091209
<!-- - `public void add(Person lisattava)` lisää parametrina olevan henkilön työntekijäksi -->
12101210
- `public void add(Person personToAdd)` adds the given person to the employees list
1211+
12111212
<!-- - `public void add(List<Person> lisattavat)` lisää parametrina olevan listan henkilöitä työntekijöiksi -->
12121213
- `public void add(List<Person> peopleToAdd)` adds the given list of people to the employees list
1214+
12131215
<!-- - `public void print()` printa kaikki työntekijät -->
12141216
- `public void print()` prints all employees
1217+
12151218
<!-- - `public void print(Education koulutus)` printa työntekijät joiden koulutus on sama kuin parametrissa määritelty koulutus -->
12161219
- `public void print(Education education)` prints the employees whose education matches the education given as a parameter.
12171220

data/part-11/1-class-diagrams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hidden: false
55
---
66

77

8-
<text-box variant='learningObjectives' name='Learning objectives'>
8+
<text-box variant='learningObjectives' name='Learning Objectives'>
99

1010
<!-- - Tunnet luokkakaavioiden merkintätavan ja osaat merkitä luokkakaavioon luokat, attribuutit, konstruktorit, ja metodit. -->
1111
<!-- - Tunnet luokkien väliset yhteydet ja osaat merkitä luokkakaavioon perinnän sekä rajapinnan toteutuksen. -->
@@ -446,7 +446,7 @@ Class diagrams are an excellent way to describe a problem and a problem-domain t
446446

447447

448448
<!-- Luokkakaavioita piirretään ohjelman suunnitteluvaiheessa usein esimerkiksi valkotaulua tai isompaa paperiarkkia käyttäen. Luokkakaaviot kannattaa ajatella poisheitettävinä tuotoksina, jotka auttavat ohjelman rakennuksessa. Kaavion piirtämiseen -- eli tyylin oikeellisuuteen ja yksityiskohtiin -- ei kannata käyttää liian pitkään aikaa. Vastaavasti kaavio kannattaa piirtää sopivalla abstraktiotasolla. Esimerkiksi kymmeniä luokkia sisältävään luokkakaavioon ei kannata merkitä jokaisen luokan jokaista metodia ja muuttujaa: oleellista on, että kaaviosta saa luotua nopean yleiskuvan. -->
449-
Often a class diagram is drawn on a whiteboard or a large sheet of paper during the design phase. Class diagrams should be though of as helpful tools to build a program, which can be thrown away afterwards. You should not use too much energy to think about the correctness and details of the modeling language.
449+
Often a class diagram is drawn on a whiteboard or a large sheet of paper during the design phase. Class diagrams should be thought of as helpful tools to build a program, which can be thrown away afterwards. You should not use too much energy to think about the correctness and details of the modeling language.
450450
Class diagrams should also be drawn in a suitable level of abstraction. For example, if you have tens of classes, it might not be worth describing each attribute and each method of each class; getting a good overview of the program structure is the most important.
451451

452452

data/part-11/2-packages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ hidden: false
1212
1313
</text-box> -->
1414

15-
<text-box variant='learningObjectives' name='Learning objectives'>
15+
<text-box variant='learningObjectives' name='Learning Objectives'>
1616

1717
- You know what packages are and can place classes in them
1818

@@ -663,7 +663,7 @@ The package structure of the program could look like the following (for example)
663663

664664
<!-- - `lentokentta.domain` - sisältää aihealueen käsitteitä kuvaavat luokat `Lentokone`, `Lento`, ja `Paikka`. -->
665665

666-
- `flightControl.domain` - includes the classes that represent concepts of the probelm domain: `Airplane`, `Flight`, and `Place`
666+
- `flightControl.domain` - includes the classes that represent concepts of the problem domain: `Airplane`, `Flight`, and `Place`
667667

668668
<!-- - `lentokentta.logiikka` - sisältää toiminnallisuuden, jonka avulla sovellusta hallinnoidaan -->
669669

data/part-11/3-exceptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hidden: false
66

77

88

9-
<text-box variant='learningObjectives' name='Oppimistavoitteet'>
9+
<text-box variant='learningObjectives' name='Learning Objectives'>
1010

1111
<!-- - Tiedät mitä poikkeukset ovat ja osaat varautua poikkeuksiin. -->
1212
<!-- - Osaat heittää poikkeuksia. -->

0 commit comments

Comments
 (0)