Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Java for Data Science

You're reading from  Mastering Java for Data Science

Product type Book
Published in Apr 2017
Publisher Packt
ISBN-13 9781782174271
Pages 364 pages
Edition 1st Edition
Languages
Author (1):
Alexey Grigorev Alexey Grigorev
Profile icon Alexey Grigorev
Toc

Standard Java library


The standard Java library is very rich and offers a lot of tools for data manipulation, including:

  • Collections for organizing data in memory
  • I/O for reading and writing data
  • Streaming APIs for making data transformations easy

In this chapter, we will look at all these tools in detail. 

Collections

Data is the most important part of data science. When dealing with data, it needs to be efficiently stored and processed, and for this we use data structures. A data structure describes a way to store data efficiently to solve a specific problem, and the Java Collection API is the standard Java API for data structures. This API offers a wide variety of implementations that are useful in practical data science applications.

We will not describe the collection API in full detail, but concentrate on the most useful and important ones--list, set, and map interfaces.

Lists are collections where each element can be accessed by its index. The g0-to implementation of the List interface is...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime