Lambda expressions and streams in Java 8 for lessons

Thesis title: Lambda výrazy a streamy v Javě 8 ve výuce
Author: Benešová, Patricie
Thesis type: Diplomová práce
Supervisor: Pavlíčková, Jarmila
Opponents: Král, David
Thesis language: Česky
Abstract:
Od osmé verze programovacího jazyka Java mohou Java vývojáři používat lambda výrazy a Stream API, které poskytuje nové možnosti práce se seznamy a poli. Tyto změny byly zařazeny do osnov výuky kurzu Programování v Javě na Vysoké škole ekonomické. Ovšem vzhledem obsáhlosti tématu není na danou problematiku v hodinách mnoho času, proto jsou studenti odkázáni na samostudium.Cílem této práce je vytvořit řešené úlohy pro studenty kurzu Programování v Javě, které budou sloužit k lepšímu pochopení lambda výrazů a práce se seznamy pomocí datových proudů v Javě. Studenti tak mohou látku lépe pochopit a sami si vyzkoušet znalosti týkající se lambda výrazů a datových proudů v jazyce Java. Práce primárně slouží jako podpora pro výuku tohoto kurzu.Jelikož úlohy nepředpokládají předchozí znalosti z oblasti lambda výrazů ani Stream API v Javě, je v práci nejprve vysvětlena potřebná teorie s ukázkami použití lambda výrazů, odkazů metod a také práce se seznamy a poli pomocí Stream API. Výstupem práce je šestnáct úloh vytvořených tak, aby pro řešení postačily informace uvedené v této práci. Každá úloha se skládá ze zadání a následného popisu možného řešení. Tyto úlohy se zadáním a řešením včetně potřebných projektů jsou, mimo tuto práci, také dostupné na webových stránkách k předmětu Programování v Javě.
Keywords: Java 8; lambda výraz; datové proudy; Stream API
Thesis title: Lambda expressions and streams in Java 8 for lessons
Author: Benešová, Patricie
Thesis type: Diploma thesis
Supervisor: Pavlíčková, Jarmila
Opponents: Král, David
Thesis language: Česky
Abstract:
Since the 8th version of the programming language Java, Java developers can now use lambda expressions and Stream API, which brings new ways of working with lists and fields. These changes have been incorporated into the syllabus of the course Programming in Java language at the University of Economics. Due to complexness of this topic, there is not enough time for practicing during seminars and, therefore, the students are expected to study this topic by themselves.The aim of this thesis is to create exercises with a solution for the students of the course Programming in Java language, which should help them better understand lambda expressions and the new way of working with lists using data streams in Java. The students can learn by using lambda expressions and data streams in Java when solving these exercises. Therefore, this thesis should be used as a support study material for this course.Since these students do not necessarily have any previous experience with using lambda expressions nor Stream API in Java, in the first part of this thesis there is a brief explanation of lambda expressions, method reference and usage of Stream API when working with lists and fields.Considering the level of knowledge gained from the information provided by this thesis, the result of this thesis is sixteen exercises. Each exercise consists of the task explanation and a description of one possible solution. Furthermore, all of these exercises including their task explanation, solution, and attached projects are available on the website of the course Programming in Java language.
Keywords: lambda expression; data streams; Java 8; Stream API

Information about study

Study programme: Aplikovaná informatika/Informační systémy a technologie
Type of study programme: Magisterský studijní program
Assigned degree: Ing.
Institutions assigning academic degree: Vysoká škola ekonomická v Praze
Faculty: Faculty of Informatics and Statistics
Department: Department of Information Technologies

Information on submission and defense

Date of assignment: 31. 8. 2017
Date of submission: 15. 4. 2018
Date of defense: 31. 5. 2018
Identifier in the InSIS system: https://insis.vse.cz/zp/62768/podrobnosti

Files for download

    Last update: