Skip to content

Commit

Permalink
fix typo / extends / README
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelliao authored Nov 11, 2024
1 parent e828413 commit 807c455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/books/java/70-generics/50-extends/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public class Main {
Number last = p.getLast();
p.setFirst(new Integer(first.intValue() + 100));
p.setLast(new Integer(last.intValue() + 100));
return p.getFirst().intValue() + p.getFirst().intValue();
return p.getFirst().intValue() + p.getLast().intValue();
}
}

Expand Down

0 comments on commit 807c455

Please sign in to comment.