public static void badCharacter(ArrayList<StringSequence> database,String pattern)
	{
		Hashtable<Character,Integer> occuranceHash = new Hashtable<Character,Integer>();
		occuranceHash = makeOccuranceHash(pattern);
		int last;
		for(int sequence = 0;sequence<database.size();sequence++)
		{
			ArrayList<Integer> foundInCurrent = new ArrayList<Integer>();
        	database.get(sequence).setPattern(pattern);
			String current=database.get(sequence).getSequence();; 
			int counter=0;
            for(int offset = 0;offset<(current.length()-pattern.length()+1);offset++)
            {
                boolean found = true;
            	for(int n=pattern.length()-1;n>=0;n--)
            	{
            		counter++;
            		if(pattern.charAt(n)!=current.charAt(n+offset))
            		{
            			if(occuranceHash.get(current.charAt(n+offset))==null)
            				last =-1;
            			else
            				last=occuranceHash.get(current.charAt(n+offset));
            			if(last==-1)
            			{
            				offset=n+offset;
            			}
            			
            			if(last<n && last>-1)
            			{
                			offset=offset+(n-last-1);
            			}
            			found=false;
            			break;
            		}
            		
            	}
            	if(found)
        		{
                	foundInCurrent.add(offset);
                }
            }
            database.get(sequence).setFoundPositionList(foundInCurrent);
            System.out.println("BadC-Vergleiche: "+counter);
		}

	}