daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public void RetrieveUserList(String filename) throws FileNotFoundException, IOException, ClassNotFoundException {
  2.         ArrayList<User> userList = new ArrayList<User>();
  3.         User myUser = null;
  4.         ObjectInputStream InStream = new ObjectInputStream(new FileInputStream(filename));
  5.         while (InStream.readObject() != null) {
  6.             myUser = (User) InStream.readObject();
  7.             userList.add(myUser);
  8.         }    
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top