Guest User

Untitled

a guest
Jul 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import java.net.*;
  2. import java.io.*;
  3. import java.util.*;
  4.  
  5. class Four {
  6. public static void main(String args[]) throws IOException {
  7.  
  8. ServerSocket ss = new ServerSocket(25000);
  9. Socket s = ss.accept();
  10. Scanner sc = new Scanner(s.getInputStream());
  11. PrintWriter pw = new PrintWriter(s.getOutputStream(),true);
  12. pw.println(sc.nextInt()*2);
  13. }
  14. }
Add Comment
Please, Sign In to add comment