Arrays Java declaration

I am not sure where am i going wrong but when i am declaring the length in the array it is giving me an error:
public class Main {
public static void main(String[] args){
Array numbers = new Array(length:3); //error is cannot resolve symbol length
}
}
can anyone help

Don’t type the parameter name when passing parameters to constructors or methods. Just write new Array(3).