int array increment

cardmaker

Member
Joined
Jan 12, 2019
Messages
21
Programming Experience
Beginner
hello , how can i increment a int array?
example start whit:
int[] myint = new int[6]{0,0,0,0,0,0};
int[] myint = new int[6]{0,0,0,0,0,1};
int[] myint = new int[6]{0,0,0,0,0,2};
and so on...
 
You can't increment an array. You can increment elements of an array. You would increment an element the same way you would increment any variable.

I assume there is some kind of special rule or pattern that you want to apply when incrementing elements of the array, but you seem to have failed to tell us what those rules or patterns are.

It may also help if you explain why you are trying to do this incrementing of array elements.
 

Latest posts

Back
Top Bottom