This application is built with Java with OpenJDK 11 and IntelliJ 2020.2.
Before building the solution; please ensure that the project SDK is using OpenJDK 11; otherwise, please update the Project SDK by accessing Project Structure from File > Project Structure or by pressing Crlt+Alt+Shift+S
.
From Project Settings > Project. Under Project SDK, please pick your java SDK.
To build this solution:
- Open project in IntelliJ.
- From the menu click Build > Build Artifacts > Build.
- Jar file will be created in
$ProjectFileDir$/out/artifacts/PokerHandSorter_jar
To execute the solution, please run the following command on Linux terminal or PowerShell:
cat poker-hands.txt | java -jar PokerHandSorter.jar