java list as parameter

Java
public static void doNothing(int[] someParameter) {
}

public static void main(String[] args) {
  	/*
    In java, you can create an array with
    the following syntax:
    	a = new int[]{1, 2, 3};
    */
	doNothing(new int[]{1, 2, 3, 4, 5}); 
}
Source

Also in Java: