I've just recently started with Java and have gotten to Arrays. from what I can tell there are two ways of creating Arrays.
The first method makes the most sense to me coming from a python background.
type[] ArrayName;
i.e.
int[] agesOfParticipants;
However a lot of resources online use a different method of creating arrays.
ArrayList<ArrayType> Name = new ArrayList<ArrayType>;
not only is this different but from what I can tell the term ArrayList is at least partially interchangeable depending on circumstance. For instance in this response ArrayList is replaced by class A, which is declared earlier.
A<String> obj=new A<String>();
Sorry if this is all basic stuff, but I can't find anywhere that really distinguishes between the two.