diff --git a/ch05/ex5-2.md b/ch05/ex5-2.md index 2394bc3..50e7f22 100644 --- a/ch05/ex5-2.md +++ b/ch05/ex5-2.md @@ -5,19 +5,9 @@ ```dart void main() { - - Map starWars = {"title": "Star Wars", "year": 1977}; - Map theEmpireStrikesBack = {"title": "The Empire Strikes Back", "year": 1980}; - - Map listFilms = {"first": starWars, "second": theEmpireStrikesBack}; - - Map currentFilm = listFilms['first']; - - String title = currentFilm['title']; - int year = currentFilm['year']; - - print (title); - print (year); + List listMonths = ['January', 'February', 'March']; + listMonths.add('April'); + listMonths.forEach(print); } ```