A lightweight and clean Java library for elegantly printing formatted matrices to the console. The goal of Matrixnator is to provide a reusable and DRY (Don't Repeat Yourself) API for visualizing two-dimensional data structures in a clear way, aiding in application development and debugging.
This project was created as part of my Java studies and personal growth as a developer.
- Matrix Printing: Native support for
float,double, andintmatrices. - Centered Alignment: All values are automatically centered within their cells for a professional aesthetic.
- Grid Structure: Uses Unicode characters to draw borders and grids, providing a clear visual representation of the matrix structure.
- Simple API: The API interface is intuitive and straightforward, consisting of static methods that require no instantiation.
- Robust Error Handling: Handles null or empty matrices gracefully, preventing
NullPointerExceptionand providing informative messages. - Method: this project was made with the help of Gemini 2.5 Flash, so it could help me on my Java studies!
To use the Matrixnator in your project, simply include the library's JAR file as a dependency or copy the Matrixnator.java class directly into your project.
If you are using Maven, add the following dependency to your pom.xml file:
<dependency>
<groupId>ronaldo.matrix</groupId>
<artifactId>matrixnator</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>