I wish to enter one int and another long ex: 1 and 1000000000, and now I wish to create an array of size 1000000000. And then at each index of arra
int
long
You need to convert/cast y and j to int. Also your incrementing var shouldn't be long when you're just adding 1.