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(); } }