Sunday, November 22, 2009

rem

import java.io.*;
public class LabExer3 {

public static void main (String[]args)

{

BufferedReader dataIn= new BufferedReader ( new InputStreamReader( System.in));

String name = " ";
System.out.print(" Enter word1: ");

try
{
name=dataIn.readLine();
}catch(IOException e)

{
System.out.println("Error");

}


String name1 = " ";
System.out.print(" Enter word2: ");

try
{
name1=dataIn.readLine();
}catch(IOException e)

{
System.out.print("Error");

}

String name2 = " ";
System.out.print(" Enter word3: ");

try
{
name2=dataIn.readLine();
}catch(IOException e)

{
System.out.print("Error");

}

String name3 = " ";
System.out.print(" Enter word4: ");

try
{
name3=dataIn.readLine();
}catch(IOException e)

{
System.out.println("Error");

}



System.out.println(" " +" "+ name + " "+ name1 +" "+ name2 + " "+ name3 +"!");



}

}