Beispiel #1
0
 private void nijmegenNaarHaag() {
   List<Station> route = netwerk.route(14, 10);
   System.out.println("De kortste route van Nijmegen naar Den Haag is:");
   for (Station i : route) {
     System.out.println(i.toString());
   }
 }
  private String[] getStationArray() {
    int index = 0;
    int size = this.stations.size();
    String[] array = new String[size];

    for (Station s : this.stations) {
      array[(index++)] = s.toString();
    }

    return array;
  }