CLI Java application that checks if two texts are anagrams of each other.
An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
maven
build tool is used for managing the lifecycle of the application. simply run the following command to build the project.
mvn clean package
After successful build, ./target/is-anagram.jar
file will be created.
Use the application from your terminal providing two texts as arguments.
java -jar is-anagram.jar 'help' 'pleh'
The result of the anagram check will be displayed on the terminal.
junit5
is used for testing the application. simply run the following command to execute all the tests.
mvn clean test