Skip to content

Commit 8eb54b5

Browse files
Steve SunSteve Sun
authored andcommitted
simplify 249
1 parent c1bf342 commit 8eb54b5

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+2
-2
lines changed

src/main/java/com/fishercoder/solutions/_249.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public class _249 {
1111
public static class Solution1 {
1212
public List<List<String>> groupStrings(String[] strings) {
1313

14-
List<List<String>> result = new ArrayList<List<String>>();
15-
Map<String, List<String>> map = new HashMap<String, List<String>>();
14+
List<List<String>> result = new ArrayList<>();
15+
Map<String, List<String>> map = new HashMap<>();
1616

1717
for (String word : strings) {
1818
String key = "";

0 commit comments

Comments
 (0)