https://github.com/martijnvos/jcf41datastructures
Assignment 1 of the JCF41 course on Fontys
https://github.com/martijnvos/jcf41datastructures
data-structures java
Last synced: 8 months ago
JSON representation
Assignment 1 of the JCF41 course on Fontys
- Host: GitHub
- URL: https://github.com/martijnvos/jcf41datastructures
- Owner: Martijnvos
- Created: 2018-03-24T15:41:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-24T15:55:21.000Z (about 8 years ago)
- Last Synced: 2025-06-27T22:02:30.092Z (9 months ago)
- Topics: data-structures, java
- Language: Java
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Word application
This application is the execution of Assignment 1 of the JCF41 course on Fontys.
It's meant for getting an understanding of the Java Collection Framework.
There are several use cases of this application:
- Count the total amount of words of text
- Count the amount of different words in text
- Sort the words in reverse alphabetical order
- Count how many times a word exists in the text sorted by frequency
- Create a concordance of the words in the text
# Non-functional requirements
The application has the following non-functional requirements:
- Use the Facade pattern
- Avoid repetition in code by using methods
- Write functional tests for the example text
- Estimate the complexity of every operation
- Write a performance test for 10 000 and 1 000 000 words.
What is the execution time per test?
# SonarQube
I used SonarQube to squash the pesky bugs left-over after checking the code myself.
It gave me some interesting insights in the order of the 'static' and 'final' keywords and reminded me of using a Logger instead of System prints.
The results can be seen in the image below:

# Running this application
You can get started with this application by simply cloning it and running the WordApplication class in your favorite IDE.