As a fan of geometry, Client want to model a line based on points consisting of (x, y) coordinates using the cartesian system. So that Client can calculate its length.
- JDK version 11.0
Windows : https://docs.oracle.com/en/java/javase/13/install/installation-jdk-microsoft-windows-platforms.html
Linux https://docs.oracle.com/en/java/javase/11/install/installation-jdk-linux-platforms.html
Ubuntu
sudo apt install openjdk-11-jdk
- JUnit : At least Version 3.0 (For Testing)
- Repl : (For Testing)
- Gradle version 7
Clone the repo first to your desired directory.
If you use Intellij or Eclipse IDE, you can build the project directly by clicking green hammer button.
./gradlew build
- If you use Intellij or Eclipse IDE just run the project directly by clicking green play button.
- You have to input x1,y1 (point 1) and x2,y2 (point 2).
- You will get the distance between the two point.
- Use terminal and go to the project directory.
- Use command below
./gradlew run
- You have to input x1,y1 (point 1) and x2,y2 (point 2).
- You will get the distance between the two point.
###IDE
- Open test folder
- Run the app by clicking the green play button beside the class or the method
- Use terminal and go to the project directory.
- Use command below
./gradlew test