int arr[] = new int[2]//you can add many values you want instead of 2 //arrays are start from 0 int[0]=1; int[1]=2;