Skip to content

Commit 653fe5b

Browse files
Merge pull request rage#265 from ntpmhlk/fix-code-error-part3-2
Fix code error in part-3/2-lists
2 parents 5e718a2 + 6c641dc commit 653fe5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

data/part-3/2-lists.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ if (index < teachers.size()) {
860860
index = index + 1; // index = 4
861861
}
862862

863-
if (index < index.size()) {
863+
if (index < teachers.size()) {
864864
// this will not be executed since index = 4 and teachers.size() = 4
865865
System.out.println(teachers.get(index));
866866
index = index + 1;

0 commit comments

Comments
 (0)