class HaikuReview {

    public static boolean checkWordsInEachLine(String haiku) {

        if (!hasThreeLines(haiku)) return false;

        String[] arrayResult = haiku.split("/");

        for (String sentence : arrayResult) {
            String[] words = sentence.split(" ");
            if (words.length == 0) {
                return false;
            }
            for (String word : words) {
                if (!hasWord(word)) return false;
            }
        }

        return true;
    }

}