コード例 #1
0
ファイル: Airline.java プロジェクト: techbeck/School-Projects
 // Option 1
 public void showAllRoutes() {
   System.out.println("SHOWING ALL DIRECT ROUTES");
   System.out.println(
       "Note that routes are duplicated," + " once from each end city's point of view");
   System.out.println(
       "--------------------------------" + "-----------------------------------------");
   Object[] objArr = routes.toArray();
   for (int i = 0; i < numRoutes; i++) {
     Route route = (Route) objArr[i];
     System.out.println(route.toStringWN());
   }
 }