How to search for a pattern in a Java string? They are: add(Object): This method is used to add an element at the end of the List. auf ein elftes Element zugegriffen und das Array wurde aber nur mit einer Länge von zehn deklariert, so wird eine sogenannte java.lang.ArrayIndexOutOfBoundsException (Ausnahme) geworfen. How to search for a string in JavaScript? The