Package Helpers

Class YesNo

java.lang.Object
Helpers.YesNo

public class YesNo extends Object
A class with a static method to check if a given string is "Yes" or "Y" (case-insensitive)
  • Constructor Details

    • YesNo

      public YesNo()
  • Method Details

    • yesNo

      public static boolean yesNo(String yn)
      Checks if a given string is "Yes" or "Y" (case-insensitive)
      Parameters:
      yn - the string to be checked
      Returns:
      true if the string is "Yes" or "Y" (case-insensitive), false otherwise