plz help me(its urgent)
Socket sc=null;
PrintWriter ps=null;
BufferedReader in=null;
String userinput="";
try{
System.out.println("Conecting payment Client");
sc=new Socket("103.137.102.13",6151);
System.out.println("getInetAddress:::::"+sc.getInetAddress());
System.out.println("getLocal Port:::::"+sc.getPort());
ps= new PrintWriter(sc.getOutputStream());
in=new BufferedReader(new InputStreamReader(sc.getInputStream()));
ps.print("1,Test\n");
userinput=in.readLine();System.out.println("userinput::::::"+userinput);
if(!userinput.equals("1,echo:Test")){
System.out.println("Not EQual::"+userinput);
}
}catch(UnknownHostException e){
System.out.println("Host name not found");
}catch(IOException e){
System.out.println("I/O error");
}
Hi userinput I am getting null.
But Actully userinput has to get Test.
Can u plz tell me what i did mistkae

