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}
1public int min(int [] array) {
2 int min = array[0];
3
4 for(int i = 0; i<array.length; i++ ) {
5 if(array[i]<min) {
6 min = array[i];
7 }
8 }
9 return min;
10 }
11int minimum = min(myArray)