Welcome to the Java Programming Assignments repository! This collection of assignments is designed to enhance your Java programming skills. Each assignment targets specific programming concepts, allowing you to gradually master various aspects of Java. Please read the following instructions carefully before you begin.
- Assignment Overview
- Prerequisites
- Getting Started
- Assignment List
- Submission Guidelines
- Grading Criteria
- Additional Notes
In this set of 25 assignments, you will explore different Java programming concepts and apply them to solve a variety of problems. The assignments cover topics such as basic syntax, loops, conditional statements, arrays, object-oriented programming, file handling, and more.
Before starting these assignments, make sure you have the following:
- Basic understanding of Java syntax.
- Java Development Kit (JDK) installed on your computer.
- An Integrated Development Environment (IDE) or a text editor for writing Java code.
- Clone this repository to your local machine using the following command:
git clone <repository-url>
- Navigate to the project folder:
cd JavaAssignments
- Create a new Java file for each assignment (e.g.,
Assignment1.java
,Assignment2.java
, etc.) and write your solutions in these files.
Write a Java program that prints "Hello, World!" to the console.
Create a calculator that performs basic arithmetic operations based on user input.
Determine whether a number entered by the user is even or odd.
Calculate the factorial of a number using loops.
Generate the Fibonacci sequence up to a specified number of terms.
Determine whether a given string is a palindrome.
Calculate the sum of digits in a positive integer.
Display the multiplication table of a number.
Check if a given number is prime or composite.
Reverse a string without using built-in functions.
Calculate the sum and average of elements in an array.
Implement a sorting algorithm for an integer array.
Perform a linear search in an array to find a specific element.
Implement binary search on a sorted array.
Perform addition and multiplication of two matrices.
Determine if a number is an Armstrong number.
Read data from a file, manipulate it, and write the results back to a file.
Handle exceptions (e.g., division by zero) in a Java program.
Create classes and objects, demonstrate inheritance, encapsulation, and polymorphism.
Implement recursive functions for factorial calculation, Fibonacci series, etc.
Implement a linked list with basic operations like insertion, deletion, and traversal.
Implement a stack using arrays or linked lists.
Implement a queue using arrays or linked lists.
Implement in-order, pre-order, and post-order traversals of a binary tree.
Implement graph traversal algorithms (BFS, DFS) for a given graph.
- Create a separate Java file for each assignment (e.g.,
Assignment1.java
,Assignment2.java
, etc.). - Commit your changes to the corresponding files.
- Push your changes to the GitHub repository.
- Submit the link to your GitHub repository.
The grading criteria for each assignment are mentioned in the assignment description. Ensure your solutions are well-commented, follow best practices, and handle edge cases appropriately.
- Feel free to ask for help or clarification if you encounter difficulties.
- You are encouraged to explore additional resources and examples to enhance your understanding.
- Happy coding and enjoy the learning process!
Good luck with your assignments! If you have any questions, don't hesitate to reach out.
🔗 Orcid 🔗 ResearchGate 🔗 Medium 🔗 LinkedIn 🔗 SciProfiles 🔗 Web of Science 🔗 TU Wien Profile