From the course: Data Science for Java Developers

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Mapping

Mapping

- [Instructor] The next thing we're going to take a look at here, now that we know how to represent data and some of the difficulties we might face when working with that data. The next thing we're going to take a look at is a few manipulations, a few very important manipulation techniques that we can use in Java to transform our data from one form into another. Now there are a number of different methods that Java provides us with, that allow us to do this in a very straightforward and easy way. And what I'm going to do here is basically show you what some of those are. So, first of all, to start off we have just some fake data here. We have a list of numbers. We have a list of words and we have a list of employee objects which are defined as just a basic data class. Let's just got public final for all of its attributes and the only method it has is the constructor here to create new instances of it. So we're…

Contents