Provide a more compact (but functionally equivalent) version of this code fragment: ArrayList students = new ArrayList

Question:

Provide a more compact (but functionally equivalent) version of this code fragment:

ArrayList students = new ArrayList (); Student student1 = new Student ("Alex Trotsky", "History");

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: