My last last java assignment that I am all okay except this two lines below. What is the intend of it, and how would I do that? Anybody giving a clue about that are appreciated.
I am not allowed to use primitives on this one
Do not assign given Wrapper Class objects (Integer, Char, Double, etc.) directly. Use a copy of objects.
Yesterday ı talked to my assistant and he sad that when you assign the value like this:
Integer asd ;
asd = new Integer(10);
Instead of this:
Integer asd ;
asd = 10 ;
it copies the object and assigns the value. Then (I think) the old record gets eligible for garbage collector.