How do i convert an int array to an integer?
in
Programming Questions
•
1 year ago
For example I have an array of integers:
int[] array =new int[7];
I then put integers in few slots of the array and now I want all those slots to be concatenated into one integer so for example if my array was:
array[0] = 1
array[1] = 3
array[2] = 5
array[3] = 6
i want a new integer lets say x, that will be
x = 1356
int[] array =new int[7];
I then put integers in few slots of the array and now I want all those slots to be concatenated into one integer so for example if my array was:
array[0] = 1
array[1] = 3
array[2] = 5
array[3] = 6
i want a new integer lets say x, that will be
x = 1356
1