Thursday, March 26, 2009

java code to print a word in Double Quotes

import java.io.*;
public class names
{
public static void main(String [] x)throws IOException
{
System.out.println("Enter the name");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

String w=br.readLine();

System.out.println("\""+w+"\"");

}
}

0 comments: