Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 15th, 2013  |  syntax: None  |  size: 0.61 KB  |  hits: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class JournalCollection
  2. {
  3.     // instance variables - replace the example below with your own
  4.     private ArrayList<Journal> journals;
  5.    
  6.    
  7.  
  8.     /**
  9.      * Constructor for objects of class JournalCollection
  10.      */
  11.     public JournalCollection()
  12.     {
  13.         journals = new ArrayList<Journals>();      
  14.     }
  15.  
  16.     /**
  17.      * add journal
  18.      */
  19.   public void addJournal(journalToAdd)
  20.     {
  21.         journal.add(journalToAdd);
  22.     }
  23.    
  24.     public ArrayList<Journal>getJournalList(String empName)
  25.     {
  26.     //    return JournalList
  27.     //    if (JournalList.contains (empName)
  28.     }
  29. }