Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.net.*;
- import java.io.*;
- import java.util.*;
- class Four {
- public static void main(String args[]) throws IOException {
- ServerSocket ss = new ServerSocket(25000);
- Socket s = ss.accept();
- Scanner sc = new Scanner(s.getInputStream());
- PrintWriter pw = new PrintWriter(s.getOutputStream(),true);
- pw.println(sc.nextInt()*2);
- }
- }
Add Comment
Please, Sign In to add comment