hi,
i do have an array called MyArray. to access to one element of the array i need of course to put an indice, that must be an int.
the problem is that i get this indice from a getAttribute method.
if i put somenthing like this :
Integer n = (Integer)request.getAttribute("myVar"
String toto = MyArray[n];
i do have this error :
Incompatible type for []. Can't convert java.lang.Integer to int.
what can i do to transform my request.getAttribute("myVar" into an int ? Best regards X-),
Elise
i do have an array called MyArray. to access to one element of the array i need of course to put an indice, that must be an int.
the problem is that i get this indice from a getAttribute method.
if i put somenthing like this :
Integer n = (Integer)request.getAttribute("myVar"
String toto = MyArray[n];
i do have this error :
Incompatible type for []. Can't convert java.lang.Integer to int.
what can i do to transform my request.getAttribute("myVar" into an int ? Best regards X-),
Elise