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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.