How many different intr objects are created? If you only have one then the contents of the object will be from the last time it was changed. Make sure you have more than one intr object.
Did you...
Type: Posts; User: Norm
How many different intr objects are created? If you only have one then the contents of the object will be from the last time it was changed. Make sure you have more than one intr object.
Did you...
You need to add ids to your printouts to show which println printed them:
System.out.println("iA[o].get=" + intrArray[0].getIntrebare());
intrArray[i] = intr; // here...
Where is the value of one object assigned to the other?
Sorry, without seeing the code I can't make any suggestions.
I don't understand what you are describing.
Are you saying that two objects are different in one place and the same in another?
Is there code that assigns the value of one to the other?
Try debugging by print out the values as they are changed to see how they get to be the same.
Where do assign a value to the element i in the intr[] array?
What is the value of i with you get the exception?
Have that many elements been put into the array?
Add a println in the code that...
What variable on line 20 is null? Back track in your code to see why it doesn't have a value and change the code to give it a value.
In the ListaCompletaIntrebari method you should check that you...
There is a parameter to some of the file I/O classes constructors that allow you to append your output to an existing file.
Why save into an object? If the data to be saved is String, you could write them to a file.
Otherwise make a small program to show your problems with serialization and post it here with comments...
What does the getText() method return?
What methods does that class have that you can use to test if ...
Where is the variable: tf1 given a value?
BTW See my post #5
What variable is null?
You must find that so you can fix it.
So look at the line where the exception occurs and see what variable is there.
Look at line 123 in the mentioned source code. What variable at that line is null? Then look to see why it is null.
If you can't see which variable is null, add a println before statement 123 to...
Please copy and paste here the full text of your error messages.