show capacity next to street name (menu)

This commit is contained in:
HeshamTB 2020-12-04 09:10:43 +03:00
parent a106c5fc2f
commit 709fa9bdac
Signed by: Hesham
GPG Key ID: 74876157D199B09E

View File

@ -179,7 +179,8 @@ public class MakkahCity {
}
if (choice.equals("2")){
for (int i = 0; i < stdStreet.length; i++) {
System.out.printf("[%d] %s\n",i, stdStreet[i].getName().name());
System.out.printf("[%d] %s (%%%d)\n",i, stdStreet[i].getName().name(),
stdStreet[i].getPercentRemainingCapacity());
}
String input = in.next();
int index = Integer.parseInt(input);//TODO: unhandled ex