How to create a boolean function that returns true if 's' is immediately followed by the letter 't' in a string : <p>I've just started to learn how to write code using Java and am trying to make a boolean function that takes a string and returns true is a character 's' in a string is always followed(somewhere) by the character 't', and false otherwise. So for example, "stay" should return true; "tta" should return false; "cc" should return true because 's' does not appear at all therefore any 's' IS preceded by an 't', there just are no 't's.How would I go about this? </p>
