Skip to content

usf-cs272-fall2022/homework-FileFinder-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileFinder

Points

For this homework assignment, you will create a class that finds all the text files (not directories) that end in the .txt or .text extension (case-insensitive). You must use streams and lambda functions for this assignment. You cannot use the File class in Java!

Hints

Below are some hints that may help with this homework assignment:

  • If you are more comfortable with anonymous classes and the File class, start there. You will fail some of the tests, but you will be able to see whether you are finding the expected text files. Then, convert one thing at a time to use what is required.

  • Check out the Files class in Java. The walk(...) or find(...) methods may be helpful here.

  • Use the FileVisitOption.FOLLOW_LINKS option when using the walk(...) or find(...) method to follow symbolic links. Symbolic links (Unix) are essentially shortcuts (Windows) or aliases (MacOS) to other files.

These hints are optional. There may be multiple approaches to solving this homework.

Instructions

Use the "Tasks" view in Eclipse to find the TODO comments for what need to be implemented and the "Javadoc" view to see additional details.

The tests are provided in the src/test/ directory; do not modify any of the files in that directory. Check the run details on GitHub Actions for how many points each test group is worth.

See the Homework Guides for additional details on homework requirements and submission.

About

FileFinder

Resources

Stars

Watchers

Forks