From ee596fd07288c5783d46035ba86b89f5478d51f2 Mon Sep 17 00:00:00 2001 From: Wen <409053122@qq.com> Date: Mon, 3 Apr 2023 00:52:11 +0800 Subject: [PATCH] opt --- src/algorithm/TwoSumFast.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithm/TwoSumFast.java b/src/algorithm/TwoSumFast.java index 6b5d98d..ce7f55e 100644 --- a/src/algorithm/TwoSumFast.java +++ b/src/algorithm/TwoSumFast.java @@ -43,7 +43,7 @@ public class TwoSumFast { " ]\n" + " },\n" + " \"_class\": \"com.middle.dao.domain.RecallLaunch\""; - String[] strings = new In("test.txt").; + String[] strings = new In("test.txt").readAllStrings(); StringBuffer ret = new StringBuffer(); for (String string : strings) {