create base

This commit is contained in:
Cametendo
2026-02-09 08:26:01 +01:00
parent 73ce756cbc
commit baab63f846
3 changed files with 41 additions and 0 deletions

16
YesNo.java Normal file
View File

@@ -0,0 +1,16 @@
public class YesNo {
public static boolean check(String input) {
switch (input) {
case "Y":
return true;
case "y":
return true;
case "":
return true;
case "n":
return false;
default:
return false;
}
}
}