method return new array code example
Example 1: how do you make a method that returns an array java
public static int[] numbers()
{
int[] arr={5,6,7,8,9}; //initializing array
return arr;
}
Example 2: https://javascript array
let fruits = ['Apple', 'Banana']
console.log(fruits.length)
// 2