From: <whe...@us...> - 2003-07-24 20:00:44
|
Update of /cvsroot/ordweb/uop/pos407/wayneh/week5 In directory sc8-pr-cvs1:/tmp/cvs-serv17196 Modified Files: MailOrderRead2.java Added Files: EventFile2.java Log Message: init - samples for using for week5 assignment. --- NEW FILE: EventFile2.java --- import java.io.*; /* * Created on Jul 24, 2003 * * To change the template for this generated file go to * Window>Preferences>Java>Code Generation>Code and Comments */ /** * @author Wayne Hernandez * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class EventFile2 { public static void main(String[] args) { MailOrderRead2 ref = new MailOrderRead2(); } } Index: MailOrderRead2.java =================================================================== RCS file: /cvsroot/ordweb/uop/pos407/wayneh/week5/MailOrderRead2.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MailOrderRead2.java 24 Jul 2003 19:49:39 -0000 1.2 --- MailOrderRead2.java 24 Jul 2003 20:00:41 -0000 1.3 *************** *** 19,28 **** private Container con = getContentPane(); DataInputStream istream; ! public void ReadEventFile() { ! super("MailOrderRead2"); try { ! istream = new DataInputStream(new FileInputStream("C:\\events.dat")); } catch(IOException e) --- 19,28 ---- private Container con = getContentPane(); DataInputStream istream; ! public MailOrderRead2() { ! super("Read Event File"); try { ! istream = new DataInputStream(new FileInputStream("events.dat")); } catch(IOException e) |