Kotlinlearncs.online LogoJava
Return to List

Homework: Front Piece

Imported By: learncs.online Staff
/ Version: 2021.6.0
/ Adapted from CodingBat

Given a non-null int[] of any length, return a new array of its first 2 elements. If the array is smaller than length 2, use whatever elements are present.

Related Lessons

Stuck? You may find these lessons helpful: