Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1.  
  2. import java.util.Date;
  3.  
  4. public class Main
  5. {
  6. public static void main(String agrs[])
  7. {
  8. Entry first=new Entry(new Date(100, 11, 13, 15, 15, 15), "10234","I am the first");
  9. Entry second=new Entry(new Date(), "10890","I am the second");
  10. Entry third=new Entry(new Date(111, 11, 13, 15, 15, 15) , "12561","I am the third");
  11.  
  12. WriteLog writeLog=new WriteLog("log.txt");
  13. writeLog.writeEntry(first);
  14. writeLog.writeEntry(second);
  15. writeLog.writeEntry(third);
  16. writeLog.close();
  17.  
  18. ScanLog scanLog=new ScanLog("log.txt");
  19. //scanLog.before (new Date());
  20. //scanLog.after (new Date());
  21. scanLog.user ("10890");
  22. scanLog.close();
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement