refactor(test): for loop

This commit is contained in:
Paul Alnet 2024-05-20 22:23:02 +02:00
parent 5c248f26dc
commit 0ad795a8c4

View file

@ -48,8 +48,7 @@ public class DijkstraAlgorithmTest {
public static void init() {
try {
// Create the map
for (int j = 0 ; j < Maps.size() ; j++) {
final String mapName = Maps.get(j);
for (String mapName : Maps) {
// Create a graph reader
final GraphReader reader = new BinaryGraphReader(
new DataInputStream(new BufferedInputStream(new FileInputStream(mapName))));