From a4bb32bf440e682372fb60bbe0f92fd10802ffd3 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 21 Jan 2020 11:23:55 +0100 Subject: [PATCH] Fix last commit --- src/clientP2P/ClientP2P.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clientP2P/ClientP2P.java b/src/clientP2P/ClientP2P.java index e409d48..e94299a 100644 --- a/src/clientP2P/ClientP2P.java +++ b/src/clientP2P/ClientP2P.java @@ -19,7 +19,8 @@ public class ClientP2P { System.out.println("Do you want to open this directory? (y/N)"); Scanner scanner = new Scanner(System.in); String resp = scanner.nextLine(); - if (resp == "y" || resp == "Y") { + if (resp.equals("y") || resp.equals("Y")) { + System.out.println("Openning"); d.openDataHomeDirectory(); } }