Poker Hand Sort Coding Exercise in Kotlin
Poker Hand Sort Coding Exercise in Kotlin
.idea
: Inellij IDEA Setting foldersrc
: Source Code in Kotlinout
: Folder structure that contains the project artifacts ‘assembly files - JAR file’.iml
: Inellij IDEA module fileSimply, import the project root directory into Intellij IDEA and from the main menue:
Build
-> Build Artifacts..
Build
The JAR file will be generated and stored in out/artifacts/PokerHandSorter
directory
cd out/artifacts/PokerHandSorter
cat poker-hands.txt | java -jar PokerHandSorter.jar
Navigate to the bin
directory and run the following command:
cat poker-hands.txt | java -jar PokerHandSorter.jar