79282200

Date: 2024-12-15 11:15:09
Score: 1
Natty:
Report link

I use this method:

Example:

Customer[] customers=createNew(100);


@NonNull
public static <T> T[] createNew(int capacity, @NonNull T... array) {
    return java.util.Arrays.copyOf(array, capacity);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Michael Puzio