Oh great no support for attachments.... "-- Binary/unsupported file stripped by Listar -- -- Type: application/octet-stream -- File: readertest.txt" here's the code: import java.io.*; public class readertest { public static void main(String args[]) { System.out.print("Enter your first name: "); //Prompt for input try{ //Setup Exception Handler InputStreamReader r=new InputStreamReader(System.in); //Setup byte stream input BufferedReader buffer= new BufferedReader(r); //Setup Character stream input String f=buffer.readLine(); //Read a line of text System.out.print("Enter your surname: "); //Prompt for input String s=buffer.readLine(); //Read a line of text System.out.println("Hi there " + f + " " + s); //Output a message } //Finish exception handling block catch(IOException e){} //Setup what to do if exception found //(Nothing in this case!) } } ------------------------------------------------ Andrew Tetlaw Dialog Information Technology http://www.dialog.com.au Andrew_Tetlaw@dialog .com.au To: dialogjig@xxxxxxxxxxxxx Sent by: cc: dialogjig-bounce@fre Subject: [DialogJIG] Re: Sven's Wicked Homework [Virus checked] elists.org 30/10/2001 10:42 AM Please respond to dialogjig Oh great no support for unknown file types..... *sigh* "-- Binary/unsupported file stripped by Listar -- -- Type: application/octet-stream -- File: readertest.java" here's the file as .txt, just change it to .java Cheers (See attached file: readertest.txt) ------------------------------------------------ Andrew Tetlaw Dialog Information Technology http://www.dialog.com.au ========================= Dialog JIG! Mailing List: To subscribe/unsubscribe send an email to dialogjig-request@xxxxxxxxxxxxx with 'subscribe' or 'unsubscribe' in the Subject field. List Archive: //www.freelists.org/archives/dialogjig/ FAQ: email dialogjig-request@xxxxxxxxxxxxx with 'faq' in the subject field