A powerful Java library that adds and simplifies methods to make Java easier to work with.
- π Features
- π¦ Installation
- π§ API Reference
- π Usage Examples
- π§ͺ Testing
- π€ Contributing
- π License
- π¨βπ» Author
| Feature | Description | Status |
|---|---|---|
| Print Functions | Python-like print() and println() methods |
β Complete |
| Type Casting | Advanced type conversion utilities | β Complete |
| Number Base Conversion | Binary, Hexadecimal, and Octal parsing | β Complete |
| Text-to-Number | Literal text number conversion | β Complete |
| Error Handling | Built-in exception handling with informative messages | β Complete |
| Zero Dependencies | Lightweight library with no external dependencies | β Complete |
| Multiple Data Types | Support for all primitive types and objects | β Complete |
https://jitpack.io/#dvchinx/EazyJava/-72e2ebb5f7-1
| Method | Parameters | Description | Example |
|---|---|---|---|
print() |
String |
Print string without newline | print("Hello") |
print() |
int/long/double/boolean/char |
Print primitive types without newline | print(42) |
print() |
Object |
Print object using toString() without newline | print(new Date()) |
print() |
String delimiter, Object... |
Print multiple values with custom delimiter | print(", ", 1, 2, 3) |
println() |
Same as print + newline | All print methods with automatic newline | println("Hello World") |
println() |
None | Print empty line | println() |
| Method | Input | Output | Description | Example |
|---|---|---|---|---|
toText() |
int, boolean |
String |
Convert integer to literal text | toText(250, true) β "Two hundred fifty" |
toText() |
boolean |
String |
Convert boolean to text | toText(true) β "true" |
toText() |
double |
String |
Convert double to text | toText(3.14) β "3.14" |
toInt() |
String, boolean |
int |
Convert string/literal to integer | toInt("two hundred", true) β 250 |
| Method | Input Format | Description | Example |
|---|---|---|---|
toIntFromBin() |
Binary string | Convert binary to integer | toIntFromBin("1010") β 10 |
toIntFromHex() |
Hexadecimal string | Convert hexadecimal to integer | toIntFromHex("FF") β 255 |
toIntFromOct() |
Octal string | Convert octal to integer | toIntFromOct("755") β 493 |
| Base | Supported Formats | Examples |
|---|---|---|
| Binary | "1010", "0b1010" |
toIntFromBin("0b1010") |
| Hexadecimal | "FF", "0xFF", "0XFF" |
toIntFromHex("0xFF") |
| Octal | "755", "0755", "0o755" |
toIntFromOct("0o755") |
# Clone the repository
git clone https://github.com/dvchinx/EazyJava.git
cd EazyJava
# Build the project
./gradlew build
# Generate documentation
./gradlew javadoc
# Publish to local repository
./gradlew publishToMavenLocal| Requirement | Version | Status |
|---|---|---|
| Java | 11+ | β Required |
| Gradle | 7.0+ | β Included |
| Dependencies | None | β Zero external deps |
We welcome contributions! Here's how you can help:
| Step | Action | Command |
|---|---|---|
| 1 | Fork the repository | Fork on GitHub |
| 2 | Create feature branch | git checkout -b feature/amazing-feature |
| 3 | Commit changes | git commit -m 'Add amazing feature' |
| 4 | Push to branch | git push origin feature/amazing-feature |
| 5 | Open Pull Request | Create PR |
- Additional number base conversions
- Internationalization support
- Performance optimizations
- Extended literal text support
- Additional formatting options
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to all contributors who have helped make EazyJava better!
For a complete list, see CONTRIBUTORS.md.
Made with β€οΈ by dvchinx
If this library helped you, please consider giving it a β!