Menu
Coddy logo textTech

Practice #3

Lesson 11 of 11 in Coddy's File Handling in Java course.

challenge icon

Challenge

Easy

Create a function named isWordExists that gets a word and a file name and returns true if the word exists in the file, otherwise false.

Try it yourself

class IsWordExists {
    public static boolean isWordExists(String word, String filename) {
        // Write code here
    }
}

All lessons in File Handling in Java