Molayo Decker wrote:. . .
Ouch! What dreadful variable names. Try
myList.set(0, (int)'F');
If you have a List<Integer>, you can put
ints into it and they will undergo boxing conversion. You cannot (I think) put
chars directly because they cannot undergo widening (=cast to int) and boxing conversion together. If you cast it to an
int, then you only need boxing conversion and that can be done automatically.