concept specified position in category java

appears as: specified position
Java SE 11 Programmer I Certification Guide

This is an excerpt from Manning's book Java SE 11 Programmer I Certification Guide.

The method delete removes the characters in a substring of the specified StringBuilder. The method deleteCharAt removes the char at the specified position. Here’s an example showing the method delete:

You can add a value to an ArrayList either at its end or at a specified position. #1 adds elements at the end of list. #2 adds an element to list at position 2. Please note that the first element of an ArrayList is stored at position 0. Hence, at #2 the String literal value "three" will be inserted at position 2, which was occupied by the literal value "four". When a value is added to a place that’s already occupied by another element, the values shift by a place to accommodate the newly added value. In this case, the literal value "four" shifted to position 3 to make way for the literal value "three" (see figure 11.14).

Figure 11.14 Code that adds elements to the end of an ArrayList and at a specified position