Skip to content

Commit e88ff13

Browse files
Fix typo in course material
Reported in Telegram (https://t.me/java_programming_mooc/47301)
1 parent fea0d32 commit e88ff13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data/part-2/4-methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ public static void main(String[] args) {
17761776
int beginning = 1;
17771777
int end = 5;
17781778

1779-
printStarts(beginning, end);
1779+
printStars(beginning, end);
17801780
}
17811781

17821782
public static void printStars(int beginning, int end) {
@@ -1789,7 +1789,7 @@ public static void printStars(int beginning, int end) {
17891789

17901790
<!-- Ohjelman suoritus alkaa `main`-metodin ensimmäiseltä riviltä, jota seuraavilla riveillä luodaan muuttujat `alku` ja `loppu`, sekä asetetaan niihin arvot. Ohjelman tilanne ennen metodin `tulostaTahtia`-kutsumista: -->
17911791

1792-
The execution of the program begins on the first line of the `main` method. The next two lines create the variables `beginning` and `end`, and also assign values to them. The state of the program prior to calling the method `printStarts`:
1792+
The execution of the program begins on the first line of the `main` method. The next two lines create the variables `beginning` and `end`, and also assign values to them. The state of the program prior to calling the method `printStars`:
17931793

17941794
<sample-output>
17951795
main

0 commit comments

Comments
 (0)