This commit is contained in:
Michael Berry 2024-01-05 23:51:49 +00:00 committed by Gunnar Morling
parent fd0bb3a072
commit 38fc317073

View File

@ -497,7 +497,7 @@ public class CreateMeasurements {
WeatherStation station = stations.get(ThreadLocalRandom.current().nextInt(stations.size())); WeatherStation station = stations.get(ThreadLocalRandom.current().nextInt(stations.size()));
bw.write(station.id()); bw.write(station.id());
bw.write(";" + station.measurement()); bw.write(";" + station.measurement());
bw.newLine(); bw.write('\n');
} }
} }
System.out.printf("Created file with %,d measurements in %s ms%n", size, System.currentTimeMillis() - start); System.out.printf("Created file with %,d measurements in %s ms%n", size, System.currentTimeMillis() - start);