This repository contains my personal collection of Java programs covering a wide range of topics, including number manipulation, array sorting, class and object concepts, function overloading, interface implementation, and more.
Each program is designed to showcase different Java programming concepts and techniques. The code is well-documented and easy to understand, making it an excellent resource for beginners and advanced Java developers alike.
Feel free to browse through the repository and explore the programs. You can use them as a learning resource, inspiration for your own projects, or simply to brush up on your Java skills.
If you find any issues or have any suggestions for improvement, please feel free to raise an issue or submit a pull request. Your feedback is greatly appreciated!
Thank you for visiting my Java programming journal repository. Happy coding!
To get started with this repository, you need to clone it on your local machine. You can do this by running the following command:
git clone https://github.com/anonatul/Java-Journal.git
This will create a local copy of the repository on your machine.
To run the Java programs in this repository, you need to have Java Development Kit (JDK) installed on your machine. You can download and install the latest version of JDK from the official Java website.
Once you have cloned the repository and installed JDK, you can import the programs into your Java development environment (e.g. Eclipse, IntelliJ IDEA, NetBeans, etc.) and run them from there.
To run a program, you need to compile the Java file first. You can do this by running the following command in your terminal or command prompt:
javac ProgramName.java
This will compile the Java file and generate a class file. To run the program, you need to run the following command:
java ProgramName
Replace ProgramName with the name of the Java file (without the .java extension).
Here is a list of Java programs included in this repository:
- Display table of a given number
- Find sum of digits of a given number
- Reverse a given number
- Check given number is prime or not
- Find series of prime numbers from a given range
- Check given number is palindrome or not
- Check given year is leap year or not
- Display Fibonacci Series up to a limit
- Find factorial of a given number
- Check given number is Armstrong or not
- Check whether a given number is perfect or not
- Display all numbers between 1 and 100 divisible by 7
- Display absent digits from a given number
- Convert decimal number to binary, octal, and hexadecimal equivalents
- Convert binary number to decimal equivalent
- Search a value in an m x n matrix
- Implement FizzBuzz program
- Check whether a given integer is a power of 4 or not
- Calculate sum of digits of a given integer and write the number of each digit of the sum in English
- Convert seconds to hour, minute, and seconds
- Print numbers between 1 to 100 which are divisible by 3, 5 and by both
- Implement class and object concept
- Demonstrate Function Overloading for swapping of two variables of different data types
- Find square of a given number belonging to different data types using function overloading
- Copy contents of one array into another in reverse order
- Sort elements stored in an array
- Implement Multiple Inheritance using interface.
I welcome contributions from the community. If you find a bug or want to add a new program to the repository, feel free to open a pull request.
This repository is licensed under the [MIT License]