how do you make a method that returns an array java

Java
public static int[] numbers()  
{  
int[] arr={5,6,7,8,9};  //initializing array  
return arr;  
}  
Source

Also in Java: