I am trying to connect to the POP server through Sockets in Java. I did the following code to run a LIST command to list all the emails from the server. But I don\'t know wh
You can try following--
try { String line = inn.readLine(); while(***input.ready()***) { System.out.println(line); line=inn.readLine(); } inn.close(); } catch (IOException e) { e.printStackTrace(); }
where inn is your bufferedReader object whih stores the inputstreamdata