mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
Closing scanners.
This commit is contained in:
@@ -100,6 +100,7 @@ start vertex, end vertes and weights. Vertices should be labelled with a number
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
sc.close();
|
||||
}
|
||||
/**
|
||||
* @param source Starting vertex
|
||||
|
||||
@@ -42,6 +42,7 @@ public class Main {
|
||||
return;
|
||||
}
|
||||
}
|
||||
In.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -309,6 +309,7 @@ public class RedBlackBST {
|
||||
printTreepre(root);
|
||||
break;
|
||||
}
|
||||
scan.close();
|
||||
}
|
||||
|
||||
public void deleteDemo() {
|
||||
|
||||
Reference in New Issue
Block a user