Better street report
This commit is contained in:
parent
92bbb0c099
commit
124920787c
8
.idea/artifacts/Hajj_simulation_jar_run.xml
Normal file
8
.idea/artifacts/Hajj_simulation_jar_run.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="Hajj-simulation:jar-run">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/Hajj_simulation_jar_run</output-path>
|
||||
<root id="archive" name="Hajj-simulation.jar">
|
||||
<element id="module-output" name="Hajj-simulation" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
@ -334,7 +334,7 @@ public class MakkahCity {
|
||||
"Time: %s\n";
|
||||
String report = "";
|
||||
report = report + String.format(headerFormat, timeManager.getCurrentTime());
|
||||
String entryFormat = "Street name: %-9s | remaining capacity: %%%-4s | cars: %d\n";
|
||||
String entryFormat = "Street name:%-16s| remaining capacity: %%%-4s | cars: %d\n";
|
||||
for (Street street : stdStreet) {
|
||||
int cap = street.getPercentRemainingCapacity();
|
||||
report = report + String.format(entryFormat,
|
||||
|
Loading…
Reference in New Issue
Block a user