Sunday 24 March 2013

A Java Program that will accept Command line Arguments and Display the same.


import java.io.*;
class pr5
{
public static void main(String args[]) throws IOException
{
DataInputStream br=new DataInputStream(System.in);
System.out.println("Enter your String :->");
String str=br.readLine();
System.out.println("Your string is :->"+str);
}
}

No comments:

Post a Comment

How to change Background color by selecting color from Listview

activitymain.xml file::> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xm...