// File: Main.java
// Time-stamp: "2005-01-09 12:46:59 calvanese"

import java.io.*;

public class Main {

  public static void main(String[] args) throws IOException {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

    System.out.print("Insert a string: ");
    String s = br.readLine();
    System.out.print("Insert a character: ");
    char c = br.readLine().charAt(0);
    System.out.println();

    if (AppearsIn.appearsIn(s,c))
      System.out.println(c + " appears in " + s);
    else
      System.out.println(c + " does not appear in " + s);

    System.out.println("Occurrences of " + c + " in " + s + ": " +
                       Occurrences.occurrences(s,c));

    System.out.println("String without blanks: " +
                       Underscore.underscore(s));

    System.out.println("String reversed: " +
                       Reverse.reverse(s));

    System.out.println("String without vocals: " +
                       Vocals.removeVocals(s));

    System.out.print("Inserit a string to check whether it is palindrome: ");
    s = br.readLine();

    if (Palindrome.palindrome(s))
      System.out.println(s + " is palindrome");
    else
      System.out.println(s + " is not palindrome");

    System.out.print("Inserit a string to permute: ");
    s = br.readLine();

    Permutations.permutations(s, System.out);
  }
}
