Java Getting values of 0 in Array When is not supposed to be 0 Help D: : So i have to make a beer pong game for my class but when i try to print out the values i inserted in the array cups1[#], cups2[#] they all come out as if i inserted a number 0 which i do not get because i do not have anything inserting a 0 into the array and every time i print i see lots of 0 s in the console. Each ball i insert in the cup has to have a number and that's why i want to print which ball went to which cup my cups are my cups array, i will add an for loop to print the numbers in array but as in right know i want to know why the array is only getting 0 s inserted. D:

this are my codes.

http://prntscr.com/n67ivn <---an image of my output,

public static void main(String[] args) {
		

int cups1[] = new int[9];
		
int cups2[] = new int[9];
		
int cup1=1;
		
int cup2=1;
		
int balls=1;
		

for(int i=0; i<1000; i++) {
			
			int random = (int)(Math.random()*2);
			
			if (random==0) {
				cups1[cup1]=balls;
				cup1++;
				balls++;
				System.out.println(cups1[cup1]);
					}
			if (random==1) {
				cups2[cup2]=balls;
				cup2++;
				balls++;
				System.out.println(cups2[cup2]);
					}
			if (cups1[0]>=1 && cups2[0]>=1) {
				break;
			}
	}

}
}