You can't. Chars are primitives and so they don't ...
# announcements
k
You can't. Chars are primitives and so they don't have an identity (unless there's boxing involved but even then it's still a bad idea to depend on identity anyway). In this case you could check the index instead:
if (indice == composizione.lastIndex)
s
Indeed, the control of equality of identity over primitives does not make sense ... right. Index control is the only way forward. Thank you