Better street report

This commit is contained in:
HeshamTB 2020-11-15 01:42:17 +03:00
parent 92bbb0c099
commit 124920787c
Signed by: Hesham
GPG Key ID: 74876157D199B09E
2 changed files with 9 additions and 1 deletions

View 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>

View File

@ -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,