java arraylist eigenschaften code example Example: arraylist ArrayList<String>arrayList=new ArrayList<>();