-2
I have the following APEX code
List<integer> entrada = new List<integer>();
public static void generateStringArray(integer entrada){
List<String> ListaPrincipal = new List<String>();
for(integer i = 0; i < entrada; i++){
System.debug(entrada.get(i).toString);
}
}
I’m trying to get the index i
. When I execute him, he makes the following mistake:
Method does not exist or incorrect Signature: void get(Integer) from the type Integer
With input[i] instead of get(i), it works?
– Joao Ricardo Meira Lubas
You have several errors in the code. It would also be interesting to say what this is
integer
? Or would I rather haveInteger
? The best thing would be to put the code just like yours in your file, but if it’s the way it is here, then it’s still a long way from compiling.– Isac