System.out.println("==============Message Out=============");
RollingStockList rollingstocks = (RollingStockList) beans.get( "rollingstocks" );
for( int i = 0; i < rollingstocks.size() ; i ++ )
{
Rollingstock rollingstock = rollingstocks.get( i );
System.out.println( "" );
System.out.println( "RollingstockId : " + rollingstock.getRollingstockId() );
System.out.println( "Schedule : " + rollingstock.getSchedule() );
List<Vehicle> vehicles = rollingstock.getVehicles();
for ( int y = 0 ; y < vehicles.size() ; y ++ )
{
Vehicle vehicle = vehicles.get( y );
System.out.println( "Vehicle : " + y + ": " + vehicle );
}
System.out.println( "Route : " + rollingstock.getRoute() );
}
System.out.println( "======================================\n\n");
pause("And that's it! Press 'enter' to finish...");
}