/java-word-count

Java Assignment

Primary LanguageJava

CSG Java Coding Assignment

Introduction

A program counts words based on certain rules. There are two main rules: one is to count words by their characters, and the other is to show all words if they are longer than a certain length. I tried to merge these rules into one program. Although I'm tryng use OOP concepts, the implementation might not be perfect yet.

From what I've understood, this program take input a sentence. Then, But in background it working two things with same input: counts the words based on how many characters they have, and lists all the words that are longer than a specific length. Both tasks use the same input but handle it differently, so that makes has different output.

Logo

Requirements

  1. Java - 17
  2. Maven - 4.0.0
  3. JUnit - 5.10

Installation

Need to clone this repository program like this

git clone https://github.com/Devajayantha/java-word-count.git

Please ensure that the device has met the above requirements.

Demo

This is a screenshot of the program while it is running. Logo

Logo

Test

I have create two tests in accordance with the existing rules as follows: Logo

Thank You