Hey all, need help in a question
Complete the method below that is passed two strings, a name of a file and a target line. This method returns true if the file contains at least one line that matches the target line, and false otherwise. Note your method must include code to properly do the steps needed for file input.
public boolean containsLine (String filename, String target) {
any ideas?
Complete the method below that is passed two strings, a name of a file and a target line. This method returns true if the file contains at least one line that matches the target line, and false otherwise. Note your method must include code to properly do the steps needed for file input.
public boolean containsLine (String filename, String target) {
any ideas?
Comment