This content has been marked as final. Show 4 replies
the Object i'm reading is an arraylist. i save arraylists with a savemethod to files and then read the files with the loadmethod (what i posted) again.
FileInputStream fis = new FileInputStream(filename); ObjectInputStream in = new ObjectInputStream(fis); ArrayList<String> array = (ArrayList<String>) in.readObject();