Advertisement
Josif_tepe

Untitled

Apr 22nd, 2021
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. import java.io.IOException;
  2. import java.net.Socket;
  3. import java.net.UnknownHostException;
  4.  
  5. public class Client {
  6.     public static void main(String[] args) {
  7.         try {
  8.             System.out.println("Najaveni sme");
  9.             Socket socket = new Socket("localhost", 4567);
  10.         }
  11.        catch (Exception e) {
  12.  
  13.        }
  14.  
  15.     }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement