Advertisement
Guest User

Untitled

a guest
May 30th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. public void run() {
  2.  
  3. do { // procesar los mensajes enviados por el cliente
  4.  
  5. try {
  6. // procesar los mensajes enviados por el cliente
  7. // leer el mensaje y mostrarlo en pantalla
  8. punto = (Point) entrada.readObject();
  9. validarMover(punto);
  10. System.out.println( punto.x+","+punto.y);
  11. } catch (IOException ex) {
  12. Logger.getLogger(Servidor.class.getName()).log(Level.SEVERE, null, ex);
  13. } catch (ClassNotFoundException ex) {
  14. Logger.getLogger(Servidor.class.getName()).log(Level.SEVERE, null, ex);
  15. }
  16.  
  17. } while ( true );
  18.  
  19.  
  20. }
  21. }
  22. }
  23.  
  24. Hola
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement