+ 1
Arrays: Using charAt() with Integers (something like intAt())
Heyya! ^^ I need something like intAt() in an array. int[] array; for(int x = 0; x<array.length(); x++) { int currentValue = array.intAt(x); } That is something I would like to achieve ^^
5 Respostas
+ 2
In arrays you don't need any intAt() or charAt() functios. You can simply use
int currentValue = array[x];
to get element of the array at x index.
However note, you did not initialize your array and put values in it so you will get error.
+ 1
Thanks guys :) yeah I shortened down the code. It is initialised in my project ^^
+ 1
that will give error
0
This could help but maybe u should learn to initialise arrays first