Why do you want to "update back" item to the list ? By calling Item someItem = items[2]; you simply created a reference on a stack that points to items[2] on the heap. There is nothing to update here as the item is still in the list.
Ok this is wat i wanted to know. Thanks. I was not sure about this. I was in an impression that with Item someItem = item[2]; It creates a copy.
Обсуждают сегодня