1/*
2In java, you can create an array like this:
3 new int[]{1, 2, 3};
4replace `int` with whatever you want
5*/
6
7public static void doSomething(int[] list) {
8 System.out.println("Something is done.");
9}
10
11public static void main(String[] args) {
12 doSomething(new int[]{1, 2, 3});
13}