Skip to content

Commit 2ba80de

Browse files
authored
Merge pull request rage#55 from zysktomasz/fix-part-2-4-printPhrase-method-name
Part 2.4 - replace 'printPhrase' with 'printText'
2 parents 6cfa264 + 2695377 commit 2ba80de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

data/part-2/4-methods.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Strictly speaking the main program (`main`) itself is a method. When the program
228228

229229
<!-- Tee metodi `tulostaTeksti`, joka tulostaa tekstin "Alussa olivat suo, kuokka ja Java." sekä rivinvaihdon. -->
230230

231-
Create a method called `printPhrase` which prints the phrase "In a hole in the ground there lived a method" and a newline.
231+
Create a method called `printText` which prints the phrase "In a hole in the ground there lived a method" and a newline.
232232

233233
<!-- ```java
234234
public static void main(String[] args) {
@@ -242,10 +242,10 @@ public static void tulostaTeksti() {
242242

243243
```java
244244
public static void main(String[] args) {
245-
printPhrase();
245+
printText();
246246
}
247247

248-
public static void printPhrase() {
248+
public static void printText() {
249249
// Write some code in here
250250
}
251251
```
@@ -295,7 +295,7 @@ public static void main(String[] args) {
295295
// use the while command to call the method a suitable number of times
296296
}
297297

298-
public static void printPhrase() {
298+
public static void printText() {
299299
// write some code in here
300300
}
301301
```

0 commit comments

Comments
 (0)