I am trying to return an array using the below code. But I can't find a proper way to get this to work. What can I do?
My code
public class trial1{
public static void main(String[] args){
numbers();
}
public static int[] numbers(){
int[] A = {1,2,3};
return A;
}
}