What's wrong with my code? Please help! (Java) : 
public class night {

public static void main(String[] args) {


	System.out.println(addition(1,1,1,1));

	
}



public static int addition (int...numberz){

	int total=0;

	for(int x=1; x<=numberz.length; x++) {

		total+=x;

	}

		return total;

	
}

}

The above code doesn't add the numbers correctly.

When I use an enhanced for loop in the method "addition", I get desired results:-

---
public static int addition (int...numberz){

	int total=0;

	for(int x:numberz) {

		total+=x;

	}

		return total;
	
}
---


I'm a noob, and this is my first question here.
Please answer in as simple terms as you can, as to why the first code doesn't work, and the second one does. Thank you.