class ArrayChar2 {

    public boolean contains(String origin, String word) {
        boolean done = true;
        char[] aOrigin = origin.toCharArray();
        char[] aWord = word.toCharArray();
        for (int aOriginIndex = 0; aOriginIndex <= aOrigin.length - aWord.length; aOriginIndex++) {
            for (int aWordIndex = 0; aWordIndex < aWord.length; aWordIndex++) {
               if (aOrigin[aOriginIndex + aWordIndex] != aWord[aWordIndex]) {
                   done = false;
                   break;
               } else {
                   done = true;
               }
            }
            if (done) {
                break;
            }
        }
        return done;
    }

}