code: public static boolean is_vargiya4(String str)
      {
  
          if (str.equals("G") || str.equals("J") || str.equals("Q") || str.equals("D") || str.equals("B")) return true;
  
          return false;
      }
docs: *******************BEGINNING OF FUNCTION********************//