Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.FileNotFoundException;
- import java.io.*;
- import java.util.*;
- public class Salva {
- public static void main (String[]args) throws FileNotFoundException, IOException{
- LinkedList<String> ll=new LinkedList();
- ll.add("ciao");
- ll.add("a");
- ll.add("tutti");
- ObjectOutputStream oos=new ObjectOutputStream(new FileOutputStream("XXX"));
- oos.writeObject(ll);
- oos.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement