Ich würde gerne meine ArrayList serialisieren.
Die Liste besteht aus Daten das typs Dozenten
Weiß jemand wie ich das mache?
Hier meine Klasse:
Die Liste besteht aus Daten das typs Dozenten
Weiß jemand wie ich das mache?
Hier meine Klasse:
Java:
package testa;
import java.io.IOException;
import java.util.ArrayList;
public class myarraylist {
private static ArrayList<Dozenten> list;
public myarraylist() {
list = new ArrayList<Dozenten>();
list.add( new Dozenten ("Titel","Name") );
}
public static void main(String[] args) throws IOException {
myarraylist bla = new myarraylist();
}
}