Skip to main content

All Questions

0 votes
0 answers
25 views

Serialization and deserialization a list

I'm trying to write ArrayList to a file, and then read a random string from the ArrayList. In the code, I'm trying to output at least the entire ArrayList from the file (in order to select a random ...
AlexSmith's user avatar
0 votes
1 answer
79 views

De-serializing a graph generates an exception in Java

I created a graph consisting of nodes and edges as seen here: public class Edge implements Serializable { private final Node neighbor; private final double weight; public Edge(Node ...
user avatar
1 vote
1 answer
106 views

How to use encryption in Java? [closed]

Does anyone know how I can include encryption and decryption in my code? I am using FileInput and FileOutput Stream for serialized files. I have an arraylist of students, and I have an arraylist of ...
Jackman6's user avatar
0 votes
0 answers
232 views

How to add different subclass object types from text file to an array list of type parent class?

I was given an assignment to create a Employee parent class with several extended classes (manager, salaried employee etc.) I have completed the assignment but, I wanted to see if I could go a step ...
amart511's user avatar
-1 votes
1 answer
178 views

Unable to deserialize a Object ArrayList

I have an ArrayList of Objects (UploadedItem) called UploadList which I am able serialize automatically after every update. I am unable however to deserialize on startup. Here is the classes which are ...
Tom Carter's user avatar
0 votes
6 answers
4k views

Deserialize Arraylist of objects

I am dealing with a utterly painful puzzle I cannot solve... While I have been able to serialize/deserialize single objects I find myself stuck at the moment. The reason is that I am working with an ...
eneko's user avatar
  • 333
3 votes
2 answers
3k views

Serializing object that contains ArrayList of objects

public class User implements Serializable{ public String name; public String surname; public List<Picked> pickedBooks = new ArrayList<>(); // Code omitted. } Then goes ...
uvytautas's user avatar
  • 528
0 votes
1 answer
635 views

How do I implement backup and restore using serialisation with multiple classes?

Im trying to serialise objects(Names and notes) which I store in my JTable. I want to be able to save this information to a file and when I load the program, the information should load into the ...
Java's user avatar
  • 3
0 votes
1 answer
1k views

Serialized Object being overwritten, not added to

I'm trying to store user account information into a separate text file, which I have accomplished after many attempts... However each time I create a new user it overwrites the last one put into the ...
23k's user avatar
  • 1,389
0 votes
2 answers
19k views

Serialize ArrayList of Objects

I have an ArrayList which stores a custom object. I want to serialize that ArrayList to a string so I can save it inside the Application settings. This question looks to resolve it, but is in java. ...
JEV's user avatar
  • 2,494
0 votes
3 answers
1k views

Trouble Serializing/Deserializing an array list from a text document Java

I need help with reading an array list from a Serialized text file, I do not believe I am having a problem with it however I cannot see if it is actually storing all of the information because I cant ...
user avatar
0 votes
1 answer
84 views

Using SubSonic, how to add a field to a pre-defined class?

I've got a SubSonic DAL - works great. Two classes: TblReceipt and TblReceiptLineItems. I can create a parallel class of TblReceipt, but seems like a waste, so here's what I need to do: Have a ...
ElHaix's user avatar
  • 12.9k