JavaLib is a Python library that provides several functions and classes for manipulating strings and counting the number of elements, using Java language terms.
-
The
print()function**: Replaces the built-inprint()function to print output to the console. -
Function
dowo(): Replaces the built-inlen()function to count the number of elements in the object. -
The
type()function: Replaces the built-intype()function to get the type of the object. -
Separator class: This class is used to separate strings based on a specific separator, similar to the
split()function.
You can install JavaLib by using pip:
pip install JavaLibprint(*args, **kwargs):
- Replaces the
print()function. - Accepts the same arguments as
print().
dowo(object):
- Replaces the
len()function. - Accepts an object and returns the number of elements in the object.
type(object):
- Replaces the
type()function. - Accepts an object and returns the type of the object.
- Separator Class:
__init__(text):Constructor that accepts strings to split.split(sep=None,maxsplit=-1):Splits the string based on the given separator. If there is no separator, it will split based on spaces.
This project is licensed under the Apache License 2.0. See LICENSE for more details.
If you would like to contribute to this project, please create a pull request or open an issue in the GitHub repository.