public static void treemenu()
	{
		System.out.println("\n"+"press key for desired option: ");
        System.out.println("1 - find pattern in Tree");
        System.out.println("2 - print tree");
        System.out.println("3 - read file to tree");
        System.out.println("4 - read userinput to tree");
        System.out.println("9 - back");
        int choice= IO.userIntegerInput("please choose:");
        switch(choice)
        {
            case 1:
            	String pattern =IO.userStringInput("pattern to search:");
            	System.out.println("start indizes:");
            	currentTree.suffixTreeSearch(pattern);
            	break;
            case 2:
            	currentTree.print(currentTree.getRoot());
                break;
            case 3:
            	TreeNode newRoot = new TreeNode();
            	currentTree.setRoot(newRoot);
            	System.out.println("Zum Einlesen einer Datei aus der ein Suffixbaum erstellt werden soll.");
            	currentTree.buildTree(IO.readFileToString(IO.userStringInput("File to read?:")));
                break;
            case 9:
                mainmenu();
                break;
            case 4:
            	TreeNode newRoot1 = new TreeNode();
            	currentTree.setRoot(newRoot1);
            	currentTree.buildTree(IO.userStringInput("Input Text:"));
            	break;
            default:
                System.out.println("unknow command");
        }
        treemenu();
	}