wrong usage of BufferedReader
问题 s=new Scanner(new BufferedReader(new InputStreamReader(this.clientSocket.getInputStream()))); while(s.hasNext()){ System.out.println("Am intrat in bucla s:"); longitude=Integer.parseInt(s.next()); System.out.println("Valoare longitudine:"+longitude); latitude=Integer.parseInt(s.next()); System.out.println(latitude); I'm using the lines above to read some data from a client-server connection;this is the server side.The data are read in scanner s and after that I try to display it,but when I