Skip to content

Commit efae9fb

Browse files
authored
Updated brackets
1 parent f98e3c0 commit efae9fb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Others/Dijkstra.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,13 @@ public Vertex(String name) {
6868
}
6969

7070
private void printPath() {
71-
if (this == this.previous)
72-
{
71+
if (this == this.previous) {
7372
System.out.printf("%s", this.name);
7473
}
75-
else if (this.previous == null)
76-
{
74+
else if (this.previous == null) {
7775
System.out.printf("%s(unreached)", this.name);
7876
}
79-
else
80-
{
77+
else {
8178
this.previous.printPath();
8279
System.out.printf(" -> %s(%d)", this.name, this.dist);
8380
}

0 commit comments

Comments
 (0)