Chapter 6

Data Structures, Arrays, and Strings

Learning Objectives

By the end of this lesson, you will be able to:

  • Create and manipulate various data structures such as arrays
  • Describe the fundamentals behind algorithms for programming
  • Write simple sorting programs for arrays
  • Input and perform operations on strings

Introduction

This is the last topic in our discussion on OOP. So far, we have already looked at classes and objects and how we can use classes as blueprints to create multiple objects. We saw how we can use methods to hold the logic of our classes and fields to hold the state. We've discussed how classes can inherit some properties from other classes to allow easy reusability of code.

We've also looked at polymorphism, or ...

Get Java Fundamentals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.