src/main/java/MyMain.java
public static boolean containsThe(final String str) {
        String oof = str.toLowerCase();
        for(int i = 0; i < str.length()-2; i++){
            if(oof.substring(i,i+3).equals("the")){
                return true;
            }
        }
        return false;
    }
// Checks to see whether or not str contains 'The' or 'the'
Checks to see whether or not str contains 'The' or 'the'
Checks to see whether or not str contains ' The ' or ' the '
public static boolean containsThe(final String str) {
        String oof = str.toLowerCase();
        for(int i = 0; i < str.length()-2; i++){
            if(oof.substring(i,i+3).equals("the")){
                return true;
            }
        }
        return false;
    }
public static boolean containsThe ( final String str ) { String oof = str . toLowerCase ( ) ; for ( int i = 0 ; i < str . length ( ) - 2 ; i ++ ) { if ( oof . substring ( i , i + 3 ) . equals ( "the" ) ) { return true ; } } return false ; }
Checks to see whether or not str contains 'The' or 'the'
Checks to see whether or not str contains ' The ' or ' the '