Fix last commit

pull/1/head
Louis Royer 5 years ago
parent de96d7b661
commit a4bb32bf44

@ -19,7 +19,8 @@ public class ClientP2P {
System.out.println("Do you want to open this directory? (y/N)"); System.out.println("Do you want to open this directory? (y/N)");
Scanner scanner = new Scanner(System.in); Scanner scanner = new Scanner(System.in);
String resp = scanner.nextLine(); String resp = scanner.nextLine();
if (resp == "y" || resp == "Y") { if (resp.equals("y") || resp.equals("Y")) {
System.out.println("Openning");
d.openDataHomeDirectory(); d.openDataHomeDirectory();
} }
} }

Loading…
Cancel
Save