public static void main(String[] args) {
		//String str = new String("A string");
		String s = "A string";

		// if (str.equals(s)) {
		// 	System.out.println("A");
		// } else {
		// 	System.out.println("B");
		// }

		// char c = 'r';

		// for (int i = 0; i < str.length()-1; i++) {
		// 	System.out.println(str.substring(i, i+2));
		// }

		// if (contains("baseball", "ball")) {
		// 	System.out.println("Yes");
		// } else {
		// 	System.out.println("No");
		// }

		System.out.println(count("bananananananana", "an"));
		
		if (isPalindrome("racecar")) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
		if (hasAnA("This string has an a")) {
			System.out.println("Yes");
		} else {
		 	System.out.println("No");
		}
		
		if (isAbecedarian("abdest")) {
			System.out.println("Yes");
		}
		if (!isAbecedarian("Apple")) {
			System.out.println("No");
		}
		
		if (isDupledrome("llaammaa")) {
			System.out.println("Yes");
		}
		if (!isDupledrome("Hello")) {
			System.out.println("No");
		}
		
		System.out.println("Encode this");
		String str = encode("Encode this", 13);
		System.out.println("Encoded: " + str);
		System.out.println("Decoded: " + encode(str, -13));

	}