X37: xyzThere

Write a function in Java that returns true if the given string str contains an occurrence of the substring "xyz" where "xyz" is not directly preceded by a period ("."). For example, "xxyz" counts, while "x.xyz" does not.

Reset

Practice a different Java exercise