← all problems

fileContainsValue 🌶️🌶️

Write a method that takes a File (one int per line) and a target int, constructs a Scanner over the file, and returns true if target appears anywhere in the file, or false otherwise.