repl.it
@WilliamPenrod/

bac-client

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
import java.net.*;
import java.io.*;
class Main {
  public static void main(String[] args) {
    try (
      String hostName = "https://bac-servers.williampenrod.repl.co";
    Socket kkSocket = new Socket(hostName, portNumber);
    PrintWriter out = new PrintWriter(kkSocket.getOutputStream(), true);
    BufferedReader in = new BufferedReader(
        new InputStreamReader(kkSocket.getInputStream()));
){}catch(Exception e){}System.out.println(e);
  }
}
?