Skip to content

JavaFundamentalsZT/jf-hw-2-lambdas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Fundamentals - Homework 2

This project is Homework 2 for the Java Fundamentals course.

Homework assignment

Implement the method getWords(filename) in class Homework2. Do not change the method signature.

Find five most used words in a file. Treat words in case insensitive manner and skip one-letter words. Implementation must use the stream API and lambdas.

You can use the following snippet to read lines:

Files.lines(Paths.get("lorem-ipsum.txt"))

Additional tips:

  • Consider edge cases!
  • Add more unit tests
  • must work with any file, not only lorem-ipsum.txt
  • punctuation matters
  • format your code!

Trouble with environment?

Please check the instructions on the jf-hw-intro

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published