Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class JournalCollection
- {
- // instance variables - replace the example below with your own
- private ArrayList<Journal> journals;
- /**
- * Constructor for objects of class JournalCollection
- */
- public JournalCollection()
- {
- journals = new ArrayList<Journals>();
- }
- /**
- * add journal
- */
- public void addJournal(journalToAdd)
- {
- journal.add(journalToAdd);
- }
- public ArrayList<Journal>getJournalList(String empName)
- {
- // return JournalList
- // if (JournalList.contains (empName)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement