public static int findLastNotOf(String container,String charSeq,int end){
  for (int i=end; i < container.length() && i >= 0; --i) {
    if (!charSeq.contains("" + container.charAt(i)))     return i;
  }
  return -1;
}

public static int findLastNotOf ( String container , String charSeq , int end ) { for ( int i = end ; i < container . length ( ) && i >= 0 ; -- i ) { if ( ! charSeq . contains ( "" + container . charAt ( i ) ) ) return i ; } return - 1 ; }
find last not of .
