Java - Check two consecutive, identical letters in a given string

Java - Check two consecutive, identical letters in a given string

More to explore

Based on this image's title: “Java - Check two consecutive, identical letters in a given string