Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
homework
Posted by Chin Loong on January 16, 2002 at 9:51 AM
public class testproggie { public static void main(String args[]) { byte invalidemail[]={112,108,101,97,115,101,32,100,111,32,121,111,117,114,32,111,119,110,32,104,111,109,101,119,111,114,107}; FileInputStream in=new FileInputStream("images\\aa.txt"); int b=0; while (true) { b=in.read(); if(b==-1) break; } System.out.println("The invalid address is : " + new String(invalidemail)); } }
Replies:
|