Seach

reading data from key board


package readfromkeybord;
import java.io.*;
public class Readfromkeybord {

    public static void main(String[] args) {
       // System.out.println("enter the message:");s
        try
        {
        BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
        // x=b.readLine();
        // TODO code application logic here
        Readfromkeybord r=new Readfromkeybord();
        String ss[]={"hithin","chandran"};

        System.out.println("enter the string");
        String s="";
       
        s.concat(ss[0]);
       
    }
        catch(Exception e)
        {
            System.out.println("error due to="+e);
           
        }
    }
}

No comments: