From 807c455de59e4ccc5240b87008aa989fcab8f560 Mon Sep 17 00:00:00 2001 From: Crypto Michael Date: Mon, 11 Nov 2024 19:02:52 +0800 Subject: [PATCH] fix typo / extends / README --- source/books/java/70-generics/50-extends/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/books/java/70-generics/50-extends/README.md b/source/books/java/70-generics/50-extends/README.md index c3fb70f..683273f 100644 --- a/source/books/java/70-generics/50-extends/README.md +++ b/source/books/java/70-generics/50-extends/README.md @@ -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(); } }