Book Image

Hands-On Automation Testing with Java for Beginners

Book Image

Hands-On Automation Testing with Java for Beginners

Overview of this book

Java is one of the most commonly-used software languages by programmers and developers. Are you from a non-technical background and looking to master Java for your automation needs? Then Hands-On Automation Testing with Java for Beginners is for you. This book provides you with efficient techniques to effectively handle Java-related automation projects. You will learn how to handle strings and their functions in Java. As you make your way through the book, you will get to grips with classes and objects, along with their uses. In the concluding chapters, you will learn about the importance of inheritance and exceptions with practical examples. By the end of this book, you will have gained comprehensive knowledge of Java.
Table of Contents (17 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

The collections framework


The Java collections framework is basically a collection of interfaces and classes. To program efficiently, or use the flexibility of Java methods, Java has designed a framework, which consists of different classes and interfaces. The collections framework helps in storing and processing data efficiently. This framework has several useful classes that have tons of useful functions, that make a programmer's task super easy.

We have seen a lot of concepts about arrays and multidimensional arrays. For example, in an array, if we want to delete one of the indexes out of a new set of arrays, we can do that using the collections framework. Let's say in one array there are 10 values, and we want to remove the fifth value, or insert a value between the fifth and sixth values—there are some flexibility methods that you will get in the collections framework.

The kinds of method available in this collection framework, and how they can be used effectively, will be discussed in...