From b52e404e513da9dee142b4140c0bdfebd4d069bf Mon Sep 17 00:00:00 2001 From: Fedi6431 <102946457+Fedi6431@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:04:25 +0200 Subject: [PATCH] Update Client.java --- src/Client.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.java b/src/Client.java index 4dd7cd4..3874330 100644 --- a/src/Client.java +++ b/src/Client.java @@ -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"); @@ -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); } }