Update CreateMeasurements3.java to write measurements3.txt
Currently it overwrites measurements.txt which is a bit confusing.
This commit is contained in:
		
				
					committed by
					
						 Gunnar Morling
						Gunnar Morling
					
				
			
			
				
	
			
			
			
						parent
						
							8c0693fdac
						
					
				
				
					commit
					b56f2205c2
				
			| @@ -48,7 +48,7 @@ public class CreateMeasurements3 { | ||||
|         final var weatherStations = generateWeatherStations(); | ||||
|         final var start = System.currentTimeMillis(); | ||||
|         final var rnd = ThreadLocalRandom.current(); | ||||
|         try (var out = new BufferedWriter(new FileWriter("measurements.txt"))) { | ||||
|         try (var out = new BufferedWriter(new FileWriter("measurements3.txt"))) { | ||||
|             for (int i = 1; i <= size; i++) { | ||||
|                 var station = weatherStations.get(rnd.nextInt(KEYSET_SIZE)); | ||||
|                 double temp = rnd.nextGaussian(station.avgTemp, 7.0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user