Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfb3cec0

Browse files
Fix a bug in A_Star.Graph in jdk17 (TheAlgorithms#2842)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
1 parent6c00bee commitfb3cec0

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/thealgorithms/datastructures/graphs

1 file changed

+1
-1
lines changed

‎src/main/java/com/thealgorithms/datastructures/graphs/A_Star.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private static class Graph {
1616
publicGraph(intsize) {
1717
this.graph =newArrayList<>();
1818
for (inti =0;i <size;i++) {
19-
this.graph.set(i,newArrayList<>());
19+
this.graph.add(newArrayList<>());
2020
}
2121
}
2222

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp