Skip to content

dvchinx/EazyJava

Repository files navigation

🚀 EazyJava

License: MIT Java Build Status Version

A powerful Java library that adds and simplifies methods to make Java easier to work with.


📋 Table of Contents


🌟 Features

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

📦 Installation

Using JitPack.io

https://jitpack.io/#dvchinx/EazyJava/-72e2ebb5f7-1

� API Reference

🖨️ Print Methods

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()

🔄 Type Conversion Methods

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

🔢 Base Conversion Methods

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

Supported Input Formats

Base Supported Formats Examples
Binary "1010", "0b1010" toIntFromBin("0b1010")
Hexadecimal "FF", "0xFF", "0XFF" toIntFromHex("0xFF")
Octal "755", "0755", "0o755" toIntFromOct("0o755")

🏗️ Building from Source

# 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

Build Requirements

Requirement Version Status
Java 11+ ✅ Required
Gradle 7.0+ ✅ Included
Dependencies None ✅ Zero external deps

🤝 Contributing

We welcome contributions! Here's how you can help:

📋 Contribution Guidelines

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

🎯 Areas for Contribution

  • Additional number base conversions
  • Internationalization support
  • Performance optimizations
  • Extended literal text support
  • Additional formatting options

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


🙏 Contributors

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 ⭐!

About

Open Source Java Library that adds a lot of useful methods

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •  

Languages