This repository contains a collection of Java projects that demonstrate various fundamental concepts and features of the Java programming language. These projects are suitable for intermediate-level Java learners and cover a wide range of topics.
-
Prime Number Check
- Generate a random number up to 100 and print whether it is prime or not.
-
Fibonacci Series and Factorial
- Generate the first 10 terms of the Fibonacci series.
- Find the factorial of a given number using recursion.
-
Array Operations
- Find the average and sum of an array of N numbers entered by the user.
-
Rectangle Area and Perimeter
- Create a class to find out the area and perimeter of a rectangle.
-
String Operations
- Design a class that performs string operations (equal, reverse the string, change case).
-
Final Keyword Usage
- Demonstrate the use of the
final
keyword with data members, functions, and classes.
- Demonstrate the use of the
-
Exception Handling
- Demonstrate the use of keywords
try
,catch
,finally
,throw
, andthrows
.
- Demonstrate the use of keywords
-
Multi-threading
- Design a program to demonstrate multi-threading using the
Thread
class.
- Design a program to demonstrate multi-threading using the
-
Tic Tac Toe Game
- Design a program to create the game ‘Tic Tac Toe’.
-
File Read and Write
- Design a program to read a text file and after printing that on the screen, write the content to another text file.
-
Text File Analysis
- Design a program to count the number of words, characters, and vowels in a text file.
-
Clone the repository to your local machine.
git clone https://github.com/ayushsinghal021/java-fundamentals-projects.git cd java-fundamentals-projects
-
Navigate to the specific project directory.
cd project-directory
-
Compile the Java file.
javac FileName.java
-
Run the compiled Java program.
java FileName
- JDK (Java Development Kit) installed on your machine.
- An IDE or text editor for Java development (e.g., IntelliJ IDEA, Eclipse, VSCode).
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or suggestions, please open an issue or contact me at [email protected]