Skip to content

Commit

Permalink
Update Client.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedi6431 authored Jul 1, 2024
1 parent d76d0cf commit b52e404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Client {
private DataInputStream input = null;
private DataOutputStream output = null;

public Client(String address, int port) {
private static void Client(String address, int port) {
try {
// establish a connection with the server
System.out.println("\nClient started");
Expand Down Expand Up @@ -81,6 +81,6 @@ public static void main(String args[]) {
System.out.println("Type server IPv4");
Scanner scanner = new Scanner(System.in);
String address = scanner.nextLine();
Client client = new Client(address, 65000);
Client(address, 65000);
}
}

0 comments on commit b52e404

Please sign in to comment.