This question is in Java.
Square all the numbers in the input array using the map stream method, producing a new array of integers that are the squares of the previous array
public class SquaringAnArray implements Assignment {public int[] solution(int[] nums) {// ↓↓↓↓ your code goes here ↓↓↓↓return null;}}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here