I am trying to store my ArrayList
between runtimes. So when I enter items into the ArrayList
then close the program down and then open it back up and try to search the item I put in it will still be there.
I have tried MySQL and XML but I cannot figure it out. If you could please direct me in the direction of an easy way to store ArrayList
that would be amazing.
Edit:
I am trying to serialize this ArrayList
:
static ArrayList<Product> Chart=new ArrayList<Product>();
with these objects:
double Total;
String name;
double quantity;
String unit;
double ProductPrice;