79373136

Date: 2025-01-21 03:40:20
Score: 1
Natty:
Report link

As an alternative, you can pass a simple statement during the constructor call of ArrayList:

myNewArrayList = new ArrayList<>({
    addAll(Arrays.asList(myArray));
});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: StEvUgnIn