Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Date;
- public class Main
- {
- public static void main(String agrs[])
- {
- Entry first=new Entry(new Date(100, 11, 13, 15, 15, 15), "10234","I am the first");
- Entry second=new Entry(new Date(), "10890","I am the second");
- Entry third=new Entry(new Date(111, 11, 13, 15, 15, 15) , "12561","I am the third");
- WriteLog writeLog=new WriteLog("log.txt");
- writeLog.writeEntry(first);
- writeLog.writeEntry(second);
- writeLog.writeEntry(third);
- writeLog.close();
- ScanLog scanLog=new ScanLog("log.txt");
- //scanLog.before (new Date());
- //scanLog.after (new Date());
- scanLog.user ("10890");
- scanLog.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement