I want to check in java that one word like "fga" exist between "abc" and "lmp" or not. for this example my word range starts from "fga" "fgb" "fbc"... "lmo" "lmp". i cannot use contain or substring becuase i have to found these in between, like First word is "fga" and second is "xyz", now a word "lac" lies between ,so i have to check programmtically that it lies between them or not.I want to check in java that one word like "fga