The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

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:

doesn't match my homework requirement. but thank you anyway

Posted by mountaindew7612 on January 16, 2002 at 11:01 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:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us