How to read and process CSV file in Java? (with Streams)

preview_player
Показать описание
#Java8 #csv #Stream

How to read and process CSV file in Java? ( with Streams)
In this, we are going to learn how to read a csv file in java.
We will see advanced use cases like streaming a CSV file as stream and performing map, filter, group by operations on stream.
_____________________________________________________________________________________
You can find all the demo code here -

_____________________________________________________________________________________

00:00 Overview
00:14 Comma Separated Values
01:19 Parse with Streams
03:17 Code Demo: Parse with Streams
09:51 Filter with Streams
10:44 Grouping with Streams
11:50 Code Demo: Filtering & Grouping with Streams
____________________________________________________________________________________
Links to tools used in the video:

Рекомендации по теме
Комментарии
Автор

Thanks a lot brother 😊

How to Write function “validateYear” that validates a user entry against predefined data, and returns “OK” if it is valid data, or one of two error messages

maankhurana
Автор

Is it possible to first filter lines and then map to Car object?

tvnathreviews
Автор

Hi Bro the filter logic u applied would work after completely reading from csv file right? Or it will filter during the csv reading itself?

Jovinbritto
Автор

great! but I wonder how to save each object in an array?

awff
Автор

what if some lines or some data are empty ?

XSource