This Java project provides utility classes for your java project.
METHOD 1: USING PYTHON (Simple method and easy to use)
MyJavaPy
is a Python script that clones a specific GitHub repository, retrieves specified .java
files, and compiles them to the specific folder.
I added a video how to use the python script.
There are two options:
1, Using command prompt to run the python script. click to see the video
2, Using visual studio code or pycharm to run the python script.click to see the video
OR
METHOD 2: NORMAL METHOD (But you may follow the instructions given below)
Note: First, compile the io.java
file, before compiling the other files to avoid any errors.
- Navigate to the directory containing your java program files.
- Compile the
io.java
file:javac io.java
click me for more information
Method Name | Description |
---|---|
io.print(int i_ids) |
Prints an integer. |
io.print(String s_names) |
Prints a string. |
io.print(float f_float) |
Prints a float. |
io.print(double d_double) |
Prints a double. |
io.print(long l_long) |
Prints a long. |
io.print(char c_char) |
Prints a char. |
io.print(boolean b_boolean) |
Prints a boolean. |
io.inputI(String prompt) |
Prompts for and reads an integer input from the user. |
io.inputS(String prompt) |
Prompts for and reads a string input from the user. |
io.inputF(String inputfloat) |
Prompts for and reads a float input from the user. |
io.inputD(String inputdouble) |
Prompts for and reads a double input from the user. |
io.inputL(String inputlong) |
Prompts for and reads a long input from the user. |
io.inputC(String inputchar) |
Prompts for and reads a char input from the user. |
io.inputB(String inputbool) |
Prompts for and reads a boolean input from the user. |
Method Name | Description |
---|---|
math.add(int... numbers) |
Adds a series of integer values. |
math.add(float... numbers) |
Adds a series of float values. |
math.add(double... numbers) |
Adds a series of double values. |
math.sub(int... numbers) |
Subtracts a series of integer values. |
math.sub(float... numbers) |
Subtracts a series of float values. |
math.sub(double... numbers) |
Subtracts a series of double values. |
math.multi(int... numbers) |
Multiplies a series of integer values. |
math.multi(float... numbers) |
Multiplies a series of float values. |
math.multi(double... numbers) |
Multiplies a series of double values. |
math.div(int numerator, int denominator) |
Divides an integer by another integer. |
math.div(float numerator, float denominator) |
Divides a float by another float. |
math.div(double numerator, double denominator) |
Divides a double by another double. |
math.isEven(int number) |
Checks if an integer is even. |
math.isEven(float number) |
Checks if a float is even. |
math.isEven(double number) |
Checks if a double is even. |
math.isOdd(int number) |
Checks if an integer is odd. |
math.isOdd(float number) |
Checks if a float is odd. |
math.isOdd(double number) |
Checks if a double is odd. |
math.isPass(int number, int target_number) |
Checks if an integer meets or exceeds a target value. |
math.isPass(float number, float target_number) |
Checks if a float meets or exceeds a target value. |
math.isPass(double number, double target_number) |
Checks if a double meets or exceeds a target value. |
math.isFail(int number, int target_number) |
Checks if an integer fails to meet a target value. |
math.isFail(float number, float target_number) |
Checks if a float fails to meet a target value. |
math.isFail(double number, double target_number) |
Checks if a double fails to meet a target value. |
Licensed under GNU General Public License v3.0 for details check it now.