| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Java application that analyzes relationships between rectangles, including containment, adjacency classification, and intersection detection.
sudo apt update
sudo apt install -y openjdk-21-jdk
export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64To persist JAVA_HOME across sessions:
echo 'export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64' >> ~/.bashrc
source ~/.bashrcNote: The path to the JDK will vary from architecture to architecture
The following image depicts a rectangle defined by two points (1, 1) and (3, 4)
./mvnw test./mvnw package./mvnw package -DskipTests
java -cp target/rectangle-1.0-SNAPSHOT.jar com.ty.MainBuild and run using Docker:
docker build -t rectangle .
docker run rectangleRun tests and generate a Jacoco coverage report
./mvnw testOpen the report in a browser at the following location
target/site/jacoco/index.html
| Back | FazBrowse Home | New Git URL |